/*
 * pvdh-kern: basisopmaak van de cookiebanner en de externe media. Het thema kan alles overschrijven;
 * de kleur komt uit de config (--pvdh-kleur), lettertype en afronding erven of komen uit de variabelen hieronder.
 * Formulieren krijgen hier alleen de honeypot en de meldingen: de rest is aan het thema.
 */
:root {
	--pvdh-kleur: #1d2327;
	--pvdh-tekstkleur: #1d2327;
	--pvdh-afronding: 12px;
	--pvdh-knop-afronding: 8px;
}

.pvdh-form__melding[hidden] { display: none; }

/* ---------- Cookiebanner ---------- */
.pvdh-cookies { position: fixed; left: 24px; bottom: 24px; z-index: 9999; width: min(440px, calc(100vw - 48px)); font-family: inherit; color: var(--pvdh-tekstkleur); }
.pvdh-cookies[hidden] { display: none; }
.pvdh-cookies__kaart {
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 24px 24px 18px;
	border-radius: var(--pvdh-afronding);
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .3s ease, transform .3s ease;
}
.pvdh-cookies.is-open .pvdh-cookies__kaart { opacity: 1; transform: none; }
.pvdh-cookies__titel { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.pvdh-cookies__tekst, .pvdh-cookies__tekst p { margin: 0; font-size: 14px; line-height: 22px; }
.pvdh-cookies__voorkeuren { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e6e6e6; }
.pvdh-cookies__voorkeuren[hidden] { display: none; }
.pvdh-cookies__optie { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 21px; cursor: pointer; }
.pvdh-cookies__optie input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pvdh-kleur); }
.pvdh-cookies__optie strong { display: block; }
.pvdh-cookies__knoppen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pvdh-cookies__knop {
	flex: 1 1 auto;
	padding: 10px 18px;
	border: 1px solid var(--pvdh-kleur);
	border-radius: var(--pvdh-knop-afronding);
	background: var(--pvdh-kleur);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.pvdh-cookies__knop[hidden] { display: none; }
.pvdh-cookies__knop--rand { background: #fff; color: var(--pvdh-kleur); }
.pvdh-cookies__knop:focus-visible, .pvdh-cookies__link:focus-visible { outline: 2px solid var(--pvdh-kleur); outline-offset: 2px; }
.pvdh-cookies__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 14px 0 0; font-size: 13px; line-height: 20px; }
.pvdh-cookies__link { padding: 0; border: 0; background: none; color: #555; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (max-width: 767px) {
	.pvdh-cookies { left: 12px; right: 12px; bottom: 12px; width: auto; }
	.pvdh-cookies__kaart { padding: 20px 18px 16px; }
	.pvdh-cookies__knoppen .pvdh-cookies__knop { flex-basis: 100%; }
}

/* ---------- Externe media ---------- */
.pvdh-extern { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 260px; padding: 24px; border-radius: var(--pvdh-afronding); background: #f3f4f5; text-align: center; }
.pvdh-extern__tekst { max-width: 360px; margin: 0; font-size: 14px; line-height: 22px; }
.pvdh-extern__link { font-size: 13px; color: inherit; }
.pvdh-extern-frame { display: block; width: 100%; min-height: 260px; border: 0; border-radius: var(--pvdh-afronding); }

@media (prefers-reduced-motion: reduce) {
	.pvdh-cookies__kaart { transition: none; }
}
