/* ROI Facet Filter — frontend styling. Sidebar links, productlijst rechts.
   CSS-variabelen zodat kleuren/afstanden centraal aan te passen zijn. */

.rff-layout {
	--rff-accent: #2c6ecb;
	--rff-border: #e3e6ea;
	--rff-text: #2b2f33;
	--rff-muted: #8b9097;
	--rff-bg: #fff;
	--rff-radius: 8px;
	--rff-gap: 28px;

	display: flex;
	align-items: flex-start;
	gap: var(--rff-gap);
	width: 100%;
}

.rff-sidebar {
	flex: 0 0 250px;
	max-width: 250px;
	font-size: 14px;
	color: var(--rff-text);
}

.rff-results {
	flex: 1 1 auto;
	min-width: 0;
	transition: opacity 0.15s ease;
}

.rff-results.rff-loading {
	opacity: 0.45;
	pointer-events: none;
}

/* Sidebar head */
.rff-sidebar__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--rff-text);
}

.rff-sidebar__title {
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.rff-reset {
	background: none;
	border: none;
	color: var(--rff-muted);
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}
.rff-reset:hover { color: var(--rff-accent); }

/* Facet block */
.rff-facet {
	border-bottom: 1px solid var(--rff-border);
	padding: 4px 0;
}

.rff-facet__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	padding: 12px 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rff-text);
	cursor: pointer;
	text-align: left;
}

.rff-facet__chev {
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--rff-muted);
	border-bottom: 2px solid var(--rff-muted);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	margin-left: 8px;
	flex: 0 0 auto;
}
.rff-facet--collapsed .rff-facet__chev { transform: rotate(-45deg); }

.rff-facet__body {
	padding: 2px 2px 14px;
	max-height: 280px;
	overflow-y: auto;
}
.rff-facet--collapsed .rff-facet__body { display: none; }

/* Options (checkbox) */
.rff-options { display: flex; flex-direction: column; gap: 2px; }

.rff-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 4px;
	border-radius: 4px;
	cursor: pointer;
	line-height: 1.3;
}
.rff-option:hover { background: #f5f7f9; }

.rff-option input { margin: 0; flex: 0 0 auto; }

.rff-option__label {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rff-option__count {
	flex: 0 0 auto;
	color: var(--rff-muted);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.rff-option--zero {
	opacity: 0.4;
}
.rff-option--zero input { cursor: not-allowed; }

/* Range */
.rff-range__inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}
.rff-range__inputs input {
	width: 100%;
	min-width: 0;
	padding: 7px 8px;
	border: 1px solid var(--rff-border);
	border-radius: 6px;
	font-size: 13px;
}
.rff-range__sep { color: var(--rff-muted); flex: 0 0 auto; }

/* Boolean */
.rff-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 2px;
	cursor: pointer;
}

.rff-empty,
.rff-noresults {
	color: var(--rff-muted);
	font-size: 13px;
	padding: 8px 2px;
}

.rff-noresults {
	padding: 40px 0;
	text-align: center;
	font-size: 15px;
}

/* Mobiel: sidebar boven de producten, full width */
@media (max-width: 849px) {
	.rff-layout { flex-direction: column; }
	.rff-sidebar {
		flex-basis: auto;
		max-width: none;
		width: 100%;
	}
	.rff-facet__body { max-height: 220px; }
}
