/* =========================================================
   WCB Product Filter – Developed by Webcreation BD
   ========================================================= */
.wcbpf, .wcbpf *, .wcbpf-layout, .wcbpf-layout *, .wcbpf-overlay { box-sizing: border-box; }

/* ---------- Layout ---------- */
.wcbpf-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; width: 100%; margin: 0 0 30px; clear: both; font-family: var(--wcbpa-font); }
.wcbpf-main { min-width: 0; position: relative; }
.wcbpf-main ul.products { margin-top: 0 !important; transition: opacity .2s; }
.wcbpf-main.is-loading ul.products, .wcbpf-main.is-loading .woocommerce-pagination { opacity: .35; pointer-events: none; }
.wcbpf-main.is-loading::after { content: ""; position: absolute; left: 50%; top: 160px; width: 38px; height: 38px; margin-left: -19px; border: 3px solid var(--wcbpa-border); border-top-color: var(--wcbpa-primary); border-radius: 50%; animation: wcbpf-spin .7s linear infinite; z-index: 5; }
@keyframes wcbpf-spin { to { transform: rotate(360deg); } }

/* Optional: hide theme sidebar */
.wcbpf-hide-sidebar #secondary, .wcbpf-hide-sidebar .widget-area.sidebar, .wcbpf-hide-sidebar aside.sidebar,
.wcbpf-hide-sidebar #sidebar, .wcbpf-hide-sidebar .sidebar-main, .wcbpf-hide-sidebar .site-sidebar,
.wcbpf-hide-sidebar .shop-sidebar, .wcbpf-hide-sidebar .woocommerce-sidebar, .wcbpf-hide-sidebar .primary-sidebar { display: none !important; }
.wcbpf-hide-sidebar #primary, .wcbpf-hide-sidebar .content-area, .wcbpf-hide-sidebar .site-main { width: 100% !important; max-width: 100% !important; float: none !important; flex: 1 1 100% !important; margin-left: 0 !important; margin-right: 0 !important; border: 0 !important; }

/* ---------- Top bar ---------- */
.wcbpf-topbar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	background: var(--wcbpa-card); border: 1px solid var(--wcbpa-border); border-radius: calc(var(--wcbpa-radius) * .7);
	padding: 14px 18px; margin: 0 0 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.wcbpf-topbar__title { min-width: 0; }
.wcbpf-heading { margin: 0 !important; padding: 0 !important; font: 700 19px/1.3 var(--wcbpa-font) !important; color: var(--wcbpa-text) !important; text-transform: none !important; letter-spacing: normal !important; }
.wcbpf-prefix { color: var(--wcbpa-highlight); }
.wcbpf-heading:not(:has(.wcbpf-prefix)) { color: var(--wcbpa-highlight) !important; }
.wcbpf-count .woocommerce-result-count { margin: 3px 0 0 !important; padding: 0 !important; float: none !important; color: var(--wcbpa-muted) !important; font-size: 13px !important; line-height: 1.3; }
.wcbpf-topbar__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.wcbpf-sort { position: relative; }
.wcbpf-sort__label { display: none; }
.wcbpf-sort .woocommerce-ordering { margin: 0 !important; float: none !important; }
.wcbpf-sort select {
	height: 40px; min-width: 190px; margin: 0 !important; padding: 0 38px 0 14px !important; cursor: pointer;
	border: 1px solid var(--wcbpa-border) !important; border-radius: calc(var(--wcbpa-radius) * .55) !important;
	background: var(--wcbpa-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center !important;
	appearance: none; -webkit-appearance: none; color: var(--wcbpa-body) !important; font: 500 14px var(--wcbpa-font) !important; box-shadow: none !important;
}
.wcbpf-sort select:focus { border-color: var(--wcbpa-primary) !important; outline: 0; }

.wcbpf-open {
	display: none; position: relative; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px !important; margin: 0 !important;
	border: 1px solid var(--wcbpa-border) !important; border-radius: calc(var(--wcbpa-radius) * .55) !important;
	background: var(--wcbpa-card) !important; color: var(--wcbpa-text) !important; font: 600 14.5px/1 var(--wcbpa-font) !important;
	cursor: pointer; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; min-height: 0 !important;
}
.wcbpf-open .dashicons { font-size: 17px; width: 17px; height: 17px; color: var(--wcbpa-primary); }
.wcbpf-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--wcbpa-highlight); color: var(--wcbpa-btn-text); font-size: 11.5px; font-weight: 700; line-height: 1; }

