/* Cookie Consent – the notice. Colours come from Settings → Cookie consent as CSS variables. */
.pcc {
	--pcc-button: #1f6feb;
	--pcc-accent: #1f6feb;
	--pcc-tint: #eef4fb;
	--pcc-stripe-1: #1f6feb;
	--pcc-stripe-2: #1f6feb;
}
.pcc-b1 { fill: var(--pcc-stripe-1); }
.pcc-b2 { fill: var(--pcc-stripe-2); }
.pcc-tick { stroke: var(--pcc-accent); }
.pcc {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 9999; /* Below the guided-tour overlay. */
	box-sizing: border-box;
	width: 392px;
	max-width: calc(100vw - 32px);
	padding: 24px 24px 20px;
	border: 1px solid #e3e8ee;
	border-radius: 18px;
	background: #ffffff;
	color: #444444;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.55;
	box-shadow: 0 18px 48px rgba(17, 24, 39, .16);
	max-height: calc(100vh - 48px);
	overflow-x: hidden;
	overflow-y: auto; /* 1.0.1: a short window scrolls the card instead of cutting off its top. */
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .26s ease, transform .26s ease;
}
.pcc::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, var(--pcc-stripe-1) 0%, var(--pcc-stripe-1) 55%, var(--pcc-stripe-2) 55%, var(--pcc-stripe-2) 100%);
}
.pcc.is-in { opacity: 1; transform: none; }
.pcc[hidden] { display: none; }
.pcc-top { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.pcc-ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--pcc-tint);
}
.pcc-k {
	margin: 0 0 2px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pcc-button);
}
.pcc-t {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	color: #222222;
}
.pcc-b { margin: 0 0 16px; }
.pcc-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.pcc-acts button {
	flex: 1 1 100%; /* Stacked: "Reject non-essential" stays on one line. */
	min-height: 46px;
	white-space: nowrap;
	margin: 0;
	padding: 10px 16px;
	border-radius: 10px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease, border-color .15s ease;
}
.pcc-yes { border: 1px solid var(--pcc-button); background: var(--pcc-button); color: #ffffff; }
.pcc-yes:hover { filter: brightness(.9); }
.pcc-no { border: 1px solid #c9d3de; background: #ffffff; color: #222222; }
.pcc-no:hover { border-color: var(--pcc-accent); background: var(--pcc-tint); }
.pcc-acts button[aria-pressed="true"]::after { content: " \2713"; }
.pcc-acts button:focus-visible,
.pcc a:focus-visible { outline: 3px solid var(--pcc-accent); outline-offset: 2px; }
.pcc-f { margin: 0; font-size: 13px; color: #686d74; }
.pcc-f a { color: var(--pcc-accent); font-weight: 600; }
@media (max-width: 600px) {
	.pcc { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; max-height: calc(100vh - 24px); padding: 20px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.pcc { transition: none; transform: none; }
}
@media print { .pcc { display: none; } }

/* Manage preferences (Ithala 1.0.11 / ERWAT 1.0.18). */
.pcc-acts .pcc-manage {
	flex: 1 1 100%;
	min-height: 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--pcc-accent);
	font-weight: 600;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.pcc-acts .pcc-manage:hover { background: none; text-decoration-thickness: 2px; }
.pcc-acts .pcc-manage::after { content: " \25BE"; }
.pcc-acts .pcc-manage[aria-expanded="true"]::after { content: " \25B4"; }
.pcc-prefs { margin: 0 0 14px; padding: 14px; border: 1px solid #e3e8ee; border-radius: 12px; background: #f5f8fb; }
.pcc-prefs[hidden] { display: none; }
.pcc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #e3e8ee; cursor: default; }
label.pcc-row { cursor: pointer; }
.pcc-row strong { display: block; color: #222222; font-size: 14px; }
.pcc-row span { display: block; font-size: 13px; color: #686d74; line-height: 1.45; }
.pcc-pill { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--pcc-tint); color: var(--pcc-accent) !important; font-size: 12px !important; font-weight: 700; white-space: nowrap; }
.pcc-switch {
	flex: none;
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 44px;
	height: 26px;
	margin: 2px 0 0;
	border: 0;
	border-radius: 999px;
	background: #c9d3de;
	cursor: pointer;
	transition: background-color .15s ease;
}
.pcc-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ffffff;
	transition: transform .15s ease;
}
.pcc-switch:checked { background: var(--pcc-button); }
.pcc-switch:checked::after { transform: translateX(18px); }
.pcc-switch:focus-visible { outline: 3px solid var(--pcc-accent); outline-offset: 2px; }
.pcc-save {
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid var(--pcc-button);
	border-radius: 10px;
	background: var(--pcc-button);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}
.pcc-save:hover { filter: brightness(.9); }
.pcc-save:focus-visible { outline: 3px solid var(--pcc-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pcc-switch, .pcc-switch::after { transition: none; } }
