/* PSJB Productfilter: sluit aan op de bestaande look van de zijbalk (Storefront child). */

.psjb-pf {
	--psjb-pf-text: #43454b;
	--psjb-pf-muted: #6d6d6d;
	--psjb-pf-line: #e2e8f0;
	--psjb-pf-accent: #43454b;
	--psjb-pf-chip: #f3f4f6;
	margin: 0 0 2em;
	color: var(--psjb-pf-text);
	font-size: 14px;
}

/* Groepen */
.psjb-pf__group {
	margin: 0 0 20px;
	padding: 0 10px 10px;
}

.psjb-pf__heading {
	margin: 0;
	padding: 0;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.6;
}

.psjb-pf__toggle,
.psjb-pf__toggle:hover,
.psjb-pf__toggle:focus {
	display: flex;
	align-items: center;
	gap: 0.5em;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.psjb-pf__toggle:focus:not(:focus-visible) {
	outline: none;
}

.psjb-pf__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.psjb-pf__title {
	flex: 1 1 auto;
}

.psjb-pf__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5em;
	height: 1.5em;
	padding: 0 0.4em;
	border-radius: 999px;
	background: var(--psjb-pf-accent);
	color: #fff;
	font-size: 0.65em;
	font-weight: 700;
	line-height: 1;
}

.psjb-pf__chevron {
	flex: none;
	opacity: 0.6;
	transition: transform 0.2s ease;
}

.psjb-pf__group.is-open .psjb-pf__chevron {
	transform: rotate(180deg);
}

.psjb-pf__body {
	padding-top: 0.4em;
}

/* Dichtklappen alleen als JavaScript werkt; zonder JS blijft alles open en bruikbaar. */
.psjb-pf-js .psjb-pf__group:not(.is-open) .psjb-pf__body {
	display: none;
}

/* Opties */
.psjb-pf__options {
	max-height: 260px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.psjb-pf__options li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.psjb-pf__option {
	display: flex;
	align-items: center;
	gap: 0.55em;
	margin: 0;
	padding: 1px 0;
	font-weight: 400;
	line-height: 24px;
	cursor: pointer;
}

.psjb-pf__option input[type="checkbox"] {
	flex: none;
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: var(--psjb-pf-accent);
	cursor: pointer;
}

.psjb-pf__option:hover .psjb-pf__label {
	text-decoration: underline;
}

.psjb-pf__count {
	color: var(--psjb-pf-muted);
	font-size: 0.9em;
}

/* Actieve filters */
.psjb-pf__active {
	margin: 0 0 20px;
	padding: 0 10px;
}

.psjb-pf__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.psjb-pf__chips li {
	margin: 0;
	list-style: none;
}

.psjb-pf__chip,
.psjb-pf__chip:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 2px 10px;
	border: 1px solid var(--psjb-pf-line);
	border-radius: 999px;
	background: var(--psjb-pf-chip);
	color: var(--psjb-pf-text);
	font-size: 13px;
	line-height: 22px;
	text-decoration: none;
}

.psjb-pf__chip:hover {
	border-color: var(--psjb-pf-accent);
	color: var(--psjb-pf-text);
}

.psjb-pf__chip-x {
	font-size: 1.15em;
	line-height: 1;
	opacity: 0.7;
}

.psjb-pf__clear,
.psjb-pf__clear:visited {
	color: var(--psjb-pf-text);
	font-size: 13px;
	text-decoration: underline;
}

/* Prijs-slider */
.psjb-pf__price {
	--psjb-pf-from: 0%;
	--psjb-pf-to: 100%;
	padding: 0.4em 8px 0;
}

.psjb-pf__range {
	position: relative;
	height: 24px;
}

.psjb-pf__range::before,
.psjb-pf__range-fill {
	position: absolute;
	top: 50%;
	height: 3px;
	border-radius: 2px;
	transform: translateY(-50%);
	content: "";
}

.psjb-pf__range::before {
	right: 0;
	left: 0;
	background: var(--psjb-pf-line);
}

.psjb-pf__range-fill {
	left: var(--psjb-pf-from);
	right: calc(100% - var(--psjb-pf-to));
	background: var(--psjb-pf-accent);
}

.psjb-pf__range input[type="range"] {
	position: absolute;
	top: 0;
	left: -8px;
	z-index: 2;
	width: calc(100% + 16px);
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.psjb-pf__range input[type="range"]:focus {
	outline: none;
}

.psjb-pf__range input[type="range"]::-webkit-slider-runnable-track {
	height: 24px;
	background: none;
}

.psjb-pf__range input[type="range"]::-moz-range-track {
	height: 24px;
	background: none;
}

.psjb-pf__range input[type="range"]::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	border: 2px solid var(--psjb-pf-accent);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
}

.psjb-pf__range input[type="range"]::-moz-range-thumb {
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border: 2px solid var(--psjb-pf-accent);
	border-radius: 50%;
	background: #fff;
	cursor: grab;
	pointer-events: auto;
}

.psjb-pf__range input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px rgba(67, 69, 75, 0.25);
}

.psjb-pf__range input[type="range"]:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 3px rgba(67, 69, 75, 0.25);
}

.psjb-pf__price-values {
	display: flex;
	justify-content: space-between;
	gap: 0.5em;
	margin: 0.4em 0 0;
	font-variant-numeric: tabular-nums;
}

/* Knop "Toon producten": alleen in het mobiele uitschuifpaneel van het thema */
.psjb-pf__footer {
	display: none;
}

[data-sidebar] .psjb-pf__footer {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: block;
	padding: 12px 10px 24px;
	background: #fff;
}

[data-sidebar] .psjb-pf__show {
	width: 100%;
}

/* Laden */
.psjb-pf-loading #primary {
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.psjb-pf-loading .psjb-pf {
	cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
	.psjb-pf__chevron,
	.psjb-pf-loading #primary {
		transition: none;
	}
}
