/*
 * Cookiemelding in Energiemissie-huisstijl.
 * Overschrijft de standaardweergave van CookieYes (inline stijlen uit het dashboard, vandaar !important).
 * Uitgangspunten (AP-richtlijnen): compacte kaart rechtsonder, geen cookiewall, accepteren en
 * weigeren gelijkwaardig (zelfde vorm, kleur en grootte), voorkeuren op hetzelfde niveau bereikbaar.
 * Tijdelijk: wordt na de livegang vervangen door een eigen oplossing zonder trackingcookies.
 */

/* ---------- Melding: compacte kaart ---------- */
.cky-consent-container {
	left: auto !important;
	right: 24px !important;
	bottom: 24px !important;
	width: min(372px, calc(100vw - 32px)) !important;
	max-width: none !important;
	font-family: var(--wp--preset--font-family--poppins), sans-serif !important;
	z-index: 9990 !important;
}

.cky-consent-container:focus-visible {
	outline: none !important;
}

.cky-consent-container:focus-visible .cky-consent-bar {
	outline: 2px solid #0064FF !important;
	outline-offset: 2px;
}

.cky-consent-container .cky-consent-bar {
	background: rgba(255, 255, 255, 0.78) !important;
	-webkit-backdrop-filter: blur(28px);
	backdrop-filter: blur(28px);
	border: 1px solid #E7E7E7 !important;
	border-radius: 16px !important;
	box-shadow: 0 12px 32px rgba(11, 11, 11, 0.12), 0 2px 6px rgba(11, 11, 11, 0.06) !important;
	padding: 20px !important;
}

.cky-consent-container .cky-notice {
	display: block !important;
}

.cky-consent-container .cky-title {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: #0B0B0B !important;
}

.cky-consent-container .cky-title::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: url("img/beeldmerk-gradient.svg") center / contain no-repeat;
}

.cky-consent-container .cky-notice-group {
	display: block !important;
}

.cky-consent-container .cky-notice-des,
.cky-consent-container .cky-notice-des p {
	margin: 0 !important;
	font-family: inherit !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
	color: #616161 !important;
}

.cky-consent-container .cky-notice-des a,
.cky-consent-container .cky-notice-des a span {
	color: #0064FF !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	font-weight: 500 !important;
}

/* ---------- Knoppen: gelijkwaardig ---------- */
.cky-consent-container .cky-notice-btn-wrapper {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 8px !important;
	margin: 16px 0 0 !important;
	padding: 0 !important;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn,
.cky-modal .cky-btn {
	margin: 0 !important;
	min-height: 40px;
	padding: 8px 14px !important;
	border: 1.5px solid #0B0B0B !important;
	border-radius: 999px !important;
	background: #FFFFFF !important;
	color: #0B0B0B !important;
	font-family: var(--wp--preset--font-family--poppins), sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0 !important;
	opacity: 1 !important;
	transition: background-color 150ms ease, color 150ms ease;
}

.cky-consent-container .cky-notice-btn-wrapper .cky-btn:hover,
.cky-modal .cky-btn:hover {
	background: #0B0B0B !important;
	color: #FFFFFF !important;
}

.cky-consent-container .cky-btn:focus-visible,
.cky-modal .cky-btn:focus-visible,
.em-cky-pref:focus-visible,
.em-footer__cookies:focus-visible {
	outline: 2px solid #0064FF !important;
	outline-offset: 2px !important;
}

/* Voorkeuren: zelfde niveau, rustiger als tekstknop over de volle breedte. */
.cky-consent-container .em-cky-pref,
.cky-consent-container .cky-btn-customize {
	grid-column: 1 / -1;
	justify-self: center;
	min-height: 32px;
	margin: 0 !important;
	padding: 4px 8px !important;
	border: 0 !important;
	background: transparent !important;
	color: #0B0B0B !important;
	font-family: var(--wp--preset--font-family--poppins), sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.cky-consent-container .em-cky-pref:hover {
	color: #0064FF !important;
}

/* ---------- Voorkeurenvenster ---------- */
.cky-modal .cky-preference-center {
	border-radius: 16px !important;
	font-family: var(--wp--preset--font-family--poppins), sans-serif !important;
	color: #0B0B0B !important;
}

.cky-modal .cky-preference-title,
.cky-modal .cky-accordion-btn {
	font-family: inherit !important;
	font-weight: 600 !important;
	color: #0B0B0B !important;
}

.cky-modal .cky-preference-content-wrapper,
.cky-modal .cky-preference-content-wrapper p,
.cky-modal .cky-accordion-header-des,
.cky-modal .cky-accordion-header-des p {
	font-family: inherit !important;
	font-size: 13px !important;
	line-height: 1.55 !important;
	color: #616161 !important;
}

.cky-modal .cky-show-desc-btn,
.cky-modal a {
	color: #0064FF !important;
}

.cky-modal .cky-switch input[type="checkbox"]:checked {
	background: #0064FF !important;
}

.cky-modal .cky-always-active {
	color: #008124 !important;
	font-weight: 600 !important;
}

.cky-modal .cky-prefrence-btn-wrapper {
	gap: 8px;
}

/* Geen "Powered by"-regel en geen zwevend cookie-icoon: de footerlink neemt die rol over. */
.cky-modal .cky-footer-wrapper > div:not(.cky-prefrence-btn-wrapper):not(.cky-footer-shadow),
.cky-btn-revisit-wrapper {
	display: none !important;
}

/* Overlay bij het voorkeurenvenster lichter: geen zware waas over de site. */
.cky-overlay {
	background: rgba(11, 11, 11, 0.35) !important;
}

/* ---------- Footerlink "Cookie-instellingen" ---------- */
.em-footer__cookies {
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	color: #616161;
	cursor: pointer;
	transition: color 200ms ease;
}

.em-footer__cookies:hover {
	color: #0064FF;
}

/* ---------- Mobiel: smalle balk onderin ---------- */
/* CookieYes zet op mobiel een eigen volgorde en inspringing: terugzetten naar onze opbouw. */
.cky-consent-container .cky-notice-btn-wrapper > * {
	order: 0 !important;
}

.cky-consent-container .cky-title,
.cky-consent-container .cky-notice-des {
	padding: 0 !important;
}

@media (max-width: 600px) {
	.cky-consent-container {
		left: 12px !important;
		right: 12px !important;
		bottom: 12px !important;
		width: auto !important;
	}

	.cky-consent-container .cky-consent-bar {
		padding: 16px !important;
	}

	.cky-consent-container .cky-notice-btn-wrapper .cky-btn {
		padding: 8px 10px !important;
		white-space: nowrap;
	}
}

@media (max-width: 340px) {
	.cky-consent-container .cky-notice-btn-wrapper {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cky-consent-container,
	.cky-consent-container .cky-btn {
		transition: none !important;
		animation: none !important;
	}
}
