/**
 * Cookie consent banner - a slim, full-width dark bar at the bottom.
 */

.cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 14px 24px;
	background: #1a1a1a;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	opacity: 0;
	transform: translateY( 100% );
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent.is-visible {
	opacity: 1;
	transform: translateY( 0 );
}

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

.cookie-consent__text {
	flex: 1 1 auto;
	max-width: 640px;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #d4d4d4;
}

.cookie-consent__highlight {
	color: #ff6b57;
	font-weight: 600;
}

.cookie-consent__text a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-consent__text a:hover,
.cookie-consent__text a:focus-visible {
	color: #ff6b57;
}

.cookie-consent__accept {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 9px 26px;
	border: 1px solid #d81f1f;
	border-radius: 999px;
	background: #d81f1f;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cookie-consent__accept:hover,
.cookie-consent__accept:focus-visible {
	background: #b81717;
	border-color: #b81717;
}

.cookie-consent__accept:active {
	transform: scale( 0.97 );
}

@media ( max-width: 600px ) {
	.cookie-consent {
		justify-content: flex-start;
		padding: 12px 16px;
	}

	.cookie-consent__text {
		flex: 1 1 100%;
	}

	.cookie-consent__accept {
		flex: 1 1 100%;
		justify-content: center;
	}
}

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