/* ==========================================================================
   COOKIE CONSENT — banner (inc/consent.php) and blocked embeds
   ========================================================================== */

/* ---------- Banner ---------- */
.wende-consent {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9999;
	width: calc(100% - 48px);
	max-width: 440px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 24px;
	background: var(--color-bg);
	border: 1px solid rgba(106, 111, 73, 0.18);
	border-radius: var(--radius-lg);
	box-shadow: 0 12px 32px rgba(66, 41, 18, 0.16);
	font-family: var(--font-sans);
	color: var(--color-text-body);
}
.wende-consent[hidden] {
	display: none;
}
.wende-consent__title {
	margin: 0 0 8px;
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--color-olive);
}
.wende-consent__text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
}
.wende-consent__text a {
	color: var(--color-olive-dark);
	text-decoration: underline;
}

/* Settings panel */
.wende-consent__panel {
	margin: 0 0 16px;
	border-top: 1px solid rgba(106, 111, 73, 0.18);
}
.wende-consent__panel[hidden] {
	display: none;
}
.wende-consent__option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(106, 111, 73, 0.18);
}
.wende-consent__option input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--color-olive-dark);
}
.wende-consent__option label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
}
.wende-consent__option strong {
	font-size: 14px;
	color: var(--color-text);
}

/* Actions: accept and reject deliberately look the same (no nudging). */
.wende-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.wende-consent__btn {
	flex: 1 1 0;
	min-width: 0;
	padding: 12px 16px;
	border: 1px solid var(--color-olive-dark);
	border-radius: var(--radius-md);
	background: var(--color-olive-dark);
	color: var(--color-white);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.wende-consent__btn:hover {
	opacity: 0.9;
}
.wende-consent__save,
.wende-consent__link {
	flex-basis: 100%;
	text-align: left;
}
.wende-consent__save {
	text-align: center;
}
.wende-consent__btn[hidden],
.wende-consent__link[hidden] {
	display: none;
}
.wende-consent__link,
.wende-consent-open {
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--color-olive-dark);
	font-family: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.wende-consent__btn:focus-visible,
.wende-consent__link:focus-visible,
.wende-consent-open:focus-visible,
.wende-consent__option input:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Footer "Cookie-instellingen" link */
.site-footer .wende-consent-open {
	padding: 0;
	margin-top: 8px;
	font-size: 13px;
	color: inherit;
	opacity: 0.8;
}

/* ---------- Blocked embeds (Google Maps) ---------- */
.wende-consent-embed {
	position: absolute;
	inset: 0;
}
.wende-consent-embed__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 12px;
	padding: 32px 8% 32px 55%;
	background:
		repeating-linear-gradient(45deg, rgba(106, 111, 73, 0.05) 0 12px, transparent 12px 24px),
		var(--color-bg-alt);
	font-family: var(--font-sans);
}
.wende-consent-embed__title {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 20px;
	color: var(--color-olive);
}
.wende-consent-embed__text {
	margin: 0;
	max-width: 340px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--color-text-body);
}
.wende-consent-embed__external {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-olive-dark);
	text-decoration: underline;
}

@media (max-width: 900px) {
	/* The address card covers the top of the map on small screens. */
	.wende-consent-embed__placeholder {
		justify-content: flex-end;
		padding: 16px;
	}
}

@media (max-width: 600px) {
	.wende-consent {
		left: 12px;
		bottom: 12px;
		width: calc(100% - 24px);
		padding: 20px;
	}
}
