/**
 * Cookie consent card (ADR-0018): a non-blocking bottom card using the site's
 * --ap-* tokens. Hidden until consent.js decides to show it.
 */
.ap-consent {
	position: fixed;
	z-index: 9999;
	left: 20px;
	right: 20px;
	bottom: 20px;
	max-width: 560px;
	padding: 24px 28px;
	border: 1px solid var(--ap-line, rgba(20, 18, 24, 0.08));
	border-radius: var(--ap-radius-card, 24px);
	background: #fff;
	color: var(--ap-ink, #141218);
	box-shadow: var(--ap-shadow-panel, 0 34px 80px rgba(20, 18, 24, 0.18));
	font-size: 15px;
	line-height: 1.5;
}

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

.ap-consent__title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.ap-consent__title:focus {
	outline: none;
}

.ap-consent__text {
	margin: 0;
	color: var(--ap-ink-2, rgba(20, 18, 24, 0.78));
}

.ap-consent__link {
	color: var(--ap-red-text, #d42621);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ap-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.ap-consent__btn {
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--ap-radius-button, 14px);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.2s ease, background-color 0.2s ease;
}

/* Accept and Reject share this style on purpose: refusing must be as easy and as
   visible as accepting. */
.ap-consent__btn--primary {
	background: linear-gradient(180deg, #f0524d, #e32b26);
	color: #fff;
}

.ap-consent__btn--ghost {
	background: transparent;
	color: var(--ap-ink-2, rgba(20, 18, 24, 0.78));
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ap-consent__btn:hover {
	filter: brightness(1.06);
}

.ap-consent__btn:focus-visible,
.ap-consent__link:focus-visible,
.ap-consent__toggle:focus-visible {
	outline: 3px solid var(--ap-blue, #2a5bd7);
	outline-offset: 2px;
}

.ap-consent__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 0;
	border-top: 1px solid var(--ap-line, rgba(20, 18, 24, 0.08));
}

.ap-consent__always {
	flex: none;
	color: var(--ap-ink-muted, rgba(20, 18, 24, 0.62));
	font-size: 13px;
}

.ap-consent__toggle {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	accent-color: var(--ap-red, #e32b26);
}

@media (max-width: 640px) {
	.ap-consent {
		left: 12px;
		right: 12px;
		bottom: 12px;
		padding: 20px;
	}

	.ap-consent__actions .ap-consent__btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.ap-consent:not([hidden]) {
		animation: ap-consent-in 0.25s ease-out;
	}
}

@keyframes ap-consent-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
