/*
 * Stijl voor de cookiemelding van ElektroSchema. Zelfde kleuren en lettertype als de
 * rest van de site. Staat standaard verborgen, consent.js maakt het zichtbaar wanneer
 * nodig (zie de "esh-cc-visible" klasse hieronder).
 *
 * Let op: alle kleurregels voor de knoppen hieronder staan met "#esh-cc" ervoor (in
 * plaats van gewoon ".esh-cc-btn-primary"). Dat is expres: je thema heeft zelf een
 * algemene stijlregel voor alle knoppen met type="button", die qua "zwaarte" precies
 * gelijk staat aan een kale klasse-regel, en dan wint de regel die later wordt geladen,
 * niet per se de onze. Door er "#esh-cc" voor te zetten telt onze regel zwaarder, en
 * winnen onze eigen kleuren altijd, ongeacht in welke volgorde de stijlbestanden laden.
 */

.esh-cc {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.45);
	font-family: 'Montserrat', sans-serif;
	box-sizing: border-box;
}

.esh-cc.esh-cc-visible {
	display: flex;
}

#esh-cc .esh-cc-card {
	background: #ffffff;
	border-radius: 16px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px 28px 24px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
	box-sizing: border-box;
}

#esh-cc .esh-cc-card h2 {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	text-align: center;
}

#esh-cc .esh-cc-text {
	margin: 0 0 20px;
	color: #5f6b7a;
	font-size: 14.5px;
	line-height: 1.5;
}

#esh-cc .esh-cc-actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

#esh-cc .esh-cc-btn {
	flex: 1 1 0;
	border-radius: 7px;
	padding: 12px 16px;
	font-size: 14.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	border: 1px solid transparent;
}

#esh-cc .esh-cc-btn-primary {
	background-color: #38b1ed;
	border-color: #38b1ed;
	color: #ffffff;
}

#esh-cc .esh-cc-btn-primary:hover {
	background-color: #1f8fc7;
	border-color: #1f8fc7;
	color: #ffffff;
}

#esh-cc .esh-cc-btn-outline {
	background-color: #ffffff;
	border-color: #e7e3d8;
	color: #0f172a;
}

#esh-cc .esh-cc-btn-outline:hover {
	border-color: #38b1ed;
	color: #38b1ed;
}

#esh-cc .esh-cc-category {
	border-top: 1px solid #e7e3d8;
	padding: 14px 0;
}

#esh-cc .esh-cc-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	font-size: 15px;
	color: #0f172a;
	margin-bottom: 6px;
}

#esh-cc .esh-cc-always-on {
	font-size: 12.5px;
	font-weight: 700;
	color: #1f9d55;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

#esh-cc .esh-cc-category-desc {
	margin: 0;
	color: #5f6b7a;
	font-size: 13.5px;
	line-height: 1.5;
}

/* Aan/uit-schakelaar voor Statistieken en Marketing */
#esh-cc .esh-cc-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 23px;
	flex: 0 0 auto;
}

#esh-cc .esh-cc-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

#esh-cc .esh-cc-switch-track {
	position: absolute;
	inset: 0;
	background-color: #d7d2c4;
	border-radius: 999px;
	transition: background-color 0.15s ease;
	cursor: pointer;
}

#esh-cc .esh-cc-switch-track::before {
	content: "";
	position: absolute;
	width: 17px;
	height: 17px;
	left: 3px;
	top: 3px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.15s ease;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
}

#esh-cc .esh-cc-switch input:checked + .esh-cc-switch-track {
	background-color: #38b1ed;
}

#esh-cc .esh-cc-switch input:checked + .esh-cc-switch-track::before {
	transform: translateX(17px);
}

@media (max-width: 520px) {
	#esh-cc .esh-cc-card {
		padding: 22px 20px 18px;
	}

	#esh-cc .esh-cc-actions {
		flex-direction: column;
	}
}
