/* Native single selects keep their labels, values and input/change events.
   The browser positions the picker in the top layer outside overflow clips. */
/* The wizard's field fills reset background images in both themes. */
#modal-order #order-modal-box.booking-wizard-v5 .booking-v5-slide select:not([hidden],[aria-hidden="true"],[multiple],[size]:not([size="1"])) {
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23707070' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;
 background-position:right 12px center!important;
 background-size:16px 16px!important;
}
@supports (appearance:base-select) and selector(select::picker(select)) {
 /* Keep each field's existing closed geometry until it receives focus. */
 select:not([hidden],[aria-hidden="true"],[multiple],[size]:not([size="1"]),:where(.modal-bg,#modal-generic) > [aria-modal="false"] *):is(:focus-within,:open) {
  appearance:base-select!important;
  field-sizing:fixed;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
 }
 select:not([hidden],[aria-hidden="true"],[multiple],[size]:not([size="1"]))::picker(select) {
  appearance:base-select;
  box-sizing:border-box;
  min-inline-size:min(max(180px,anchor-size(width)),calc(100dvw - 16px));
  max-inline-size:min(max(260px,anchor-size(width)),calc(100dvw - 16px));
  max-block-size:min(280px,calc((100dvh - 72px) / 2));
  padding:6px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--bg-card,var(--bg-surface));
  color:var(--text-primary,var(--text));
  box-shadow:0 4px 16px rgba(0,0,0,.12);
  font-size:12px;
  line-height:1.35;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:auto;
  scrollbar-color:var(--border-control,var(--border2)) var(--bg-surface-2,var(--bg-surface2));
 }
 /* These controls already draw a chevron in the field's background. */
 #modal-order #order-modal-box.booking-one-page select::picker-icon,
 select.form-select::picker-icon { display:none }
 select:open :is(option,optgroup) {
  color:var(--text-primary,var(--text))!important;
 }
 select:open option {
  box-sizing:border-box;
  min-block-size:28px;
  padding:5px 8px;
  border-radius:5px;
  font-size:12px;
  font-weight:400;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
  /* Status selects also carry legacy inline fills on their options. */
  background:transparent!important;
 }
 select:open option:enabled {
  cursor:pointer;
 }
 select:open option:enabled:not(:checked):is(:hover,:focus-visible) {
  background:var(--bg-surface-2,var(--bg-surface2))!important;
 }
 select:open option:focus-visible {
  outline:1px solid var(--accent);
  outline-offset:-1px;
 }
 select:open option:checked {
  background:var(--accent-light)!important;
  color:var(--accent)!important;
  font-weight:600;
 }
 select:open option:disabled {
  color:var(--text-muted,var(--muted))!important;
 }
 @media(pointer:coarse) {
  select:open option { min-block-size:44px;font-size:14px }
 }
 @media(forced-colors:active) {
  select:open option:checked {
   background:Highlight!important;
   color:HighlightText!important;
   forced-color-adjust:none;
  }
 }
}
