/* Mobile catalogue controls, scoped to MotoMX. Desktop filters retain their layout. */
.mx-filter-toolbar, .mx-panel-header, .mx-panel-footer, .mx-filter-backdrop, .mx-group-toggle { display:none; }
.mx-search-form { position:relative; }
#search_block_top .mx-search-form #search_query_top { padding-right:98px; }
.mx-search-form .mx-search-clear {
    position:absolute; right:52px; top:0; width:42px; height:42px;
    padding:0; border:0; background:transparent; color:#666;
    font:28px/42px Arial,sans-serif; cursor:pointer; z-index:1;
}
.mx-search-form .mx-search-clear[hidden] { display:none; }
.mx-search-clear:hover { color:#f45100; }
.mx-search-clear:focus-visible, .mx-filter-panel button:focus-visible, .mx-filter-toolbar button:focus-visible { outline:2px solid #2196f3; outline-offset:2px; }
@media (max-width:767px) {
    html.mx-filters-open, .mx-filters-open body { overflow:hidden; }
    .mx-mobile-ready #category .mx-empty-filter { display:none; }
    .mx-mobile-ready #category .change-form-wrap { margin-top:0; margin-bottom:12px; }
    .mx-mobile-ready .mx-filter-toolbar {
        display:flex; align-items:center; gap:9px; margin:4px 0 14px; min-width:0;
    }
    .mx-filter-toolbar button { font:500 15px/20px 'Roboto Condensed',Arial,sans-serif; cursor:pointer; white-space:nowrap; }
    .mx-all-filters {
        display:flex; align-items:center; gap:7px; flex-shrink:0;
        border:1px solid #f45100; border-radius:5px; background:#f45100; color:#fff;
        padding:12px 13px; min-height:46px; box-shadow:0 3px 8px rgba(244,81,0,.15);
    }
    .mx-all-filters i:before { content:'\f0b0'; }
    .mx-filter-count { border-radius:12px; min-width:20px; padding:0 5px; background:#fff; color:#d94400; font-size:12px; }
    .mx-filter-shortcuts { display:flex; gap:7px; overflow-x:auto; min-width:0; padding:3px 1px; scrollbar-width:none; }
    .mx-filter-shortcuts::-webkit-scrollbar { display:none; }
    .mx-filter-chip { border:1px solid #d9dde2; border-radius:5px; background:#fff; color:#333; padding:11px 13px; min-height:44px; }
    .mx-filter-chip:after { content:'⌄'; margin-left:8px; color:#888; }
    .mx-filter-chip.mx-selected { border-color:#f45100; color:#d94400; background:#fff4ed; }
    .mx-mobile-ready #category .mx-filter-panel {
        display:none; position:fixed; top:0; bottom:0; right:0;
        width:calc(100% - 24px); max-width:420px; padding:0; margin:0;
        background:#fff; z-index:10021; box-shadow:-8px 0 30px rgba(0,0,0,.15);
        flex-direction:column; border-radius:12px 0 0 12px; overflow:hidden; overflow:clip; overflow-anchor:none;
    }
    .mx-mobile-ready #category .mx-filter-panel.mx-open { display:flex; }
    .mx-filters-open .mx-filter-backdrop { display:block; position:fixed; inset:0; width:100%; height:100%; background:rgba(0,0,0,.44); border:0; z-index:10020; }
    .mx-panel-header { display:flex; align-items:center; justify-content:space-between; padding:9px 16px 9px 20px; border-bottom:1px solid #e8e8e8; flex-shrink:0; }
    .mx-panel-header strong { color:#222; font:700 23px/30px 'Roboto Condensed',Arial,sans-serif; }
    .mx-panel-close { border:0; background:#f4f4f4; border-radius:50%; width:44px; height:44px; color:#444; font:30px/40px Arial,sans-serif; }
    .mx-panel-body { overflow:auto; overscroll-behavior:contain; flex:1; min-height:0; -webkit-overflow-scrolling:touch; }
    #category .mx-filter-panel #layered_block_left { padding:0 20px; margin:0; border:0; box-shadow:none; }
    .mx-filter-panel .block_content { margin:0; }
    .mx-filter-panel .mx-filter-group { border-bottom:1px solid #e8e8e8; clear:both; }
    .mx-filter-panel .layered_subtitle_heading { margin:0; padding:0; }
    #layered_block_left .layered_subtitle_heading > .layered_subtitle { display:none; }
    .mx-filter-panel .mx-group-toggle {
        display:flex; align-items:center; justify-content:space-between; width:100%;
        padding:18px 0; border:0; background:transparent; color:#222; text-align:left;
        font:700 17px/24px 'Roboto Condensed',Arial,sans-serif;
    }
    .mx-group-toggle:after { content:''; width:9px; height:9px; border-right:2px solid #777; border-bottom:2px solid #777; transform:rotate(45deg); margin:0 4px 5px 14px; }
    .mx-group-toggle[aria-expanded=true]:after { transform:rotate(225deg); margin-bottom:-5px; }
    #layered_form .mx-filter-group > ul { display:none !important; }
    #layered_form .mx-filter-group.mx-expanded > ul { display:block !important; padding:0 0 16px; margin:0; max-height:none; float:none; }
    #layered_form .mx-filter-group > ul:after { content:''; display:block; clear:both; }
    #layered_form .mx-filter-group li { min-height:36px; padding:6px 0; }
    #layered_form .mx-filter-group label { font-size:15px; }
    #layered_form .mx-filter-group input[type=text] { font-size:16px; }
    #layered_form .mx-filter-group #minCost, #layered_form .mx-filter-group #maxCost { height:44px; padding:8px; border-radius:4px; }
    #layered_form #layered_price_slider { height:5px; margin:20px 10px 26px; border:0; background:#e1e4e8; }
    #layered_form #layered_price_slider .ui-slider-range { background:#f45100; }
    #layered_form #layered_price_slider .ui-slider-handle { top:-9px; width:23px; height:23px; margin-left:-11px; border:2px solid #f45100; background:#fff; border-radius:50%; }
    .mx-panel-footer { display:block; padding:10px 20px max(16px,env(safe-area-inset-bottom)); border-top:1px solid #eee; background:#fff; flex-shrink:0; }
    .mx-filter-status { display:block; font-size:13px; line-height:18px; color:#777; }
    .mx-filter-status:empty { display:none; }
    .mx-show-products { display:block; width:100%; min-height:48px; border:0; border-radius:5px; background:#f45100; color:#fff; font:700 18px/24px 'Roboto Condensed',Arial,sans-serif; padding:12px; }
    .mx-show-products:disabled { opacity:.6; }
    .mx-filter-panel #enabled_filters { margin:14px 0 0; padding:10px; background:#fff5ef; border-radius:5px; }
    .mx-filter-panel #enabled_filters li { padding:6px 0; font-size:13px; }
}
