/*
 * Store filter sidebar: the WBW Product Filter ([wpf-filters id=3]) on All Bollards, the category
 * archives and /shop/, restyled as one panel in the site's design language. The filter's markup
 * and behaviour are untouched; its own stylesheet and design-tab CSS are loud, so the visual
 * properties below use !important. Everything is scoped to body.bbs-active, so Off mode is untouched.
 *
 * Markup, per section:
 *   .wpfMainWrapper > .wpfFilterWrapper[data-filter-type=wpfPrice|wpfCategory|wpfAttribute]
 *     > .wpfFilterTitle (.wfpTitle + i.wpfTitleToggle.fa-minus|fa-plus)
 *     > .wpfFilterContent
 *   list rows: li > label.wpfLiLabel > span.wpfCheckbox (input + label) + span.wpfDisplay
 *   buttons:   .wpfFilterButtons > button.wpfFilterButton + button.wpfClearButton
 */

/* ---- Column + panel ------------------------------------------------------------------------ */

/* The Elementor sidebar column had 50px padding either side, which left a 216px filter.
   The panel now starts at the content edge and keeps a gutter towards the product grid. */
body.bbs-active .e-con:has(> .elementor-widget-woofilters) {
	--padding-left: 0px !important;
	--padding-right: 28px !important;
	padding-left: 0 !important;
	padding-right: 28px !important;
}

