.nmm-smart-filters {
    --nmm-smart-filters-border: var(--base, #d9d9d9);
    --nmm-smart-filters-surface: var(--base-2, #ffffff);
    --nmm-smart-filters-ink: var(--contrast, #111111);
    --nmm-smart-filters-muted: color-mix(in srgb, var(--contrast, #111111) 65%, transparent);
    --nmm-smart-filters-soft: color-mix(in srgb, var(--nmm-smart-filters-ink) 4%, white 96%);
    --nmm-smart-filters-accent: var(--accent, #d71920);
    --nmm-smart-filters-accent-soft: color-mix(in srgb, var(--nmm-smart-filters-accent) 8%, white 92%);
    color: var(--nmm-smart-filters-ink);
    margin: 0 0 2rem;
}

.nmm-smart-filters.is-sticky {
    position: sticky;
    top: 2rem;
}

.nmm-smart-filters__mobile-toggle {
    align-items: center;
    background: var(--base-2, #f5f5f5);
    border: 0;
    border-radius: 0;
    color: var(--nmm-smart-filters-ink);
    cursor: pointer;
    display: none;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    justify-content: flex-start;
    min-height: 39px;
    padding: 7px 14px;
    text-transform: uppercase;
    width: auto;
}

.nmm-smart-filters__mobile-toggle:hover,
.nmm-smart-filters__mobile-toggle:focus-visible {
    background: color-mix(in srgb, var(--nmm-smart-filters-ink) 7%, white 93%);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--nmm-smart-filters-ink) 18%, transparent) inset;
    outline: none;
}

.nmm-smart-filters__mobile-toggle-main {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.nmm-smart-filters__mobile-toggle-icon {
    display: block;
    flex: 0 0 20px;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 1.7;
    width: 20px;
}

.nmm-smart-filters__mobile-toggle-label {
    color: currentColor;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
}

.nmm-smart-filters__mobile-toggle-badge {
    align-items: center;
    background: var(--nmm-smart-filters-accent);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    justify-content: center;
    line-height: 1;
    min-width: 16px;
    padding: 0 5px;
}

.nmm-smart-filters__shell {
    --nmm-smart-filters-border: var(--base, #d9d9d9);
    --nmm-smart-filters-surface: var(--base-2, #ffffff);
    --nmm-smart-filters-ink: var(--contrast, #111111);
    --nmm-smart-filters-muted: color-mix(in srgb, var(--contrast, #111111) 65%, transparent);
    --nmm-smart-filters-soft: color-mix(in srgb, var(--nmm-smart-filters-ink) 4%, white 96%);
    --nmm-smart-filters-accent: var(--accent, #d71920);
    --nmm-smart-filters-accent-soft: color-mix(in srgb, var(--nmm-smart-filters-accent) 8%, white 92%);
    box-shadow: none;
    overflow: hidden;
}

.nmm-smart-filters__modal-bar {
    display: none;
}

.nmm-smart-filters__header {
    border-bottom: 1px solid var(--nmm-smart-filters-border);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}

.nmm-smart-filters__eyebrow {
    color: var(--nmm-smart-filters-muted);
    font-size: var(--fs-xs, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 0.4rem;
    text-transform: uppercase;
}

.nmm-smart-filters__title {
    color: var(--nmm-smart-filters-ink);
    display: block;
    font-size: var(--fs-h5, 1.08rem);
    font-weight: var(--fw-bold, 700);
    line-height: 1.2;
    margin: 0;
    padding-bottom: 0;
}

.nmm-smart-filters__title::after {
    content: none;
}

.nmm-smart-filters__intro,
.nmm-smart-filters__results {
    color: var(--nmm-smart-filters-muted);
    font-size: var(--fs-small, 0.875rem);
    line-height: 1.45;
    margin: 0.65rem 0 0;
}

.nmm-smart-filters__groups {
    display: block;
}

.nmm-smart-filters__group,
.nmm-smart-filters__active {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--nmm-smart-filters-border);
    border-radius: 0;
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
}

.nmm-smart-filters__group:last-child,
.nmm-smart-filters__groups:last-child .nmm-smart-filters__group:last-child {
    margin-bottom: 0;
}

.nmm-smart-filters__group-head {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
    user-select: none;
}

.nmm-smart-filters__group-head::-webkit-details-marker {
    display: none;
}

.nmm-smart-filters__group-head::marker {
    content: "";
}

.nmm-smart-filters__group-head:focus-visible {
    outline: none;
}

.nmm-smart-filters__group-body {
    padding-top: 1rem;
}

.nmm-smart-filters__group-title {
    color: var(--nmm-smart-filters-ink);
    flex: 1 1 auto;
    font-size: var(--fs-ui, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.nmm-smart-filters__group-meta {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 10px;
    justify-content: flex-end;
    padding-right: 4px;
}

.nmm-smart-filters__group-badge {
    align-items: center;
    background: var(--nmm-smart-filters-accent);
    border: 0;
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    height: 16px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    min-width: 16px;
    padding: 0;
    text-align: center;
    width: 16px;
}

.nmm-smart-filters__group-indicator {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    color: var(--nmm-smart-filters-muted);
    display: inline-flex;
    justify-content: center;
    height: 8px;
    min-width: 0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease, color 0.18s ease;
    width: 8px;
}

.nmm-smart-filters__group[open] .nmm-smart-filters__group-indicator {
    color: var(--nmm-smart-filters-ink);
    transform: rotate(225deg) translate(-2px, -2px);
}

.nmm-smart-filters__options {
    display: grid;
    gap: 0.3rem;
}

.nmm-smart-filters__option {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--nmm-smart-filters-ink);
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nmm-smart-filters__option:hover,
.nmm-smart-filters__option:focus-visible {
    color: var(--nmm-smart-filters-accent);
    outline: none;
    transform: none;
}

.nmm-smart-filters__option[hidden] {
    display: none !important;
}

.nmm-smart-filters__option-label {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    font-weight: 400;
    gap: 10px;
    line-height: 1.35;
    min-width: 0;
}

.nmm-smart-filters__option-label::before {
    background: #fff;
    border: 1px solid var(--nmm-smart-filters-border);
    box-sizing: border-box;
    content: "";
    display: inline-block;
    flex: 0 0 16px;
    height: 16px;
    width: 16px;
}

.nmm-smart-filters__option.is-active .nmm-smart-filters__option-label {
    color: var(--nmm-smart-filters-accent);
    font-weight: 400;
}

.nmm-smart-filters__option.is-active .nmm-smart-filters__option-label::before {
    background: var(--nmm-smart-filters-accent);
    border-color: var(--nmm-smart-filters-accent);
    box-shadow: inset 0 0 0 3px #fff;
}

.nmm-smart-filters__option-count {
    color: var(--nmm-smart-filters-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.nmm-smart-filters__option-count::before {
    content: "(";
}

.nmm-smart-filters__option-count::after {
    content: ")";
}

.nmm-smart-filters__options .nmm-smart-filters__more {
    appearance: none;
    align-self: flex-start;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--nmm-smart-filters-muted) !important;
    cursor: pointer;
    display: inline-flex !important;
    flex: 0 0 auto;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    margin-top: 0.2rem;
    max-width: max-content;
    min-height: 0;
    min-width: 0;
    padding: 0 !important;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-transform: none;
    text-underline-offset: 0.14em;
    width: auto !important;
}

.nmm-smart-filters__options .nmm-smart-filters__more:hover,
.nmm-smart-filters__options .nmm-smart-filters__more:focus,
.nmm-smart-filters__options .nmm-smart-filters__more:focus-visible,
.nmm-smart-filters__options .nmm-smart-filters__more:active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--nmm-smart-filters-muted) !important;
    outline: none;
}

.nmm-smart-filters__active-row {
    align-items: center;
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    margin: 0 0 0.9rem;
}

.nmm-smart-filters__active-label {
    color: var(--nmm-smart-filters-ink);
    font-size: var(--fs-ui, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nmm-smart-filters__active-clear,
.nmm-smart-filters__clear-link {
    color: var(--nmm-smart-filters-muted);
    font-size: var(--fs-small, 0.875rem);
    font-weight: 600;
    text-decoration: none;
}

.nmm-smart-filters__active-clear:hover,
.nmm-smart-filters__active-clear:focus-visible,
.nmm-smart-filters__clear-link:hover,
.nmm-smart-filters__clear-link:focus-visible {
    color: var(--nmm-smart-filters-accent);
    outline: none;
}

.nmm-smart-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.nmm-smart-filters__chip {
    align-items: center;
    background: var(--nmm-smart-filters-soft);
    border: 1px solid var(--nmm-smart-filters-border);
    border-radius: 999px;
    color: var(--nmm-smart-filters-ink);
    display: inline-flex;
    font-size: var(--fs-small, 0.875rem);
    font-weight: 600;
    gap: 0.45rem;
    line-height: 1.2;
    padding: 0.45rem 0.8rem;
    text-decoration: none;
}

.nmm-smart-filters__chip:hover,
.nmm-smart-filters__chip:focus-visible {
    border-color: color-mix(in srgb, var(--nmm-smart-filters-accent) 20%, var(--nmm-smart-filters-border) 80%);
    color: var(--nmm-smart-filters-accent);
    outline: none;
}

.nmm-smart-filters__price-form {
    display: grid;
    gap: 1rem;
}

.nmm-smart-filters__range {
    --nmmf-range-start: 0%;
    --nmmf-range-end: 100%;
}

.nmm-smart-filters__slider {
    position: relative;
    height: 28px;
}

.nmm-smart-filters__slider-track,
.nmm-smart-filters__slider-progress {
    border-radius: 999px;
    height: 4px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nmm-smart-filters__slider-track {
    background: color-mix(in srgb, var(--contrast, #111) 18%, white 82%);
    right: 0;
}

.nmm-smart-filters__slider-progress {
    background: var(--contrast, #111);
    left: var(--nmmf-range-start);
    right: calc(100% - var(--nmmf-range-end));
}

.nmm-smart-filters__range-input {
    -webkit-appearance: none;
    appearance: none;
    accent-color: transparent !important;
    background: transparent;
    border: 0 !important;
    box-shadow: none !important;
    height: 28px;
    left: 0;
    margin: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.nmm-smart-filters__range-input::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 4px;
}

.nmm-smart-filters__range-input::-moz-range-track {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: 4px;
}

.nmm-smart-filters__range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #fff !important;
    border: 2px solid var(--contrast, #111) !important;
    border-radius: 50%;
    box-shadow: none !important;
    cursor: pointer;
    height: 18px;
    margin-top: -7px;
    pointer-events: auto;
    width: 18px;
}

.nmm-smart-filters__range-input::-moz-range-thumb {
    background: #fff !important;
    border: 2px solid var(--contrast, #111) !important;
    border-radius: 50%;
    box-shadow: none !important;
    cursor: pointer;
    height: 18px;
    pointer-events: auto;
    width: 18px;
}

.nmm-smart-filters__range-input::-moz-range-progress {
    background: transparent !important;
}

.nmm-smart-filters__range-input:focus {
    outline: none;
}

.nmm-smart-filters__range-input:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #d71920) 18%, white 82%);
}

.nmm-smart-filters__range-input:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #d71920) 18%, white 82%);
}

.nmm-smart-filters__price-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 92px));
    justify-content: space-between;
}

.nmm-smart-filters__field {
    position: relative;
}

.nmm-smart-filters__field-shell {
    align-items: center;
    background: #fff;
    border: 1px solid var(--nmm-smart-filters-border);
    display: flex;
    min-height: 42px;
    padding: 0 10px;
}

.nmm-smart-filters__field input,
.nmm-smart-filters__editor-input {
    appearance: none;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--nmm-smart-filters-ink);
    display: block;
    font: inherit;
    font-size: 13px;
    min-height: 40px;
    padding: 0;
    width: 100%;
}

.nmm-smart-filters__field-shell input[data-nmmf-price-display] {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    outline: none !important;
    padding: 0 !important;
}

.nmm-smart-filters__field-shell input[data-nmmf-price-display]:focus,
.nmm-smart-filters__field-shell input[data-nmmf-price-display]:focus-visible,
.nmm-smart-filters__field-shell input[data-nmmf-price-display]:active {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.nmm-smart-filters__field-shell input[data-nmmf-price-display]::-webkit-search-decoration,
.nmm-smart-filters__field-shell input[data-nmmf-price-display]::-webkit-search-cancel-button,
.nmm-smart-filters__field-shell input[data-nmmf-price-display]::-webkit-search-results-button,
.nmm-smart-filters__field-shell input[data-nmmf-price-display]::-webkit-search-results-decoration {
    display: none;
}

.nmm-smart-filters__field-shell input[data-nmmf-price-display]:-webkit-autofill,
.nmm-smart-filters__field-shell input[data-nmmf-price-display]:-webkit-autofill:hover,
.nmm-smart-filters__field-shell input[data-nmmf-price-display]:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--nmm-smart-filters-ink) !important;
    transition: background-color 9999s ease-out 0s;
}

.nmm-smart-filters__field-suffix {
    color: var(--contrast, #111);
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.nmm-smart-filters__field input::placeholder {
    color: var(--nmm-smart-filters-muted);
    opacity: 1;
}

.nmm-smart-filters__field-shell:focus-within {
    border-color: var(--nmm-smart-filters-accent);
    box-shadow: 0 0 0 1px var(--nmm-smart-filters-accent);
}

.nmm-smart-filters__field input:focus {
    outline: none;
}

.nmm-smart-filters__price-actions {
    display: flex;
    justify-content: flex-start;
}

.nmm-smart-filters__button {
    appearance: none;
    background: var(--nmm-smart-filters-accent);
    border: 1px solid var(--nmm-smart-filters-accent);
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    min-height: 34px;
    padding: 0 12px;
    text-transform: uppercase;
}

.nmm-smart-filters__button:hover,
.nmm-smart-filters__button:focus-visible {
    background: var(--accent-light, var(--nmm-smart-filters-accent));
    border-color: var(--accent-light, var(--nmm-smart-filters-accent));
    outline: none;
}

.nmm-smart-filters__button--compact {
    min-height: 32px;
    padding: 0 10px;
}

.nmm-smart-filters__footer {
    margin-top: 1.25rem;
    text-align: right;
}

.nmm-smart-filters-notice {
    background: #fff;
    border: 1px solid var(--nmm-smart-filters-border);
    color: var(--nmm-smart-filters-ink);
    padding: 1rem 1.1rem;
}

@media (max-width: 768px) {
    .nmm-smart-filters {
        position: static;
    }

    body.nmm-smart-filters-modal-open {
        overflow: hidden;
    }

    .nmm-smart-filters.nmm-smart-filters--js .nmm-smart-filters__mobile-toggle {
        display: inline-flex;
    }

    .nmm-smart-filters.nmm-smart-filters--js.is-open {
        z-index: 2147483647;
    }

    .nmm-smart-filters__shell {
        padding: 18px;
    }

    .nmm-smart-filters__shell.is-nmmf-modal-panel {
        background: #fff;
        display: flex;
        flex-direction: column;
        height: 100dvh;
        inset: 0;
        max-width: none;
        opacity: 0;
        overflow: hidden;
        padding: 0;
        pointer-events: none;
        position: fixed;
        transform: translateY(100%);
        transition: opacity 0.24s ease, transform 0.32s ease, visibility 0.32s ease;
        visibility: hidden;
        width: 100vw;
        z-index: 2147483647;
    }

    .admin-bar .nmm-smart-filters__shell.is-nmmf-modal-panel {
        top: 46px;
    }

    .nmm-smart-filters__shell.is-nmmf-modal-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .nmm-smart-filters__modal-bar {
        display: block;
        flex: 0 0 auto;
        height: 0;
        position: relative;
        z-index: 2;
    }

    .nmm-smart-filters__modal-close {
        align-items: center;
        appearance: none;
        background: transparent;
        border: 0;
        border-radius: 0;
        color: var(--nmm-smart-filters-ink);
        cursor: pointer;
        display: inline-flex;
        font: inherit;
        font-size: 28px;
        font-weight: 300;
        height: 44px;
        justify-content: center;
        line-height: 1;
        margin: 0;
        padding: 0;
        position: absolute;
        right: 18px;
        top: 16px;
        width: 44px;
    }

    .nmm-smart-filters__modal-close:hover,
    .nmm-smart-filters__modal-close:focus-visible {
        color: var(--nmm-smart-filters-accent);
        outline: none;
    }

    .nmm-smart-filters__shell.is-nmmf-modal-panel .nmm-smart-filters__header,
    .nmm-smart-filters__shell.is-nmmf-modal-panel .nmm-smart-filters__active,
    .nmm-smart-filters__shell.is-nmmf-modal-panel .nmm-smart-filters__groups,
    .nmm-smart-filters__shell.is-nmmf-modal-panel .nmm-smart-filters__footer {
        flex: 0 0 auto;
        margin-left: 18px;
        margin-right: 18px;
    }

    .nmm-smart-filters__shell.is-nmmf-modal-panel .nmm-smart-filters__header {
        margin-top: 18px;
        padding-right: 56px;
    }

    .nmm-smart-filters__shell.is-nmmf-modal-panel .nmm-smart-filters__groups {
        overflow: visible;
    }

    .nmm-smart-filters__shell.is-nmmf-modal-panel .nmm-smart-filters__group-head {
        column-gap: 14px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .nmm-smart-filters__shell.is-nmmf-modal-panel .nmm-smart-filters__group-meta {
        padding-right: 8px;
    }

    .nmm-smart-filters__shell.is-nmmf-modal-panel {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nmm-smart-filters--editor-preview .nmm-smart-filters__shell {
        display: block;
        opacity: 1;
        pointer-events: auto;
        position: static;
        transform: none;
        visibility: visible;
    }

    .nmm-smart-filters__price-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
