/* ==========================================================================
   Cookie consent banner
   ========================================================================== */

.cookie-consent {
	position: fixed;
	left: var(--margin, 20px);
	right: var(--margin, 20px);
	bottom: clamp(16px, 3vw, 28px);
	z-index: 10050;
	pointer-events: none;
}

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

.cookie-consent__inner {
	pointer-events: auto;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp(16px, 3vw, 32px);
	max-width: 920px;
	margin: 0 auto;
	padding: clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 28px);
	background: var(--color-bg-inverse, #1f1f1f);
	color: var(--color-text-inverse, #ffffff);
	border-radius: var(--radius-md, 5px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.cookie-consent__copy {
	min-width: 0;
	flex: 1 1 auto;
}

.cookie-consent__title {
	margin: 0 0 8px;
	font-family: var(--font-secondary);
	font-size: var(--text-body-sm, 14px);
	font-weight: var(--font-weight-bold, 600);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cookie-consent__text {
	margin: 0;
	font-family: var(--font-secondary);
	font-size: var(--text-body-sm, 14px);
	font-weight: var(--font-weight, 500);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.82);
}

.cookie-consent__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

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

.cookie-consent__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
}

.cookie-consent__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: var(--radius-sm, 3px);
	padding: 10px 16px;
	font-family: var(--font-secondary);
	font-size: var(--text-body-sm, 14px);
	font-weight: var(--font-weight, 500);
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
	color: #ffffff;
}

.cookie-consent__btn--ghost:hover,
.cookie-consent__btn--ghost:focus-visible {
	border-color: #ffffff;
}

.cookie-consent__btn--solid {
	background: #ffffff;
	color: #000000;
}

.cookie-consent__btn--solid:hover,
.cookie-consent__btn--solid:focus-visible {
	background: #f0f0f0;
}

@media (max-width: 720px) {
	.cookie-consent__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.cookie-consent__actions {
		width: 100%;
	}

	.cookie-consent__btn {
		flex: 1 1 0;
		padding: 9px 12px;
		font-size: 13px;
	}
}
