**
 * SNF Filters - styles
 * Theme : ShopNFood (cyan #48B8E8)
 * Version : 7.0
 */

:root {
    --snf-primary: #48B8E8;
    --snf-primary-dark: #2A9BD0;
    --snf-text: #1a1a2e;
    --snf-text-muted: #666;
    --snf-border: #e3e8ef;
    --snf-bg: #ffffff;
    --snf-bg-soft: #f7fafc;
    --snf-bg-active: #e8f6fd;
    --snf-radius: 8px;
    --snf-radius-sm: 4px;
    --snf-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --snf-shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ====================================================================== */
/* CARD                                                                    */
/* ====================================================================== */

.snf-filter-card {
    background: var(--snf-bg);
    border: 1px solid var(--snf-border);
    border-radius: var(--snf-radius);
    margin-bottom: 12px;
    box-shadow: var(--snf-shadow);
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.snf-filter-card:hover {
    box-shadow: var(--snf-shadow-hover);
}

.snf-filter-card--active {
    border-color: var(--snf-primary);
    box-shadow: 0 0 0 2px rgba(72, 184, 232, 0.12);
}

/* ====================================================================== */
/* HEADER                                                                  */
/* ====================================================================== */

.snf-filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--snf-border);
    background: var(--snf-bg-soft);
}

.snf-filter-toggle {
    cursor: pointer;
    user-select: none;
}

.snf-filter-toggle:hover {
    background: #eef4f9;
}

.snf-filter-title {
    flex: 1;
    margin: 0 !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--snf-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.snf-active-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--snf-primary);
    box-shadow: 0 0 0 3px rgba(72, 184, 232, 0.2);
    flex-shrink: 0;
}

.snf-filter-chevron {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--snf-text-muted);
    transition: transform .2s;
    flex-shrink: 0;
}

.snf-filter-card.is-collapsed .snf-filter-chevron {
    transform: rotate(-90deg);
}

.snf-filter-card.is-collapsed .snf-filter-body,
.snf-filter-card.is-collapsed .snf-filter-reset-wrap {
    display: none;
}

/* ====================================================================== */
/* BODY                                                                    */
/* ====================================================================== */

.snf-filter-body {
    padding: 12px 14px;
}

.snf-empty {
    margin: 0;
    color: var(--snf-text-muted);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    padding: 8px 0;
}

/* ====================================================================== */
/* SEARCH BAR                                                              */
/* ====================================================================== */

.snf-filter-search {
    margin-bottom: 8px;
}

.snf-search-input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--snf-border);
    border-radius: var(--snf-radius-sm);
    font-size: 0.85rem;
    box-sizing: border-box;
    transition: border-color .15s;
}

.snf-search-input:focus {
    outline: none;
    border-color: var(--snf-primary);
    box-shadow: 0 0 0 3px rgba(72, 184, 232, 0.12);
}

/* ====================================================================== */
/* ITEMS                                                                   */
/* ====================================================================== */

.snf-filter-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 320px;
    overflow-y: auto;
}

.snf-filter-items::-webkit-scrollbar {
    width: 6px;
}

.snf-filter-items::-webkit-scrollbar-track {
    background: transparent;
}

.snf-filter-items::-webkit-scrollbar-thumb {
    background: var(--snf-border);
    border-radius: 3px;
}

.snf-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: var(--snf-radius-sm);
    cursor: pointer;
    transition: background .12s;
    font-size: 0.88rem;
    color: var(--snf-text);
    user-select: none;
}

.snf-filter-item:hover {
    background: var(--snf-bg-soft);
}

.snf-filter-item.is-active {
    background: var(--snf-bg-active);
    color: var(--snf-primary-dark);
    font-weight: 600;
}

.snf-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--snf-primary);
    flex-shrink: 0;
    margin: 0;
}

.snf-checkbox--sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.snf-item-label {
    flex: 1;
    line-height: 1.3;
}

.snf-count {
    background: var(--snf-bg-soft);
    color: var(--snf-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

.snf-filter-item.is-active .snf-count {
    background: var(--snf-primary);
    color: #fff;
}

/* ====================================================================== */
/* BADGES                                                                  */
/* ====================================================================== */

.snf-chips {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.snf-chips-instock {
    background: #d4edda;
    color: #155724;
}

.snf-chips-outofstock {
    background: #f8d7da;
    color: #721c24;
}

.snf-chips-backorder {
    background: #fff3cd;
    color: #856404;
}

.snf-chips-sale {
    background: #f44336;
    color: #fff;
}

.snf-chips-new {
    background: var(--snf-primary);
    color: #fff;
}

.snf-chips-flag {
    background: #ffe082;
    color: #594000;
}

/* ====================================================================== */
/* COLOR SWATCHES                                                          */
/* ====================================================================== */

.snf-filter-items--swatches {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.snf-swatch-item {
    flex-direction: column;
    flex: 0 0 auto;
    padding: 4px;
    text-align: center;
    width: 56px;
}

.snf-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--swatch-color, #ccc);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--snf-border);
    transition: transform .15s, box-shadow .15s;
}

.snf-color-swatch.is-selected {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--snf-primary);
}

.snf-swatch-item .snf-item-label {
    font-size: 0.7rem;
    margin-top: 4px;
}

/* ====================================================================== */
/* PRICE / RANGE SLIDER                                                    */
/* ====================================================================== */

.snf-price-form {
    padding: 4px 0;
}

.snf-price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--snf-text);
}

