/* D8.2.2: mobile-only geometry and contrast. Native panel visibility/position, AJAX and inputs preserved. */
@media (max-width: 767.98px) {
  body#category #left-column:has(#search_filters .facet) {
    box-sizing: border-box !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    flex-basis: 100% !important; margin-inline: 0 !important; padding-inline: 0 !important;
  }
  body#category #search_filters_wrapper:has(#search_filters .facet) {
    box-sizing: border-box !important;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important;
    margin-inline: 0 !important; padding-inline: 12px !important;
  }
  body#category #search_filters_wrapper :is(#search_filter_controls,#search_filters) {
    box-sizing: border-box !important; width: 100% !important; max-width: 100% !important;
    min-width: 0 !important; margin-inline: 0 !important; float: none !important;
  }
  body#category #search_filters_wrapper #search_filter_controls:has(.ok) {
    padding: 12px 0 !important;
  }
  body#category #search_filter_controls .yb-d821-heading { padding-inline: 0 !important; }
  body#category #search_filters_wrapper #search_filters:has(.facet) {
    padding: 0 12px 10px !important;
  }
  /* Clear all can be moved into the mobile controls by the native theme. */
  body#category #search_filter_controls :is(button:not(.ok),a.js-search-filters-clear-all,.js-search-filters-clear-all),
  body#category #_mobile_search_filters_clear_all :is(button,a.js-search-filters-clear-all) {
    box-sizing: border-box; background: #fff !important; color: #102846 !important;
    border: 1px solid #aab9cb !important; border-radius: 7px !important;
    box-shadow: none !important; text-shadow: none !important;
    font-size: 13px !important; font-weight: 600 !important; text-transform: none !important;
    min-height: 44px; width: 100% !important; max-width: 100% !important;
    margin: 0 0 8px !important; padding: 9px 12px !important;
  }
  body#category #search_filter_controls :is(button:not(.ok),a.js-search-filters-clear-all,.js-search-filters-clear-all) :is(span,i,strong,svg),
  body#category #_mobile_search_filters_clear_all :is(button,a.js-search-filters-clear-all) :is(span,i,strong,svg) {
    color: #102846 !important; text-shadow: none !important;
  }
  body#category #search_filter_controls :is(button:not(.ok),a.js-search-filters-clear-all,.js-search-filters-clear-all):not(:disabled):not([aria-disabled="true"]):not(.disabled),
  body#category #_mobile_search_filters_clear_all :is(button,a.js-search-filters-clear-all):not(:disabled):not([aria-disabled="true"]):not(.disabled) { opacity: 1 !important; }
  body#category #search_filter_controls :is(button:not(.ok),a.js-search-filters-clear-all,.js-search-filters-clear-all):focus-visible {outline: 2px solid #28659e;outline-offset: 2px;}
  /* Only label rows with real selectable inputs, not slider or other facets. */
  body#category #search_filters .facet li .facet-label:has(input:is([type=checkbox],[type=radio])) {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    justify-content: flex-start !important; gap: 10px !important; width: 100% !important;
    max-width: 100% !important; min-height: 40px !important; box-sizing: border-box;
    margin: 0 !important; padding: 5px 0 !important; float: none !important;
    text-align: left !important; white-space: normal !important;
  }
  body#category #search_filters .facet li .facet-label > :is(.custom-checkbox,.custom-radio,input[type=checkbox],input[type=radio]) {
    flex: 0 0 auto !important; float: none !important; margin: 0 !important;
    align-self: center !important;
  }
  body#category #search_filters .facet li .facet-label:has(input:is([type=checkbox],[type=radio])) > a {
    display: block !important; flex: 1 1 0 !important; width: auto !important; min-width: 0 !important;
    max-width: 100% !important; float: none !important; clear: none !important;
    margin: 0 !important; padding: 0 !important; font-size: 13px !important;
    line-height: 1.4 !important; text-align: left !important; overflow-wrap: anywhere;
  }
  body#category #search_filters .facet li:has(.facet-label input:is([type=checkbox],[type=radio])) {
    padding: 0 !important;
  }
}
