/* Category filters (inc/filters.php, assets/js/filters.js) */
.bp-fx { background: #fff; border: 1px solid var(--bh-line); border-radius: 12px; padding: 4px 18px 16px; font-family: var(--wd-text-font, inherit); }
.bp-fx-head { display: flex; align-items: center; gap: 10px; padding: 14px 0 6px; }
.bp-fx-head strong { font-size: 17px; color: var(--bh-ink); }
.bp-fx-clear { margin-left: auto; font-size: 13px; font-weight: 600; color: #dc2626; text-decoration: none; }
.bp-fx .bp-fx-close, .bp-fx-open { display: none !important; } /* phone-only buttons (the theme styles every button) */
.bp-fx-group { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--bh-line); border-radius: 0 !important; min-width: 0; } /* the theme rounds fieldsets: the divider bent at its ends */
.bp-fx-group legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--bh-ink); }
.bp-fx-opt { display: flex; align-items: center; gap: 9px; margin: 0; padding: 5px 0; font-size: 14px; color: var(--bh-text, #334155); cursor: pointer; clear: both; }
.bp-fx-opt input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--bh-blue); cursor: pointer; }
.bp-fx-opt span { flex: 1; min-width: 0; }
.bp-fx-opt em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--bh-muted); background: #f1f5f9; border-radius: 999px; padding: 1px 8px; }
.bp-fx-opt:hover span { color: var(--bh-blue); }
.bp-fx-opt.is-zero { opacity: .5; }
.bp-fx-price > div { display: flex; align-items: center; gap: 6px; clear: both; }
.bp-fx-price input { width: 100%; min-width: 0; height: 38px !important; padding: 0 10px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important; font-size: 14px; text-align: left !important; margin: 0 !important; }
.bp-fx-go { margin-top: 10px !important; width: 100%; height: 38px; min-height: 0 !important; border: 1px solid var(--bh-blue) !important; border-radius: 6px !important; background: #fff !important; color: var(--bh-blue) !important; font-size: 14px !important; font-weight: 700 !important; text-transform: none !important; }
.bp-fx-go:hover { background: var(--bh-blue) !important; color: #fff !important; }
.bp-fx.is-busy { opacity: .6; pointer-events: none; }

/* desktop: sidebar column */
@media (min-width: 1025px) {
	.bybsa-listing .wd-content-area.bp-fx-area { display: grid; grid-template-columns: 250px minmax(0, 1fr); column-gap: 24px; align-items: start; }
	.bybsa-listing .wd-content-area.bp-fx-area > * { grid-column: 2; min-width: 0; }
	.bybsa-listing .wd-content-area.bp-fx-area > .bp-fx { grid-column: 1; grid-row: 1 / span 20; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; }
	.bybsa-listing .bp-fx-area .products.wd-products { --wd-col-lg: 4 !important; }
}

/* phones & tablets: "Filters" button + drawer */
@media (max-width: 1024px) {
	.bp-fx-open { display: inline-flex !important; align-items: center; gap: 6px; height: 40px; min-height: 0 !important; margin: 0 10px 0 0 !important; padding: 0 14px !important; border: 1px solid #cbd5e1 !important; border-radius: 8px !important; background: #fff !important; color: var(--bh-ink) !important; font-size: 14px !important; font-weight: 700 !important; text-transform: none !important; }
	.bp-fx-open b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--bh-blue); color: #fff; font-size: 12px; }
	.bp-fx { position: fixed; inset: 0 auto 0 0; z-index: 100001; width: min(340px, 88vw); border-radius: 0; overflow: auto; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(15, 23, 42, .25); }
	.bp-fx.is-open { transform: none; }
	html.bp-fx-lock { overflow: hidden; }
	html.bp-fx-lock body::after { content: ""; position: fixed; inset: 0; z-index: 100000; background: rgba(15, 23, 42, .45); }
	.bp-fx .bp-fx-close { display: inline-grid !important; place-items: center; width: 34px; height: 34px; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #f1f5f9 !important; color: var(--bh-ink) !important; font-size: 22px !important; line-height: 1 !important; }
	.bp-fx-clear + .bp-fx-close { margin-left: 8px; }
	.bp-fx-head .bp-fx-close:only-of-type { margin-left: auto; }
	.bybsa-listing .shop-loop-head { display: flex !important; align-items: center; }
}
