/* Custom dropdowns: original select IDs remain unchanged for existing JS. */
.custom-select {
  display: inline-block;
  position: relative;
  min-width: 190px;
  vertical-align: middle;
  flex: 1 1 auto;
}
.custom-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 41px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #8099ca;
  background: #182438;
  color: #fff;
  text-align: left;
  font: inherit;
  font-size: 13px;
}
.custom-select-trigger:hover,
.custom-select.is-open .custom-select-trigger {
  background: #263b5d;
  border-color: #b4caff;
}
.custom-select-trigger:focus-visible {
  outline: 2px solid #b4caff;
  outline-offset: 2px;
}
.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-chevron { flex: 0 0 auto; font-size: 19px; line-height: 1; }
.custom-select-menu {
  z-index: 10000;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid #94b2f2;
  border-radius: 10px;
  background: #131f33;
  box-shadow: 0 14px 40px #000b;
}
.custom-select-menu[hidden] { display: none !important; }
.custom-select-heading {
  padding: 10px 10px 4px;
  color: #b6c8e8;
  font-size: 11px;
  font-weight: 700;
}
.custom-select-option {
  display: block;
  width: 100%;
  padding: 9px 12px;
  text-align: left;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: #355385;
  color: #fff;
  outline: none;
}
.custom-select-option.is-selected,
.custom-select-option.is-selected:hover,
.custom-select-option.is-selected:focus-visible {
  background: #4369e8;
  color: #fff;
  font-weight: 700;
}
.custom-select-option.is-selected::before { content: '✓  '; }
.custom-select-option:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 620px) {
  .custom-select { display: block; min-width: 0; width: 100%; }
  .custom-select-trigger { min-height: 42px; }
}
