/* ==========================================================================
   Cookie Consent Banner — GDPR compliant
   ========================================================================== */

.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: var(--z-toast);
	background-color: var(--color-bg-dark);
	color: rgba(255, 255, 255, 0.9);
	padding: var(--space-lg) 0;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

@media (prefers-reduced-motion: no-preference) {
	.cookie-consent {
		transform: translateY(100%);
		animation: cookie-slide-up 0.4s ease 1s forwards;
	}

	@keyframes cookie-slide-up {
		to { transform: translateY(0); }
	}
}

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

.cookie-consent__inner {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	align-items: flex-start;
}

@media (min-width: 768px) {
	.cookie-consent__inner {
		flex-direction: row;
		align-items: center;
	}
}

.cookie-consent__text {
	flex: 1;
	font-size: var(--text-sm);
	line-height: var(--leading-normal);
}

.cookie-consent__text a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-consent__actions {
	display: flex;
	gap: var(--space-sm);
	flex-shrink: 0;
}

.cookie-consent__accept {
	padding: 0.5em 1.25em;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	background-color: var(--color-accent);
	color: var(--color-dark);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: background-color var(--transition-base);
}

.cookie-consent__accept:hover {
	background-color: var(--color-accent-dark);
}

.cookie-consent__accept:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

.cookie-consent__settings {
	padding: 0.5em 1.25em;
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	background: none;
	color: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color var(--transition-base), color var(--transition-base);
}

.cookie-consent__settings:hover {
	border-color: rgba(255, 255, 255, 0.6);
	color: var(--color-bg);
}

.cookie-consent__settings:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}
