/* Consent Pilot – frontend */
.cpil-banner, .cpil-modal, .cpil-floating, .cpil-placeholder {
	--cpil-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cpil-text, #1c1e21);
	box-sizing: border-box;
}
.cpil-banner *, .cpil-modal *, .cpil-placeholder * { box-sizing: border-box; }

.cpil-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--cpil-bg, #fff);
	box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
	border-radius: var(--cpil-radius);
}
.cpil-pos-bottom { left: 16px; right: 16px; bottom: 16px; max-width: 1100px; margin: 0 auto; }
.cpil-pos-bottom-left { left: 16px; bottom: 16px; max-width: 420px; }
.cpil-overlay > .cpil-pos-center { position: relative; max-width: 560px; width: 100%; }
.cpil-inner { padding: 20px 24px; }

.cpil-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; color: inherit; }
.cpil-body { margin: 0 0 12px; }
.cpil-body a, .cpil-links a, .cpil-services a { color: var(--cpil-primary, #1f6feb); text-decoration: underline; }
.cpil-links { margin: 0 0 12px; font-size: 13px; }

.cpil-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cpil-btn {
	appearance: none;
	border: 2px solid var(--cpil-primary, #1f6feb);
	background: var(--cpil-primary, #1f6feb);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
	flex: 1 1 auto;
}
/* Accept and reject have equal visual weight (EDPB / DSK guidance). */
.cpil-btn-secondary { background: transparent; color: var(--cpil-primary, #1f6feb); }
.cpil-btn:focus-visible, .cpil-close:focus-visible, .cpil-floating:focus-visible, .cpil-switch:focus-visible {
	outline: 3px solid var(--cpil-primary, #1f6feb);
	outline-offset: 2px;
}
@media (min-width: 720px) { .cpil-pos-bottom .cpil-btn { flex: 0 0 auto; } }

.cpil-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: rgba(0, 0, 0, .45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.cpil-modal {
	position: relative;
	background: var(--cpil-bg, #fff);
	border-radius: var(--cpil-radius);
	max-width: 640px;
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
}
.cpil-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}
.cpil-cat { border-top: 1px solid rgba(0, 0, 0, .1); padding: 12px 0; }
.cpil-cat p { margin: 4px 0 0; font-size: 14px; opacity: .85; }
.cpil-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.cpil-always { font-size: 13px; font-weight: 600; color: var(--cpil-primary, #1f6feb); }
.cpil-switch {
	appearance: none;
	width: 44px;
	height: 24px;
	border-radius: 24px;
	background: #c4c7cc;
	position: relative;
	cursor: pointer;
	flex: 0 0 auto;
	margin: 0;
	transition: background .15s;
}
.cpil-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s;
}
.cpil-switch:checked { background: var(--cpil-primary, #1f6feb); }
.cpil-switch:checked::after { transform: translateX(20px); }
.cpil-services { margin-top: 6px; font-size: 13px; }
.cpil-services summary { cursor: pointer; }
.cpil-services ul { margin: 6px 0 0; padding-left: 18px; }
.cpil-services li { margin-bottom: 6px; }

.cpil-floating {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--cpil-bg, #fff);
	color: var(--cpil-primary, #1f6feb);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cpil-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 200px;
	background: #f2f3f5;
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	color: #1c1e21;
}
.cpil-placeholder + iframe[data-cp-src] { display: none; }
.cpil-ph-inner p { margin: 0 0 12px; font-size: 14px; }

.cpil-declaration table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.cpil-declaration th, .cpil-declaration td { text-align: left; border-bottom: 1px solid rgba(0, 0, 0, .1); padding: 6px 8px; vertical-align: top; }

/* Compact bar: a slim strip at the bottom edge. */
.cpil-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cpil-pos-bar { left: 0; right: 0; bottom: 0; border-radius: 0; box-shadow: 0 -1px 0 rgba(0, 0, 0, .08), 0 -6px 20px rgba(0, 0, 0, .06); font-size: 13.5px; }
.cpil-pos-bar .cpil-inner { display: flex; align-items: center; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 10px 16px; }
.cpil-pos-bar .cpil-body { flex: 1 1 auto; margin: 0; line-height: 1.45; }
.cpil-pos-bar .cpil-body p { margin: 0; display: inline; }
.cpil-links-inline { white-space: nowrap; }
.cpil-links-inline a { color: var(--cpil-primary, #1f6feb); text-decoration: underline; }
.cpil-pos-bar .cpil-actions { flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 8px; }
.cpil-pos-bar .cpil-btn { flex: 0 0 auto; min-height: 38px; padding: 6px 14px; border-width: 1.5px; border-radius: 6px; font-size: 13.5px; }
.cpil-btn-link { background: transparent; border-color: transparent; color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; padding-inline: 6px; }
@media (max-width: 719px) {
	.cpil-pos-bar .cpil-inner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
	.cpil-pos-bar .cpil-body { flex-basis: 100%; }
	.cpil-pos-bar .cpil-actions { width: 100%; }
	.cpil-pos-bar .cpil-btn { flex: 1 1 0; min-height: 40px; padding-inline: 8px; }
	.cpil-pos-bar .cpil-btn-link { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) { .cpil-switch, .cpil-switch::after { transition: none; } }

/* Regions */
.cpil-gpc { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--cpil-primary, #1f6feb); background: rgba(31, 111, 235, .08); font-size: 14px; }
.cpil-dns[hidden] { display: none !important; }
