#searchResults .search-results-toolbar { align-items: center; flex-wrap: nowrap; gap: 8px; margin-bottom: 14px; }
#searchResults .search-sort { flex: 0 1 190px; width: 190px; min-width: 0; }
#searchResults .search-sort select { flex: 1; width: 0; }
#searchResults .search-filter-trigger { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid #e4e6e8; border-radius: 6px; background: #f4f5f6; color: #353b40; font-size: 12px; font-weight: 500; white-space: nowrap; }
#searchResults .search-filter-trigger svg { width: 14px; height: 14px; flex-shrink: 0; }
#searchResults .search-filter-trigger > span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
#searchResults .search-filter-trigger.is-selected { box-shadow: inset 0 0 0 1px #286888; }
#searchResults .search-filter-trigger.is-selected, #searchResults .search-filter-trigger[aria-expanded="true"] { border-color: #286888; background: #eff6f8; color: #164a65; }
#searchFilterPanel { margin: -4px 0 16px; background: #fff; border-block: 1px solid #dce2e6; }
#searchFilterPanel:not([hidden]) { animation: search-filters-open 160ms ease-out; }
#searchFilterPanel[hidden], #appliedSearchFilters[hidden] { display: none; }
#searchFilterPanel > header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #edf0f2; background: #f8fafb; }
#searchFilterPanel h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; font-weight: 650; }
#searchFilterPanel h2 svg { width: 17px; height: 17px; color: #206585; }
#searchFilterPanel .search-filter-search { display: flex; align-items: center; gap: 8px; width: 260px; max-width: 100%; margin-inline-start: auto; min-height: 34px; padding: 0 10px; border: 1px solid #d9e0e6; border-radius: 4px; background: #fff; }
#searchFilterPanel .search-filter-search svg { width: 15px; height: 15px; flex-shrink: 0; }
#searchFilterPanel .search-filter-search input { width: 100%; min-width: 0; height: 32px; padding: 0; border: 0; background: transparent; font-size: 12px; }
#searchFilterPanel .search-filter-search input:focus { outline: none; box-shadow: none; }
#searchFilterPanel button[data-close-search-filters] { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: transparent; color: #3e505d; border: 0; border-radius: 4px; }
#searchFilterPanel button[data-close-search-filters]:hover { background: #e9eef1; }
#searchFilterPanel button[data-close-search-filters] svg { width: 18px; height: 18px; }
#searchFilterOptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px 32px; padding: 20px; max-height: min(420px, 52dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#searchFilterOptions fieldset { margin: 0; padding: 0 0 18px; min-width: 0; border: 0; border-bottom: 1px solid #edf0f2; }
#searchFilterOptions legend { display: flex; align-items: center; gap: 8px; max-width: 100%; overflow-wrap: anywhere; font-size: 12px; font-weight: 650; padding: 0; margin-bottom: 12px; }
#searchFilterOptions legend svg { width: 15px; height: 15px; flex-shrink: 0; color: #677783; }
#searchFilterOptions .search-filter-category { grid-column: 1 / -1; }
#searchFilterOptions [data-browse-search-categories] { width: min(100%, 420px); justify-content: space-between; padding: 10px 12px; background: #fff; }
#searchFilterOptions [data-browse-search-categories] > span { max-width: none; white-space: normal; overflow-wrap: anywhere; text-align: start; }
#searchFilterOptions .search-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
#searchFilterOptions .search-filter-option { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; max-width: 100%; padding: 7px 11px; border: 1px solid #b9c2c9; border-radius: 6px; background: #fff; color: #34414c; font-size: 12px; line-height: 20px; cursor: pointer; }
#searchFilterOptions .search-filter-option > span:not(.color-swatch) { min-width: 0; overflow-wrap: anywhere; }
#searchFilterOptions .search-filter-option small { color: #677783; font-size: 10px; }
#searchFilterOptions .search-filter-option input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
#searchFilterOptions .search-filter-option-check { display: grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid #8d9ba5; border-radius: 3px; background: #fff; }
#searchFilterOptions .search-filter-option-check svg { width: 12px; height: 12px; visibility: hidden; }
#searchFilterOptions input:checked + .search-filter-option-check { background: #206585; border-color: #206585; color: #fff; }
#searchFilterOptions input:checked + .search-filter-option-check svg { visibility: visible; }
#searchFilterOptions .search-filter-option:has(input:checked) { background: #eaf5f8; color: #154e6b; border-color: #206585; box-shadow: inset 0 0 0 1px #206585; }
#searchFilterOptions .search-filter-option:has(input:disabled) { color: #87919a; border-color: #e3e6e9; background: #fafbfc; cursor: not-allowed; }
#searchFilterOptions .search-filter-option:has(input:disabled) small { color: #929ca5; }
#searchFilterOptions .search-filter-option:focus-within { outline: 2px solid #256585; outline-offset: 2px; }
#searchFilterOptions .color-swatch { display: inline-grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border: 1px solid #aab4bd; border-radius: 50%; }
#searchFilterOptions .color-swatch svg { width: 14px; height: 14px; }
#searchFilterPanel footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #edf0f2; background: #fafcfd; }
#searchFilterPanel footer button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 16px; border: 1px solid #b8c5ce; border-radius: 5px; font-size: 12px; font-weight: 600; background: #fff; color: #263e4f; }
#searchFilterPanel footer button svg { width: 15px; height: 15px; flex-shrink: 0; }
#searchFilterPanel [data-reset-search-filters] { margin-inline-end: auto; }
#searchFilterPanel #applySearchFilters { color: #fff; background: #206585; border-color: #206585; min-width: 135px; }
#searchFilterPanel #applySearchFilters:disabled { opacity: .5; cursor: not-allowed; }
#appliedSearchFilters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
#appliedSearchFilters button { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px; border: 1px solid #c4d4df; border-radius: 4px; font-size: 11px; color: #23536e; background: #eff6f9; overflow-wrap: anywhere; }
#appliedSearchFilters button svg { width: 13px; height: 13px; flex-shrink: 0; }
#searchResults .search-filter-trigger:focus-visible, #searchFilterPanel button:focus-visible { outline: 2px solid #256585; outline-offset: 2px; }
#searchFilterPanel .search-filter-search:focus-within { border-color: #256585; outline: 1px solid #256585; }
.search-filter-empty { font-size: 12px; color: #687884; margin: 8px 0; }
@keyframes search-filters-open { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { #searchFilterPanel:not([hidden]) { animation: none; } }
@media (max-width: 700px) {
  #searchResults .search-results-toolbar { gap: 7px; }
  #searchResults .search-filter-trigger { min-height: 40px; }
  #searchResults .search-sort { flex-shrink: 1; }
  #searchFilterPanel > header { padding: 12px; gap: 8px; }
  #searchFilterPanel .search-filter-search { order: 3; width: 100%; }
  #searchFilterPanel button[data-close-search-filters] { margin-inline-start: auto; }
  #searchFilterOptions { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 12px; max-height: min(380px, 45dvh); }
  #searchFilterOptions .search-filter-option { min-height: 40px; padding-inline: 9px; }
  #searchFilterPanel footer { padding: 12px; }
}
