/* Cookie choice banner (src/Consent.php, assets/consent.js). Uses the theme's tokens, with fallbacks. */
.koyk-consent {
	position: fixed;
	inset-block-end: max(16px, env(safe-area-inset-bottom));
	inset-inline: 16px;
	z-index: 1000;
	display: grid;
	gap: 0.875rem;
	box-sizing: border-box;
	width: auto;
	max-width: 34rem;
	margin-inline-start: auto;
	padding: 1.125rem 1.25rem;
	border: 1px solid var(--rule-strong, #c5c0b6);
	border-radius: var(--r-2, 20px);
	background: var(--paper-3, #fff);
	color: var(--ink, #141311);
	box-shadow: var(--shadow-soft, 0 8px 24px -12px rgb(20 19 17 / 0.18));
	font-family: var(--font-text, system-ui, sans-serif);
	font-size: var(--step-small, 0.9375rem);
	line-height: 1.5;
	animation: koyk-consent-in var(--t-2, 320ms) var(--ease-out, ease-out) both;
}

.koyk-consent[hidden] {
	display: none;
}

.koyk-consent:focus {
	outline: none;
}

.koyk-consent:focus-visible {
	outline: 2px solid var(--signal, #e0461c);
	outline-offset: 3px;
}

.koyk-consent__title {
	margin: 0 0 0.25rem;
	font-family: var(--font-text, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--ink, #141311);
}

.koyk-consent p {
	margin: 0;
	color: var(--ink-2, #55514b);
}

.koyk-consent a {
	color: var(--ink, #141311);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.koyk-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.625rem;
}

/* Accept and Decline look the same: equal size, equal weight. */
.koyk-consent__button {
	min-height: 44px;
	padding: 0.6rem 1rem;
	border: 1px solid var(--ink, #141311);
	border-radius: 999px;
	background: transparent;
	color: var(--ink, #141311);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--t-1, 160ms) var(--ease-out, ease-out), color var(--t-1, 160ms) var(--ease-out, ease-out);
}

.koyk-consent__button:hover {
	background: var(--ink, #141311);
	color: var(--paper, #f5f3ef);
}

.koyk-consent__button:focus-visible {
	outline: 2px solid var(--signal, #e0461c);
	outline-offset: 3px;
}

@media (min-width: 40rem) {
	.koyk-consent {
		inset-inline: var(--gutter, 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.koyk-consent {
		animation: none;
	}
}

@media print {
	.koyk-consent {
		display: none;
	}
}

@keyframes koyk-consent-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}
