/* Arcade Direct standalone consent interface. */
:root.ad-consent-dialog-open,
:root.ad-consent-dialog-open body {
	overflow: hidden;
}

.ad-consent[hidden],
.ad-consent__dialog[hidden] {
	display: none !important;
}

.ad-consent--preferences-open .ad-consent__banner {
	display: none;
}

.ad-consent__banner {
	position: fixed;
	z-index: 2147483000;
	inset: auto 0 0;
	background: #081224;
	border-top: 3px solid #35bb9d;
	box-shadow: 0 -1.25rem 3.5rem rgba(8, 18, 36, .28);
	color: #fff;
	padding: 1rem;
}

.ad-consent__content,
.ad-consent__actions,
.ad-consent__panel {
	max-width: 76rem;
	margin: 0 auto;
}

.ad-consent__content h2,
.ad-consent__panel h2 {
	margin: .125rem 0 .5rem;
	color: #fff;
	font-family: "Barlow Condensed", sans-serif;
	font-size: clamp(1.75rem, 6vw, 2.5rem);
	letter-spacing: -.03em;
	line-height: .94;
}

.ad-consent__eyebrow {
	margin: 0;
	color: #35bb9d;
	font-family: "IBM Plex Mono", monospace;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ad-consent__content p,
.ad-consent__intro {
	max-width: 49rem;
	margin: .5rem 0 0;
	color: #d3e3e3;
	font-size: .9rem;
	line-height: 1.5;
}

.ad-consent__content a {
	color: #fff;
	font-weight: 700;
	text-decoration-color: #35bb9d;
	text-underline-offset: .2em;
}

.ad-consent__actions,
.ad-consent__panel-actions {
	display: grid;
	gap: .625rem;
	margin-top: 1rem;
}

.ad-consent__button,
.ad-consent__footer-link,
.ad-consent__close {
	min-height: 44px;
	border: 1px solid transparent;
	border-radius: 0;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	transition: background-color .16s ease-out, color .16s ease-out, border-color .16s ease-out, transform .16s ease-out;
}

.ad-consent__button:active,
.ad-consent__footer-link:active,
.ad-consent__close:active {
	transform: scale(.97);
}

.ad-consent__button--primary {
	background: #35bb9d;
	color: #081224;
	padding: .75rem 1rem;
}

.ad-consent__button--primary:hover {
	background: #fff;
	color: #081224;
}

.ad-consent__button--secondary {
	background: transparent;
	border-color: rgba(211, 227, 227, .65);
	color: #fff;
	padding: .75rem 1rem;
}

.ad-consent__button--secondary:hover {
	background: rgba(211, 227, 227, .13);
	border-color: #fff;
}

.ad-consent__dialog {
	position: fixed;
	z-index: 2147483001;
	inset: 0;
	display: grid;
	place-items: end center;
	padding: .75rem;
}

.ad-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 18, 36, .74);
}

.ad-consent__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 42rem);
	max-height: calc(100dvh - 1.5rem);
	overflow: auto;
	background: #081224;
	border-top: 4px solid #35bb9d;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .45);
	padding: 1.25rem;
	outline: none;
}

.ad-consent__panel-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.ad-consent__close {
	flex: 0 0 44px;
	background: transparent;
	border-color: rgba(211, 227, 227, .65);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
}

.ad-consent__close:hover {
	background: #fff;
	color: #081224;
}

.ad-consent__categories {
	display: grid;
	gap: .625rem;
	margin-top: 1.25rem;
}

.ad-consent__category {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: #222f45;
	border: 1px solid rgba(211, 227, 227, .22);
	padding: 1rem;
	color: #fff;
}

.ad-consent__category strong,
.ad-consent__category small {
	display: block;
}

.ad-consent__category strong {
	font-size: 1rem;
}

.ad-consent__category small {
	margin-top: .25rem;
	color: #d3e3e3;
	font-size: .82rem;
	line-height: 1.42;
}

.ad-consent__category input {
	appearance: none;
	position: relative;
	flex: 0 0 48px;
	width: 48px;
	height: 28px;
	margin: 0;
	background: #081224;
	border: 1px solid #d3e3e3;
	border-radius: 999px;
	cursor: pointer;
}

.ad-consent__category input::after {
	position: absolute;
	content: "";
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #d3e3e3;
	transition: transform .18s ease-out, background-color .18s ease-out;
}

.ad-consent__category input:checked {
	background: #35bb9d;
	border-color: #35bb9d;
}

.ad-consent__category input:checked::after {
	background: #081224;
	transform: translateX(20px);
}

.ad-consent__always {
	flex: 0 0 auto;
	color: #35bb9d;
	font-family: "IBM Plex Mono", monospace;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ad-consent__footer-link {
	min-height: 0;
	padding: 0;
	background: transparent;
	border: 0;
	color: inherit;
	font-size: inherit;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.ad-consent__footer-link:hover {
	color: #35bb9d;
}

.ad-consent__button:focus-visible,
.ad-consent__close:focus-visible,
.ad-consent__category input:focus-visible,
.ad-consent__footer-link:focus-visible,
.ad-consent__content a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

@media (min-width: 48rem) {
	.ad-consent__banner {
		padding: 1.25rem 1.5rem;
	}

	.ad-consent__banner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
		gap: 2rem;
		align-items: center;
	}

	.ad-consent__actions {
		margin-top: 0;
	}

	.ad-consent__panel-actions {
		grid-template-columns: 1fr 1fr;
	}

	.ad-consent__dialog {
		place-items: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ad-consent__button,
	.ad-consent__footer-link,
	.ad-consent__close,
	.ad-consent__category input::after {
		transition: none;
	}
}
