/* RadicalMart filter UI for ParketMaster. Scoped to the module. v1.3.9 */
.pm-rm-filter {
    --pm-filter-border: var(--stroke_black, #e6e6e6);
    --pm-filter-text: var(--white_text_black, #222);
    --pm-filter-muted: var(--light_basic_text_black, #777);
    --pm-filter-bg: var(--black_bg_black, #fff);
    --pm-filter-soft: var(--light_bg_black, #f7f7f7);
    --pm-filter-theme: var(--theme-base-color, #ff6b00);
    --pm-filter-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    position: relative;
    width: 100%;
    margin: 0 0 24px;
    color: var(--pm-filter-text);
}

.pm-rm-filter__mobile-trigger,
.pm-rm-filter__mobile-header,
.pm-rm-filter__mobile-footer { display: none; }

.pm-rm-filter__mobile-state {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pm-rm-filter__field > summary { list-style: none; }
.pm-rm-filter__field > summary::-webkit-details-marker { display: none; }

.pm-rm-filter__form { width: 100%; }

/* Important: do not inherit nowrap rules from donor utility classes. */
.pm-rm-filter__fields {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100%;
    overflow: visible !important;
}

.pm-rm-filter__field {
    position: relative;
    min-width: 0;
    flex: 0 0 auto;
}

.pm-rm-filter__field-head {
    position: relative;
    display: flex;
    align-items: center;
}

.pm-rm-filter__field-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    max-width: 235px !important;
    padding: 0 38px 0 14px !important;
    border: 1px solid var(--pm-filter-border) !important;
    border-radius: 8px !important;
    background: var(--pm-filter-bg) !important;
    color: var(--pm-filter-text) !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: nowrap !important;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.pm-rm-filter__field-toggle:hover,
.pm-rm-filter__field.is-open .pm-rm-filter__field-toggle,
.pm-rm-filter__field[open] .pm-rm-filter__field-toggle {
    border-color: var(--pm-filter-theme) !important;
}

.pm-rm-filter__field-toggle .dropdown-select__title-text {
    display: block;
    min-width: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-rm-filter__field-toggle.is-active { padding-right: 58px !important; }

.pm-rm-filter__selected-count,
.pm-rm-filter__total-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--pm-filter-theme);
    color: #fff;
    font-size: 11px;
    line-height: 19px;
}

.pm-rm-filter__selected-count[hidden],
.pm-rm-filter__total-count[hidden],
.pm-rm-filter__field-clear[hidden] { display: none !important; }

.pm-rm-filter__chevron {
    position: absolute;
    right: 13px;
    top: 50%;
    display: inline-flex;
    transform: translateY(-50%);
    transition: transform .15s ease;
    color: var(--pm-filter-muted);
}

.pm-rm-filter__field.is-open .pm-rm-filter__chevron,
.pm-rm-filter__field[open] .pm-rm-filter__chevron {
    transform: translateY(-50%) rotate(180deg);
}

.pm-rm-filter__field-clear {
    position: absolute;
    z-index: 4;
    right: 29px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pm-filter-theme);
    cursor: pointer;
}

.pm-rm-filter__dropdown {
    position: absolute !important;
    top: calc(100% + 7px) !important;
    left: 0 !important;
    right: auto !important;
    z-index: 2500 !important;
    display: block;
    width: max-content;
    min-width: 300px;
    max-width: min(430px, calc(100vw - 36px));
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.pm-rm-filter__field:not([open]) > .pm-rm-filter__dropdown { display: none !important; }
.pm-rm-filter__field[open] > .pm-rm-filter__dropdown { display: block !important; }
.pm-rm-filter__dropdown[hidden] { display: none !important; }

.pm-rm-filter__dropdown-inner {
    box-sizing: border-box;
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--pm-filter-border);
    border-radius: 10px;
    background: var(--pm-filter-bg);
    box-shadow: var(--pm-filter-shadow);
}

.pm-rm-filter__control {
    max-height: 330px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

/* Donor-style dual-handle price slider. Native RM inputs stay in the form but are visually hidden. */
.pm-rm-filter__price-native > .uk-inline,
.pm-rm-filter__price-native > .uk-text-right {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pm-rm-filter__price-slider {
    position: relative;
    width: 100%;
    min-width: 290px;
    padding: 0 12px 14px;
    box-sizing: border-box;
}

.pm-rm-filter__price-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--pm-filter-border);
    border-radius: 7px;
    background: var(--pm-filter-bg);
    color: var(--pm-filter-muted);
    font-size: 16px;
    line-height: 1;
    box-sizing: border-box;
}

.pm-rm-filter__price-value {
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.pm-rm-filter__price-track {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--pm-filter-border);
}

.pm-rm-filter__price-track-active {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: inherit;
    background: var(--pm-filter-text);
}

.pm-rm-filter__price-range {
    position: absolute;
    z-index: 3;
    left: 12px;
    right: 12px;
    bottom: 5px;
    width: calc(100% - 24px) !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    outline: 0;
}

.pm-rm-filter__price-range::-webkit-slider-runnable-track {
    height: 2px;
    background: transparent;
    border: 0;
}
.pm-rm-filter__price-range::-moz-range-track {
    height: 2px;
    background: transparent;
    border: 0;
}
.pm-rm-filter__price-range::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -7px;
    border: 2px solid var(--pm-filter-text);
    border-radius: 50%;
    background: var(--pm-filter-bg);
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    cursor: grab;
}
.pm-rm-filter__price-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid var(--pm-filter-text);
    border-radius: 50%;
    background: var(--pm-filter-bg);
    box-shadow: none;
    pointer-events: auto;
    cursor: grab;
}
.pm-rm-filter__price-range:active::-webkit-slider-thumb { cursor: grabbing; }
.pm-rm-filter__price-range:active::-moz-range-thumb { cursor: grabbing; }
.pm-rm-filter__price-range:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--pm-filter-theme);
    outline-offset: 2px;
}
.pm-rm-filter__price-range:focus-visible::-moz-range-thumb {
    outline: 2px solid var(--pm-filter-theme);
    outline-offset: 2px;
}

/* Native RM price field */
.pm-rm-filter__control .radicalmart-input-filter-price {
    min-width: 290px;
}
.pm-rm-filter__control .radicalmart-input-filter-price > .uk-inline {
    position: relative;
    display: inline-flex;
    width: calc(50% - 4px);
    margin: 0 4px 0 0 !important;
}
.pm-rm-filter__control .radicalmart-input-filter-price > .uk-inline:nth-child(2) { margin-right: 0 !important; }
.pm-rm-filter__control .radicalmart-input-filter-price .uk-form-icon {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pm-filter-muted);
    font-size: 13px;
    pointer-events: none;
}
.pm-rm-filter__control .radicalmart-input-filter-price .uk-input {
    width: 100%;
    height: 42px;
    padding: 0 10px 0 34px;
    border: 1px solid var(--pm-filter-border);
    border-radius: 7px;
    background: var(--pm-filter-bg);
    color: var(--pm-filter-text);
    font: inherit;
}
.pm-rm-filter__control .radicalmart-input-filter-price .uk-text-right {
    margin-top: 11px;
    text-align: right;
}
.pm-rm-filter__control .radicalmart-input-filter-price .uk-link {
    color: var(--pm-filter-muted);
    cursor: pointer;
    font-size: 13px;
}

