.lf-consent {
	font-family: var(--font-body);
	position: relative;
	z-index: 100000;
}

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

.lf-consent__banner {
	align-items: end;
	background: var(--surface-dark);
	border-radius: clamp(0.75rem, 1.5vw, 1rem);
	bottom: 1rem;
	box-shadow: 0 1rem 3rem var(--shadow-soft);
	color: var(--text-light);
	display: grid;
	gap: clamp(1.25rem, 3vw, 3rem);
	grid-template-columns: minmax(0, 1fr) auto;
	left: max(1rem, var(--gutter));
	max-width: min(80rem, calc(100vw - 2rem));
	padding: clamp(1.25rem, 2.7vw, 2.25rem);
	position: fixed;
	right: max(1rem, var(--gutter));
}

.lf-consent__copy {
	max-width: 48rem;
}

.lf-consent__eyebrow {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	margin: 0 0 0.65rem;
	text-transform: uppercase;
}

.lf-consent h2 {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 4rem);
	font-weight: 400;
	letter-spacing: 0.015em;
	line-height: 0.92;
	margin: 0 0 0.85rem;
}

.lf-consent__copy > p:last-child,
.lf-consent__option p {
	font-size: clamp(0.9rem, 1.25vw, 1rem);
	line-height: 1.55;
	margin: 0;
}

.lf-consent a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

.lf-consent__actions,
.lf-consent__dialog-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.lf-consent__button,
.lf-consent__reopen {
	align-items: center;
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.68rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.12em;
	min-height: 2.85rem;
	padding: 0.72rem 1.2rem;
	text-transform: uppercase;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.lf-consent__button--primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text-primary);
}

.lf-consent__button--outline {
	border-color: currentColor;
	color: inherit;
}

.lf-consent__button--quiet {
	border-color: transparent;
	color: var(--text-light-muted);
}

.lf-consent__button:hover,
.lf-consent__button:focus-visible,
.lf-consent__reopen:hover,
.lf-consent__reopen:focus-visible {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--text-primary);
}

.lf-consent__backdrop {
	align-items: center;
	background: rgba(0, 0, 0, 0.66);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 1rem;
	position: fixed;
}

.lf-consent__dialog {
	background: var(--surface-neutral);
	border-radius: clamp(0.75rem, 1.5vw, 1rem);
	box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.4);
	color: var(--text-primary);
	max-height: calc(100svh - 2rem);
	max-width: 46rem;
	overflow: auto;
	padding: clamp(1.5rem, 4vw, 3rem);
	width: 100%;
}

.lf-consent__dialog-heading {
	align-items: start;
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
}

.lf-consent__close {
	align-items: center;
	background: transparent;
	border: 1px solid var(--border-on-light);
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.6rem;
	height: 2.75rem;
	justify-content: center;
	line-height: 1;
	padding: 0 0 0.15rem;
	width: 2.75rem;
}

.lf-consent__options {
	border-top: 1px solid var(--border-on-light);
	margin: 1.5rem 0;
}

.lf-consent__option {
	align-items: center;
	border-bottom: 1px solid var(--border-on-light);
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 1.25rem 0;
}

.lf-consent__option h3 {
	font-family: var(--font-display);
	font-size: 1.35rem;
	line-height: 1;
	margin: 0 0 0.45rem;
}

.lf-consent__switch {
	display: inline-flex;
	position: relative;
}

.lf-consent__switch input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.lf-consent__switch span:last-child {
	background: var(--border-on-light);
	border-radius: 999px;
	cursor: pointer;
	display: block;
	height: 1.7rem;
	position: relative;
	transition: background-color 180ms ease;
	width: 3rem;
}

.lf-consent__switch span:last-child::after {
	background: var(--surface-light);
	border-radius: 50%;
	box-shadow: 0 0.1rem 0.35rem rgba(0, 0, 0, 0.24);
	content: "";
	height: 1.3rem;
	left: 0.2rem;
	position: absolute;
	top: 0.2rem;
	transition: transform 180ms ease;
	width: 1.3rem;
}

.lf-consent__switch input:checked + span {
	background: var(--color-brand);
}

.lf-consent__switch input:checked + span::after {
	transform: translateX(1.3rem);
}

.lf-consent__switch input:focus-visible + span {
	outline: 2px solid currentColor;
	outline-offset: 0.25rem;
}

.lf-consent__switch input:disabled + span {
	cursor: not-allowed;
	opacity: 0.62;
}

.lf-consent__dialog-actions {
	justify-content: flex-end;
}

.lf-consent__dialog .lf-consent__button--outline {
	color: var(--text-primary);
}

.lf-consent__reopen {
	background: var(--surface-dark);
	bottom: 0.75rem;
	color: var(--text-light);
	left: 0.75rem;
	min-height: 2.5rem;
	padding: 0.55rem 0.9rem;
	position: fixed;
}

html.lf-consent-open {
	overflow: hidden;
}

@media (max-width: 52rem) {
	.lf-consent__banner {
		border-radius: clamp(0.75rem, 2vw, 1rem) clamp(0.75rem, 2vw, 1rem) 0 0;
		bottom: 0;
		grid-template-columns: 1fr;
		left: 0;
		max-width: none;
		right: 0;
	}

	.lf-consent__actions {
		align-items: stretch;
		display: grid;
		grid-template-columns: 1fr;
	}

	.lf-consent__button--primary {
		grid-row: 1;
	}
}

@media (max-width: 35rem) {
	.lf-consent__dialog {
		border-radius: 0;
		max-height: 100svh;
		padding: 1.25rem;
	}

	.lf-consent__backdrop {
		padding: 0;
	}

	.lf-consent__dialog-actions {
		align-items: stretch;
		display: grid;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lf-consent *,
	.lf-consent *::before,
	.lf-consent *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
