/*
 * Kist cookietoestemming.
 * Kleuren komen uit het kleurenbestand (--kc-*), met Frissekom-waarden als terugval.
 * Maten staan vast in px, zodat een grote root-fontsize of tekst-CSS van het thema niet doorwerkt.
 */
.kist-consent,
.kist-consent *,
.kist-consent *::before,
.kist-consent *::after {
	box-sizing: border-box;
	font-size: 14px !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	font-style: normal;
	font-stretch: normal;
	font-variant: normal;
	text-shadow: none;
}
.kist-consent {
	font-family: inherit;
	color: var(--kc-text, #042a2b);
}
.kist-consent [hidden],
.kist-consent[hidden],
.kist-consent__reopen[hidden] {
	display: none !important;
}
/* Dimlaag: alleen bij een modale laag. Ze vangt ook de klikken op. */
.kist-consent.is-modal::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(4, 42, 43, .35);
	z-index: 2147483640;
}
.kist-consent .kist-consent__banner,
.kist-consent .kist-consent__prefs {
	position: fixed;
	z-index: 2147483641;
	margin: 0;
	padding: 20px;
	font-family: inherit;
	font-weight: 400;
	background: var(--kc-bg, #ffffff);
	color: var(--kc-text, #042a2b);
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
}
.kist-consent.is-pos-center .kist-consent__banner,
.kist-consent .kist-consent__prefs {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: calc(100% - 32px);
	max-width: 480px;
}
.kist-consent .kist-consent__prefs {
	max-width: 560px;
}
.kist-consent.is-pos-bottom-left .kist-consent__banner {
	left: 16px;
	bottom: 16px;
	width: calc(100% - 32px);
	max-width: 420px;
}
.kist-consent.is-pos-bottom-right .kist-consent__banner {
	right: 16px;
	bottom: 16px;
	width: calc(100% - 32px);
	max-width: 420px;
}
.kist-consent.is-pos-bar .kist-consent__banner {
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 0;
	border-width: 1px 0 0;
}
.kist-consent .kist-consent__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 600;
	line-height: 1.3 !important;
	color: inherit;
}
.kist-consent .kist-consent__text,
.kist-consent .kist-consent__cat-text {
	margin: 0 0 12px;
	font-family: inherit;
	font-weight: 400;
}
.kist-consent .kist-consent__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 16px;
}
.kist-consent .kist-consent__link,
.kist-consent .kist-consent__links * {
	font-size: 13px !important;
	font-weight: 400;
	color: inherit;
	text-decoration: underline;
}
.kist-consent .kist-consent__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.kist-consent .kist-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
/* Weigeren (omlijnd) en accepteren (gevuld) zijn even groot; voorkeuren is de lichtste, een tekstlink. */
.kist-consent__btn.kist-consent__btn {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	min-width: 160px;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 600;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: center;
	text-decoration: none;
	color: var(--kc-button-text, #ffffff);
	background: var(--kc-button, #042a2b);
	border: 2px solid var(--kc-button, #042a2b);
	border-radius: 8px;
	cursor: pointer;
	box-shadow: none;
}
.kist-consent__btn.kist-consent__btn.is-fill {
	color: var(--kc-button-text, #ffffff);
	background: var(--kc-button, #042a2b);
}
.kist-consent__btn.kist-consent__btn.is-outline {
	color: var(--kc-button, #042a2b);
	background: transparent;
}
.kist-consent .kist-consent__btn.is-link {
	min-width: 0;
	margin-right: auto;
	padding: 10px 4px;
	font-weight: 400;
	color: var(--kc-text, #042a2b);
	background: transparent;
	border-color: transparent;
	text-decoration: underline;
}
.kist-consent__btn.kist-consent__btn:hover,
.kist-consent__btn.kist-consent__btn:focus,
.kist-consent__btn.kist-consent__btn:active {
	text-decoration: none;
	opacity: .9;
}
.kist-consent__btn.kist-consent__btn.is-fill:hover,
.kist-consent__btn.kist-consent__btn.is-fill:focus,
.kist-consent__btn.kist-consent__btn.is-fill:active {
	color: var(--kc-button-text, #ffffff);
	background: var(--kc-button, #042a2b);
}
.kist-consent__btn.kist-consent__btn.is-outline:hover,
.kist-consent__btn.kist-consent__btn.is-outline:focus,
.kist-consent__btn.kist-consent__btn.is-outline:active {
	color: var(--kc-button, #042a2b);
	background: transparent;
}
/*
 * Focus. De dialoog zelf krijgt alleen programmatische focus (voor schermlezers) en toont geen ring.
 * Knoppen, links, schakelaars en het icoon krijgen met het toetsenbord één eigen ring in de merkkleur;
 * de regels van het thema (outline, box-shadow) worden daarvoor overruled.
 */
.kist-consent :focus {
	outline: none !important;
	box-shadow: none !important;
}
.kist-consent .kist-consent__banner:focus,
.kist-consent .kist-consent__banner:focus-visible,
.kist-consent .kist-consent__prefs:focus,
.kist-consent .kist-consent__prefs:focus-visible,
.kist-consent .kist-consent__title:focus,
.kist-consent .kist-consent__title:focus-visible,
.kist-consent [tabindex="-1"]:focus,
.kist-consent [tabindex="-1"]:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
.kist-consent a:focus-visible,
.kist-consent button:focus-visible,
.kist-consent input:focus-visible,
.kist-consent summary:focus-visible,
.kist-consent .kist-consent__reopen:focus-visible,
.kist-consent-verklaring .kist-consent__btn:focus-visible,
.kist-consent-placeholder .kist-consent__btn:focus-visible {
	outline-style: solid !important;
	outline-width: 2px !important;
	outline-color: var(--kc-button, #042a2b) !important;
	outline-offset: 2px !important;
	box-shadow: none !important;
}
.kist-consent .kist-consent__cat {
	padding: 12px 0;
	border-top: 1px solid rgba(0, 0, 0, .12);
}
.kist-consent .kist-consent__cat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}
.kist-consent .kist-consent__cat-head input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--kc-button, #042a2b);
}
.kist-consent .kist-consent__cat-head label {
	font-weight: 600;
}
.kist-consent .kist-consent__always {
	font-weight: 400;
}
.kist-consent .kist-consent__details,
.kist-consent .kist-consent__details * {
	font-size: 13px !important;
}
.kist-consent .kist-consent__details summary {
	cursor: pointer;
}
.kist-consent__reopen {
	position: fixed;
	bottom: var(--kc-icon-offset, 16px);
	z-index: 2147483639;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--kc-text, #042a2b);
	background: var(--kc-bg, #ffffff);
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
	opacity: .85;
	cursor: pointer;
}
.kist-consent__reopen:hover,
.kist-consent__reopen:focus-visible {
	opacity: 1;
}
.kist-consent__reopen.is-left {
	left: var(--kc-icon-offset, 16px);
}
.kist-consent__reopen.is-right {
	right: var(--kc-icon-offset, 16px);
}
.kist-consent-placeholder .kist-consent__btn {
	flex: 0 0 auto;
}
.kist-consent-verklaring .kist-consent__btn {
	flex: 0 0 auto;
}
.kist-consent-tabel {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 16px;
}
.kist-consent-tabel th,
.kist-consent-tabel td {
	padding: 8px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(0, 0, 0, .15);
	overflow-wrap: anywhere;
}
@media (max-width: 600px) {
	.kist-consent-tabel thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.kist-consent-tabel tr {
		display: block;
		margin-bottom: 12px;
		border: 1px solid rgba(0, 0, 0, .15);
		border-radius: 6px;
	}
	.kist-consent-tabel td {
		display: block;
		border-bottom: 0;
	}
	.kist-consent-tabel td::before {
		content: attr(data-label) ": ";
		font-weight: 600;
	}
	.kist-consent .kist-consent__banner,
	.kist-consent .kist-consent__prefs {
		max-height: calc(100vh - 32px);
	}
	.kist-consent.is-pos-bottom-left .kist-consent__banner,
	.kist-consent.is-pos-bottom-right .kist-consent__banner {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
	}
	.kist-consent .kist-consent__actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.kist-consent .kist-consent__btn,
	.kist-consent .kist-consent__btn.is-link {
		width: 100%;
		margin-right: 0;
	}
}
@media (prefers-reduced-motion: no-preference) {
	.kist-consent__btn {
		transition: opacity .15s;
	}
}
