/* Eigen cookiebanner (templates/site/deel/cookiebanner.php). Kaart linksonder (de AI-assistent zit rechts),
   op mobiel over de volle breedte. Weigeren en accepteren zien er bewust hetzelfde uit. */
.ckb {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 10050;
	width: min(440px, calc(100vw - 40px));
	padding: 20px 22px 18px;
	background: #fff;
	color: #1e293b;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
	font-size: 14.5px;
	line-height: 1.55;
}
.ckb[hidden] { display: none; }
.ckb-titel { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.ckb-tekst { margin: 0 0 14px; color: #475569; }
.ckb a, .ckb-dialoog a { color: #1d65af; text-decoration: underline; }
.ckb-knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
.ckb-knop {
	flex: 1 1 auto;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid #1d65af;
	border-radius: 9px;
	background: #1d65af;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.ckb-knop:hover { background: #17548f; border-color: #17548f; }
.ckb-knop[data-ckb="instellingen"], .ckb-knop[data-ckb="opslaan"] { background: #fff; color: #1d65af; }
.ckb-knop[data-ckb="instellingen"]:hover, .ckb-knop[data-ckb="opslaan"]:hover { background: #eef4fb; }
.ckb-knop:focus-visible, .ckb-sluit:focus-visible, .ckb-schakel:focus-visible, .ckb summary:focus-visible,
.ckb-dialoog summary:focus-visible, .wok-footer-ckb:focus-visible {
	outline: 3px solid #1062fe;
	outline-offset: 2px;
}

.ckb-dialoog {
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #1e293b;
	box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
	font-size: 14.5px;
	line-height: 1.55;
}
.ckb-dialoog::backdrop { background: rgba(15, 23, 42, .45); }
.ckb-d-in { padding: 22px 24px 20px; }
.ckb-d-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ckb-d-kop h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.ckb-sluit {
	flex: none;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #475569;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.ckb-sluit:hover { background: #f1f5f9; }
.ckb-d-intro { margin: 0 0 14px; color: #475569; }
.ckb-cat { padding: 14px 0; border-top: 1px solid #e2e8f0; }
.ckb-cat-kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ckb-cat h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.ckb-cat h3 label { cursor: pointer; }
.ckb-cat p { margin: 4px 0 0; color: #475569; }
.ckb-cat details { margin-top: 6px; }
.ckb-cat summary { cursor: pointer; color: #1d65af; font-weight: 600; }
.ckb-cat ul { margin: 6px 0 0; padding-left: 18px; color: #475569; }
.ckb-cat code, .ckb-id code { font-size: 13px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.ckb-altijd { font-size: 13px; font-weight: 600; color: #047857; }

/* Schakelaar: een echte checkbox (role=switch), alleen anders getekend. */
.ckb-schakel {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	position: relative;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 13px;
	background: #64748b;
	cursor: pointer;
	transition: background .15s;
}
.ckb-schakel::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s;
}
.ckb-schakel:checked { background: #1d65af; }
.ckb-schakel:checked::after { transform: translateX(20px); }
.ckb-id { margin: 4px 0 14px; font-size: 13px; color: #64748b; overflow-wrap: anywhere; }
.ckb-dialoog .ckb-knoppen { padding-top: 14px; border-top: 1px solid #e2e8f0; }

.ckb-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wok-footer-ckb { padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.wok-footer-ckb:hover { text-decoration: underline; }

@media (max-width: 540px) {
	.ckb { left: 0; right: 0; bottom: 0; width: auto; border-radius: 14px 14px 0 0; padding: 18px 16px 16px; }
	.ckb-knop { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ckb-schakel, .ckb-schakel::after { transition: none; }
}