/* ---------- Active chips ---------- */
.wcbpf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.wcbpf-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 13px; border-radius: 99px; text-decoration: none !important;
	background: color-mix(in srgb, var(--wcbpa-primary) 9%, var(--wcbpa-card)); color: var(--wcbpa-primary) !important;
	border: 1px solid color-mix(in srgb, var(--wcbpa-primary) 25%, transparent); font-size: 13.5px; font-weight: 500; line-height: 1.2; transition: background .15s;
}
.wcbpf-chip:hover { background: color-mix(in srgb, var(--wcbpa-primary) 16%, var(--wcbpa-card)); }
.wcbpf-chip__x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--wcbpa-primary) 18%, transparent); font-size: 14px; line-height: 1; }
.wcbpf-chip-clear { font-size: 13.5px; font-weight: 600; color: var(--wcbpa-highlight) !important; text-decoration: none !important; padding: 6px 4px; }
.wcbpf-chip-clear:hover { text-decoration: underline !important; }

/* ---------- Empty state ---------- */
.wcbpf-empty { text-align: center; padding: 56px 20px; background: var(--wcbpa-card); border: 1px dashed var(--wcbpa-border); border-radius: var(--wcbpa-radius); color: var(--wcbpa-muted); }
.wcbpf-empty > .dashicons { font-size: 44px; width: 44px; height: 44px; color: var(--wcbpa-border); }
.wcbpf-empty p { margin: 10px 0 18px; font-size: 15.5px; }
.wcbpf-empty__btn { display: inline-block; padding: 10px 22px; border-radius: calc(var(--wcbpa-radius) * .55); background: var(--wcbpa-primary); color: var(--wcbpa-btn-text) !important; text-decoration: none !important; font-weight: 600; }

/* ---------- Sidebar card ---------- */
.wcbpf-sidebar, .wcbpf--widget {
	background: var(--wcbpa-card); border: 1px solid var(--wcbpa-border); border-radius: var(--wcbpa-radius); padding: 6px 22px 22px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04); color: var(--wcbpa-body); font-family: var(--wcbpa-font);
}
.wcbpf--widget { padding: 0; border: 0; box-shadow: none; background: transparent; }
.wcbpf-drawer-head, .wcbpf-overlay { display: none; }
.wcbpf-form { margin: 0 !important; }

.wcbpf-section { padding: 16px 0; border-bottom: 1px solid var(--wcbpa-border); }
.wcbpf-title {
	display: flex !important; align-items: center; justify-content: space-between; width: 100%;
	background: none !important; border: 0 !important; padding: 2px 0 !important; margin: 0 0 12px !important; box-shadow: none !important;
	color: var(--wcbpa-text) !important; font: 700 15.5px/1.3 var(--wcbpa-font) !important; cursor: pointer; text-align: left;
	text-transform: none !important; letter-spacing: normal !important; min-height: 0 !important;
}
.wcbpf-title > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.wcbpf-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--wcbpa-primary); color: var(--wcbpa-btn-text); font-size: 11px; }
.wcbpf-title .dashicons { font-size: 16px; width: 16px; height: 16px; color: var(--wcbpa-muted); transition: transform .2s; }
.wcbpf-section.is-collapsed .wcbpf-title { margin-bottom: 0 !important; }
.wcbpf-section.is-collapsed .wcbpf-title .dashicons { transform: rotate(180deg); }
.wcbpf-section.is-collapsed .wcbpf-body { display: none; }

