.sf-lf-shell {
    position: relative;
    z-index: 20;
    min-width: 0;
    margin: 0 0 1rem;
}

.sf-lf-badge .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sf-lf-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.sf-lf-bar[hidden] {
    display: none;
}

.storefront-filters__listing-slot:empty {
    display: none;
}

.storefront-filters__listing-slot:not(:empty) {
    display: inline-flex;
    margin-left: auto;
}

.storefront-filters > .sf-lf-toggle {
    margin-left: auto;
}

.sf-lf-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #ffffff;
    color: #333333;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.sf-lf-toggle:hover,
.sf-lf-toggle:focus-visible {
    border-color: #999999;
    background: #f5f5f5;
    color: #333333;
}

.sf-lf-toggle[aria-expanded="true"],
.sf-lf-shell.is-open .sf-lf-toggle {
    background: var(--sf-filter-active, var(--theme-accent, #111));
    border-color: var(--sf-filter-active, var(--theme-accent, #111));
    color: var(--sf-filter-active-text, #fff);
}

.sf-lf-toggle[aria-expanded="true"]:hover,
.sf-lf-shell.is-open .sf-lf-toggle:hover {
    opacity: .92;
}

.sf-lf-toggle__icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.sf-lf-toggle__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.sf-lf-backdrop {
    display: none;
}

.sf-lf-dock {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

.sf-lf-shell.is-open .sf-lf-dock {
    gap: 20px;
}

.sf-lf {
    position: relative;
    left: auto;
    top: auto;
    z-index: 1;
    box-sizing: border-box;
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--theme-surface-alt, #f3f3f3);
    border: none;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: flex .25s ease, width .25s ease, min-width .25s ease, opacity .25s ease, padding .25s ease;
}

.sf-lf-shell.is-open .sf-lf {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-height: none;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--theme-border, #d8d8d8);
    opacity: 1;
    pointer-events: auto;
}

.sf-lf-body {
    flex: 1 1 auto;
    min-width: 0;
}

.sf-lf__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--theme-border, #d8d8d8);
}

.sf-lf__title {
    margin: 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sf-lf__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--theme-border, #ccc);
    background: var(--theme-surface, #fff);
    color: var(--theme-text, #111);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.sf-lf__close:hover {
    color: var(--sf-lf-active, var(--theme-accent, #111));
    border-color: var(--sf-lf-active, var(--theme-accent, #111));
}

.sf-lf__group {
    margin: 0 0 22px;
}

.sf-lf__group:last-child {
    margin-bottom: 0;
}

.sf-lf__heading {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--theme-text-muted, #888);
}

.sf-lf__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sf-lf__list li {
    margin: 0 0 8px;
}

.sf-lf__item--extra {
    display: none;
}

.sf-lf__group.is-expanded .sf-lf__item--extra {
    display: list-item;
}

.sf-lf__link {
    color: var(--theme-text, #222);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
}

.sf-lf__link:hover,
.sf-lf__link.is-active {
    color: var(--sf-lf-active, var(--theme-accent, #111));
}

.sf-lf__more {
    margin-top: 6px;
    border: 0;
    background: none;
    padding: 0;
    color: var(--theme-text, #222);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.sf-lf__more:hover {
    color: var(--sf-lf-active, var(--theme-accent, #111));
}

.sf-lf-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 1rem;
}

.sf-lf-badges__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-lf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 8px 5px 10px;
    border: 1px solid var(--theme-border, #d0d0d0);
    background: var(--theme-surface-alt, #f6f6f6);
    color: var(--theme-text, #222);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
}

.sf-lf-badge:hover {
    border-color: var(--sf-lf-active, var(--theme-accent, #111));
    color: var(--sf-lf-active, var(--theme-accent, #111));
}

.sf-lf-badge__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.sf-lf-badge__x {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
}

.sf-lf-badges__clear {
    color: var(--theme-text-muted, #666);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

.sf-lf-badges__clear:hover {
    color: var(--sf-lf-active, var(--theme-accent, #111));
}

@media (max-width: 960px) {
    .sf-lf-dock {
        display: block;
    }

    .sf-lf-shell.is-open .sf-lf-dock {
        gap: 0;
    }

    .sf-lf-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(0, 0, 0, .35);
    }

    .sf-lf-shell.is-open .sf-lf-backdrop,
    .sf-lf-shell.is-open .sf-lf-backdrop[hidden] {
        display: block;
    }

    .sf-lf {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1000;
        flex: none;
        width: min(320px, 86vw);
        min-width: 0;
        max-height: 100vh;
        padding: 20px;
        overflow: auto;
        border: 0;
        border-right: 1px solid var(--theme-border, #d8d8d8);
        box-shadow: 8px 0 24px rgba(0, 0, 0, .18);
        transform: translateX(-100%);
        opacity: 1;
        transition: transform .25s ease;
    }

    .sf-lf-shell.is-open .sf-lf {
        flex: none;
        width: min(320px, 86vw);
        min-width: 0;
        transform: translateX(0);
    }

    .sf-lf-body {
        width: 100%;
    }

    .sf-lf-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }
}