/*
 * Cookie consent bar: the same white-on-black floating bar as the newsletter popup,
 * in the same spot. The popup waits behind it until a choice is made.
 */

.consent {
	position: fixed;
	inset: auto 0 var(--page-gutter, 18px);
	z-index: 960; /* Just above the newsletter popup. */
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: calc(100% - 2 * var(--page-gutter, 18px));
	margin: 0 auto;
	padding: 16px 20px;
	color: #fff;
	background: rgba(0, 0, 0, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.consent[hidden] {
	display: none;
}

html.nav-open .consent,
html.consent-open .nl-popup {
	display: none;
}

.consent .consent__text { /* Doubled class: out-ranks site-wide paragraph rules. */
	flex: 1 1 16em;
	margin: 0;
	color: #fff;
	font: 400 15px/22px var(--font-text, "Inter", sans-serif);
}

.consent .consent__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.consent__actions {
	display: flex;
	gap: 8px;
}

/* Both choices look the same: neither is nudged. */
.consent .consent__button {
	padding: 7px 16px;
	color: #fff;
	font: 500 13px/20px var(--font-text, "Inter", sans-serif);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.consent .consent__button:hover,
.consent .consent__button:focus-visible {
	color: #000;
	background: #fff;
	border-color: #fff;
}

@media (min-width: 900px) {
	.consent {
		bottom: 24px;
		flex-wrap: nowrap;
		width: fit-content;
		max-width: calc(100% - 2 * var(--page-gutter, 30px));
		padding: 10px 12px 10px 32px;
		border-radius: 8px;
	}

	.consent .consent__text {
		flex: 0 1 auto;
	}
}
