/* ReHub's fixed-height tablet drawer must not itself be a multicolumn flow.
 * Keep the scrollport outside the auto-height columns. No global .sidebar reset.
 */
@media (min-width: 768px) and (max-width: 1023px) {
    #rh_woo_mbl_sidebar aside.sidebar {
        columns: auto !important;
        box-sizing: border-box;
        height: 100vh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    }
    #rh_woo_mbl_sidebar aside.sidebar > .widget {
        columns: auto !important;
        width: auto;
        height: auto;
        max-height: none;
        transform: none;
    }
    #rh_woo_mbl_sidebar aside.sidebar > .widget > .textwidget.custom-html-widget {
        column-count: 2;
        column-width: auto;
        column-gap: 16px;
        column-fill: balance;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    #rh_woo_mbl_sidebar .custom-html-widget > .lk-filter-card,
    #rh_woo_mbl_sidebar .custom-html-widget > .berocket_single_filter_widget {
        break-inside: avoid;
        min-width: 0;
    }
    #rh_woo_mbl_sidebar .custom-html-widget > .custom-category-banner-widget,
    #rh_woo_mbl_sidebar .custom-html-widget > .berocket_single_filter_widget:has(.bapf_sfa_blue) {
        column-span: all;
    }
}
