/**
 * NB Cookiebar — stijl afgestemd op natuurbazen.nl
 *
 * Alles is bewust op #nbcb / #nbcb-revoke gezet. Het thema (Rey) laadt zijn
 * CSS ná die van plugins en heeft eigen regels voor h2 en button; met een
 * id-selector winnen deze regels zonder dat er !important aan te pas komt.
 */

#nbcb {
	--nbcb-ink: #1a1a1a;
	--nbcb-muted: #6b6b6b;
	--nbcb-bg: #ffffff;
	--nbcb-border: #ececec;
	--nbcb-rule: #f0f0f0;

	position: fixed;
	z-index: 999999;
	inset-inline-start: 24px;
	inset-block-end: 24px;
	width: min(400px, calc(100vw - 32px));
	margin: 0;
	padding: 0;
	color: var(--nbcb-ink);
	text-align: start;
}

#nbcb[hidden] {
	display: none !important;
}

#nbcb *,
#nbcb *::before,
#nbcb *::after {
	box-sizing: border-box;
}

#nbcb.nbcb--bottom-right {
	inset-inline-start: auto;
	inset-inline-end: 24px;
}

#nbcb.nbcb--bottom-center {
	inset-inline-start: 50%;
	transform: translateX(-50%);
}

#nbcb .nbcb__panel {
	background: var(--nbcb-bg);
	border: 1px solid var(--nbcb-border);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13), 0 2px 6px rgba(0, 0, 0, 0.05);
	padding: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* ------------------------------------------------------------------ tekst */

#nbcb .nbcb__title {
	margin: 0 0 10px;
	padding: 0;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--nbcb-ink);
	text-transform: none;
}

#nbcb .nbcb__title::after,
#nbcb .nbcb__title::before {
	content: none;
}

#nbcb .nbcb__text {
	margin: 0 0 20px;
	padding: 0;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--nbcb-muted);
}

#nbcb .nbcb__link {
	color: var(--nbcb-ink);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

#nbcb .nbcb__link:hover {
	text-decoration-thickness: 2px;
}

/* ------------------------------------------------------------- voorkeuren */

#nbcb .nbcb__prefs {
	margin: 0 0 20px;
	padding: 4px 0 0;
	border-top: 1px solid var(--nbcb-rule);
}

#nbcb .nbcb__prefs[hidden] {
	display: none !important;
}

#nbcb .nbcb__cat {
	padding: 14px 0;
	border-bottom: 1px solid var(--nbcb-rule);
}

#nbcb .nbcb__cat:last-child {
	border-bottom: 0;
	padding-bottom: 4px;
}

#nbcb .nbcb__cat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--nbcb-ink);
	cursor: pointer;
}

#nbcb .nbcb__cat-head input {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--nbcb-ink);
	cursor: pointer;
}

#nbcb .nbcb__cat-head input:disabled {
	cursor: default;
	opacity: 0.55;
}

#nbcb .nbcb__cat-label {
	flex: 1 1 auto;
}

#nbcb .nbcb__cat-always {
	flex: 0 0 auto;
	font-size: 11.5px;
	font-weight: 400;
	color: #9a9a9a;
}

#nbcb .nbcb__cat-desc {
	margin: 6px 0 0 27px;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--nbcb-muted);
}

/* ---------------------------------------------------------------- knoppen */

#nbcb .nbcb__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

#nbcb .nbcb__row {
	display: flex;
	gap: 10px;
}

#nbcb .nbcb__btn {
	flex: 1 1 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 11px 14px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	border: 1px solid transparent;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#nbcb .nbcb__btn[hidden] {
	display: none !important;
}

#nbcb .nbcb__btn:focus-visible {
	outline: 2px solid var(--nbcb-ink);
	outline-offset: 2px;
}

/* Accepteren en weigeren zijn bewust even groot en even opvallend:
   dat is een eis van de Autoriteit Persoonsgegevens. */
#nbcb .nbcb__btn--primary {
	background: var(--nbcb-ink);
	border-color: var(--nbcb-ink);
	color: #ffffff;
}

#nbcb .nbcb__btn--primary:hover {
	background: #000000;
	border-color: #000000;
	color: #ffffff;
}

#nbcb .nbcb__btn--secondary {
	background: var(--nbcb-bg);
	border-color: var(--nbcb-ink);
	color: var(--nbcb-ink);
}

#nbcb .nbcb__btn--secondary:hover {
	background: #f5f5f5;
	border-color: #000000;
	color: var(--nbcb-ink);
}

#nbcb .nbcb__btn--text {
	flex: 0 0 auto;
	align-self: flex-start;
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--nbcb-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

#nbcb .nbcb__btn--text:hover {
	background: none;
	color: var(--nbcb-ink);
}

/* ------------------------------------------------ knopje voorkeuren wijzigen */

#nbcb-revoke {
	position: fixed;
	z-index: 999998;
	inset-inline-start: 24px;
	inset-block-end: 24px;
	display: inline-flex;
	align-items: center;
	min-height: 0;
	margin: 0;
	padding: 8px 13px;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	color: #6b6b6b;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(6px);
	border: 1px solid #e6e6e6;
	border-radius: 999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.15s ease, color 0.15s ease;
}

#nbcb-revoke[hidden] {
	display: none !important;
}

#nbcb-revoke:hover {
	opacity: 1;
	color: #1a1a1a;
	background: #ffffff;
}

#nbcb-revoke.nbcb-revoke--bottom-right {
	inset-inline-start: auto;
	inset-inline-end: 24px;
}

/* Knop uit de shortcode [nb_cookievoorkeuren] — volgt de tekst eromheen. */
.nbcb-inline-link {
	display: inline;
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 600px) {
	#nbcb {
		inset-inline: 12px;
		inset-block-end: 12px;
		width: auto;
		transform: none;
	}

	#nbcb .nbcb__panel {
		padding: 20px;
		max-height: calc(100vh - 24px);
	}

	#nbcb .nbcb__row {
		flex-direction: column;
	}

	#nbcb-revoke {
		inset-block-end: 12px;
		inset-inline-start: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#nbcb .nbcb__btn,
	#nbcb-revoke {
		transition: none;
	}
}

/* ---------------------------------------------------------------------------
 * Opmaak voor het cookiebeleid, de privacyverklaring en de disclaimer.
 * Die documenten zijn ooit door Complianz gegenereerd; deze regels zorgen dat
 * ze leesbaar blijven nu die plugin niet meer actief is.
 * ------------------------------------------------------------------------- */

.cmplz-document {
	max-width: 100%;
}

.cmplz-document h2,
.cmplz-document h3,
.cmplz-document h4 {
	margin: 1.6em 0 0.5em;
	line-height: 1.3;
}

.cmplz-document p,
.cmplz-document li {
	line-height: 1.7;
}

.cmplz-document ul,
.cmplz-document ol {
	margin: 0 0 1.2em 1.4em;
}

.cmplz-document table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: 0.95em;
}

.cmplz-document th,
.cmplz-document td {
	padding: 8px 10px;
	border: 1px solid #e6e6e6;
	text-align: start;
	vertical-align: top;
}

.cmplz-document th {
	background: #f9f9f9;
	font-weight: 600;
}

/* Tabellen met veel kolommen mogen op mobiel horizontaal scrollen. */
.cmplz-document .cmplz-service-table,
.cmplz-document .cmplz-cookies-overview {
	display: block;
	overflow-x: auto;
}