.snf-price-label {
    background: var(--snf-bg-soft);
    border: 1px solid var(--snf-border);
    border-radius: var(--snf-radius-sm);
    padding: 5px 10px;
}

.snf-price-cur {
    color: var(--snf-text-muted);
    margin-right: 2px;
}

.snf-price-sep {
    color: var(--snf-text-muted);
}

.snf-slider-wrap {
    position: relative;
    height: 32px;
    margin: 8px 4px 14px;
}

.snf-slider-track {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--snf-border);
    border-radius: 2px;
}

.snf-slider-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--snf-primary);
    border-radius: 2px;
}

.snf-range {
    position: absolute;
    top: 0;
    width: 100%;
    height: 32px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.snf-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--snf-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: auto;
    margin-top: -7px;
}

.snf-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--snf-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: auto;
}

.snf-range::-webkit-slider-runnable-track {
    background: transparent;
    height: 4px;
}

.snf-range::-moz-range-track {
    background: transparent;
    height: 4px;
}

.snf-price-submit {
    width: 100%;
    background: var(--snf-primary);
    color: #fff;
    border: none;
    border-radius: var(--snf-radius-sm);
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background .15s;
}

.snf-price-submit:hover {
    background: var(--snf-primary-dark);
}

/* ====================================================================== */
/* META TEXT (recherche)                                                    */
/* ====================================================================== */

.snf-meta-text-form {
    padding: 2px 0;
}

.snf-meta-text-wrap {
    display: flex;
    gap: 6px;
}

.snf-meta-text-input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--snf-border);
    border-radius: var(--snf-radius-sm);
    font-size: 0.85rem;
    box-sizing: border-box;
}

.snf-meta-text-input:focus {
    outline: none;
    border-color: var(--snf-primary);
    box-shadow: 0 0 0 3px rgba(72, 184, 232, 0.12);
}

.snf-meta-text-submit {
    background: var(--snf-primary);
    color: #fff;
    border: none;
    border-radius: var(--snf-radius-sm);
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}

.snf-meta-text-submit:hover {
    background: var(--snf-primary-dark);
}

/* ====================================================================== */
/* RATING (etoiles)                                                         */
/* ====================================================================== */

.snf-filter-items--rating {
    gap: 0;
}

.snf-filter-item--rating {
    padding: 6px 8px;
}

.snf-stars {
    display: inline-flex;
    gap: 1px;
    flex: 1;
}

.snf-star {
    font-size: 1rem;
    line-height: 1;
    color: #ddd;
}

.snf-star--full {
    color: #FFB800;
}

.snf-rating-label {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: var(--snf-text-muted);
    margin-left: 4px;
}

/* ====================================================================== */
/* RESET BUTTON                                                            */
/* ====================================================================== */

.snf-filter-reset-wrap {
    padding: 0 14px 12px;
    border-top: 1px solid var(--snf-border);
    padding-top: 10px;
}

.snf-reset-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: transparent;
    color: var(--snf-text-muted);
    border: 1px solid var(--snf-border);
    border-radius: var(--snf-radius-sm);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all .15s;
    box-sizing: border-box;
}

.snf-reset-btn:hover {
    background: #fff5f5;
    color: #d32f2f;
    border-color: #ffcdd2;
    text-decoration: none;
}

/* ====================================================================== */
/* RESPONSIVE                                                              */
/* ====================================================================== */

@media (max-width: 768px) {
    .snf-filter-card {
        margin-bottom: 8px;
    }

    .snf-filter-header {
        padding: 10px 12px;
    }

    .snf-filter-title {
        font-size: 0.88rem;
    }

    .snf-filter-body {
        padding: 10px 12px;
    }

    .snf-filter-items {
        max-height: 240px;
    }

    .snf-filter-item {
        padding: 8px;
        font-size: 0.85rem;
    }

    .snf-checkbox {
        width: 18px;
        height: 18px;
    }
}