/* Native RM select/text fallback */
.pm-rm-filter__control select,
.pm-rm-filter__control input[type="text"],
.pm-rm-filter__control input[type="number"],
.pm-rm-filter__control input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--pm-filter-border);
    border-radius: 7px;
    background: var(--pm-filter-bg);
    color: var(--pm-filter-text);
    padding: 0 11px;
    font: inherit;
}

.pm-rm-filter__option-search { margin-bottom: 10px; }

.pm-rm-filter__options {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.pm-rm-filter__option {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin: 0 !important;
    padding: 6px 2px !important;
    color: var(--pm-filter-text);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
}

.pm-rm-filter__option[hidden],
.pm-rm-filter__option--extra:not([hidden]) { display: flex !important; }
.pm-rm-filter__option--extra[hidden] { display: none !important; }

.pm-rm-filter__option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pm-rm-filter__option .form-checkbox__box {
    order: -1;
    position: relative;
    display: inline-flex;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--pm-filter-border);
    border-radius: 4px;
    background: var(--pm-filter-bg);
}

.pm-rm-filter__option-input:checked ~ .form-checkbox__box {
    border-color: var(--pm-filter-theme);
    background: var(--pm-filter-theme);
}
.pm-rm-filter__option-input:checked ~ .form-checkbox__box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pm-rm-filter__option-text { min-width: 0; }

