/* Desktop enhancement; the original select remains the no-JavaScript fallback. */
.facet-select { position: relative; min-width: 0; }
.catalog-native-facets { margin-block-end: 22px; }
.facet-select.is-open { z-index: 25; }
.facet-select > select[hidden] { display: none !important; }
.facet-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #bfc4cb; border-radius: 5px; background: #fff; color: var(--ink); text-align: start; font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
.facet-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet-select-trigger::after { content: ''; flex: 0 0 7px; width: 7px; height: 7px; margin: -4px 3px 0 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.facet-select-trigger:hover { background: var(--soft); border-color: #9098a2; }
.facet-select-trigger[aria-expanded="true"] { border-color: #626a73; }
.facet-select-trigger:focus-visible { outline: 2px solid #626a73; outline-offset: 2px; }
.facet-select-list { position: absolute; inset-inline: 0; inset-block-start: calc(100% + 6px); z-index: 26; margin: 0; padding: 4px; list-style: none; max-height: var(--facet-list-height, 260px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #bfc4cb; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgb(25 28 32 / .13); }
.facet-select-list[hidden] { display: none; }
.facet-select-option { display: flex; align-items: center; min-height: 44px; padding: 10px 9px; border-radius: 3px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; cursor: pointer; }
.facet-select-option:hover, .facet-select-option.is-active { background: var(--soft); }
.facet-select-option[aria-selected="true"] { font-weight: 600; }
.facet-select-option[aria-selected="true"]::after { content: '✓'; margin-inline-start: auto; padding-inline-start: 10px; }
.facet-select-option[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
@media (max-width: 800px) {
  .catalog-native-facets.desktop-facets { display: grid; grid-template-columns: minmax(0, 1fr); }
  .catalog-native-facets select { font-size: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .facet-select-trigger { transition: background-color .16s ease, border-color .16s ease; }
}
@media (forced-colors: active) {
  .facet-select-trigger, .facet-select-list { border-color: ButtonText; }
  .facet-select-trigger:focus-visible { outline-color: Highlight; }
  .facet-select-option.is-active { outline: 1px solid Highlight; outline-offset: -1px; }
}
