.lc-filter-panel {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    font-family: inherit;
}
.lc-filter-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
}
.lc-filter-panel__breadcrumb {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}
.lc-filter-panel__breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}
.lc-filter-panel__current {
    color: #111827;
    font-weight: 600;
}
.lc-filter-panel__sep {
    margin: 0 6px;
    color: #C60003;
    font-size: 20px;
    line-height: 0;
    vertical-align: middle;
}
.lc-filter-panel__count {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #374151;
    white-space: nowrap;
}
.lc-filter-panel__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}
.lc-filter-panel__toggle-wrap {
    position: relative;
    width: 108px;
    height: 38px;
    flex-shrink: 0;
    transition: width 0.3s ease;
}
.lc-filter-panel__toggle-wrap.is-open {
    width: 38px;
}
.lc-filter-panel__btn-filters,
.lc-filter-panel__btn-close {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.lc-filter-panel__btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.lc-filter-panel__btn-reset svg {
    flex-shrink: 0;
}
.lc-filter-panel__btn-reset.is-hidden {
    display: none;
}
.lc-filter-panel__btn-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.lc-filter-panel__btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.lc-filter-panel__btn-filters.is-hidden,
.lc-filter-panel__btn-close.is-hidden {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
}
.lc-filter-panel__btn-filters,
.lc-filter-panel__btn-close,
.lc-filter-panel__btn-reset,
.lc-filter-panel__btn-filters:hover,
.lc-filter-panel__btn-filters:focus,
.lc-filter-panel__btn-filters:active,
.lc-filter-panel__btn-close:hover,
.lc-filter-panel__btn-close:focus,
.lc-filter-panel__btn-close:active,
.lc-filter-panel__btn-reset:hover,
.lc-filter-panel__btn-reset:focus,
.lc-filter-panel__btn-reset:active {
    background: #C60003 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    outline: none;
}
.lc-filter-panel__body {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 150px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.lc-filter-panel__column {
    width: 250px;
    flex-shrink: 0;
}
.lc-filter-panel__body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: transparent;
    transition: background-color 0.35s ease;
}
.lc-filter-panel__body.is-open {
    max-height: 600px;
    opacity: 1;
    padding: 24px;
}
.lc-filter-panel__body.is-open::before {
    background: #00000033;
}
.lc-filter-panel__col-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #C60003;
    margin-bottom: 14px;
    cursor: pointer;
}
.lc-filter-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.lc-filter-panel__list li {
    margin-bottom: 10px;
}
.lc-filter-panel__list a {
    display: inline-block;
    padding: 4px 0;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}
.lc-filter-panel__list a:hover {
    color: #C60003;
}
.lc-filter-panel__list a.is-active {
    color: #111827;
    font-weight: 700;
}
/* Loading state: spinner centered on the filter panel while a filter change is fetched */
.lc-filter-panel.lc-is-loading {
    position: relative;
}
.lc-filter-panel.lc-is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    z-index: 4;
}
.lc-filter-panel.lc-is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    border: 3px solid rgba(198, 0, 3, 0.18);
    border-top-color: #C60003;
    animation: lc-spin 0.7s linear infinite;
    pointer-events: none;
    z-index: 5;
}
@keyframes lc-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .lc-filter-panel.lc-is-loading::after { animation-duration: 1.8s; }
}

@media (max-width: 640px) {
    .lc-filter-panel__header {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 12px;
        padding: 16px;
    }
    .lc-filter-panel__breadcrumb,
    .lc-filter-panel__count {
        grid-column: 1;
        text-align: left;
    }
    .lc-filter-panel__actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: end;
        justify-self: end;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: auto;
        height: 38px;
    }
    .lc-filter-panel__actions .lc-filter-panel__btn-filters.is-hidden,
    .lc-filter-panel__actions .lc-filter-panel__btn-close.is-hidden {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
    }
    /* Icon-only reset button on small screens to save header space */
    .lc-filter-panel__btn-reset-label {
        display: none;
    }
    .lc-filter-panel__btn-reset {
        width: 38px;
        padding: 0;
        justify-content: center;
    }
    .lc-filter-panel__body {
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
    }
    .lc-filter-panel__body.is-open {
        padding: 16px;
    }
    .lc-filter-panel__body::before {
        left: 16px;
        right: 16px;
    }
    .lc-filter-panel__column {
        width: 100%;
        max-width: 100%;
    }
}
