/*
 * Cookie consent banner (inc/consent.php, assets/js/consent.js). Loaded only when Google Analytics is set up.
 * A dark card in the bottom-left corner; full width on phones. Accept and Reject are the same size.
 */

.consent {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 110;
	width: min(440px, calc(100vw - 48px));
	padding: 24px;
	border-radius: 4px;
	background: var(--black);
	color: var(--cream);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px var(--lined);
	animation: upIn 0.6s var(--out) both;
}

.consent[hidden] {
	display: none;
}

.consent-t {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.consent-p {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--cream2);
}

.consent-p a {
	color: var(--cream);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.consent-a {
	display: flex;
	gap: 8px;
}

.consent-a .btn {
	flex: 1;
	justify-content: center;
	gap: 0;
	height: 48px;
	padding: 0 16px;
	font-size: 15px;
}

.consent-a .btn-o {
	color: var(--cream);
	border-color: var(--cream);
}

.consent-a .btn-o::before {
	background: var(--cream);
}

.consent-a .btn-o:hover {
	color: var(--ink);
}

@media (max-width: 600px) {
	.consent {
		left: 12px;
		bottom: 12px;
		width: calc(100vw - 24px);
		padding: 20px;
	}
}

/* "Cookie settings" inside the footer's © line: underlined so it reads as a link without relying on colour. */
.ft-cookies a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