.pm-rm-filter__more {
    display: inline-flex;
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--pm-filter-muted);
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.pm-rm-filter__field-actions {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pm-filter-border);
}

.pm-rm-filter__apply-field,
.pm-rm-filter__mobile-submit {
    width: 100%;
    min-height: 40px;
    border-radius: 7px;
}

.pm-rm-filter__reset {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 5px;
    border: 0;
    background: transparent;
    color: var(--pm-filter-muted);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.pm-rm-filter .visible-767 { display: none; }

body.pm-rm-filter-lock { overflow: hidden !important; }

@media (max-width: 767px) {
    .pm-rm-filter { margin-bottom: 18px; }
    .pm-rm-filter .hide-767 { display: none !important; }
    .pm-rm-filter .visible-767 { display: flex; }

    .pm-rm-filter__mobile-trigger { width: 100%; }
    .pm-rm-filter__mobile-trigger .dropdown-select { width: 100%; }

    .pm-rm-filter__open-mobile {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 42px !important;
        padding: 0 14px !important;
        border: 1px solid var(--pm-filter-border) !important;
        border-radius: 8px !important;
        background: var(--pm-filter-bg) !important;
        color: var(--pm-filter-text) !important;
        cursor: pointer;
        font-size: 14px;
    }

    .pm-rm-filter__icon { display: inline-flex; }

    .pm-rm-filter__form {
        position: fixed;
        inset: 0;
        z-index: 10050;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100dvh;
        background: var(--pm-filter-bg);
        transform: translateX(102%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .22s ease, visibility 0s linear .22s;
    }
    .pm-rm-filter__form.is-mobile-open,
    .pm-rm-filter__mobile-state:checked ~ .pm-rm-filter__form {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform .22s ease;
    }

    .pm-rm-filter__mobile-header {
        display: grid !important;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 12px;
        min-height: 62px;
        padding: 0 16px;
        border-bottom: 1px solid var(--pm-filter-border);
        background: var(--pm-filter-bg);
    }
    .pm-rm-filter__mobile-title { font-size: 18px; font-weight: 600; }
    .pm-rm-filter__reset--header { min-height: auto; padding: 0; font-size: 13px; }
    .pm-rm-filter__close-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--pm-filter-text);
        cursor: pointer;
    }

    .pm-rm-filter__fields {
        display: block !important;
        flex: 1 1 auto;
        overflow: auto !important;
        padding: 8px 16px 92px;
    }

    .pm-rm-filter__field {
        width: 100%;
        border-bottom: 1px solid var(--pm-filter-border);
    }
    .pm-rm-filter__field-toggle {
        width: 100% !important;
        max-width: none !important;
        min-height: 52px !important;
        padding: 0 40px 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
    .pm-rm-filter__field-toggle .dropdown-select__title-text {
        max-width: calc(100vw - 100px);
    }
    .pm-rm-filter__field-clear { right: 26px; }
    .pm-rm-filter__chevron { right: 1px; }

    .pm-rm-filter__dropdown {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 0 14px !important;
    }
    .pm-rm-filter__dropdown-inner {
        padding: 4px 0 10px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .pm-rm-filter__control { max-height: none; overflow: visible; }

    .pm-rm-filter__mobile-footer {
        position: fixed;
        z-index: 2;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid !important;
        grid-template-columns: 1fr 1.35fr;
        gap: 10px;
        padding: 12px 16px max(12px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--pm-filter-border);
        background: var(--pm-filter-bg);
        box-shadow: 0 -8px 24px rgba(0,0,0,.06);
    }
    .pm-rm-filter__mobile-reset {
        min-height: 44px;
        border: 1px solid var(--pm-filter-border);
        border-radius: 7px;
        background: var(--pm-filter-bg);
        color: var(--pm-filter-text);
        cursor: pointer;
    }
    .pm-rm-filter__mobile-submit { min-height: 44px; }
}

/* ========================================================================
   ParketMaster 1.3.9 — donor-aligned filter presentation
   Keeps RadicalMart/Joomla logic intact; only presentation/interaction is
   adapted for the ParketMaster catalogue.
   ======================================================================== */

/* Native RM Standard checkbox layout: remove list bullets/gaps and present
   options in the same compact visual rhythm as the donor filter. */
.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes {
    min-width: 230px;
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes > ul,
.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes ul.uk-list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes li,
.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes li::marker {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    content: '';
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes li:not(:has(input[type="checkbox"], input[type="radio"])) {
    display: none !important;
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes label {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 34px;
    margin: 0 !important;
    padding: 5px 2px !important;
    color: var(--pm-filter-text) !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes input[type="checkbox"],
.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes input[type="radio"] {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #d7d9dc !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-shadow: none !important;
    opacity: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer;
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes input[type="checkbox"]:checked,
.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes input[type="radio"]:checked {
    border-color: var(--pm-filter-theme) !important;
    background: var(--pm-filter-theme) !important;
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes input[type="checkbox"]:checked::after,
.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes > .uk-text-right {
    display: none !important;
}

.pm-rm-filter .radicalmart-fields-standard-filter_checkboxes .pm-rm-filter__native-more {
    margin-top: 7px;
}

@media (min-width: 768px) {
    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes .pm-rm-filter__native-option--desktop-extra {
        display: none !important;
    }
    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes.is-expanded .pm-rm-filter__native-option--desktop-extra {
        display: list-item !important;
    }
    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes .pm-rm-filter__native-more {
        display: none;
    }
    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes.has-desktop-more .pm-rm-filter__native-more {
        display: inline-flex;
    }
}

/* Dropdown body/button proportions. */
.pm-rm-filter__dropdown-inner {
    padding: 14px 16px 12px;
}

.pm-rm-filter__field-actions {
    margin-top: 13px;
    padding-top: 13px;
}

.pm-rm-filter__apply-field {
    min-height: 40px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #f0f1f2 !important;
    color: #202124 !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

.pm-rm-filter__apply-field:hover {
    background: #e8e9eb !important;
    color: #202124 !important;
}

.pm-rm-filter__mobile-backdrop {
    display: none;
}

@media (max-width: 767px) {
    /* Donor pattern: filter is a left off-canvas drawer, not a full-screen
       page and not a right-side panel. */
    .pm-rm-filter__mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 10040;
        display: block;
        background: rgba(0, 0, 0, .38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        cursor: default;
        transition: opacity .22s ease, visibility 0s linear .22s;
    }

    .pm-rm-filter__mobile-state:checked ~ .pm-rm-filter__mobile-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity .22s ease;
    }

    .pm-rm-filter__form {
        inset: auto !important;
        top: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 10050 !important;
        width: min(390px, calc(100vw - 24px)) !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        background: #fff !important;
        box-shadow: 12px 0 34px rgba(0, 0, 0, .14);
        transform: translateX(-104%) !important;
        visibility: hidden;
        pointer-events: none;
        transition: transform .24s ease, visibility 0s linear .24s !important;
    }

    .pm-rm-filter__form.is-mobile-open,
    .pm-rm-filter__mobile-state:checked ~ .pm-rm-filter__form {
        transform: translateX(0) !important;
        visibility: visible;
        pointer-events: auto;
        transition: transform .24s ease !important;
    }

    .pm-rm-filter__mobile-header {
        display: grid !important;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 12px;
        min-height: 64px;
        padding: 0 22px !important;
        border: 0 !important;
        background: #fff !important;
    }

    .pm-rm-filter__mobile-title {
        color: #26272a;
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2;
    }

    .pm-rm-filter__reset--header {
        min-height: auto !important;
        padding: 0 !important;
        color: #777 !important;
        font-size: 13px !important;
    }

    .pm-rm-filter__reset--header[hidden] {
        display: none !important;
    }

    .pm-rm-filter__close-mobile {
        width: 30px !important;
        height: 30px !important;
        margin-right: -7px;
        color: #a5a5a5 !important;
    }

    .pm-rm-filter__fields {
        display: block !important;
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        padding: 0 22px 18px !important;
        scrollbar-width: thin;
    }

    .pm-rm-filter__field {
        width: 100%;
        margin: 0 !important;
        border: 0 !important;
    }

    .pm-rm-filter__field-toggle {
        width: 100% !important;
        max-width: none !important;
        min-height: 52px !important;
        padding: 0 30px 0 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #292a2d !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
    }

    .pm-rm-filter__field-toggle:hover,
    .pm-rm-filter__field[open] .pm-rm-filter__field-toggle {
        border-color: transparent !important;
        background: transparent !important;
    }

    .pm-rm-filter__field-toggle .dropdown-select__title-text {
        max-width: calc(100% - 44px) !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pm-rm-filter__selected-count {
        margin-left: 2px;
    }

    .pm-rm-filter__field-clear {
        right: 25px !important;
        width: 22px;
        height: 22px;
    }

    /* The same down-chevron becomes the donor's right-arrow on collapsed
       rows and turns down when a row is expanded. */
    .pm-rm-filter__chevron {
        right: 2px !important;
        color: #292a2d !important;
        transform: translateY(-50%) rotate(-90deg) scale(1.25) !important;
    }

    .pm-rm-filter__field.is-open .pm-rm-filter__chevron,
    .pm-rm-filter__field[open] .pm-rm-filter__chevron {
        transform: translateY(-50%) rotate(0deg) scale(1.25) !important;
    }

    .pm-rm-filter__dropdown {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 0 13px !important;
    }

    .pm-rm-filter__dropdown-inner {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .pm-rm-filter__control {
        max-height: none !important;
        overflow: visible !important;
    }

    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes {
        min-width: 0;
        width: 100%;
    }

    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes label {
        min-height: 36px;
        padding: 5px 0 !important;
        font-size: 15px !important;
    }

    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes .pm-rm-filter__native-option--mobile-extra {
        display: none !important;
    }

    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes.is-expanded .pm-rm-filter__native-option--mobile-extra {
        display: list-item !important;
    }

    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes .pm-rm-filter__native-more {
        display: none;
        margin-top: 7px;
        color: #3f4043 !important;
        font-size: 13px !important;
        text-decoration: none !important;
    }

    .pm-rm-filter .radicalmart-fields-standard-filter_checkboxes.has-mobile-more .pm-rm-filter__native-more {
        display: inline-flex;
    }

    .pm-rm-filter__price-slider {
        min-width: 0 !important;
        width: 100% !important;
        padding: 0 0 15px !important;
    }

    .pm-rm-filter__price-values {
        height: 44px;
        padding: 0 16px;
        border-color: #d7d9dc;
        border-radius: 6px;
        font-size: 16px;
    }

    .pm-rm-filter__price-track {
        left: 9px !important;
        right: 9px !important;
        bottom: 15px !important;
    }

    .pm-rm-filter__price-range {
        left: 0 !important;
        right: 0 !important;
        bottom: 6px !important;
        width: 100% !important;
    }

    .pm-rm-filter__mobile-footer {
        position: relative !important;
        z-index: 3;
        display: block !important;
        flex: 0 0 auto;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        padding: 12px 10px max(14px, env(safe-area-inset-bottom)) !important;
        border: 0 !important;
        background: #fff !important;
        box-shadow: 0 -10px 24px rgba(255, 255, 255, .96);
    }

    .pm-rm-filter__mobile-submit {
        width: 100% !important;
        min-height: 52px !important;
        border-radius: 7px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .pm-rm-filter__mobile-trigger .pm-rm-filter__open-mobile {
        width: auto !important;
    }
}

/* ========================================================================
   ParketMaster 1.3.9 — mobile drawer stacking fix
   The catalogue template has sticky/fixed header and bottom navigation in
   separate stacking contexts. While the drawer is open JS temporarily moves
   the whole module root to <body>; this wrapper then becomes the top-level
   stacking context so the filter and backdrop cover header/footer as intended.
   ======================================================================== */
@media (max-width: 767px) {
    .pm-rm-filter.is-mobile-portaled {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 2147483000 !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pm-rm-filter.is-mobile-portaled > .pm-rm-filter__mobile-trigger {
        display: none !important;
    }

    .pm-rm-filter.is-mobile-portaled > .pm-rm-filter__mobile-backdrop {
        z-index: 1 !important;
    }

    .pm-rm-filter.is-mobile-portaled > .pm-rm-filter__form {
        z-index: 2 !important;
    }
}
/* Keep incompatible values visible and readable, but prevent selection. */
[data-pm-rm-filter] .pm-rm-filter__field--unavailable > [data-pm-rm-filter-toggle] {
    opacity: .4;
    cursor: not-allowed;
}
[data-pm-rm-filter] .pm-rm-filter__option--unavailable {
    opacity: .4;
    cursor: not-allowed;
}
[data-pm-rm-filter] .pm-rm-filter__option--unavailable label,
[data-pm-rm-filter] .pm-rm-filter__option--unavailable span {
    cursor: not-allowed;
}
