/* TIFA Shop Tools — filterpaneel (0.16.0) */

.tshop-filter {
	font-size: 15px;
	line-height: 1.5;
}

.tshop-filter__kop {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.tshop-filter__titel {
	font-size: 18px;
	font-weight: 600;
}

.tshop-filter__wis {
	font-size: 14px;
	text-decoration: underline;
}

.tshop-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.tshop-filter__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 9px;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-size: 13px;
	text-decoration: none;
	line-height: 1.6;
}

.tshop-filter__chip--vast {
	opacity: 0.7;
}

.tshop-filter__chip-x {
	font-size: 15px;
	line-height: 1;
}

.tshop-filter__melding {
	margin-bottom: 16px;
	padding: 10px 12px;
	border-left: 3px solid currentColor;
	font-size: 13px;
}

.tshop-filter__melding p {
	margin: 0 0 4px;
}

.tshop-filter__melding ul {
	margin: 0;
	padding-left: 18px;
}

.tshop-filter__groep {
	padding: 14px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.tshop-filter__groepkop {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
}

.tshop-filter__lijst {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tshop-filter__optie--verborgen {
	display: none;
}

.tshop-filter__lijst.is-open .tshop-filter__optie--verborgen {
	display: list-item;
}

.tshop-filter__link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 0;
	text-decoration: none;
}

.tshop-filter__vink {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	border: 1px solid rgba(0, 0, 0, 0.45);
	border-radius: 3px;
}

.tshop-filter__link.is-actief .tshop-filter__vink {
	background: currentColor;
	border-color: currentColor;
}

.tshop-filter__link.is-actief {
	font-weight: 600;
}

/* Enkelvoudige facetten (verkoopvorm) als knoppenrij. */
.tshop-filter__lijst--knoppen {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tshop-filter__lijst--knoppen .tshop-filter__link {
	padding: 5px 11px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 4px;
	font-size: 14px;
}

.tshop-filter__lijst--knoppen .tshop-filter__vink {
	display: none;
}

.tshop-filter__lijst--knoppen .tshop-filter__link.is-actief {
	border-color: currentColor;
	border-width: 2px;
}

.tshop-filter__meer {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
}

@media (max-width: 768px) {
	.tshop-filter__groep {
		padding: 12px 0;
	}
}

/* Hiërarchische facetten: inspringen per niveau. */
.tshop-filter__optie--niveau-1 .tshop-filter__link {
	padding-left: 22px;
}

.tshop-filter__optie--niveau-2 .tshop-filter__link {
	padding-left: 44px;
}

.tshop-filter__optie--niveau-0 > .tshop-filter__link {
	font-weight: 500;
}

/* Aantallen achter de termen. */
.tshop-filter__aantal {
	margin-left: auto;
	padding-left: 8px;
	font-size: 13px;
	opacity: 0.6;
	font-variant-numeric: tabular-nums;
}

.tshop-filter__aantal::before {
	content: "(";
}

.tshop-filter__aantal::after {
	content: ")";
}

.tshop-filter__link.is-leeg {
	opacity: 0.4;
	cursor: default;
}

.tshop-filter__lijst--knoppen .tshop-filter__aantal {
	margin-left: 6px;
	padding-left: 0;
}

/* Maatblok. */
.tshop-filter__maat {
	margin-bottom: 12px;
}

.tshop-filter__maatlabel {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.tshop-filter__maatvelden {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tshop-filter__maatvelden input {
	width: 100%;
	min-width: 0;
	padding: 5px 7px;
	font-size: 14px;
}

.tshop-filter__eenheid {
	font-size: 13px;
	opacity: 0.7;
}

.tshop-filter__hint {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	opacity: 0.6;
}

.tshop-filter__knop {
	width: 100%;
	padding: 7px 12px;
	border: 1px solid currentColor;
	background: none;
	color: inherit;
	font-size: 14px;
	cursor: pointer;
}

.tshop-filter__maatmelding {
	margin: 10px 0 0;
	font-size: 13px;
	opacity: 0.85;
}

.tshop-filter__leeg {
	margin: 0;
	font-size: 14px;
	opacity: 0.75;
}

/* Melding op de plek van de producten. */
.tshop-geenresultaat {
	padding: 24px 0;
	font-size: 15px;
}

.tshop-geenresultaat__kop {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
}

.tshop-geenresultaat p {
	margin: 0 0 8px;
}

.tshop-geenresultaat__wis {
	display: inline-block;
	margin-top: 4px;
	padding: 7px 14px;
	border: 1px solid currentColor;
	text-decoration: none;
}

/* Een facet zonder eigen kop, aangehecht onder een ander facet. */
.tshop-filter__staart {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.tshop-filter__staart .tshop-filter__lijst {
	margin: 0;
}

/* Terwijl de resultaten ververst worden. */
.tshop-bezig {
	opacity: 0.45;
	transition: opacity 120ms ease-out;
	pointer-events: none;
}

/* Maatschuif met twee handvatten. */
.tshop-filter__schuif {
	position: relative;
	height: 28px;
	margin: 2px 0 6px;
}

.tshop-filter__schuif[hidden] {
	display: none;
}

.tshop-filter__baan {
	position: absolute;
	top: 12px;
	left: 0;
	right: 0;
	height: 4px;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.16);
}

.tshop-filter__gekozen {
	position: absolute;
	top: 0;
	bottom: 0;
	background: currentColor;
	border-radius: 2px;
}

.tshop-filter__range {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: none;
}

.tshop-filter__range:focus {
	outline: none;
}

/* Alleen de handvatten reageren, zodat beide schuiven bereikbaar blijven. */
.tshop-filter__range::-webkit-slider-thumb {
	pointer-events: auto;
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid currentColor;
	background: #fff;
	cursor: grab;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.tshop-filter__range::-moz-range-thumb {
	pointer-events: auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid currentColor;
	background: #fff;
	cursor: grab;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.tshop-filter__range:focus-visible::-webkit-slider-thumb {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.tshop-filter__range::-webkit-slider-runnable-track,
.tshop-filter__range::-moz-range-track {
	background: none;
	border: 0;
}

.tshop-filter__knop--verborgen {
	display: none;
}