/* Search */
.wcbpf-search { position: relative; display: flex; align-items: center; border: 1px solid var(--wcbpa-border); border-radius: calc(var(--wcbpa-radius) * .55); background: var(--wcbpa-bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.wcbpf-search > .dashicons { position: absolute; left: 12px; font-size: 17px; width: 17px; height: 17px; color: var(--wcbpa-muted); pointer-events: none; }
.wcbpf-search:focus-within { border-color: var(--wcbpa-primary); background: var(--wcbpa-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcbpa-primary) 14%, transparent); }
.wcbpf .wcbpf-search input {
	flex: 1; min-width: 0; height: 42px !important; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important;
	padding: 0 6px 0 36px !important; margin: 0 !important; color: var(--wcbpa-body); font: 14px var(--wcbpa-font) !important; border-radius: 0 !important;
}
.wcbpf-search button {
	flex: none; width: 34px; height: 34px; margin: 4px !important; padding: 0 !important; border: 0 !important;
	border-radius: calc(var(--wcbpa-radius) * .45) !important; background: var(--wcbpa-primary) !important; color: var(--wcbpa-btn-text) !important;
	cursor: pointer; display: grid; place-items: center; min-height: 0 !important; box-shadow: none !important;
}
.wcbpf-search button .dashicons { font-size: 17px; width: 17px; height: 17px; }

/* Category search */
.wcbpf .wcbpf-cat-search {
	width: 100%; height: 36px !important; margin: 0 0 10px !important; padding: 0 12px !important; border: 1px solid var(--wcbpa-border) !important;
	border-radius: calc(var(--wcbpa-radius) * .45) !important; background: var(--wcbpa-bg) !important; font: 13.5px var(--wcbpa-font) !important; box-shadow: none !important; color: var(--wcbpa-body);
}
.wcbpf .wcbpf-cat-search:focus { border-color: var(--wcbpa-primary) !important; outline: 0; }

/* Checkbox rows */
.wcbpf-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 1px; }
.wcbpf-list li { margin: 0 !important; padding: 0 !important; list-style: none !important; border: 0 !important; }
.wcbpf-list li::before, .wcbpf-list li::marker { content: none !important; }
.wcbpf-list li[hidden] { display: none !important; }
.wcbpf-scroll { max-height: 264px; overflow-y: auto; margin-right: -8px !important; padding-right: 8px !important; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--wcbpa-primary) 35%, var(--wcbpa-border)) transparent; }
.wcbpf-scroll::-webkit-scrollbar { width: 4px; }
.wcbpf-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--wcbpa-primary) 35%, var(--wcbpa-border)); border-radius: 4px; }
.wcbpf-depth-1 { padding-left: 20px !important; }
.wcbpf-depth-2 { padding-left: 40px !important; }
.wcbpf-depth-3 { padding-left: 60px !important; }

.wcbpf-check { position: relative; display: flex !important; align-items: center; gap: 11px; padding: 7px 8px; margin: 0 -8px !important; border-radius: 8px; cursor: pointer; font-size: 14.5px; font-weight: 400 !important; color: var(--wcbpa-body); user-select: none; line-height: 1.35; transition: background .12s; }
.wcbpf-check:hover { background: var(--wcbpa-bg); }
.wcbpf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wcbpf-box { flex: none; width: 18px; height: 18px; border: 1.5px solid color-mix(in srgb, var(--wcbpa-muted) 55%, transparent); border-radius: 5px; background: var(--wcbpa-card); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.wcbpf-box::after { content: ""; width: 5px; height: 9px; border: solid var(--wcbpa-btn-text); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0); transition: transform .15s; }
.wcbpf-check:hover .wcbpf-box { border-color: var(--wcbpa-primary); }
.wcbpf-check input:checked + .wcbpf-box { background: var(--wcbpa-primary); border-color: var(--wcbpa-primary); }
.wcbpf-check input:checked + .wcbpf-box::after { transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.wcbpf-check input:focus-visible + .wcbpf-box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcbpa-primary) 25%, transparent); }
.wcbpf-check input:checked ~ .wcbpf-name { color: var(--wcbpa-text); font-weight: 600; }
.wcbpf-name { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.wcbpf-count-n { flex: none; min-width: 26px; padding: 1px 7px; border-radius: 99px; background: var(--wcbpa-bg); color: var(--wcbpa-muted); font-size: 12px; text-align: center; }
.wcbpf-check input:checked ~ .wcbpf-count-n { background: color-mix(in srgb, var(--wcbpa-primary) 12%, var(--wcbpa-card)); color: var(--wcbpa-primary); }

/* Price slider */
.wcbpf-slider { position: relative; height: 30px; margin: 2px 4px 12px; }
.wcbpf-slider__track { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 4px; background: var(--wcbpa-border); }
.wcbpf-slider__fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--wcbpa-primary); }
.wcbpf-slider input[type=range] { position: absolute; left: -2px; right: -2px; top: 5px; width: calc(100% + 4px); height: 20px; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; pointer-events: none; -webkit-appearance: none; appearance: none; box-shadow: none !important; }
.wcbpf-slider input[type=range]::-webkit-slider-runnable-track { background: transparent; border: 0; height: 20px; }
.wcbpf-slider input[type=range]::-moz-range-track { background: transparent; border: 0; }
.wcbpf-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--wcbpa-card); border: 3px solid var(--wcbpa-primary); box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: grab; }
.wcbpf-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--wcbpa-card); border: 3px solid var(--wcbpa-primary); box-shadow: 0 2px 6px rgba(0,0,0,.15); cursor: grab; }
.wcbpf-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--wcbpa-primary) 25%, transparent); }

