.atb-consent-open body {
	overflow: hidden;
}

.atb-consent[hidden],
.atb-consent-reopen[hidden],
.atb-consent__choices[hidden],
.atb-consent__button[hidden] {
	display: none !important;
}

.atb-consent {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 18px;
	background: rgba(0, 0, 0, .42);
}

.atb-consent__panel {
	width: min(760px, 100%);
	max-height: calc(100vh - 36px);
	overflow: auto;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 16px;
	background: #111318;
	color: #fff;
	box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.atb-consent__title {
	margin: 0 0 10px;
	font-size: clamp(22px, 4vw, 30px);
	line-height: 1.2;
	color: #fff;
}

.atb-consent__intro {
	margin: 0;
	line-height: 1.6;
	color: #e7e7e7;
}

.atb-consent__choices {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.atb-consent__choice {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 10px;
	align-items: start;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
}

.atb-consent__choice input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
}

.atb-consent__choice strong,
.atb-consent__choice small {
	display: block;
}

.atb-consent__choice small {
	margin-top: 4px;
	line-height: 1.45;
	color: #cfcfcf;
}

.atb-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.atb-consent__button,
.atb-consent-reopen,
.atb-consent-policy__settings {
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid #2563eb;
	border-radius: 9px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.atb-consent__button--primary {
	border-color: #2563eb;
	background: #2563eb;
	color: #fff;
}

.atb-consent__button:focus-visible,
.atb-consent-reopen:focus-visible,
.atb-consent-policy__settings:focus-visible,
.atb-consent__policy:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.atb-consent__policy {
	display: inline-block;
	margin-top: 16px;
	color: #60a5fa;
	text-decoration: underline;
}

.atb-consent-reopen {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 999998;
	min-height: 38px;
	padding: 7px 11px;
	border-color: #2563eb;
	background: #2563eb;
	color: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
	font-size: 13px;
}

.atb-consent-policy {
	max-width: 980px;
	margin-inline: auto;
}

.atb-consent-policy address {
	font-style: normal;
	line-height: 1.7;
}

.atb-consent-policy__table-wrap {
	overflow-x: auto;
}

.atb-consent-policy table {
	width: 100%;
	border-collapse: collapse;
}

.atb-consent-policy th,
.atb-consent-policy td {
	padding: 10px;
	border: 1px solid currentColor;
	text-align: left;
	vertical-align: top;
}

.atb-consent-policy__settings {
	border-color: #111318;
	background: #111318;
	color: #fff;
}

.atb-consent-external-frame {
	width: 100%;
	border: 0;
}

@media (max-width: 620px) {
	.atb-consent {
		padding: 10px;
	}

	.atb-consent__panel {
		max-height: calc(100vh - 20px);
		padding: 18px;
		border-radius: 12px;
	}

	.atb-consent__actions {
		display: grid;
	}

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

/* Ensure accessible contrast despite theme button styles. */
.atb-consent .atb-consent__button--primary {
	background: #2563eb;
	color: #fff;
	-webkit-text-fill-color: #fff;
}
