.custom-select { position: relative; width: 100%; min-width: 0; }
.custom-select > select {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip-path: inset(50%); white-space: nowrap; border: 0 !important;
}
.custom-select-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: 46px; padding: 11px 12px;
  border: 1px solid #dfd8cc; border-radius: 0;
  background: #fcfbf8; color: #101820; text-align: left;
  font-size: .9rem; line-height: 1.4; cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.custom-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-value { display: flex; align-items: center; gap: 9px; }
.custom-select-value-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.custom-select-icon { width: 18px; height: 18px; flex-shrink: 0; color: #a18b70; }
.custom-select-option-text { flex: 1; min-width: 0; }
.custom-select-trigger > svg { width: 16px; height: 16px; flex-shrink: 0; color: #9b8261; transition: transform 200ms ease; }
.custom-select-trigger:hover { border-color: #a18b70; }
.custom-select-trigger[aria-expanded="true"] { border-color: #a18b70; background: #f4eee3; }
.custom-select-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.custom-select-trigger:disabled { opacity: .5; cursor: default; }
.custom-select-trigger:focus-visible { outline: 2px solid #a18b70; outline-offset: 3px; }
.custom-select-menu {
  position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 60;
  max-height: 260px; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; margin: 0; border: 1px solid #cfc0a8;
  background: #fff; box-shadow: 0 12px 28px rgba(16,24,32,.12);
  scrollbar-width: thin; scrollbar-color: #b8a58a #f5f2ec;
  animation: custom-select-reveal 160ms ease-out;
}
.custom-select-menu[hidden] { display: none; }
.custom-select.is-above .custom-select-menu { top: auto; bottom: calc(100% + 7px); }
.custom-select-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 10px 12px; color: #70695c;
  font-size: .85rem; line-height: 1.4; cursor: pointer;
}
.custom-select-option.is-highlighted { background: #f4eee3; color: #101820; }
.custom-select-option[aria-selected="true"] { color: #101820; font-weight: 600; }
.custom-select-option[aria-selected="true"]::after { content: '✓'; color: #9b8261; flex-shrink: 0; }
.custom-select-option[aria-disabled="true"] { opacity: .4; cursor: default; }
@keyframes custom-select-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .custom-select-trigger { font-size: 16px; } .custom-select-option { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .custom-select-menu { animation: none; } .custom-select-trigger, .custom-select-trigger > svg { transition: none; } }
