/* GO27 • Universal Select UI 2026-11-10
 * Styled interactive layer, with native <select> kept for submitted values.
 * The native Android picker never receives pointer events when enhanced.
 */
.go27-select {
  --gs-accent:#ee4e32;
  --gs-border:#dbe2ea;
  --gs-text:#2b3849;
  position:relative;
  display:block;
  flex-shrink:1;
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  vertical-align:middle;
}
.go27-select > select[data-go27-enhanced] {
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  z-index:-1 !important;
  width:1px !important;
  height:1px !important;
  min-height:1px !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  opacity:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
  -webkit-appearance:none !important;
  appearance:none !important;
}
.go27-select > button.go27-select-trigger {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-width:0;
  min-height:42px;
  padding:10px 12px 10px 14px;
  margin:0;
  color:var(--gs-text);
  background:#fff;
  border:1px solid var(--gs-border);
  border-radius:9px;
  box-sizing:border-box;
  box-shadow:0 1px 2px rgba(23,38,56,.02);
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  text-align:left;
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}
.go27-select > button.go27-select-trigger:hover {
  background:#fcfdff;
  border-color:#bdcad8;
}
.go27-select > button.go27-select-trigger:focus-visible,
.go27-select.is-open > button.go27-select-trigger {
  outline:none;
  border-color:var(--gs-accent);
  box-shadow:0 0 0 3px rgba(238,78,50,.12);
}
.go27-select-value {
  flex:1 1 auto;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.go27-select.is-placeholder .go27-select-value { color:#8590a0; font-weight:500; }
.go27-select-chevron {
  display:grid;
  flex:none;
  place-items:center;
  width:25px;
  height:25px;
  margin:-2px -3px -2px 0;
  border-radius:7px;
  background:#f4f6f9;
  color:#6f7e90;
  transition:background .16s ease,color .16s ease,transform .2s ease;
}
.go27-select-chevron svg {
  display:block;
  width:15px;
  height:15px;
  stroke:currentColor;
}
.go27-select.is-open .go27-select-chevron {
  transform:rotate(180deg);
  background:#fff1ed;
  color:var(--gs-accent);
}
.go27-select.is-disabled { opacity:.6; cursor:not-allowed; }
.go27-select.is-disabled > button.go27-select-trigger {
  cursor:not-allowed;
  background:#f5f6f8;
}
.go27-select.is-invalid > button.go27-select-trigger {
  border-color:#dc473b;
  box-shadow:0 0 0 3px rgba(220,71,59,.1);
}
.go27-select-backdrop {
  position:fixed;
  inset:0;
  z-index:2147483000;
  background:rgba(15,24,38,.4);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  animation:go27-select-fade .14s ease both;
}
.go27-select-popup {
  position:fixed;
  z-index:2147483001;
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:325px;
  padding:5px;
  box-sizing:border-box;
  overflow:hidden;
  color:#2c3848;
  background:#fff;
  border:1px solid #dee4ec;
  border-radius:13px;
  box-shadow:0 18px 54px rgba(16,25,42,.19),0 4px 12px rgba(16,25,42,.06);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-align:left;
  animation:go27-select-pop .13s ease-out both;
}
.go27-select-popup-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 11px 8px 13px;
  border-bottom:1px solid #edf0f4;
}
.go27-select-popup-title {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#667488;
  font-size:11px;
  font-weight:800;
  letter-spacing:.025em;
}
.go27-select-popup-close {
  display:grid;
  flex:none;
  place-items:center;
  width:29px;
  height:29px;
  padding:0;
  margin:0;
  border:0;
  border-radius:7px;
  background:#f5f7f9;
  color:#6b7685;
  cursor:pointer;
}
.go27-select-popup-close svg { width:15px; height:15px; }
.go27-select-popup-close:hover { background:#e9edf2; }
.go27-select-search { padding:10px 10px 6px; }
.go27-select-search input {
  display:block;
  box-sizing:border-box;
  width:100%;
  height:40px;
  min-height:40px;
  padding:9px 13px;
  border:1px solid #dce3eb;
  border-radius:9px;
  outline:none;
  background:#f8fafc;
  color:#2c3848;
  font-family:inherit;
  font-size:13px;
  font-weight:500;
  line-height:1.35;
}
.go27-select-search input:focus {
  border-color:var(--gs-accent, #ee4e32);
  box-shadow:0 0 0 3px rgba(238,78,50,.09);
  background:#fff;
}
.go27-select-options {
  flex:1 1 auto;
  min-height:0;
  max-height:inherit;
  padding:5px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-color:#cbd5e1 transparent;
  scrollbar-width:thin;
  outline:none;
  -webkit-overflow-scrolling:touch;
}
.go27-select-option {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-sizing:border-box;
  width:100%;
  min-height:39px;
  padding:10px 12px;
  margin:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#344256;
  font:500 13px/1.4 Inter,system-ui,-apple-system,sans-serif;
  text-align:left;
  cursor:pointer;
  white-space:normal;
  word-break:break-word;
  -webkit-tap-highlight-color:transparent;
}
.go27-select-option:hover,
.go27-select-option.is-highlighted {
  background:#f5f7fa;
  color:#18263c;
}
.go27-select-option[aria-selected="true"] {
  background:#fff2ed;
  color:#ce432c;
  font-weight:750;
}
.go27-select-option[aria-selected="true"].is-highlighted { background:#ffe9df; }
.go27-select-option:disabled { opacity:.42; cursor:not-allowed; }
.go27-select-option:focus-visible { outline:2px solid #ef6c55; outline-offset:-2px; }
.go27-select-option-text { flex:1 1 auto; min-width:0; }
.go27-select-check {
  display:none;
  flex:none;
  place-items:center;
  width:19px;
  height:19px;
  color:#e75235;
}
.go27-select-check svg { width:16px; height:16px; }
.go27-select-option[aria-selected="true"] .go27-select-check { display:grid; }
.go27-select-group {
  padding:12px 12px 6px;
  color:#8792a2;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.055em;
}
.go27-select-no-results {
  margin:0;
  padding:21px 10px;
  color:#808da0;
  text-align:center;
  font-size:12px;
}
@keyframes go27-select-pop {
  from { opacity:0; transform:translateY(-5px) scale(.985); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes go27-select-fade {
  from { opacity:0; }
  to { opacity:1; }
}
/* Mobile: a compact, scrollable, native-free bottom sheet with search.
 * It doesn't extend edge-to-edge or hide the rest of the context. */
@media(max-width:700px) {
  .go27-select > button.go27-select-trigger {
    min-height:46px;
    padding:11px 12px 11px 14px;
    border-radius:10px;
    font-size:14px;
  }
  .go27-select-chevron { width:27px; height:27px; }
  .go27-select-popup.is-sheet {
    top:auto!important;
    left:12px!important;
    right:12px!important;
    bottom:max(12px, env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-height:min(66dvh,620px)!important;
    padding:6px;
    border-radius:18px;
    box-shadow:0 20px 65px rgba(15,23,42,.26);
    animation:go27-select-sheet .2s cubic-bezier(.2,.8,.2,1) both;
  }
  .go27-select-popup.is-sheet::before {
    content:"";
    display:block;
    flex:none;
    width:34px;
    height:4px;
    margin:3px auto 2px;
    border-radius:99px;
    background:#cdd5df;
  }
  .go27-select-popup-heading { padding:12px 12px 13px 15px; }
  .go27-select-popup-title { color:#29374b; font-size:14px; }
  .go27-select-popup-close { width:35px; height:35px; border-radius:9px; }
  .go27-select-search { padding:13px 11px 8px; }
  .go27-select-search input {
    height:45px;
    min-height:45px;
    font-size:16px;
  }
  .go27-select-options { padding:5px 6px 8px; }
  .go27-select-option {
    min-height:48px;
    padding:12px 13px;
    border-radius:9px;
    font-size:14px;
  }
  .go27-select-group { padding:12px 13px 8px; }
  @keyframes go27-select-sheet {
    from { opacity:.4; transform:translateY(16px); }
    to { opacity:1; transform:translateY(0); }
  }
}
@media(prefers-reduced-motion:reduce) {
  .go27-select-trigger,.go27-select-chevron,
  .go27-select-popup,.go27-select-backdrop { animation:none; transition:none; }
}
