.wcpf {
--wcpf-accent: #18181b;
--wcpf-accent-text: #fff;
--wcpf-text: #1f2328;
--wcpf-muted: #6b7280;
--wcpf-border: #e4e4e7;
--wcpf-soft: #f4f4f5;
--wcpf-surface: #fff;
--wcpf-focus: #2563eb;
--wcpf-radius: 10px;
--wcpf-gap: 10px;
--wcpf-z: 100000;
position: relative;
color: var(--wcpf-text);
font-size: 15px;
line-height: 1.4;
}
.wcpf *, .wcpf *::before, .wcpf *::after { box-sizing: border-box; }
.wcpf [hidden] { display: none !important; }
.wcpf button { font: inherit; color: inherit; cursor: pointer; }
.wcpf ul { list-style: none; margin: 0; padding: 0; }
.wcpf li { margin: 0; }
.wcpf-visually-hidden, .wcpf .screen-reader-text {
position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
} .wcpf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.wcpf-title { margin: 0; font-size: 1.15em; font-weight: 700; letter-spacing: -.01em; }
.wcpf-total { color: var(--wcpf-muted); font-size: .9em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .2s; }
.wcpf.is-loading .wcpf-total { opacity: .45; }
.wcpf-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.wcpf-chip {
display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 11px;
background: var(--wcpf-accent); color: #fff !important; border-radius: 999px;
font-size: .85em; font-weight: 500; text-decoration: none !important; line-height: 1.2; transition: opacity .15s;
}
.wcpf-chip:hover { opacity: .85; }
.wcpf-chip-group { opacity: .7; font-weight: 400; }
.wcpf-chip svg { flex: none; opacity: .85; }
.wcpf-reset { font-size: .85em; color: var(--wcpf-muted) !important; text-decoration: underline !important; text-underline-offset: 2px; padding: 4px 2px; }
.wcpf-reset:hover { color: var(--wcpf-text) !important; }
.wcpf-sort { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wcpf-sort label { font-weight: 600; font-size: .9em; }
.wcpf-sort select { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--wcpf-border); border-radius: calc(var(--wcpf-radius) * .7); background: var(--wcpf-surface); color: inherit; }
body:is(.tax-product_cat, .single-product, .woocommerce-cart, .woocommerce-checkout) #content .child-shop .wcpf-chip,
body.woocommerce .wcpf-chip,
body.woocommerce-page .wcpf-chip {
color: #fff !important;
}
body:is(.tax-product_cat, .single-product, .woocommerce-cart, .woocommerce-checkout) #content .child-shop .wcpf-chip:hover,
body.woocommerce .wcpf-chip:hover,
body.woocommerce-page .wcpf-chip:hover {
color: #fff !important;
} .wcpf-facet { border-top: 1px solid var(--wcpf-border); }
.wcpf-facet:last-child { border-bottom: 1px solid var(--wcpf-border); }
.wcpf-facet-title { margin: 0; font-size: 1em; font-weight: inherit; }
.wcpf-facet-toggle {
display: flex; width: 100%; align-items: center; gap: 8px; padding: 14px 0; margin: 0;
background: none !important; border: 0; text-align: left; font-weight: 600 !important; color: var(--wcpf-text) !important;
box-shadow: none !important; text-transform: none; letter-spacing: normal; min-height: 0;
}
.wcpf-facet-label { flex: 1; }
.wcpf-facet-count {
display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
background: var(--wcpf-accent); color: var(--wcpf-accent-text); font-size: 11px; font-weight: 700;
}
.wcpf-caret { flex: none; transition: transform .2s; color: var(--wcpf-muted); }
.wcpf-facet.is-open > .wcpf-facet-title .wcpf-caret { transform: rotate(180deg); }
.wcpf-facet-body { padding: 0 0 16px; }
.wcpf-facet--search { border-top: 0; }
.wcpf-facet--search .wcpf-facet-title { display: none; }
.wcpf-facet--search .wcpf-facet-body { padding-bottom: 12px; }
.wcpf-facet--search + .wcpf-facet { border-top: 1px solid var(--wcpf-border); }
.wcpf-facet-body .wcpf-option-search { margin-bottom: var(--gap-half, 10px); height: 46px; font-size: 1.4rem; padding: 11px 18px 11px 18px; font-weight: 400; } .wcpf-options { display: grid; gap: 2px; }
.wcpf-check {
position: relative; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px;
padding: 6px 6px 6px 2px; border-radius: 6px; cursor: pointer; margin: 0; font-weight: 400;
}
.wcpf-check:hover { background: var(--wcpf-soft); }
.wcpf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.wcpf-check-box {
width: 18px; height: 18px; border: 1.5px solid #a1a1aa; border-radius: 5px; background: var(--wcpf-surface);
display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.wcpf-check--radio .wcpf-check-box { border-radius: 50%; }
.wcpf-check input:checked + .wcpf-check-box { background: var(--wcpf-accent); border-color: var(--wcpf-accent); }
.wcpf-check input:checked + .wcpf-check-box::after {
content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid var(--wcpf-accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.wcpf-check--radio input:checked + .wcpf-check-box::after { width: 6px; height: 6px; margin: 0; border: 0; border-radius: 50%; background: var(--wcpf-accent-text); transform: none; }
.wcpf-check input:focus-visible + .wcpf-check-box { outline: 2px solid var(--wcpf-focus); outline-offset: 2px; }
.wcpf-label { min-width: 0; overflow-wrap: anywhere; }
.wcpf-count { color: var(--wcpf-muted); font-size: .8em; font-variant-numeric: tabular-nums; }
.wcpf-check .wcpf-count { background: var(--wcpf-soft); border-radius: 999px; padding: 1px 7px; }
.wcpf-check:hover .wcpf-count { background: var(--wcpf-surface); }
.is-empty, .wcpf-check:has(input:disabled) { opacity: .4; cursor: default; }
.wcpf-check:has(input:disabled):hover { background: none; }
.wcpf-more { background: none !important; border: 0; padding: 6px 2px 0; color: var(--wcpf-text) !important; font-weight: 600; font-size: .9em; text-decoration: underline; text-underline-offset: 3px; box-shadow: none !important; }
.wcpf-option-search {
width: 100%; margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--wcpf-border); border-radius: calc(var(--wcpf-radius) * .7);
background: var(--wcpf-surface); color: inherit; font-size: .9em;
} .wcpf-tree { display: grid; gap: 2px; }
.wcpf-tree-item { position: relative; padding-left: calc(var(--wcpf-depth, 0) * 18px); }
.wcpf-tree-item.has-children > .wcpf-check { padding-right: 34px; }
.wcpf-tree-toggle {
position: absolute; right: 0; top: 4px; width: 28px; height: 28px; display: grid; place-items: center;
background: none !important; border: 0; border-radius: 6px; color: var(--wcpf-muted) !important; padding: 0; box-shadow: none !important;
}
.wcpf-tree-toggle:hover { background: var(--wcpf-soft) !important; }
.wcpf-tree-toggle svg { transition: transform .2s; }
.wcpf-tree-item.is-expanded > .wcpf-tree-toggle svg { transform: rotate(90deg); }
.wcpf-tree-item.has-children > .wcpf-check .wcpf-count { margin-right: 0; } .wcpf-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px 6px; }
.wcpf-swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; text-align: center; margin: 0; font-weight: 400; }
.wcpf-swatch-dot {
position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--wcpf-sw);
box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--wcpf-muted);
transition: transform .15s, box-shadow .15s;
}
.wcpf-swatch.no-color .wcpf-swatch-dot { background: var(--wcpf-soft); }
.wcpf-swatch:hover .wcpf-swatch-dot { transform: scale(1.07); }
.wcpf-swatch input:checked + .wcpf-swatch-dot { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 2px var(--wcpf-surface), 0 0 0 4px var(--wcpf-accent); }
.wcpf-swatch input:checked + .wcpf-swatch-dot::after {
content: ""; width: 7px; height: 13px; margin-top: -3px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
filter: drop-shadow(0 0 1px rgba(0,0,0,.6));
}
.wcpf-swatch.is-light input:checked + .wcpf-swatch-dot::after { border-color: #18181b; filter: none; }
.wcpf-swatch input:focus-visible + .wcpf-swatch-dot { outline: 2px solid var(--wcpf-focus); outline-offset: 4px; }
.wcpf-swatch-label { font-size: .78em; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.wcpf-swatch .wcpf-count { font-size: .7em; margin-top: -3px; }
.wcpf-swatch-item.is-empty { opacity: .35; } .wcpf-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.wcpf-opt-chip {
position: relative; display: inline-flex; align-items: baseline; gap: 6px; min-width: 52px; justify-content: center;
padding: 8px 12px; border: 1.5px solid var(--wcpf-border); border-radius: calc(var(--wcpf-radius) * .8);
background: var(--wcpf-surface); cursor: pointer; margin: 0; font-weight: 500; font-size: .92em; transition: border-color .15s, background .15s, color .15s;
}
.wcpf-opt-chip:hover { border-color: #a1a1aa; }
.wcpf-opt-chip .wcpf-count { font-size: .75em; }
.wcpf-opt-chip:has(input:checked) { background: var(--wcpf-accent); border-color: var(--wcpf-accent); color: var(--wcpf-accent-text); }
.wcpf-opt-chip:has(input:checked) .wcpf-count { color: inherit; opacity: .7; }
.wcpf-opt-chip:has(input:focus-visible) { outline: 2px solid var(--wcpf-focus); outline-offset: 2px; }
.wcpf-opt-chip.is-empty { opacity: .4; text-decoration: line-through; cursor: default; } .wcpf-range { padding: 4px 2px 0; }
.wcpf-range-output { display: block; font-weight: 600; font-size: .92em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.wcpf-range-track { position: relative; height: 28px; margin: 0 10px; }
.wcpf-range-track::before { content: ""; position: absolute; left: -10px; right: -10px; top: 12px; height: 4px; border-radius: 4px; background: var(--wcpf-border); }
.wcpf-range-fill { position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--wcpf-accent); }
.wcpf-range input[type=range] {
position: absolute; left: -10px; width: calc(100% + 20px); top: 0; height: 28px; margin: 0; padding: 0;
background: none; pointer-events: none; -webkit-appearance: none; appearance: none; border: 0; box-shadow: none; outline: none;
}
.wcpf-range input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; height: 28px; }
.wcpf-range input[type=range]::-moz-range-track { background: none; border: 0; }
.wcpf-range input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
background: var(--wcpf-surface); border: 2px solid var(--wcpf-accent); box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: grab;
}
.wcpf-range input[type=range]::-moz-range-thumb {
pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
background: var(--wcpf-surface); border: 2px solid var(--wcpf-accent); box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: grab;
}
.wcpf-range input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.wcpf-range input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--wcpf-focus); outline-offset: 2px; }
.wcpf-range input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--wcpf-focus); outline-offset: 2px; }
.wcpf-range-inputs { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.wcpf-range-field { flex: 1; position: relative; display: flex; align-items: center; margin: 0; }
.wcpf-range-field input {
width: 100%; min-width: 0; padding: 8px 26px 8px 10px; border: 1px solid var(--wcpf-border); border-radius: calc(var(--wcpf-radius) * .7);
background: var(--wcpf-surface); color: inherit; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.wcpf-range-field input::-webkit-outer-spin-button, .wcpf-range-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wcpf-unit { position: absolute; right: 10px; color: var(--wcpf-muted); font-size: .85em; pointer-events: none; }
.wcpf-range-sep { color: var(--wcpf-muted); } .wcpf-search { position: relative; display: flex; align-items: center; }
.wcpf-search-icon { position: absolute; left: 12px; color: var(--wcpf-muted); pointer-events: none; }
.wcpf-search input {
height: 46px;
width: 100%; padding: 11px 38px 11px 38px; border: 1px solid var(--wcpf-border); border-radius: var(--wcpf-radius);
background: var(--wcpf-surface); color: inherit; font-size: 1.4rem; -webkit-appearance: none; appearance: none; margin: 0;
}
.wcpf-search input::-webkit-search-cancel-button { display: none; }
.wcpf-search input:focus { outline: 2px solid var(--wcpf-focus); outline-offset: 0; border-color: transparent; }
.wcpf-search-clear {
position: absolute; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0;
background: var(--wcpf-soft) !important; border: 0; border-radius: 50%; color: var(--wcpf-muted) !important; box-shadow: none !important;
} .wcpf-toggle { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; margin: 0; font-weight: 400; }
.wcpf-switch { position: relative; width: 40px; height: 22px; border-radius: 999px; background: #d4d4d8; transition: background .2s; }
.wcpf-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .2s; }
.wcpf-toggle input:checked + .wcpf-switch { background: var(--wcpf-accent); }
.wcpf-toggle input:checked + .wcpf-switch::after { transform: translateX(18px); }
.wcpf-toggle input:focus-visible + .wcpf-switch { outline: 2px solid var(--wcpf-focus); outline-offset: 2px; }
.wcpf-toggle:has(input:disabled) { opacity: .45; cursor: default; } .wcpf-ratings .wcpf-check { grid-template-columns: 20px auto 1fr auto; }
.wcpf-stars {
font-size: 15px; letter-spacing: 1px; line-height: 1;
background: linear-gradient(90deg, #f5a623 calc(var(--wcpf-stars) * 20%), #d4d4d8 0);
-webkit-background-clip: text; background-clip: text; color: transparent;
}
.wcpf-ratings .wcpf-label { font-size: .85em; color: var(--wcpf-muted); } .wcpf-apply { padding-top: 14px; }
.wcpf-apply-btn { width: 100%; } .wcpf-results-loading { position: relative; }
.wcpf-results-loading > * { transition: opacity .2s; opacity: .45; pointer-events: none; }
.wcpf-results-loading::after {
content: ""; position: absolute; left: 50%; top: min(160px, 35%); z-index: 5; width: 36px; height: 36px; margin-left: -18px;
border-radius: 50%; border: 3px solid rgba(0,0,0,.12); border-top-color: var(--wcpf-accent, #18181b); animation: wcpf-spin .7s linear infinite;
}
@keyframes wcpf-spin { to { transform: rotate(360deg); } } .wcpf-mobile-toggle, .wcpf-drawer-head, .wcpf-drawer-foot, .wcpf-backdrop { display: none; }
.wcpf--sidebar .wcpf-more-facets { display: none; }
@media (max-width: 768px) { .wcpf-more-facets { display: none !important; } } @media (min-width: 769px) {
.wcpf--horizontal .wcpf-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wcpf--horizontal .wcpf-head { order: 3; margin: 0 0 0 auto; }
.wcpf--horizontal .wcpf-active { order: 4; flex-basis: 100%; margin: 4px 0 0; }
.wcpf--horizontal .wcpf-sort { order: 2; margin: 0; }
.wcpf--horizontal .wcpf-facets { order: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.wcpf--horizontal .wcpf-facet { position: relative; border: 0 !important; }
.wcpf--horizontal .wcpf-facet-toggle {
width: auto; padding: 8px 12px 8px 14px; border: 1.5px solid var(--wcpf-border) !important; border-radius: 999px;
background: var(--wcpf-surface) !important; font-weight: 500 !important; font-size: .92em;
}
.wcpf--horizontal .wcpf-facet-toggle:hover, .wcpf--horizontal .wcpf-facet.is-open .wcpf-facet-toggle { border-color: var(--wcpf-accent) !important; }
.wcpf--horizontal .wcpf-facet.has-selection .wcpf-facet-toggle { border-color: var(--wcpf-accent) !important; }
.wcpf--horizontal .wcpf-facet-body {
position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: max-content; min-width: 260px; max-width: min(380px, 90vw);
max-height: min(70vh, 520px); overflow: auto; padding: 16px; background: var(--wcpf-surface);
border: 1px solid var(--wcpf-border); border-radius: var(--wcpf-radius); box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.wcpf--horizontal .wcpf-facet--price .wcpf-facet-body, .wcpf--horizontal .wcpf-facet--range .wcpf-facet-body { width: 320px; }
.wcpf--horizontal .wcpf-facet--swatch .wcpf-facet-body { width: 340px; }
.wcpf--horizontal .wcpf-facet--search .wcpf-facet-body { position: static; width: 240px; min-width: 0; padding: 0; border: 0; box-shadow: none; overflow: visible; max-height: none; }
.wcpf--horizontal .wcpf-facet--search .wcpf-search input { padding-top: 8px; padding-bottom: 8px; border-radius: 999px; border-width: 1.5px; }
.wcpf--horizontal:not(.show-all) .wcpf-facet.is-overflow { display: none; }
.wcpf-more-facets {
display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px dashed var(--wcpf-border) !important; border-radius: 999px;
background: none !important; color: var(--wcpf-text) !important; font-size: .92em; font-weight: 500; box-shadow: none !important;
}
.wcpf-more-facets:hover { border-color: var(--wcpf-accent) !important; }
.wcpf-pop-foot { display: flex; justify-content: space-between; gap: 8px; margin: 14px -16px -16px; padding: 10px 16px; border-top: 1px solid var(--wcpf-border); position: sticky; bottom: -16px; background: var(--wcpf-surface); }
.wcpf-pop-clear { background: none !important; border: 0; color: var(--wcpf-muted) !important; text-decoration: underline; padding: 6px 0; box-shadow: none !important; }
.wcpf-pop-clear:disabled { opacity: .4; cursor: default; }
.wcpf-pop-done { background: var(--wcpf-accent) !important; color: var(--wcpf-accent-text) !important; border: 0; border-radius: 999px; padding: 6px 16px; font-weight: 600; box-shadow: none !important; }
}
@media (max-width: 768px) { .wcpf-pop-foot { display: none; } } @media (max-width: 768px) {
.wcpf--drawer .wcpf-mobile-toggle {
display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; margin: 0 0 12px;
border: 1.5px solid var(--wcpf-text) !important; border-radius: 999px; background: var(--wcpf-surface) !important;
color: var(--wcpf-text) !important; font-weight: 600; box-shadow: none !important;
}
.wcpf-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--wcpf-accent); color: var(--wcpf-accent-text); font-size: 11px; font-weight: 700; }
.wcpf--drawer .wcpf-panel {
position: fixed; top: 0; bottom: 0; left: 0; z-index: var(--wcpf-z); width: min(420px, 92vw); height: 100vh; height: 100dvh;
display: flex; flex-direction: column; background: var(--wcpf-surface); box-shadow: 8px 0 32px rgba(0,0,0,.2);
transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden;
}
.wcpf--drawer.is-drawer-open .wcpf-panel { transform: none; visibility: visible; }
.wcpf--drawer .wcpf-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--wcpf-border); font-size: 1.1em; }
.wcpf-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none !important; border: 0; border-radius: 50%; box-shadow: none !important; color: var(--wcpf-text) !important; }
.wcpf-close:hover { background: var(--wcpf-soft) !important; }
.wcpf--drawer .wcpf-form { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; -webkit-overflow-scrolling: touch; }
.wcpf--drawer .wcpf-title { display: none; }
.wcpf--drawer .wcpf-drawer-foot {
display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
border-top: 1px solid var(--wcpf-border); background: var(--wcpf-surface);
}
.wcpf-show { padding: 13px 16px; border: 0; border-radius: var(--wcpf-radius); background: var(--wcpf-accent) !important; color: var(--wcpf-accent-text) !important; font-weight: 700; box-shadow: none !important; }
.wcpf-reset--foot[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.wcpf--drawer .wcpf-backdrop { display: block; position: fixed; inset: 0; z-index: calc(var(--wcpf-z) - 1); background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
.wcpf--drawer.is-drawer-open .wcpf-backdrop { opacity: 1; pointer-events: auto; }
.wcpf-swatches { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.wcpf-check { padding-top: 9px; padding-bottom: 9px; }
html.wcpf-lock, html.wcpf-lock body { overflow: hidden; } .wcpf--horizontal .wcpf-head { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
.wcpf *, .wcpf *::before, .wcpf *::after { transition: none !important; animation: none !important; }
.wcpf-results-loading::after { animation: wcpf-spin 1.5s linear infinite !important; }
}