.re-consent {
	--re-consent-dark: #14110e;
	--re-consent-dark-soft: #1e1914;
	--re-consent-ink: #f8f1e6;
	--re-consent-muted: rgba(248, 241, 230, 0.72);
	--re-consent-gold: #c5a15a;
	--re-consent-line: rgba(197, 161, 90, 0.32);
	--re-consent-cream: #fbf6ea;
	--re-consent-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
	position: relative;
	z-index: 9998;
}

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

.re-consent::before {
	position: fixed;
	inset: 0;
	z-index: 9997;
	content: "";
	pointer-events: none;
	visibility: hidden;
	background: rgba(14, 11, 8, 0.28);
	-webkit-backdrop-filter: blur(0);
	backdrop-filter: blur(0);
	opacity: 0;
	transition: opacity 420ms ease, visibility 420ms ease, backdrop-filter 420ms ease, -webkit-backdrop-filter 420ms ease;
}

.re-consent.is-visible::before,
.re-consent.is-modal-open::before,
.re-consent.is-modal-closing::before,
.re-consent.is-banner-closing::before {
	visibility: visible;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 1;
}

html.re-consent-open,
body.re-consent-open {
	overflow: hidden;
}

.re-consent__banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9998;
	color: var(--re-consent-ink);
	background: var(--re-consent-dark);
	border-top: 1px solid var(--re-consent-line);
	box-shadow: var(--re-consent-shadow);
	transform: translateY(110%);
	opacity: 0;
	transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.re-consent.is-banner-open .re-consent__banner {
	transform: translateY(0);
	opacity: 1;
}

.re-consent__banner-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
	gap: clamp(18px, 3vw, 44px);
	align-items: end;
	width: min(1180px, calc(100vw - 40px));
	margin: 0 auto;
	padding: clamp(20px, 2.4vw, 32px) 0;
}

.re-consent__banner-copy {
	max-width: 760px;
}

.re-consent__eyebrow {
	margin: 0 0 8px;
	color: var(--re-consent-gold);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.re-consent__title {
	margin: 0;
	color: inherit;
	font-size: clamp(22px, 1.8vw, 31px);
	line-height: 1.12;
	letter-spacing: 0;
}

.re-consent__text,
.re-consent__note {
	margin: 10px 0 0;
	color: var(--re-consent-muted);
	font-size: 15px;
	line-height: 1.58;
}

.re-consent__note {
	font-size: 13px;
}

.re-consent__actions,
.re-consent__modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.re-consent__actions {
	align-content: end;
}

.re-consent__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 17px;
	color: var(--re-consent-ink);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	background: transparent;
	border: 1px solid var(--re-consent-line);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.re-consent__button:focus-visible,
.re-consent__close:focus-visible,
.re-consent__switch input:focus-visible + .re-consent__switch-ui {
	outline: 2px solid var(--re-consent-gold);
	outline-offset: 3px;
}

.re-consent__button--primary {
	color: #17120d;
	background: var(--re-consent-gold);
	border-color: var(--re-consent-gold);
}

.re-consent__button--secondary {
	background: rgba(255, 255, 255, 0.08);
}

.re-consent__button--outline {
	background: rgba(255, 255, 255, 0.02);
}

.re-consent__button--ghost {
	color: rgba(248, 241, 230, 0.82);
	background: transparent;
	border-color: rgba(248, 241, 230, 0.22);
}

.re-consent__button:hover {
	color: #17120d;
	background: var(--re-consent-cream);
	border-color: var(--re-consent-cream);
}

.re-consent__overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: clamp(16px, 4vw, 42px);
	opacity: 0;
	transition: opacity 360ms ease;
}

.re-consent.is-modal-open .re-consent__overlay,
.re-consent.is-modal-closing .re-consent__overlay {
	opacity: 1;
}

.re-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 8, 6, 0.5);
}

