/* Cookie consent banner + settings panel (1.8.0). */

/* Banner: small dark card, bottom-left; full width on phones. */
.evo-cc {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 10000;
	width: min(380px, calc(100vw - 40px));
	padding: 18px 20px;
	background: var(--evo-dark);
	color: var(--evo-text-on-dark);
	border: 1px solid var(--evo-border-on-dark);
	border-radius: var(--evo-radius-md);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	font-size: 0.875rem;
	line-height: 1.5;
}
.evo-cc[hidden] { display: none; }
.evo-cc__title { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; color: #fff; }
.evo-cc__text,
.evo-cc__gpc { margin: 0 0 14px; color: var(--evo-text-on-dark-muted); }
.evo-cc__gpc[hidden] { display: none; }
.evo-cc__text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.evo-cc__text a:hover { color: var(--evo-accent-light); }

/* Accept and Reject are identical in size and style (symmetry in choice). */
.evo-cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evo-cc__btn {
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #fff;
	border-radius: var(--evo-radius-sm);
	background: #fff;
	color: var(--evo-dark);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--evo-speed-fast), color var(--evo-speed-fast);
}
.evo-cc__btn:hover { background: transparent; color: #fff; }
.evo-cc__btn:focus-visible { outline: 2px solid var(--evo-accent-light); outline-offset: 2px; }

@media (max-width: 600px) {
	.evo-cc {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		border-radius: var(--evo-radius-md) var(--evo-radius-md) 0 0;
		border-width: 1px 0 0;
		padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	}
}

/* Small tab shown on later pages until a choice is made (1.9.0). */
.evo-cc-mini {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 10000;
	min-height: 36px;
	padding: 8px 14px;
	border: 1px solid var(--evo-border-on-dark);
	border-radius: 999px;
	background: var(--evo-dark);
	color: #fff;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
	cursor: pointer;
}
.evo-cc-mini[hidden] { display: none; }
.evo-cc-mini:hover { background: var(--evo-accent); border-color: var(--evo-accent); }
.evo-cc-mini:focus-visible { outline: 2px solid var(--evo-accent-light); outline-offset: 2px; }
@media (max-width: 600px) {
	.evo-cc-mini { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
	body.has-sticky-atc .evo-cc-mini { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media print { .evo-cc, .evo-cc-mini { display: none !important; } }

/* Settings panel on the Cookie Policy page. */
.evo-cs {
	margin: 24px 0 40px;
	padding: 24px;
	background: var(--evo-surface-raised);
	border: 1px solid var(--evo-border);
	border-radius: var(--evo-radius-md);
	scroll-margin-top: calc(var(--evo-header-height) + 16px);
}
.entry-content .evo-cs__title { margin: 0 0 6px; font-size: 1.15rem; }
.evo-cs__status { margin: 0 0 12px; color: var(--evo-text-muted); font-size: 0.9rem; }
.evo-cs__gpc { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--evo-success); background: var(--evo-surface-sunken); font-size: 0.9rem; }
.evo-cs__gpc[hidden] { display: none; }
.evo-cs__form { margin: 0; }
.evo-cs__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-top: 1px solid var(--evo-border);
	cursor: pointer;
}
.evo-cs__row:first-child { cursor: default; }
.evo-cs__label { display: flex; flex-direction: column; gap: 2px; }
.evo-cs__label span { color: var(--evo-text-muted); font-size: 0.875rem; line-height: 1.45; }

/* Checkbox styled as a switch (still a native checkbox for a11y). */
.evo-cs__switch {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	position: relative;
	width: 44px;
	height: 26px;
	margin: 0;
	border-radius: 999px;
	background: #c3c6cc;
	cursor: pointer;
	transition: background var(--evo-speed-fast);
}
.evo-cs__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform var(--evo-speed-fast);
}
.evo-cs__switch:checked { background: var(--evo-success); }
.evo-cs__switch:checked::after { transform: translateX(18px); }
.evo-cs__switch:disabled { opacity: 0.55; cursor: not-allowed; }
.evo-cs__switch:focus-visible { outline: 2px solid var(--evo-accent); outline-offset: 2px; }
.evo-cs__actions { padding-top: 16px; border-top: 1px solid var(--evo-border); }

@media (prefers-reduced-motion: reduce) {
	.evo-cc__btn, .evo-cs__switch, .evo-cs__switch::after { transition: none; }
}
