.re-consent {
	--re-consent-dark: #14110e;
	--re-consent-ink: #f5efe4;
	--re-consent-muted: rgba(245, 239, 228, 0.74);
	--re-consent-gold: #c5a15a;
	--re-consent-line: rgba(197, 161, 90, 0.28);
	--re-consent-cream: #fbf6ea;
	--re-consent-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
	position: relative;
	z-index: 9998;
}

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

.re-consent__banner {
	position: fixed;
	right: clamp(16px, 3vw, 34px);
	bottom: clamp(16px, 3vw, 34px);
	left: clamp(16px, 3vw, 34px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 22px;
	align-items: end;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(18px, 2vw, 26px);
	color: var(--re-consent-ink);
	background: var(--re-consent-dark);
	border: 1px solid var(--re-consent-line);
	border-radius: 18px;
	box-shadow: var(--re-consent-shadow);
}

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

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

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

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

.re-consent__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	color: var(--re-consent-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.03em;
	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: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);
}

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

.re-consent__modal {
	position: relative;
	width: min(720px, 100%);
	max-height: min(760px, calc(100vh - 32px));
	overflow: auto;
	padding: clamp(20px, 3vw, 34px);
	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);
}

.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 40px;
	width: 40px;
	height: 40px;
	color: var(--re-consent-ink);
	font-size: 24px;
	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: 12px;
	margin-top: 22px;
}

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

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

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

.re-consent__category-text {
	margin-top: 5px;
	color: var(--re-consent-muted);
	font-size: 14px;
	line-height: 1.55;
}

.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: 54px;
	height: 30px;
	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: 20px;
	height: 20px;
	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__switch input:disabled + .re-consent__switch-ui {
	opacity: 0.82;
	cursor: not-allowed;
}

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

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

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

	.re-consent__button {
		flex: 1 1 auto;
	}
}

@media (max-width: 560px) {
	.re-consent__banner {
		right: 10px;
		bottom: 10px;
		left: 10px;
		max-height: calc(100vh - 20px);
		overflow: auto;
		border-radius: 16px;
	}

	.re-consent__modal {
		max-height: calc(100vh - 20px);
		padding: 18px;
		border-radius: 16px;
	}

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

	.re-consent__button {
		width: 100%;
	}
}
