/* GBC single-choice fields. The native select retains its form value. */
select.native-select[data-custom-menu="true"] { display: none !important; }
.gbc-select-trigger {
  --gbc-select-control: 40px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: var(--gbc-select-control);
  height: auto;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #cbdbee;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #162f51;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.gbc-select-trigger .select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbc-select-trigger .select-chevron,
.gbc-select-trigger > .gbc-select-chevron {
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #155cc5;
}
.gbc-select-trigger .select-chevron svg { width: 16px; height: 16px; }
.gbc-select-trigger[aria-expanded="true"] .select-chevron,
.gbc-select-trigger[aria-expanded="true"] > .gbc-select-chevron,
details[open] > .gbc-select-trigger > .gbc-select-chevron { transform: rotate(180deg); }
.gbc-select-trigger:enabled:hover,
.gbc-select-trigger[aria-expanded="true"],
details[open] > .gbc-select-trigger { background: #f4f8ff; border-color: #82ace6; color: #124fa2; }
.gbc-select-trigger:is(:disabled,[aria-disabled="true"]) { color: #627792; background: #eef3f9; cursor: default; }
.gbc-select-trigger:focus-visible,
.gbc-select-menu:focus-visible,
.gbc-select-searchable input:focus-visible { outline: 2px solid #246cc8; outline-offset: 2px; }
.gbc-select-trigger[aria-invalid="true"] { border-color: #a92f43; color: #8f293c; }
.select-validation-error { color: #8f293c; font-size: 12px; }

.gbc-select-menu {
  position: fixed;
  z-index: 1100;
  margin: 0;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #cbdcf0;
  border-radius: 10px;
  background: #fff;
  color: #162f51;
  font: 600 13px/1.4 'GBC Manrope', 'GBC Interface', system-ui, sans-serif;
  box-shadow: 0 9px 24px #193b6026;
  scrollbar-width: thin;
}
.gbc-select-option {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 36px;
  border-radius: 6px;
  color: #213c5c;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.gbc-select-option .select-option-label { min-width: 0; }
.gbc-select-option:has(.option-dot) { grid-template-columns: 8px minmax(0, 1fr) 16px; }
.gbc-select-option .option-dot { width: 7px; height: 7px; border-radius: 50%; background: #8797aa; }
.gbc-select-option .option-dot[data-state="available"] { background: #17826e; }
.gbc-select-option .option-dot[data-state="pause"] { background: #a56716; }
.gbc-select-option .option-check svg { display: block; width: 15px; height: 15px; color: #155cc5; }
.gbc-select-option[aria-selected="true"] { background: #e9f2ff; color: #124fa2; }
.gbc-select-option[aria-disabled="false"]:is(:hover,.highlighted) { background: #f0f6ff; box-shadow: inset 0 0 0 1px #cbdff9; }
.gbc-select-option[aria-disabled="true"] { opacity: .65; cursor: default; }

.gbc-select-searchable {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 5px;
  overflow: hidden;
}
.gbc-select-searchable > input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #cbdbee;
  border-radius: 7px;
  background: #f5f8fd;
  color: #162f51;
  font: 400 16px/1.35 system-ui, sans-serif;
}
.gbc-select-options { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.gbc-select-empty { margin: 0; padding: 8px 10px; color: #4e6785; }
.gbc-select-empty[hidden] { display: none; }

@media (pointer: coarse) {
  .gbc-select-trigger { --gbc-select-control: 44px; }
  .gbc-select-option { min-height: 44px; }
}

/* Fields that share a row with other controls retain their compact dimensions. */
.private-reply-channel-control > .gbc-select-trigger {
  --gbc-select-control: 32px;
  width: 102px;
  max-width: 100%;
  padding-block: 4px;
}
.pch-toolbar > .gbc-select-trigger { width: auto; max-width: 52%; }
@media (max-width: 680px) {
  .private-reply-channel-control > .gbc-select-trigger { width: 92px; }
}
