/**
 * Consent banner.
 *
 * Accept and reject are deliberately identical in size, weight and prominence.
 * Nudging people toward "accept" with a bright button and a grey link is the
 * thing regulators single out, and it invalidates the consent you collect.
 *
 * Brand tokens come from the child theme's :root when present, with literal
 * fallbacks so the banner still looks right if the core is used elsewhere.
 */

.ts-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: var(--ts-plum-900, #2A1E30);
	color: #fff;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .24);
	font-size: 14px;
	line-height: 1.55;
}

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

.ts-consent__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
}

.ts-consent__copy { flex: 1 1 420px; min-width: 0; }

.ts-consent__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
}

.ts-consent__text {
	margin: 0;
	color: rgba(255, 255, 255, .82);
}

.ts-consent__link {
	color: var(--ts-coral-300, #F38473);
	text-decoration: underline;
	white-space: nowrap;
}

.ts-consent__link:hover,
.ts-consent__link:focus { color: #fff; }

.ts-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}

/* Both buttons share every dimension. The accent on accept is colour only,
   and reject keeps an equally solid border so neither reads as secondary. */
.ts-consent__btn {
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	min-width: 152px;
	padding: 12px 20px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .55);
	background: transparent;
	color: #fff;
	transition: background .15s ease, border-color .15s ease;
}

.ts-consent__btn:hover,
.ts-consent__btn:focus-visible {
	background: rgba(255, 255, 255, .12);
	border-color: #fff;
}

.ts-consent__btn--accept {
	background: var(--ts-coral-500, #D6412C);
	border-color: var(--ts-coral-500, #D6412C);
}

.ts-consent__btn--accept:hover,
.ts-consent__btn--accept:focus-visible {
	background: var(--ts-coral-600, #B23422);
	border-color: var(--ts-coral-600, #B23422);
}

.ts-consent__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.ts-consent__inner { padding: 16px; gap: 16px; }
	.ts-consent__actions { width: 100%; }
	.ts-consent__btn { flex: 1 1 0; min-width: 0; }
}

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