.wcbpf-price { display: flex; align-items: center; gap: 8px; }
.wcbpf-price__box { flex: 1; min-width: 0; display: flex; align-items: center; margin: 0 !important; border: 1px solid var(--wcbpa-border); border-radius: calc(var(--wcbpa-radius) * .45); background: var(--wcbpa-bg); transition: border-color .2s; }
.wcbpf-price__box:focus-within { border-color: var(--wcbpa-primary); background: var(--wcbpa-card); }
.wcbpf-cur { padding-left: 10px; font-weight: 600; color: var(--wcbpa-muted); font-size: 14px; }
.wcbpf-dash { color: var(--wcbpa-muted); }
.wcbpf .wcbpf-price input {
	flex: 1; min-width: 0; width: 100%; height: 38px !important; padding: 0 8px 0 4px !important; margin: 0 !important;
	border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--wcbpa-text); font: 500 14px var(--wcbpa-font) !important; box-shadow: none !important; outline: 0; -moz-appearance: textfield;
}
.wcbpf-price input::-webkit-inner-spin-button, .wcbpf-price input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Rating */
.wcbpf-stars { display: inline-flex; gap: 1px; }
.wcbpf-stars .dashicons { font-size: 17px; width: 17px; height: 17px; color: var(--wcbpa-star); }
.wcbpf-stars .dashicons-star-empty { color: color-mix(in srgb, var(--wcbpa-star) 45%, var(--wcbpa-border)); }
.wcbpf-up { color: var(--wcbpa-muted); font-size: 12.5px; }

/* Tags */
.wcbpf-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.wcbpf-tag { position: relative; margin: 0 !important; cursor: pointer; }
.wcbpf-tag input { position: absolute; opacity: 0; pointer-events: none; }
.wcbpf-tag span { display: inline-block; padding: 6px 12px; border: 1px solid var(--wcbpa-border); border-radius: 99px; font-size: 13px; color: var(--wcbpa-body); background: var(--wcbpa-card); transition: all .15s; }
.wcbpf-tag:hover span { border-color: var(--wcbpa-primary); color: var(--wcbpa-primary); }
.wcbpf-tag input:checked + span { background: var(--wcbpa-primary); border-color: var(--wcbpa-primary); color: var(--wcbpa-btn-text); }

/* Status switches */
.wcbpf-switches { display: grid; gap: 4px; }
.wcbpf-switch { position: relative; display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; margin: 0 !important; cursor: pointer; font-size: 14.5px; font-weight: 400 !important; color: var(--wcbpa-body); }
.wcbpf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wcbpf-switch__ui { position: relative; flex: none; width: 38px; height: 22px; border-radius: 99px; background: color-mix(in srgb, var(--wcbpa-muted) 35%, var(--wcbpa-border)); transition: background .2s; }
.wcbpf-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.wcbpf-switch input:checked + .wcbpf-switch__ui { background: var(--wcbpa-primary); }
.wcbpf-switch input:checked + .wcbpf-switch__ui::after { transform: translateX(16px); }
.wcbpf-switch input:focus-visible + .wcbpf-switch__ui { box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcbpa-primary) 25%, transparent); }

