/* Keep dropdown search flush with the scrolling viewport, including on reopen. */
@media (max-width:991px){
    body[data-page-name] :is(.mobile-fixed-menu_catalog_filters-menu, #modal-map-filters.modal-map-filters-modern) .filter-items .uni-select > .uni-select-list:has(> .uni-select-list-search){
        padding:0 7px 7px!important;
        scroll-padding-top:58px;
    }
    body[data-page-name] :is(.mobile-fixed-menu_catalog_filters-menu, .modal-map-filters-modern) .uni-select-list-search{
        top:0!important;
        margin-top:0!important;
        background:#fff!important;
        z-index:4!important;
    }
    /* Generic option-span rules must not paint every colour chip white. */
    body[data-page-name] :is(.mobile-fixed-menu_catalog_filters-menu, .modal-map-filters-modern) .filter-items .uni-select-list > label .catalog-filter-option .catalog-filter-color-swatch{
        background:var(--catalog-filter-swatch, transparent)!important;
    }
    /* The scroll container alone reserves room for the fixed 78px action bar. */
    body[data-page-name] .mobile-fixed-menu_catalog_filters-menu .modal-form-filter{
        padding-bottom:0!important;
    }
    body[data-page-name] .mobile-fixed-menu_catalog_filters-menu .mobile-fixed-menu-content{
        padding-bottom:calc(90px + env(safe-area-inset-bottom, 0px))!important;
    }
    /* No reserved dropdown space once its list is closed, even during a rerender. */
    body[data-page-name] :is(.mobile-fixed-menu_catalog_filters-menu, .modal-map-filters-modern) .filter-items.mobile-filter-open-space:not(:has(.uni-select-open)){
        margin-bottom:22px!important;
    }
    /* JS moves this panel into the category-dependent form before revealing it. */
    .ads-create-page .ad-create-sidebar-panel.ad-create-sidebar-pending{
        display:none!important;
    }
}
