/**
 * Wonderground — consent banner.
 *
 * Borrows the theme's palette and type through its custom properties, with
 * literal fallbacks so the bar still looks like the festival if it ever renders
 * before the stylesheet, or on a page that does not load it.
 */

.wg-consent {
	position: fixed;
	z-index: 9999;
	left: 50%;
	bottom: clamp(0.75rem, 3vw, 1.5rem);
	transform: translateX(-50%);
	width: min(46rem, calc(100vw - 1.5rem));
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-radius: var(--radius, 18px);
	background: var(--teal-night, #143a3e);
	color: #f6efec;
	font-family: var(--body, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: 0.9rem;
	line-height: 1.5;
	box-shadow: 0 24px 60px -30px rgba(20, 58, 62, 0.9);
	animation: wg-consent-in 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes wg-consent-in {
	from { opacity: 0; transform: translate(-50%, 1rem); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}

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

.wg-consent__text {
	flex: 1 1 22rem;
	margin: 0;
}

.wg-consent__link {
	color: var(--peach, #FFCEB3);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.wg-consent__actions {
	display: flex;
	gap: 0.6rem;
	flex: 0 0 auto;
}

.wg-consent__btn {
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	padding: 0.6rem 1.15rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.wg-consent__btn--solid {
	background: var(--orange, #FFA168);
	color: var(--ink, #16383b);
}

.wg-consent__btn--solid:hover {
	background: var(--peach, #FFCEB3);
}

.wg-consent__btn--ghost {
	background: transparent;
	color: #f6efec;
	border-color: rgba(246, 239, 236, 0.5);
}

.wg-consent__btn--ghost:hover {
	background: rgba(246, 239, 236, 0.12);
	border-color: #f6efec;
}

.wg-consent__btn:focus-visible {
	outline: 2px solid var(--peach, #FFCEB3);
	outline-offset: 3px;
}

@media (max-width: 40rem) {
	.wg-consent {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}
	.wg-consent__actions > .wg-consent__btn {
		flex: 1 1 0;
	}
}