body.bbs-active .wpfMainWrapper {
	position: relative;
	box-sizing: border-box;
	background: var(--bbs-surface, #fff) !important;
	border: 1px solid var(--bbs-border, #e1e4e8) !important;
	color: var(--bbs-body, #3c4552);
	font-family: var(--bbs-font-body, Barlow, Helvetica, sans-serif) !important;
}

/* Panel header band. Decorative; each section keeps its own heading. */
body.bbs-active .wpfMainWrapper::before {
	content: "Filter bollards";
	content: "Filter bollards" / "";
	display: block;
	margin: -1px -1px 0;
	padding: 15px 20px 14px;
	background: var(--bbs-navy, #12325c);
	color: #fff;
	font-family: var(--bbs-font-mono, "IBM Plex Mono", monospace);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---- Sections ------------------------------------------------------------------------------ */

body.bbs-active .wpfMainWrapper .wpfFilterWrapper {
	margin: 0 !important;
	padding: 18px 20px 20px !important;
	border: 0 !important;
	border-top: 1px solid var(--bbs-border, #e1e4e8) !important;
	background: none !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper:first-of-type {
	border-top: 0 !important;
}

body.bbs-active .wpfMainWrapper .wpfFilterTitle {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	cursor: pointer;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper:has(.wpfTitleToggle.fa-minus) .wpfFilterTitle {
	margin-bottom: 14px !important;
}

body.bbs-active .wpfMainWrapper .wfpTitle {
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--bbs-text, #14181d) !important;
	font-family: var(--bbs-font-display, Archivo, sans-serif) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

/* Open/close chevron in place of the icon-font minus/plus */
body.bbs-active .wpfMainWrapper .wpfTitleToggle {
	position: relative;
	flex: none;
	width: 28px !important;
	height: 28px !important;
	margin: -4px -6px -4px 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: var(--bbs-navy, #12325c) !important;
	cursor: pointer;
}
body.bbs-active .wpfMainWrapper .wpfTitleToggle::before {
	content: "" !important;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -6px 0 0 -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.15s ease, margin 0.15s ease;
}
body.bbs-active .wpfMainWrapper .wpfTitleToggle.fa-minus::before {
	margin-top: -2px;
	transform: rotate(-135deg);
}
body.bbs-active .wpfMainWrapper .wpfFilterTitle:hover .wfpTitle {
	color: var(--bbs-navy, #12325c) !important;
}

/* ---- Price --------------------------------------------------------------------------------- */

body.bbs-active .wpfMainWrapper .wpfPriceFilterRange.ui-slider {
	height: 4px !important;
	margin: 20px 9px 20px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--bbs-border-strong, #d3d8de) !important;
}
body.bbs-active .wpfMainWrapper .wpfPriceFilterRange .ui-slider-range {
	top: 0 !important;
	height: 100% !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--bbs-navy, #12325c) !important;
}
body.bbs-active .wpfMainWrapper .wpfPriceFilterRange .ui-slider-handle {
	box-sizing: border-box;
	top: -8px !important;
	width: 20px !important;
	height: 20px !important;
	margin-left: -10px !important;
	border: 2px solid var(--bbs-navy, #12325c) !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(10, 14, 19, 0.18) !important;
	cursor: grab;
	transition: background-color 0.12s ease;
}
body.bbs-active .wpfMainWrapper .wpfPriceFilterRange .ui-slider-handle:is(:hover, .ui-state-active) {
	background: var(--bbs-accent-wash, #dce7f6) !important;
}
body.bbs-active .wpfMainWrapper .wpfPriceFilterRange .ui-slider-handle.ui-state-active {
	cursor: grabbing;
}

/* Min and max as two boxed fields. The currency symbol leads ($ 3 – 9599), as it does on every price
   in the store; WBW's "Symbol position: After" puts it last instead, which the second template covers. */
body.bbs-active .wpfMainWrapper .wpfPriceInputs {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
}
body.bbs-active .wpfMainWrapper .wpfPriceInputs:has(> .wpfCurrencySymbol:first-child) {
	grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
}
body.bbs-active .wpfMainWrapper .wpfPriceInputs input[type="hidden"] {
	display: none !important;
}
body.bbs-active .wpfMainWrapper .wpfPriceInputs .wpfPriceRangeField {
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 10px !important;
	border: 1px solid var(--bbs-border-strong, #d3d8de) !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--bbs-text, #14181d) !important;
	font-family: var(--bbs-font-body, Barlow, Helvetica, sans-serif) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-align: left !important;
	-moz-appearance: textfield;
	appearance: textfield;
}
body.bbs-active .wpfMainWrapper .wpfPriceInputs .wpfPriceRangeField::-webkit-inner-spin-button,
body.bbs-active .wpfMainWrapper .wpfPriceInputs .wpfPriceRangeField::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
body.bbs-active .wpfMainWrapper .wpfPriceInputs .wpfPriceRangeField:hover {
	border-color: var(--bbs-muted, #5b6674) !important;
}
body.bbs-active .wpfMainWrapper .wpfPriceInputs .wpfPriceRangeField:focus {
	border-color: var(--bbs-navy, #12325c) !important;
	outline: 2px solid var(--bbs-accent, #2e6fc7) !important;
	outline-offset: 1px !important;
}
body.bbs-active .wpfMainWrapper .wpfPriceInputs :is(.wpfFilterDelimeter, .wpfCurrencySymbol) {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--bbs-muted, #5b6674) !important;
	font-family: var(--bbs-font-mono, "IBM Plex Mono", monospace) !important;
	font-size: 13px !important;
	line-height: 1 !important;
}

/* ---- List rows (categories) ---------------------------------------------------------------- */

body.bbs-active .wpfMainWrapper .wpfFilterWrapper ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper ul li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: none !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper ul li::before {
	content: none !important;
}

body.bbs-active .wpfMainWrapper .wpfFilterVerScroll {
	margin: 0 -10px !important;
	padding: 0 4px 0 0 !important;
	scrollbar-width: thin;
	scrollbar-color: var(--bbs-border-strong, #d3d8de) transparent;
	overscroll-behavior: contain;
}

body.bbs-active .wpfMainWrapper .wpfFilterWrapper .wpfLiLabel {
	display: flex !important;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100% !important;
	min-height: 38px;
	margin: 0 !important;
	padding: 7px 10px !important;
	border: 0 !important;
	background: transparent;
	color: var(--bbs-body, #3c4552) !important;
	font-family: var(--bbs-font-body, Barlow, Helvetica, sans-serif) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	cursor: pointer;
	transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper .wpfLiLabel:hover {
	background: var(--bbs-page-bg, #f4f5f6);
	color: var(--bbs-navy, #12325c) !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper li:has(> .wpfLiLabel input:checked) > .wpfLiLabel {
	background: var(--bbs-accent-wash, #dce7f6);
	color: var(--bbs-navy, #12325c) !important;
	font-weight: 600 !important;
}

body.bbs-active .wpfMainWrapper .wpfLiLabel .wpfDisplay {
	display: flex !important;
	flex: 1 1 auto;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}
body.bbs-active .wpfMainWrapper .wpfLiLabel :is(.wpfValue, .wpfFilterTaxNameWrapper) {
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font: inherit !important;
	overflow-wrap: anywhere;
}
body.bbs-active .wpfMainWrapper .wpfLiLabel .wpfCount {
	flex: none;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--bbs-muted, #5b6674) !important;
	font-family: var(--bbs-font-mono, "IBM Plex Mono", monospace) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0.02em;
}

/* Custom box: square for multi-select, round for the single-choice category list */
body.bbs-active .wpfMainWrapper .wpfLiLabel .wpfCheckbox {
	position: relative;
	display: inline-block !important;
	flex: none;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
}
body.bbs-active .wpfMainWrapper .wpfLiLabel .wpfCheckbox > label {
	position: absolute !important;
	inset: 0;
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	cursor: pointer;
}
body.bbs-active .wpfMainWrapper .wpfLiLabel .wpfCheckbox > label::before {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	box-sizing: border-box;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	border: 1.5px solid var(--bbs-border-strong, #d3d8de) !important;
	border-radius: 0 !important;
	background: #fff !important;
	transition: border-color 0.12s ease, background-color 0.12s ease;
}
body.bbs-active .wpfMainWrapper .wpfLiLabel:hover .wpfCheckbox > label::before {
	border-color: var(--bbs-navy, #12325c) !important;
}
body.bbs-active .wpfMainWrapper .wpfLiLabel .wpfCheckbox > label::after {
	content: none !important;
}

/* checked: square box fills navy with a white tick */
body.bbs-active .wpfMainWrapper .wpfLiLabel .wpfCheckbox > input:checked + label::before {
	border-color: var(--bbs-navy, #12325c) !important;
	background: var(--bbs-navy, #12325c) !important;
}
body.bbs-active .wpfMainWrapper .wpfLiLabel .wpfCheckbox > input:checked + label::after {
	content: "" !important;
	position: absolute !important;
	top: 3px !important;
	left: 6px !important;
	right: auto !important;
	bottom: auto !important;
	width: 5px !important;
	height: 9px !important;
	margin: 0 !important;
	border: solid #fff !important;
	border-width: 0 2px 2px 0 !important;
	border-radius: 0 !important;
	background: none !important;
	transform: rotate(45deg) !important;
}

/* single choice: round, navy dot */
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-radio="1"] .wpfLiLabel .wpfCheckbox > label::before {
	border-radius: 50% !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-radio="1"] .wpfLiLabel .wpfCheckbox > input:checked + label::before {
	border: 2px solid var(--bbs-navy, #12325c) !important;
	background: #fff !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-radio="1"] .wpfLiLabel .wpfCheckbox > input:checked + label::after {
	top: 5px !important;
	left: 5px !important;
	width: 8px !important;
	height: 8px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--bbs-navy, #12325c) !important;
	transform: none !important;
}

/* ---- Attribute values as chips (Diameter, Height, Light) ----------------------------------- */

body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] ul {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] ul li {
	flex: none;
	width: auto !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] .wpfLiLabel {
	width: auto !important;
	min-width: 48px;
	min-height: 38px;
	justify-content: center;
	gap: 0;
	padding: 8px 14px !important;
	border: 1px solid var(--bbs-border-strong, #d3d8de) !important;
	background: #fff;
	color: var(--bbs-text, #14181d) !important;
	font-family: var(--bbs-font-mono, "IBM Plex Mono", monospace) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] .wpfLiLabel:hover {
	border-color: var(--bbs-navy, #12325c) !important;
	background: #fff;
	color: var(--bbs-navy, #12325c) !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] li:has(> .wpfLiLabel input:checked) > .wpfLiLabel {
	border-color: var(--bbs-navy, #12325c) !important;
	background: var(--bbs-navy, #12325c);
	color: #fff !important;
	font-weight: 500 !important;
}
/* The chip itself shows the state, so the box is hidden (the input stays in the page). */
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] .wpfLiLabel .wpfCheckbox {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] .wpfLiLabel .wpfDisplay {
	flex: none;
	justify-content: center;
}

/* Size ranges: WBW lists terms by name, which puts "12″+" before "5–6.9″" and "Under 5″" last.
   Slugs are under-… for the smallest range and …-plus for the largest; the rest already sort. */
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] ul li[data-term-slug^="under-"] {
	order: -1;
}
body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] ul li[data-term-slug$="-plus"] {
	order: 1;
}

/* ---- Buttons ------------------------------------------------------------------------------- */

body.bbs-active .wpfMainWrapper .wpfFilterButtons {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	margin: 0 !important;
	padding: 20px !important;
	border-top: 1px solid var(--bbs-border, #e1e4e8) !important;
	background: var(--bbs-page-bg, #f4f5f6) !important;
}

body.bbs-active .wpfMainWrapper .wpfFilterButtons .wpfButton {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: var(--bbs-font-display, Archivo, sans-serif) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.bbs-active .wpfMainWrapper .wpfFilterButtons .wpfFilterButton {
	flex: 1 1 100%;
	min-height: 48px !important;
	padding: 14px 20px !important;
	border: 2px solid var(--bbs-navy, #12325c) !important;
	background: var(--bbs-navy, #12325c) !important;
	color: #fff !important;
	font-size: 14px !important;
	letter-spacing: 0.08em !important;
}
body.bbs-active .wpfMainWrapper .wpfFilterButtons .wpfFilterButton::after {
	content: "→";
	content: "→" / "";
	margin-left: 10px;
	font-family: var(--bbs-font-mono, "IBM Plex Mono", monospace);
	font-weight: 400;
}
body.bbs-active .wpfMainWrapper .wpfFilterButtons .wpfFilterButton:is(:hover, :focus-visible) {
	border-color: var(--bbs-accent, #2e6fc7) !important;
	background: var(--bbs-accent, #2e6fc7) !important;
	color: #fff !important;
}

body.bbs-active .wpfMainWrapper .wpfFilterButtons .wpfClearButton {
	flex: 0 1 auto;
	min-height: 36px !important;
	padding: 8px 6px !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--bbs-navy, #12325c) !important;
	font-size: 12px !important;
	letter-spacing: 0.08em !important;
	text-decoration: underline !important;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}
body.bbs-active .wpfMainWrapper .wpfFilterButtons .wpfClearButton:is(:hover, :focus-visible) {
	color: var(--bbs-accent, #2e6fc7) !important;
	background: transparent !important;
}

/* Same two-tone focus ring as the header and the store buttons */
body.bbs-active .wpfMainWrapper :is(.wpfButton, .ui-slider-handle, .wpfTitleToggle, .wfpTitle):focus-visible {
	outline: 2px solid var(--bbs-accent, #2e6fc7) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #fff !important;
}

/* ---- Product list pagination (All Bollards loop grid, /shop/, category archives) ------------ */

body.bbs-active nav.elementor-pagination,
body.bbs-active nav.woocommerce-pagination ul.page-numbers {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 40px 0 16px !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
}
body.bbs-active nav.woocommerce-pagination ul.page-numbers li {
	display: block !important;
	float: none !important;
	margin: 0 !important;
	border: 0 !important;
}
body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination) .page-numbers:not(ul) {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid var(--bbs-border-strong, #d3d8de) !important;
	border-radius: 0 !important;
	background: var(--bbs-surface, #fff) !important;
	color: var(--bbs-text, #14181d) !important;
	font-family: var(--bbs-font-mono, "IBM Plex Mono", monospace) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination) a.page-numbers:is(:hover, :focus-visible) {
	border-color: var(--bbs-navy, #12325c) !important;
	background: var(--bbs-surface, #fff) !important;
	color: var(--bbs-navy, #12325c) !important;
}
body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination) .page-numbers.current {
	border-color: var(--bbs-navy, #12325c) !important;
	background: var(--bbs-navy, #12325c) !important;
	color: #fff !important;
}
body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination) .page-numbers.dots {
	min-width: 24px;
	padding: 0 !important;
	border-color: transparent !important;
	background: none !important;
	color: var(--bbs-muted, #5b6674) !important;
}
body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination) .page-numbers:is(.prev, .next) {
	padding: 0 16px !important;
}
/* Elementor prints Previous/Next as plain spans on the first and last page */
body.bbs-active nav.elementor-pagination span.page-numbers:is(.prev, .next) {
	border-color: var(--bbs-border, #e1e4e8) !important;
	color: var(--bbs-faint, #6a7386) !important;
	cursor: default;
}
body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination) a.page-numbers:focus-visible {
	outline: 2px solid var(--bbs-accent, #2e6fc7) !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px #fff !important;
}

/* ---- Phone toggle (added by js/bbs-filters.js) --------------------------------------------- */

body.bbs-active .bbs-filter-toggle {
	display: none;
}

body.bbs-active .bbs-filter-toggle .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---- Tablet / phone ------------------------------------------------------------------------ */

@media (max-width: 1024px) {
	body.bbs-active .e-con:has(> .elementor-widget-woofilters) {
		--padding-right: 24px !important;
		padding-right: 24px !important;
	}
}

@media (max-width: 767px) {
	body.bbs-active .e-con:has(> .elementor-widget-woofilters) {
		--padding-right: 0px !important;
		padding-right: 0 !important;
	}

	/* The store row and its product column each kept 50px side padding on phones, so product cards
	   were 186px wide on a 390px screen and titles broke mid-word. One 16px gutter instead. */
	body.bbs-active .e-con:has(> .e-con > .elementor-widget-woofilters),
	body.bbs-active .e-con:has(> .e-con-inner > .e-con > .elementor-widget-woofilters) {
		--padding-left: 16px !important;
		--padding-right: 16px !important;
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	body.bbs-active .e-con:has(> .elementor-widget-woofilters) ~ .e-con {
		--padding-left: 0px !important;
		--padding-right: 0px !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Elementor's "Hide on mobile" is overridden only once the toggle exists (see bbs-filters.js). */
	body.bbs-active .elementor-widget-woofilters.elementor-hidden-mobile:has(.bbs-filter-toggle) {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 24px !important;
		--container-widget-width: 100% !important;
	}

	body.bbs-active .bbs-filter-toggle {
		display: flex;
		align-items: center;
		gap: 12px;
		box-sizing: border-box;
		width: 100%;
		min-height: 54px;
		margin: 0;
		padding: 0 18px 0 20px;
		border: 0;
		border-radius: 0;
		background: var(--bbs-navy, #12325c);
		box-shadow: none;
		color: #fff;
		font-family: var(--bbs-font-mono, "IBM Plex Mono", monospace);
		font-size: 13px;
		font-weight: 500;
		line-height: 1.2;
		letter-spacing: 0.12em;
		text-align: left;
		text-transform: uppercase;
		cursor: pointer;
	}
	body.bbs-active .bbs-filter-toggle:is(:hover, :focus) {
		background: var(--bbs-navy, #12325c);
		color: #fff;
	}
	body.bbs-active .bbs-filter-toggle:focus-visible {
		outline: 2px solid var(--bbs-accent, #2e6fc7);
		outline-offset: 2px;
		box-shadow: 0 0 0 2px #fff;
	}
	body.bbs-active .bbs-filter-toggle__label {
		flex: 1 1 auto;
	}
	body.bbs-active .bbs-filter-toggle__count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 24px;
		height: 24px;
		padding: 0 6px;
		box-sizing: border-box;
		background: #fff;
		color: var(--bbs-navy, #12325c);
		font-size: 12px;
		letter-spacing: 0;
	}
	body.bbs-active .bbs-filter-toggle__icon {
		position: relative;
		flex: none;
		width: 20px;
		height: 20px;
	}
	body.bbs-active .bbs-filter-toggle__icon::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 8px;
		height: 8px;
		margin: -6px 0 0 -4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.15s ease, margin 0.15s ease;
	}
	body.bbs-active .bbs-filter-toggle[aria-expanded="true"] .bbs-filter-toggle__icon::before {
		margin-top: -2px;
		transform: rotate(-135deg);
	}

	body.bbs-active .bbs-filter-toggle + .wpfMainWrapper:not(.bbs-filter-open) {
		display: none !important;
	}
	body.bbs-active .bbs-filter-toggle + .wpfMainWrapper {
		border-top: 0 !important;
	}
	body.bbs-active .bbs-filter-toggle + .wpfMainWrapper::before {
		content: none;
		display: none;
	}
	body.bbs-active .wpfMainWrapper .wpfFilterWrapper {
		padding: 0 !important;
	}
	body.bbs-active .wpfMainWrapper .wpfFilterTitle {
		min-height: 54px;
		padding: 0 16px 0 20px !important;
	}
	body.bbs-active .wpfMainWrapper .wpfFilterWrapper:has(.wpfTitleToggle.fa-minus) .wpfFilterTitle {
		margin-bottom: 4px !important;
	}
	body.bbs-active .wpfMainWrapper .wpfFilterContent {
		padding: 0 20px 20px !important;
	}
	body.bbs-active .wpfMainWrapper .wpfFilterWrapper .wpfLiLabel {
		min-height: 44px;
	}
	body.bbs-active .wpfMainWrapper .wpfFilterWrapper[data-filter-type="wpfAttribute"] .wpfLiLabel {
		min-height: 44px;
		min-width: 56px;
	}
	body.bbs-active .wpfMainWrapper .wpfFilterVerScroll {
		max-height: 280px !important;
	}
	body.bbs-active .wpfMainWrapper .wpfFilterButtons .wpfFilterButton {
		min-height: 52px !important;
	}
	body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination ul.page-numbers) {
		gap: 4px;
		margin-top: 28px !important;
	}
	body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination) .page-numbers:not(ul) {
		min-width: 40px;
		padding: 0 10px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.bbs-active .wpfMainWrapper :is(.wpfLiLabel, .wpfButton, .ui-slider-handle),
	body.bbs-active :is(nav.elementor-pagination, nav.woocommerce-pagination) .page-numbers,
	body.bbs-active .wpfMainWrapper .wpfTitleToggle::before,
	body.bbs-active .wpfMainWrapper .wpfCheckbox > label::before,
	body.bbs-active .bbs-filter-toggle__icon::before {
		transition: none !important;
	}
}