/* Actions */
.wcbpf-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding-top: 20px; }
.wcbpf-apply {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 0 !important; padding: 0 16px !important; border: 0 !important;
	border-radius: calc(var(--wcbpa-radius) * .55) !important; background: var(--wcbpa-primary) !important; color: var(--wcbpa-btn-text) !important;
	font: 600 15px var(--wcbpa-font) !important; cursor: pointer; transition: filter .15s, transform .15s; box-shadow: 0 6px 16px color-mix(in srgb, var(--wcbpa-primary) 25%, transparent) !important;
	text-transform: none !important; letter-spacing: normal !important; min-height: 0 !important;
}
.wcbpf-apply:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wcbpf-apply__n:not(:empty) { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.25); font-size: 12px; }
.wcbpf-reset { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--wcbpa-border); border-radius: calc(var(--wcbpa-radius) * .55); color: var(--wcbpa-highlight) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; background: var(--wcbpa-card); transition: background .15s, border-color .15s; }
.wcbpf-reset .dashicons { font-size: 15px; width: 15px; height: 15px; }
.wcbpf-reset:hover { border-color: var(--wcbpa-highlight); background: color-mix(in srgb, var(--wcbpa-highlight) 6%, var(--wcbpa-card)); }
.wcbpf-form.is-loading { opacity: .6; pointer-events: none; }

/* =========================================================
   TABLET & MOBILE
   ========================================================= */