.snf-active-filters-card {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(72, 184, 232, 0.18);
    border-radius: var(--snf-radius-sm, 14px);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.snf-active-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.snf-active-filters-title {
    margin: 0;
    font-family: var(--snf-font, inherit);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--snf-dark, #121827);
}

.snf-active-filters-clear {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--snf-primary, #48b8e8);
    text-decoration: none;
    white-space: nowrap;
}

.snf-active-filters-clear:hover {
    text-decoration: underline;
}

.snf-active-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.snf-active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 8px 7px 12px;
    border: 1px solid rgba(72, 184, 232, 0.25);
    border-radius: 999px;
    background: rgba(72, 184, 232, 0.08);
    color: var(--snf-dark, #121827);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.snf-active-filter-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snf-active-filter-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--snf-primary, #48b8e8);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: all 0.18s ease;
}

.snf-active-filter-remove:hover {
    background: var(--snf-primary, #48b8e8);
    color: #ffffff;
}

@media (max-width: 768px) {
    .snf-active-filters-card {
        padding: 14px;
    }

    .snf-active-filters-header {
        align-items: flex-start;
    }

    .snf-active-filter-chip {
        font-size: 0.74rem;
    }
}

/* ====================================================================== */
/* CUSTOM SCROLLBAR FOR ACTIVE FILTERS (optional)                                                   */
/* ====================================================================== */
.woocommerce-products-header .snf-products-active-filters {
    margin-top: 18px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(72, 184, 232, 0.18);
    border-radius: var(--snf-radius-sm, 14px);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.snf-products-active-filters__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.snf-products-active-filters__title {
    font-family: var(--snf-font, inherit);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--snf-dark, #121827);
}

.snf-products-active-filters__clear {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--snf-primary, #48b8e8);
    text-decoration: none;
    white-space: nowrap;
}

.snf-products-active-filters__clear:hover {
    text-decoration: underline;
}

.snf-products-active-filters__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.snf-products-active-filters__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 8px 7px 12px;
    border: 1px solid rgba(72, 184, 232, 0.25);
    border-radius: 999px;
    background: rgba(72, 184, 232, 0.08);
    color: var(--snf-dark, #121827);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.snf-products-active-filters__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snf-products-active-filters__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--snf-primary, #48b8e8);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: all 0.18s ease;
}

.snf-products-active-filters__remove:hover {
    background: var(--snf-primary, #48b8e8);
    color: #ffffff;
}

@media (max-width: 768px) {
    .woocommerce-products-header .snf-products-active-filters {
        padding: 14px;
        margin-top: 14px;
        margin-bottom: 18px;
    }

    .snf-products-active-filters__top {
        align-items: flex-start;
    }

    .snf-products-active-filters__item {
        font-size: 0.74rem;
    }
}

/* =====================================================
   SHOPNFOOD — Filtres desktop/tablette en sidebar sticky
   Actif uniquement quand le bouton Filtrer possède .active
   ===================================================== */

@media (min-width: 769px) {
    body:not(:has(.astra-shop-filter-button.active)) .ast-collapse-filter {
        display: none !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-woocommerce-container {
        display: grid !important;
        grid-template-columns: 280px minmax(0, 1fr) !important;
        column-gap: 28px !important;
        align-items: start !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .woocommerce-breadcrumb,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .woocommerce-products-header,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-shop-toolbar-container {
        grid-column: 1 / -1 !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-shop-toolbar-container {
        display: grid !important;
        grid-template-columns: 280px minmax(0, 1fr) !important;
        column-gap: 28px !important;
        align-items: center !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-shop-toolbar-aside-wrap {
        grid-column: 1 !important;
        top: 115px !important;
        z-index: 50 !important;
        width: 280px !important;
        max-width: 280px !important;
        margin: 0 !important;
        align-self: start !important;
    }

    body.admin-bar:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-shop-toolbar-aside-wrap {
        top: 147px !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .astra-shop-filter-button {
        width: auto !important;
        border-radius: 999px !important;
        background: var(--snf-primary, #08aeca) !important;
        color: #ffffff !important;
        box-shadow: 0 8px 20px rgba(8, 174, 202, 0.22) !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .woocommerce-ordering,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .woocommerce-result-count {
        grid-column: 2 !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter {
        grid-column: 1 !important;
        display: block !important;
        position: sticky !important;
        top: 165px !important;
        z-index: 40 !important;
        width: 280px !important;
        max-width: 280px !important;
        max-height: calc(100vh - 180px) !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        align-self: start !important;
    }

    body.admin-bar:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter {
        top: 195px !important;
        max-height: calc(100vh - 210px) !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .ast-filter-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        grid-template-columns: none !important;
        column-gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .ast-filter-wrap > div,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .widget,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .widget_block,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .widget_snf_shop_filter,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wc-block-product-filters {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wc-block-product-filters__open-overlay,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wc-block-product-filters__overlay-header,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wc-block-product-filters__overlay-footer {
        display: none !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wc-block-product-filters__overlay,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wc-block-product-filters__overlay-wrapper,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wc-block-product-filters__overlay-dialog,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wc-block-product-filters__overlay-content {
        position: static !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .wp-block-heading {
        margin: 0 0 16px !important;
        padding: 0 !important;
        font-size: 1.25rem !important;
        font-weight: 900 !important;
        color: var(--snf-primary, #0899be) !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .ast-collapse-filter .snf-filter-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
    }

    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) ul.products,
    body:has(.astra-shop-filter-button.active):is(
        .woocommerce-shop,
        .tax-product_cat,
        .tax-product_tag,
        .post-type-archive-product
    ) .woocommerce-no-products-found {
        grid-column: 2 !important;
        min-width: 0 !important;
    }
}