.filter-wrapper, .filter-wrapper * { box-sizing: border-box; }
.filter-wrapper .filter-sticky { position: static; padding-bottom: 12px; }
.filter-wrapper .filter-apply-all { position: sticky; top: 0; background: #fff; z-index: 12; padding: 8px 0; }
.filter-wrapper .lb-apply-filters { width: 100%; min-height: 40px; }
.filter-wrapper .lb-apply-filters:disabled { opacity: .5; cursor: default; }
.filter-wrapper .current-filters { gap: 6px; padding: 8px 0; }
.filter-wrapper .current-filters .remove-button { max-width: 100%; text-align: left; white-space: normal; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.filter-control button.filter-open { border: 0; background: transparent; color: #111; text-align: left; padding-right: 22px; white-space: normal; }
.filter-control .filter-options-panel { padding-bottom: 4px; }
.filter-control.filter-searchable .filter-option-search { position: static; display: block; width: 100%; min-height: 40px; margin: 0 0 8px; padding: 8px; border: 1px solid #bbb; border-radius: 4px; font-size: 14px; }
.filter-control.filter-searchable .filter-options-scroll { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.filter-control .filter-option-row[hidden], .filter-control [hidden] { display: none !important; }
.filter-control .filter-no-options { font-size: 14px; margin: 8px 0; }
.filter-control .filter-option-row label { min-height: 28px; overflow-wrap: anywhere; }
.filter-control .reset { padding: 8px 0 16px; }
.filter-control .reset button { max-width: 100%; white-space: normal; }
.filter-price .input-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.filter-price .input-fields label { display: block; min-width: 0; font-size: 12px; line-height: 1.5; }
.filter-wrapper .filter-price .input-fields input { display: block; width: 100%; min-width: 0; padding: 8px 4px; min-height: 40px; font-size: 14px; }
.filter-wrapper .filter-option:checked + .filter-count::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #fff; }
.filter-price .input-fields input[aria-invalid=true] { border-color: #a52929; }
.filter-price #filter-price-error { color: #a52929; font-size: 13px; line-height: 1.4; }
.filter-price .range-fields #filter-price-range > div { background: #444; }
.filter-control :focus-visible, .current-filters button:focus-visible { outline: 2px solid #267b98; outline-offset: 2px; }
.lb-catalog-empty { width: 100%; padding: 24px 0 32px; border-top: 1px solid #ddd; }
.lb-catalog-empty h2 { font-size: 24px; line-height: 1.3; margin: 0 0 12px; }
.lb-catalog-empty-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.lb-catalog-empty-actions a, .lb-catalog-empty-actions button { color: #111; font-size: 14px; line-height: 1.5; }
.lb-catalog-empty-actions button { background: #fff; border: 1px solid #777; padding: 8px 12px; border-radius: 4px; cursor: pointer; }
.lb-mobile-filter-actions { display: none; }
@media (min-width: 630px) {
    .filter-wrapper { min-width: 220px; max-width: 300px; padding-right: 24px; z-index: 20; }
    .filter-wrapper + div { flex: 1; min-width: 0; }
}
@media (max-width: 629px) {
    body.lb-filters-open { overflow: hidden; }
    body.lb-filters-open > .wp-site-blocks > header { visibility: hidden; }
    .filter-wrapper.open { top: 0; bottom: 0; height: 100dvh; padding: 12px 16px 24px; }
    .filter-wrapper.open #open-filter-modal { position: sticky; top: 0; z-index: 15; background: #fff; color: #111; min-height: 44px; }
    .filter-wrapper .filter-content { padding-bottom: 24px; }
    .filter-wrapper .filter-apply-all { top: 44px; }
    .filter-wrapper .filter-sticky { width: 100%; }
    .filter-wrapper .current-filters { padding-bottom: 8px; }
    .filter-wrapper.open .filter-content { padding-bottom: 80px; }
    .filter-wrapper.open .filters-bottom { display: none; }
    .filter-wrapper.open .lb-mobile-filter-actions { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 12px; padding: 12px 16px 12px 64px; background: #fff; border-top: 1px solid #ddd; z-index: 30; }
    .filter-wrapper .lb-mobile-filter-actions button { min-height: 44px; border: 1px solid #111; border-radius: 4px; }
    .filter-wrapper .lb-mobile-filter-actions .lb-close-filters { flex: 0 0 44px; background: #fff; color: #111; }
    .filter-wrapper .lb-mobile-filter-actions .lb-apply-filters { flex: 1; background: #111; color: #fff; }
}