@media (max-width: 991px) {
	.wcbpf-layout { grid-template-columns: 1fr; gap: 0; }
	.wcbpf-layout > .wcbpf-sidebar, .wcbpf-layout > .wcbpf-overlay { display: none; } /* until JS moves them to <body> */

	.wcbpf-topbar { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
	.wcbpf-heading { font-size: 17px !important; }
	.wcbpf-topbar__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.wcbpf-topbar__actions:not(:has(.wcbpf-sort)) { grid-template-columns: 1fr; }
	.wcbpf-open { display: inline-flex; width: 100%; }

	.wcbpf-sort { display: flex; align-items: center; justify-content: center; height: 42px; border: 1px solid var(--wcbpa-border); border-radius: calc(var(--wcbpa-radius) * .55); background: var(--wcbpa-card); }
	.wcbpf-sort__label { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 0 12px; font: 600 14.5px/1 var(--wcbpa-font); color: var(--wcbpa-text); pointer-events: none; overflow: hidden; }
	.wcbpf-sort__label > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.wcbpf-sort__label .dashicons { flex: none; font-size: 17px; width: 17px; height: 17px; color: var(--wcbpa-primary); }
	.wcbpf-sort .woocommerce-ordering { position: absolute; inset: 0; }
	.wcbpf-sort select { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-width: 0; opacity: 0; font-size: 16px !important; }

	.wcbpf-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -4px 14px; padding: 0 4px 4px; scrollbar-width: none; }
	.wcbpf-chips::-webkit-scrollbar { display: none; }
	.wcbpf-chip, .wcbpf-chip-clear { flex: none; }

	/* Drawer (moved to <body> by JS so theme containers can't trap it) */
	body > .wcbpf-sidebar {
		display: flex; flex-direction: column; position: fixed !important; top: 0 !important; left: 0; bottom: 0; z-index: 2147483001;
		width: 360px; max-width: 90vw; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 0 !important;
		overflow: hidden; transform: translateX(-102%); transition: transform .32s cubic-bezier(.4, 0, .2, 1); box-shadow: none; visibility: hidden;
	}
	body > .wcbpf-sidebar.is-open { transform: none; visibility: visible; box-shadow: 12px 0 40px rgba(0, 0, 0, .22); }
	body > .wcbpf-sidebar:not(.is-open) { transition: transform .32s cubic-bezier(.4, 0, .2, 1), visibility 0s .32s; }
	body > .wcbpf-sidebar .wcbpf-drawer-head {
		display: flex; flex: none; align-items: center; justify-content: space-between;
		padding: 16px 18px; border-bottom: 1px solid var(--wcbpa-border); background: var(--wcbpa-card);
	}
	.wcbpf-drawer-head strong { display: flex; align-items: center; gap: 9px; color: var(--wcbpa-text); font-size: 18px; }
	.wcbpf-drawer-head strong .dashicons { color: var(--wcbpa-primary); }
	.wcbpf-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--wcbpa-bg) !important; color: var(--wcbpa-text) !important; cursor: pointer; min-height: 0 !important; box-shadow: none !important; }
	body > .wcbpf-sidebar .wcbpf-form { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
	body > .wcbpf-sidebar .wcbpf-sections { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
	body > .wcbpf-sidebar .wcbpf-form > .wcbpf-section:first-of-type { padding-top: 14px; }
	body > .wcbpf-sidebar .wcbpf-section { padding-left: 18px; padding-right: 18px; }
	body > .wcbpf-sidebar .wcbpf-actions {
		flex: none; margin-top: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
		background: var(--wcbpa-card); border-top: 1px solid var(--wcbpa-border); box-shadow: 0 -6px 18px rgba(15, 23, 42, .06); grid-template-columns: 1fr 1.6fr;
	}
	.wcbpf-scroll { max-height: 300px; }

	body > .wcbpf-overlay { display: block; position: fixed; inset: 0; z-index: 2147483000; background: var(--wcbpa-overlay); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
	body > .wcbpf-overlay.is-open { opacity: .55; visibility: visible; transition: opacity .3s; }
	html.wcbpf-lock, html.wcbpf-lock body { overflow: hidden !important; }

	/* iOS zooms into inputs below 16px */
	.wcbpf input[type=search], .wcbpf input[type=number], .wcbpf .wcbpf-cat-search { font-size: 16px !important; }
	.wcbpf-check, .wcbpf-switch { padding-top: 9px; padding-bottom: 9px; font-size: 15px; }
}
@media (min-width: 992px) {
	.wcbpf-standalone .wcbpf-open--standalone { display: none; }
}
.wcbpf-standalone .wcbpf-open--standalone { margin-bottom: 14px !important; }
@media (max-width: 991px) {
	.wcbpf-standalone .wcbpf-open--standalone { display: inline-flex; width: auto; }
	.wcbpf-standalone > .wcbpf-sidebar, .wcbpf-standalone > .wcbpf-overlay { display: none; }
}

/* Theme-proof hidden inputs (some themes restyle every checkbox with position/size) */
.wcbpf .wcbpf-check input[type="checkbox"], .wcbpf .wcbpf-tag input[type="checkbox"], .wcbpf .wcbpf-switch input[type="checkbox"] {
	position: absolute !important; left: 0 !important; top: 0 !important; width: 1px !important; height: 1px !important; min-width: 0 !important;
	margin: 0 !important; padding: 0 !important; opacity: 0 !important; pointer-events: none !important; -webkit-appearance: none !important; appearance: none !important; border: 0 !important;
}
.wcbpf .wcbpf-check input[type="checkbox"]::before, .wcbpf .wcbpf-check input[type="checkbox"]::after,
.wcbpf .wcbpf-switch input[type="checkbox"]::before, .wcbpf .wcbpf-switch input[type="checkbox"]::after,
.wcbpf .wcbpf-tag input[type="checkbox"]::before, .wcbpf .wcbpf-tag input[type="checkbox"]::after { display: none !important; }
.wcbpf-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.wcbpf-apply, .wcbpf-reset { white-space: nowrap; font-size: 14px !important; padding-left: 10px !important; padding-right: 10px !important; }
/* Empty archive header left over after we move the title into our top bar */
.wcbpf-active .wcbpf-main .woocommerce-products-header:not(:has(.term-description, .page-description, .woocommerce-products-header__title)) { display: none; }
.wcbpf-active .wcbpf-main .woocommerce-products-header { border: 0; margin-top: 0; padding: 0; }
