/*
 * Cookiebanner. Vast op het scherm, dus geen layoutverschuiving.
 */

.rodun-consent,
.rodun-consent *,
.rodun-consent *::before,
.rodun-consent *::after {
	box-sizing: border-box;
}

.rodun-consent {
	position: relative;
	z-index: 2147483000;
	--rodun-consent-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
	--rodun-consent-fg: var(--rodun-primary, #0f1e5c);
	--rodun-consent-text: var(--rodun-fg, #0f172a);
	--rodun-consent-muted: var(--rodun-muted, #64748b);
	--rodun-consent-border: var(--rodun-border, #e5e7eb);
	--rodun-consent-soft: var(--rodun-bg-soft, #f5f5f5);
	--rodun-consent-accent: var(--rodun-accent, #ffbe00);
}

html.rodun-consent-open,
html.rodun-consent-open body {
	overflow: hidden;
}

html.rodun-consent-open body:not(.rodun-brochure-modal-open):not(.rodun-pd-modal-open)::before {
	content: "";
	position: fixed;
	z-index: 2147482999;
	inset: 0;
	background: rgb(15 30 92 / 0.62);
}

body.rodun-brochure-modal-open .rodun-consent,
body.rodun-pd-modal-open .rodun-consent {
	display: none;
}

.rodun-consent__panel:not([hidden]) {
	position: fixed;
	z-index: 9991;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: min(600px, calc(100vw - 2rem));
	max-width: 600px;
	height: fit-content;
	max-height: min(44rem, calc(100dvh - 2rem));
	margin: auto;
	padding: 1.25rem 1.5rem;
	overflow: hidden;
	overscroll-behavior: contain;
	border: 1px solid var(--rodun-consent-border);
	border-radius: 15px;
	background: #fff;
	color: var(--rodun-consent-text);
	box-shadow: 0 24px 48px -12px rgb(15 30 92 / 0.28);
	font-family: inherit;
}

.rodun-consent__panel:focus {
	outline: none;
}

.rodun-consent__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.rodun-consent__body {
	flex: 0 1 auto;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
}

.rodun-consent__intro {
	display: grid;
	gap: 0.75rem;
}

.rodun-consent__text {
	margin: 0;
	color: var(--rodun-consent-muted);
	font-size: 0.9375rem;
}

.rodun-consent__policy {
	justify-self: start;
	width: auto;
	border: 0;
	color: var(--rodun-consent-fg);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.rodun-consent__policy:hover {
	color: var(--rodun-consent-text);
}

.rodun-consent__choices {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--rodun-consent-border);
}

.rodun-consent__choices[hidden] {
	display: none;
}

.rodun-consent__cat {
	position: relative;
	border: 1px solid var(--rodun-consent-border);
	border-radius: 5px;
}

.rodun-consent__details summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.65rem 4rem 0.65rem 0.85rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}

.rodun-consent__details summary::-webkit-details-marker {
	display: none;
}

.rodun-consent__details summary::marker {
	content: "";
}

.rodun-consent__details summary svg {
	flex: none;
	width: 1rem;
	height: 1rem;
	transition: transform 0.15s ease;
}

.rodun-consent__details[open] summary svg {
	transform: rotate(180deg);
}

.rodun-consent__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding-inline: 0.35rem;
	border-radius: 999px;
	background: var(--rodun-consent-soft);
	color: var(--rodun-consent-muted);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.rodun-consent__details p,
.rodun-consent__cookie-meta,
.rodun-consent__empty,
.rodun-consent__provider {
	margin: 0;
	padding: 0 0.85rem 0.75rem 2.35rem;
	color: var(--rodun-consent-muted);
	font-size: 0.8125rem;
}

.rodun-consent__cookies {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0 0.85rem 0.85rem;
	list-style: none;
}

.rodun-consent__cookies li {
	display: grid;
	gap: 0.2rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--rodun-consent-border);
	border-radius: 8px;
	background: var(--rodun-consent-soft);
}

.rodun-consent__details .rodun-consent__cookies p {
	margin: 0;
	padding: 0;
}

.rodun-consent__cookie-name {
	color: var(--rodun-consent-text);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
}

.rodun-consent__cookie-name code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.75rem;
}

.rodun-consent__cookie-meta {
	color: var(--rodun-consent-muted);
	font-size: 0.75rem;
	line-height: 1.3;
}

.rodun-consent__cookies li > p:last-child {
	color: var(--rodun-consent-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.rodun-consent__provider a {
	color: var(--rodun-consent-fg);
	font-weight: 700;
}

.rodun-consent__provider a:hover {
	color: var(--rodun-consent-text);
}

.rodun-consent__switch {
	position: absolute;
	top: 0.75rem;
	right: 0.85rem;
	width: 2.75rem;
	height: 1.5rem;
}

.rodun-consent__switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.rodun-consent__switch input:disabled {
	cursor: not-allowed;
}

.rodun-consent__switch span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #d8dde3;
}

.rodun-consent__switch span::after {
	content: "";
	position: absolute;
	top: 0.175rem;
	left: 0.175rem;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgb(15 30 92 / 0.25);
	transition: transform 0.15s ease;
}

.rodun-consent__switch input:checked + span {
	background: var(--rodun-consent-fg);
}

.rodun-consent__switch input:checked + span::after {
	transform: translateX(1.25rem);
}

.rodun-consent__switch input:disabled + span {
	opacity: 0.55;
}

.rodun-consent__switch input:focus-visible + span {
	outline: 3px solid var(--rodun-consent-accent);
	outline-offset: 2px;
}

.rodun-consent__actions {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.25rem;
}

.rodun-consent__btn {
	flex: 1 1 0;
	min-width: 0;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--rodun-consent-fg);
	border-radius: 5px;
	background: #fff;
	color: var(--rodun-consent-fg);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	touch-action: manipulation;
	appearance: none;
}

.rodun-consent__btn:hover {
	background: var(--rodun-consent-soft);
}

.rodun-consent__btn:focus-visible {
	outline: 3px solid var(--rodun-consent-accent);
	outline-offset: 2px;
}

.rodun-consent__allow {
	flex: 1 1 100%;
	border-color: var(--rodun-consent-fg);
	background: var(--rodun-consent-fg);
	color: #fff;
}

.rodun-consent__allow:hover {
	border-color: #0a1644;
	background: #0a1644;
	color: #fff;
}

.rodun-consent__fab {
	position: fixed;
	z-index: 9990;
	bottom: var(--rodun-consent-bottom);
	left: max(0.75rem, env(safe-area-inset-left, 0px));
	display: none;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--rodun-consent-border);
	border-radius: 50%;
	background: #fff;
	color: var(--rodun-consent-fg);
	box-shadow: 0 8px 24px -12px rgb(15 30 92 / 0.45);
	cursor: pointer;
	touch-action: manipulation;
	appearance: none;
}

.rodun-consent__fab .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.rodun-consent__fab svg {
	display: block;
	width: 22px;
	height: 22px;
}

html.rodun-consent-known .rodun-consent__fab {
	display: inline-flex;
}

html.rodun-consent-pinme .rodun-consent {
	display: none;
}

html.rodun-consent-open .rodun-consent__fab {
	display: none;
}

.rodun-consent__fab:hover,
.rodun-consent__fab:focus-visible {
	color: var(--rodun-consent-fg);
	border-color: var(--rodun-consent-accent);
}

.rodun-consent__fab:focus-visible {
	outline: 3px solid var(--rodun-consent-accent);
	outline-offset: 2px;
}

@media (min-width: 64em) {
	.rodun-consent {
		--rodun-consent-bottom: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rodun-consent__switch span::after,
	.rodun-consent__details summary svg {
		transition: none;
	}
}

@media print {
	.rodun-consent {
		display: none;
	}
}
