.bbpf-wrap,
.bbpf-wrap * {
	box-sizing: border-box;
}

.bbpf-wrap {
	color: var(--bbpf-text, #131313);
	font-family: inherit;
	width: 100%;
}

.bbpf-wrap .bbpf-sidebar,
.bbpf-wrap .bbpf-sidebar *,
.bbpf-wrap .bbpf-mobile-toggle,
.bbpf-wrap .bbpf-mobile-toggle *,
.bbpf-wrap .bbpf-mobile-head,
.bbpf-wrap .bbpf-mobile-head * {
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.bbpf-wrap .bbpf-sidebar button,
.bbpf-wrap .bbpf-sidebar input,
.bbpf-wrap .bbpf-sidebar label,
.bbpf-wrap .bbpf-mobile-toggle,
.bbpf-wrap .bbpf-mobile-close {
	box-shadow: none !important;
	font-family: inherit !important;
	max-width: 100% !important;
}

.bbpf-wrap .bbpf-sidebar button,
.bbpf-wrap .bbpf-mobile-toggle,
.bbpf-wrap .bbpf-mobile-close {
	appearance: none !important;
	-webkit-appearance: none !important;
}

.bbpf-mobile-toggle,
.bbpf-mobile-backdrop,
.bbpf-mobile-head {
	display: none !important;
}

.bbpf-layout {
	align-items: start;
	display: grid;
	gap: 22px;
	grid-template-columns: minmax(245px, 315px) minmax(0, 1fr);
	width: 100%;
}

.bbpf-sidebar {
	background: var(--bbpf-sidebar-bg, #fff);
	border: 1px solid var(--bbpf-border, #e5e7eb);
	border-radius: var(--bbpf-radius, 5px);
	padding: 18px;
	width: 100%;
}

.bbpf-form {
	display: grid !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.bbpf-section {
	border-bottom: 1px solid var(--bbpf-border, #e5e7eb);
	margin: 0 !important;
	padding: 18px 0 !important;
	width: 100% !important;
}

.bbpf-section:first-child {
	padding-top: 0;
}

.bbpf-title,
.bbpf-section-toggle {
	color: #111 !important;
	font-size: 16px;
	font-weight: 800 !important;
	line-height: 1.25;
	margin: 0 0 13px;
}

/* Uppercase only section headings/actions; retain readable option names. */
.bbpf-wrap .bbpf-title,
.bbpf-wrap .bbpf-section-toggle,
.bbpf-wrap .bbpf-section-toggle span,
.bbpf-wrap .bbpf-apply,
.bbpf-wrap .bbpf-reset {
	text-transform: uppercase !important;
}

.bbpf-title,
.bbpf-title:hover,
.bbpf-title:focus,
.bbpf-title:active,
.bbpf-section-toggle,
.bbpf-section-toggle:hover,
.bbpf-section-toggle:focus,
.bbpf-section-toggle:active,
.bbpf-section-toggle span,
.bbpf-section-toggle:hover span,
.bbpf-section-toggle:focus span,
.bbpf-section-toggle:active span {
	color: #111 !important;
}

.bbpf-section-toggle {
	align-items: center !important;
	background: transparent !important;
	border: 0 !important;
	cursor: pointer;
	display: flex !important;
	flex-direction: row !important;
	justify-content: space-between !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
	width: 100% !important;
}

.bbpf-section-toggle span {
	display: block !important;
	flex: 1 1 auto !important;
	font-weight: 800 !important;
	min-width: 0 !important;
	text-align: left !important;
}

.bbpf-section-toggle b {
	background: color-mix(in srgb, var(--bbpf-accent, #8703f9) 12%, #fff);
	border-radius: var(--bbpf-radius, 5px);
	display: block !important;
	flex: 0 0 28px !important;
	height: 28px;
	position: relative;
	width: 28px;
}

.bbpf-section-toggle b::before,
.bbpf-section-toggle b::after {
	background: var(--bbpf-accent, #8703f9);
	content: "";
	height: 2px;
	left: 8px;
	position: absolute;
	top: 13px;
	width: 12px;
}

.bbpf-section-toggle[aria-expanded="false"] b::after {
	transform: rotate(90deg);
}

.bbpf-section-body {
	display: none;
	gap: 10px;
	padding-top: 13px;
}

.bbpf-section.is-open .bbpf-section-body {
	display: grid;
}

.bbpf-section.is-open .bbpf-section-body {
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-color: color-mix(in srgb, var(--bbpf-accent, #8703f9) 32%, #d1d5db) transparent;
	scrollbar-width: thin;
}

.bbpf-section-categories.is-open .bbpf-section-body {
	max-height: 306px;
}

.bbpf-section-brand.is-open .bbpf-section-body,
.bbpf-section-attribute.is-open .bbpf-section-body {
	max-height: 204px;
}

.bbpf-section.is-open .bbpf-section-body::-webkit-scrollbar {
	width: 5px;
}

.bbpf-section.is-open .bbpf-section-body::-webkit-scrollbar-track {
	background: transparent;
}

.bbpf-section.is-open .bbpf-section-body::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--bbpf-accent, #8703f9) 32%, #d1d5db);
	border-radius: var(--bbpf-radius, 5px);
}

.bbpf-section.is-open .bbpf-section-body::-webkit-scrollbar-thumb:hover {
	background: color-mix(in srgb, var(--bbpf-accent, #8703f9) 45%, #d1d5db);
}

.bbpf-search-row {
	align-items: center !important;
	background: #fff;
	border: 1px solid var(--bbpf-border, #e5e7eb);
	border-radius: var(--bbpf-radius, 5px);
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 43px !important;
	min-height: 44px;
	overflow: hidden;
	padding: 0;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.bbpf-search-row:focus-within {
	border-color: var(--bbpf-interaction, #ff4d1d);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--bbpf-interaction, #ff4d1d) 14%, transparent);
}

.bbpf-search-row input {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--bbpf-text, #131313);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	min-height: 42px;
	outline: 0 !important;
	padding: 0 15px !important;
	width: 100% !important;
}

.bbpf-search-row input::placeholder {
	color: #6b7280;
	color: color-mix(in srgb, var(--bbpf-text, #131313) 62%, #fff);
	font: inherit;
	opacity: 1;
}

.bbpf-search-button {
	align-items: center;
	background: var(--bbpf-button-bg, #111) !important;
	border: 0 !important;
	border-radius: 0 var(--bbpf-radius, 5px) var(--bbpf-radius, 5px) 0;
	color: var(--bbpf-button-text, #fff) !important;
	cursor: pointer;
	display: inline-flex !important;
	flex: none !important;
	font-weight: 800 !important;
	height: 43px;
	justify-content: center;
	min-height: 43px;
	padding: 0 !important;
	width: 43px !important;
}

.bbpf-search-button:hover,
.bbpf-search-button:focus,
.bbpf-search-button:active {
	background: var(--bbpf-button-bg, #111) !important;
	color: var(--bbpf-button-text, #fff) !important;
}

.bbpf-search-button svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 3;
	width: 18px;
}

.bbpf-wrap .bbpf-check {
	align-items: center;
	color: var(--bbpf-text, #131313);
	cursor: pointer;
	display: grid !important;
	font-size: 15px;
	gap: 10px;
	grid-template-columns: 18px minmax(0, 1fr) auto !important;
	line-height: 1.4;
	margin: 0 !important;
	min-height: 30px;
	width: 100%;
}

.bbpf-wrap .bbpf-check > span {
	font-size: 15px;
	min-width: 0;
	overflow-wrap: anywhere;
}

.bbpf-check input {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 1.5px solid #c6ccd4;
	border-radius: min(var(--bbpf-radius, 5px), 5px);
	box-shadow: none;
	display: inline-grid;
	height: 18px;
	margin: 0;
	outline: 0 !important;
	place-content: center;
	transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
	width: 18px;
}

.bbpf-check input::before {
	content: "";
	border: solid #fff;
	border-width: 0 2px 2px 0;
	height: 9px;
	margin-top: -2px;
	transform: rotate(45deg) scale(0);
	transition: transform 0.16s ease;
	width: 5px;
}

.bbpf-check input:checked {
	background: var(--bbpf-interaction, #ff4d1d);
	border-color: var(--bbpf-interaction, #ff4d1d);
}

.bbpf-check input:checked::before {
	transform: rotate(45deg) scale(1);
}

.bbpf-check input:focus {
	box-shadow: none;
	outline: 0 !important;
}

.bbpf-check input:focus-visible {
	box-shadow: none;
	outline: 0 !important;
}

.bbpf-check input:hover {
	border-color: var(--bbpf-interaction, #ff4d1d);
}

.bbpf-check input:active {
	transform: scale(0.92);
}

.bbpf-check:hover span {
	color: var(--bbpf-interaction, #ff4d1d);
}

.bbpf-check:hover small {
	color: var(--bbpf-interaction, #ff4d1d);
}

.bbpf-check input[type="checkbox"] {
	margin: 0;
}

.bbpf-check small {
	background: #f5f6f7;
	border-radius: var(--bbpf-radius, 5px);
	color: #6b7280;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
	min-width: 30px;
	padding: 3px 6px;
	text-align: center;
	white-space: nowrap;
}

.bbpf-rating-check {
	grid-template-columns: 18px minmax(0, 1fr) auto;
	min-height: 30px;
}

.bbpf-rating-check small {
	background: transparent;
	border-radius: 0;
	color: #555;
	font-size: 15px;
	font-weight: 500;
	padding: 0;
}

.bbpf-stars {
	align-items: center;
	display: inline-flex;
	gap: 3px;
	line-height: 1;
}

.bbpf-stars i {
	color: #d0d4db;
	font-size: 17px;
	font-style: normal;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 0.9;
	text-shadow: 0 0 0 currentColor;
}

.bbpf-stars i.is-filled {
	color: var(--bbpf-interaction, #ff4d1d);
}

.bbpf-price-row {
	display: grid !important;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.bbpf-price-row input {
	border: 1px solid var(--bbpf-border, #e5e7eb);
	border-radius: var(--bbpf-radius, 5px);
	min-height: 42px;
	padding: 8px 10px;
	width: 100%;
}

.bbpf-actions {
	display: grid !important;
	gap: 10px !important;
	padding-top: 18px;
}

.bbpf-apply,
.bbpf-reset {
	border-radius: var(--bbpf-radius, 5px);
	cursor: pointer;
	font-size: 14px;
	font-weight: 800 !important;
	min-height: 42px;
	padding: 10px 14px;
}

.bbpf-apply {
	background: var(--bbpf-accent, #8703f9) !important;
	border: 1px solid var(--bbpf-accent, #8703f9) !important;
	color: #fff !important;
}

.bbpf-reset {
	background: transparent !important;
	border: 1px solid var(--bbpf-border, #e5e7eb) !important;
	color: var(--bbpf-text, #131313) !important;
}

.bbpf-results-area {
	min-width: 0;
	position: relative;
}

.bbpf-pagination {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.bbpf-load-more {
	background: var(--bbpf-accent, #8703f9);
	border: 1px solid var(--bbpf-accent, #8703f9);
	border-radius: var(--bbpf-radius, 5px);
	color: #fff;
	cursor: pointer;
	font: inherit;
	min-height: 44px;
	padding: 10px 20px;
}

.bbpf-is-loading-more .bbpf-load-more {
	opacity: 0.6;
	pointer-events: none;
}

.bbpf-results {
	min-height: 120px;
	position: relative;
}

.bbpf-grid {
	display: grid;
	gap: 14px;
	grid-auto-rows: auto;
	grid-template-columns: repeat(var(--bbpf-cols, 3), minmax(0, 1fr));
	width: 100%;
}

.bbpf-columns-3 {
	--bbpf-cols: 3;
}

.bbpf-columns-4 {
	--bbpf-cols: 4;
}

.bbpf-product {
	min-width: 0;
	overflow: visible;
	width: 100%;
}

.bbpf-card {
	background: #fff;
	border: 1px solid var(--bbpf-border, #e5e7eb);
	border-radius: var(--bbpf-radius, 5px);
	display: grid;
	gap: 10px;
	padding: 10px;
}

.bbpf-card img {
	border-radius: var(--bbpf-radius, 5px);
	display: block;
	height: auto;
	width: 100%;
}

.bbpf-card h3 {
	font-size: 15px;
	line-height: 1.25;
	margin: 0;
}

.bbpf-card h3 a {
	color: var(--bbpf-text, #131313);
	text-decoration: none;
}

.bbpf-card-price {
	color: var(--bbpf-accent, #8703f9);
	font-weight: 700;
}

.bbpf-card-button {
	background: var(--bbpf-accent, #8703f9);
	border-radius: var(--bbpf-radius, 5px);
	color: #fff;
	display: inline-flex;
	font-weight: 800 !important;
	justify-content: center;
	padding: 10px 14px;
	text-decoration: none;
}

.bbpf-empty,
.bbpf-warning {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: var(--bbpf-radius, 5px);
	color: #7c2d12;
	padding: 14px;
}

.bbpf-loader {
	color: #6b7280;
	display: none;
	font-size: 14px;
	font-weight: 700;
	padding: 18px 0;
	text-align: center;
}

.bbpf-is-loading .bbpf-results {
	opacity: 0.7;
	pointer-events: none;
}

.bbpf-is-loading-more .bbpf-loader {
	display: block;
}

@media (max-width: 1024px) {
	.bbpf-layout {
		grid-template-columns: minmax(225px, 275px) minmax(0, 1fr);
	}

	.bbpf-columns-4 {
		--bbpf-cols: 3;
	}
}

@media (max-width: 767px) {
	.bbpf-search-row input { font-size: 16px; }

	html.bbpf-lock-scroll {
		overflow: hidden;
	}

	.bbpf-mobile-toggle {
		align-items: center;
		background: var(--bbpf-button-bg, #111) !important;
		border: 0 !important;
		border-radius: var(--bbpf-radius, 5px);
		color: var(--bbpf-button-text, #fff) !important;
		cursor: pointer;
		display: inline-flex !important;
		font-size: 14px;
		font-weight: 800 !important;
		gap: 8px;
		justify-content: center;
		margin: 0 0 14px auto;
		min-height: 42px;
		padding: 10px 14px;
		width: auto;
	}

	.bbpf-mobile-toggle:hover,
	.bbpf-mobile-toggle:focus,
	.bbpf-mobile-toggle:active {
		background: var(--bbpf-button-bg, #111) !important;
		color: var(--bbpf-button-text, #fff) !important;
	}

	.bbpf-mobile-toggle svg {
		fill: none;
		height: 18px;
		stroke: currentColor;
		stroke-linecap: round;
		stroke-linejoin: round;
		stroke-width: 2.2;
		width: 18px;
	}

	.bbpf-mobile-backdrop {
		background: rgba(0, 0, 0, 0.42);
		display: block !important;
		inset: 0;
		opacity: 0;
		pointer-events: none;
		position: fixed;
		transition: opacity 0.22s ease;
		z-index: 99997;
	}

	.bbpf-filter-open .bbpf-mobile-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.bbpf-layout {
		display: block;
	}

	.bbpf-sidebar {
		border-radius: 0 var(--bbpf-radius, 5px) var(--bbpf-radius, 5px) 0;
		bottom: 0;
		box-shadow: 18px 0 42px rgba(15, 23, 42, 0.18);
		left: 0;
		margin-bottom: 0;
		max-width: 86vw;
		overflow-y: auto;
		padding: 16px 18px 22px;
		position: fixed;
		top: 0;
		transform: translateX(-105%);
		transition: transform 0.26s ease;
		width: 318px;
		z-index: 99998;
	}

	.bbpf-filter-open .bbpf-sidebar {
		transform: translateX(0);
	}

	.bbpf-mobile-head {
		align-items: center;
		border-bottom: 1px solid var(--bbpf-border, #e5e7eb);
		display: flex !important;
		justify-content: space-between;
		margin: -2px 0 16px;
		padding: 0 0 13px;
	}

	.bbpf-mobile-head strong {
		color: #111;
		font-size: 17px;
		font-weight: 800 !important;
	}

	.bbpf-mobile-close {
		align-items: center;
		background: color-mix(in srgb, var(--bbpf-accent, #8703f9) 10%, #fff) !important;
		border: 0 !important;
		border-radius: var(--bbpf-radius, 5px);
		cursor: pointer;
		display: inline-flex;
		height: 34px;
		justify-content: center;
		padding: 0;
		position: relative;
		width: 34px;
	}

	.bbpf-mobile-close span {
		background: var(--bbpf-accent, #8703f9);
		border-radius: var(--bbpf-radius, 5px);
		height: 2px;
		position: absolute;
		width: 14px;
	}

	.bbpf-mobile-close span:first-child {
		transform: rotate(45deg);
	}

	.bbpf-mobile-close span:last-child {
		transform: rotate(-45deg);
	}

	.bbpf-columns-3,
	.bbpf-columns-4 {
		--bbpf-cols: 2;
	}
}
