/**
 * Baltica Pets - mobile horizontal filters fix.
 *
 * Important: the theme's main CSS contains:
 *   #horizontal_filters.horizontal_filters_dropdown { display: block; }
 * which is more specific than Transformer's mobile rule that hides the
 * collapsed filter block. This is why the filters appear again after collapse.
 */
@media (max-width: 991.98px) {
  /* Closed by default on mobile, regardless of stale Bootstrap .show class. */
  #horizontal_filters_wrap > #horizontal_filters.horizontal_filters_dropdown {
    display: none !important;
    height: auto !important;
  }

  /* Open only when our mobile toggle explicitly opens the block. */
  #horizontal_filters_wrap > #horizontal_filters.horizontal_filters_dropdown.baltica-mobile-filters-open {
    display: block !important;
  }

  /* The generated list has its own repeated title; hide it in this layout. */
  #horizontal_filters #search_filters > .sticky_facet_title {
    display: none !important;
  }
}
