/* Revio cookie consent: a card at the bottom left on desktop, a sheet at the bottom on phones. */
.revio-consent {
	position: fixed;
	z-index: 900;
	left: 24px;
	bottom: 24px;
	box-sizing: border-box;
	width: min(440px, calc(100% - 32px));
	max-height: calc(100% - 48px);
	padding: 24px;
	overflow-y: auto;
	border: 1px solid var(--hero-line, #24363a);
	border-radius: var(--r-lg, 16px);
	background: var(--hero, #0d1b1e);
	color: var(--hero-text, #f1f6f4);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
	font-size: 15px;
	line-height: 1.5;
}

.revio-consent[hidden],
.revio-consent [hidden],
.revio-consent-reopen[hidden] {
	display: none;
}

.revio-consent__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.revio-consent__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent, #c8f169);
	color: var(--on-accent, #0d1b1e);
}

.revio-consent__title {
	margin: 0;
	font-family: var(--font-heading, inherit);
	font-size: 20px;
	font-weight: 700;
	color: inherit;
}

.revio-consent__text {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--hero-muted, #a3b5b1);
}

.revio-consent__text a {
	color: var(--hero-text, #fff);
	text-underline-offset: 3px;
}

.revio-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.revio-consent__accept,
.revio-consent__secondary {
	flex: 1 1 140px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: var(--r-sm, 8px);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.revio-consent__accept {
	border: 0;
	background: var(--accent, #c8f169);
	color: var(--on-accent, #0d1b1e);
}

.revio-consent__secondary {
	border: 1px solid var(--hero-line, #24363a);
	background: transparent;
	color: inherit;
	font-weight: 600;
}

.revio-consent__link {
	min-height: 44px;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.revio-consent__list {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--hero-line, #24363a);
}

.revio-consent__list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--hero-line, #24363a);
}

.revio-consent__label {
	flex: 1;
	min-width: 0;
}

.revio-consent__label strong {
	display: block;
}

.revio-consent__label span {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--hero-muted, #a3b5b1);
}

.revio-consent__switch {
	position: relative;
	flex: none;
	width: 48px;
	height: 28px;
	margin-top: 2px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: var(--hero-card-2, #1a2f33);
	cursor: pointer;
}

.revio-consent__switch span {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--hero-muted, #a3b5b1);
	transition: left 0.15s;
}

.revio-consent__switch[aria-checked="true"] {
	background: var(--accent, #c8f169);
}

.revio-consent__switch[aria-checked="true"] span {
	left: 23px;
	background: var(--on-accent, #0d1b1e);
}

.revio-consent__switch:disabled {
	opacity: 0.6;
	cursor: default;
}

.revio-consent button:focus-visible {
	outline: 2px solid var(--hero-text, #fff);
	outline-offset: 2px;
}

.revio-consent-reopen {
	position: fixed;
	z-index: 900;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--line, #dce3e0);
	border-radius: 99px;
	background: var(--surface, #fff);
	color: var(--text, #0d1b1e);
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.3);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

/* Above the compare bar of the casino rating while it is shown. */
.revio-has-compare .revio-consent-reopen {
	z-index: 40; /* under the casino search that opens above the bar */
	bottom: calc(var(--revio-compare-height, 80px) + 28px);
}

@media (max-width: 640px) {
	.revio-consent {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 85vh;
		padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
		border-radius: var(--r-lg, 16px) var(--r-lg, 16px) 0 0;
	}

	.revio-consent-reopen {
		left: 12px;
		bottom: 12px;
	}

	.revio-has-compare .revio-consent-reopen {
		bottom: calc(var(--revio-compare-height, 80px) + 20px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.revio-consent__switch span {
		transition: none;
	}
}