.re-consent__modal {
	position: relative;
	width: min(780px, calc(100vw - 32px));
	max-height: calc(100dvh - 42px);
	padding: clamp(18px, 2.2vw, 28px);
	color: var(--re-consent-ink);
	background: var(--re-consent-dark);
	border: 1px solid var(--re-consent-line);
	border-radius: 20px;
	box-shadow: var(--re-consent-shadow);
	transform: translateY(16px) scale(0.985);
	opacity: 0;
	transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

.re-consent.is-modal-open .re-consent__modal {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.re-consent__modal-head {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	justify-content: space-between;
}

.re-consent__close {
	display: inline-grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	color: var(--re-consent-ink);
	font-size: 23px;
	line-height: 1;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--re-consent-line);
	border-radius: 999px;
	cursor: pointer;
}

.re-consent__categories {
	display: grid;
	gap: 9px;
	margin-top: 16px;
}

.re-consent__category {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
}

.re-consent__category--essential {
	background: rgba(197, 161, 90, 0.08);
	border-color: rgba(197, 161, 90, 0.22);
}

.re-consent__category-title,
.re-consent__category-text {
	display: block;
}

.re-consent__category-title {
	color: var(--re-consent-ink);
	font-size: 14px;
	font-weight: 800;
}

.re-consent__category-text {
	margin-top: 4px;
	color: var(--re-consent-muted);
	font-size: 13px;
	line-height: 1.45;
}

.re-consent__required {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 12px;
	color: #17120d;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--re-consent-gold);
	border-radius: 999px;
}

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

.re-consent__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.re-consent__switch-ui {
	position: relative;
	display: block;
	width: 52px;
	height: 28px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.re-consent__switch-ui::after {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 18px;
	height: 18px;
	content: "";
	background: var(--re-consent-cream);
	border-radius: 50%;
	transition: transform 180ms ease;
}

.re-consent__switch input:checked + .re-consent__switch-ui {
	background: var(--re-consent-gold);
	border-color: var(--re-consent-gold);
}

.re-consent__switch input:checked + .re-consent__switch-ui::after {
	transform: translateX(24px);
}

.re-consent__modal-actions {
	margin-top: 16px;
}

@media (max-width: 980px) {
	.re-consent__banner-inner {
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.re-consent__actions,
	.re-consent__modal-actions {
		justify-content: stretch;
	}

	.re-consent__button {
		flex: 1 1 calc(50% - 6px);
	}
}

@media (max-width: 620px) {
	.re-consent__banner-inner {
		width: min(100% - 28px, 520px);
		padding: 20px 0 18px;
	}

	.re-consent__title {
		font-size: 23px;
	}

	.re-consent__text {
		font-size: 14px;
	}

	.re-consent__button {
		flex-basis: 100%;
		width: 100%;
		white-space: normal;
	}

	.re-consent__overlay {
		align-items: end;
		padding: 12px;
	}

	.re-consent__modal {
		width: 100%;
		max-height: calc(100dvh - 24px);
		overflow-y: auto;
		border-radius: 18px;
	}

	.re-consent__category {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.re-consent__required {
		justify-self: start;
	}
}

@media (max-height: 760px) and (min-width: 621px) {
	.re-consent__modal {
		max-height: calc(100dvh - 24px);
		padding: 18px;
	}

	.re-consent__text,
	.re-consent__note {
		font-size: 13px;
		line-height: 1.45;
	}

	.re-consent__categories {
		gap: 7px;
		margin-top: 12px;
	}

	.re-consent__category {
		padding: 10px 12px;
	}

	.re-consent__category-text {
		font-size: 12px;
		line-height: 1.38;
	}
}

@media (prefers-reduced-motion: reduce) {
	.re-consent::before,
	.re-consent__banner,
	.re-consent__overlay,
	.re-consent__modal,
	.re-consent__button,
	.re-consent__switch-ui,
	.re-consent__switch-ui::after {
		transition: none;
	}
}
