
/* Cabo Advisor — Dropdown system v17
   Progressive enhancement: the original select remains in each form. */
.ca-select-ui {
  position: relative;
  width: 100%;
  min-width: 0;
  isolation: isolate;
}
.ca-select-ui select.ca-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}
.ca-select-trigger {
  appearance: none;
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #d3c7b6;
  border-radius: 13px;
  padding: 12px 15px 12px 18px;
  text-align: left;
  cursor: pointer;
  background: #fffdfa;
  color: #19221c;
  font: 500 clamp(14px, 1vw, 16px)/1.35 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: .005em;
  box-shadow: 0 4px 12px rgba(23, 33, 25, .035);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.ca-select-trigger:hover { border-color: #a88a5e; background: #fff; }
.ca-select-trigger[aria-expanded="true"] {
  border-color: #a88854;
  box-shadow: 0 0 0 3px rgba(185, 151, 95, .16), 0 12px 32px rgba(20,30,23,.08);
  background: #fff;
}
.ca-select-trigger:focus-visible {
  outline: 3px solid #c9a874;
  outline-offset: 2px;
}
.ca-select-value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ca-select-chevron {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1ebe2;
  color: #785e3b;
  transition: transform .2s ease, background .2s ease;
}
.ca-select-chevron svg { width: 15px; height: 15px; }
.ca-select-trigger[aria-expanded="true"] .ca-select-chevron {
  background: #e8dccb;
  transform: rotate(180deg);
}
.ca-select-menu {
  position: absolute;
  z-index: 180;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  padding: 7px;
  max-height: min(325px, 50dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fffdfa;
  border: 1px solid #d4c7b5;
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(16,28,19,.16);
}
.ca-select-menu[hidden] { display: none !important; }
.ca-select-option {
  appearance: none;
  display: flex;
  width: 100%;
  min-height: 44px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  color: #242b25;
  font: 500 14px/1.4 Inter,"Segoe UI",Arial,sans-serif;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s ease;
}
.ca-select-option:hover,
.ca-select-option:focus-visible { background: #f1eae0; outline: none; }
.ca-select-option[aria-selected="true"] { background: #e9eee9; color: #19291e; font-weight: 700; }
.ca-select-check { opacity: 0; color: #9b7844; font-size: 17px; }
.ca-select-option[aria-selected="true"] .ca-select-check { opacity: 1; }
.ca-select-ui:focus-within { z-index: 150; }
@media (max-width: 600px) {
  .ca-select-trigger { min-height: 54px; padding: 12px 13px; }
  .ca-select-menu { max-height: min(290px, 45dvh); }
}
@media (prefers-reduced-motion: reduce) {
  .ca-select-trigger, .ca-select-chevron, .ca-select-option { transition: none; }
}
