/* D8.2: native mobile filters; no visibility or event overrides. */
@media (max-width: 767.98px) {
  body#category #js-product-list-top .yb1841-sort { padding: 0 !important; }
  body#category #js-product-list-top .sort-by-row:has(#search_filter_toggler) {
    display: flex !important; align-items: center; flex-wrap: wrap; justify-content: space-between;
    gap: 8px; margin: 0 !important; width: 100%;
  }
  body#category #js-product-list-top .sort-by-row:has(#search_filter_toggler)::before,
  body#category #js-product-list-top .sort-by-row:has(#search_filter_toggler)::after { display: none !important; }
  body#category #js-product-list-top .sort-by-row:has(#search_filter_toggler) > .filter-button {
    order: -1; flex: 1 1 0; width: auto !important; max-width: none !important;
    min-width: 0; padding: 0 !important; margin: 0 !important; float: none !important;
  }
  body#category #js-product-list-top .sort-by-row:has(#search_filter_toggler) > .products-sort-order {
    flex: 1 1 0; width: auto !important; max-width: none !important;
    min-width: 0; padding: 0 !important; margin: 0 !important; float: none !important;
  }
  body#category #search_filter_toggler {
    box-sizing: border-box; display: block; width: 100%; min-height: 44px;
    padding: 8px 6px !important; margin: 0 !important; border: 1px solid #102846 !important;
    border-radius: 7px !important; background: #102846 !important; color: #fff !important;
    font: inherit; font-size: 13px !important; font-weight: 600 !important; line-height: 1.3 !important;
    letter-spacing: normal !important; text-transform: none !important; white-space: normal !important;
    box-shadow: none !important;
  }
  body#category #js-product-list-top .sort-by-row:has(#search_filter_toggler) .select-title {
    box-sizing: border-box; display: flex !important; align-items: center; justify-content: space-between;
    gap: 3px; min-height: 44px; width: 100%; padding: 8px !important;
    background: #fff !important; color: #102846 !important; border: 1px solid #d4dfeb !important;
    border-radius: 7px !important; font-size: 13px !important; line-height: 1.3 !important;
    white-space: normal !important; overflow-wrap: anywhere; text-transform: none !important;
  }
  body#category #js-product-list-top .showing { padding: 0 !important; margin: 10px 0 0 !important; color: #52677c; font-size: 12px; text-align: left !important; }
  body#category #search_filters { color: #102846; background: #fff; }
  body#category #search_filters > :is(.h6,.h5,h2,h3,.block-title,.search-filter-title) {
    font-size: 17px !important; font-weight: 700 !important; text-transform: none !important;
    color: #102846 !important; border-bottom: 1px solid #102846 !important; padding: 0 0 10px !important;
  }
  body#category #search_filter_controls button { min-height: 44px; border-radius: 7px !important; font-size: 13px !important; font-weight: 600; text-transform: none !important; }
  body#category #search_filter_controls button.ok { background: #102846 !important; border-color: #102846 !important; color: #fff !important; }
  body#category #search_filter_controls button.clear { background: #f0f4f8 !important; border-color: #d4dfeb !important; color: #102846 !important; }
  body#category :is(#search_filter_toggler,#search_filter_controls button,#js-product-list-top .select-title):focus-visible { outline: 2px solid #28659e; outline-offset: 2px; }
  body#category #search_filters .facet {
    border: 0 !important;
    border-bottom: 1px solid #e4eaf1 !important;
    padding: 0 0 13px !important;
    margin: 0 0 13px !important;
    color: #102846;
    min-width: 0;
  }
  body#category #search_filters .facet:last-of-type { border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 0 !important; }
  body#category #search_filters .facet .facet-title {
    color: #102846 !important; font-size: 14px !important; line-height: 1.4 !important; font-weight: 700 !important;
    text-transform: none !important; margin: 0 0 8px !important; padding: 0 !important;
  }
  body#category #search_filters .facet ul { margin: 0 !important; padding-left: 0 !important; list-style: none; }
  body#category #search_filters .facet li { list-style: none; margin: 0 !important; padding: 3px 0 !important; line-height: 1.5; }
  body#category #search_filters .facet .facet-label { margin: 0 !important; max-width: 100%; white-space: normal !important; }
  body#category #search_filters .facet .facet-label a { font-size: 13px !important; color: #102846; white-space: normal !important; overflow-wrap: anywhere; }
  body#category #search_filters .facet .facet-label:is(.active,:hover) a { color: #28659e !important; }
  body#category #search_filters input:is([type=checkbox],[type=radio]) { accent-color: #102846; }
  body#category #search_filters .custom-checkbox input[type=checkbox] + span { border-color: #aab9cb !important; border-radius: 4px; }
  body#category #search_filters .custom-checkbox input[type=checkbox]:checked + span { border-color: #102846 !important; background: #102846 !important; color: #fff !important; }
  body#category #search_filters .custom-checkbox input[type=checkbox]:checked + span .checkbox-checked { color: #fff !important; }
  body#category #search_filters .custom-checkbox input:focus-visible + span,
  body#category #search_filters :is(a,button,.ui-slider-handle):focus-visible { outline: 2px solid #28659e; outline-offset: 3px; }
  body#category #search_filters .faceted-slider { color: #102846; font-size: 13px; }
  body#category #search_filters .ui-slider.ui-slider-horizontal { height: 6px !important; margin: 13px 8px 11px !important; border: 0 !important; background: #e2e9f1 !important; border-radius: 10px; }
  body#category #search_filters .ui-slider .ui-slider-range { background: #102846 !important; border-radius: 10px; }
  body#category #search_filters .ui-slider-horizontal .ui-slider-handle { width: 16px !important; height: 16px !important; top: -5px !important; margin-left: -8px !important; background: #fff !important; border: 2px solid #102846 !important; border-radius: 50%; box-sizing: border-box; cursor: ew-resize; }
  body#category :is(#search_filters,#js-active-search-filters,#active_filters) :is(.js-search-filters-clear-all,.clear-all-wrapper button) {
    background: #f0f4f8 !important; color: #102846 !important; border: 1px solid #d4dfeb !important; border-radius: 6px; box-shadow: none !important;
    font-size: 13px !important; font-weight: 600; text-transform: none !important; white-space: normal; padding: 8px 12px !important;
  }
  body#category :is(#search_filters,#js-active-search-filters,#active_filters) :is(.js-search-filters-clear-all,.clear-all-wrapper button):hover { border-color: #102846 !important; background: #e5edf5 !important; }
  body#category #search_filters .facet li { padding: 6px 0 !important; }
  body#category #search_filters .facet .facet-label { min-height: 28px; }
  body#category #search_filters .ui-slider-horizontal .ui-slider-handle { width: 24px !important; height: 24px !important; top: -9px !important; margin-left: -12px !important; }
}
