.an-consent__overlay {
	position: fixed;
	inset: 0;
	z-index: calc(var(--an-z-modal, 1200) - 1);
	background: rgba(8, 10, 14, 0.55);
}

.an-consent__banner,
.an-consent__panel {
	position: fixed;
	z-index: var(--an-z-modal, 1200);
	left: 50%;
	transform: translateX(-50%);
	width: min(960px, calc(100vw - 2rem));
	color: #e8eaed;
	font-family: "Inter", system-ui, sans-serif;
}

.an-consent__banner {
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.an-consent__banner-inner,
.an-consent__panel-inner {
	border: 1px solid #2a3140;
	border-radius: 14px;
	background: #161a20;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.an-consent__banner-inner {
	display: grid;
	gap: 1rem;
	padding: 1.1rem 1.2rem;
}

.an-consent__title {
	margin: 0 0 0.35rem;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
}

.an-consent__text,
.an-consent__option p {
	margin: 0;
	color: #9aa3af;
	font-size: 0.875rem;
	line-height: 1.5;
}

.an-consent__links {
	margin: 0.65rem 0 0;
	font-size: 0.8125rem;
}

.an-consent__links a {
	color: #81d742;
	text-decoration: none;
}

.an-consent__links a:hover {
	text-decoration: underline;
}

.an-consent__actions,
.an-consent__panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.an-consent__actions {
	justify-content: flex-end;
}

.an-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.35rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
}

.an-consent__btn--primary {
	background: #81d742;
	border-color: #81d742;
	color: #0d0f12;
}

.an-consent__btn--primary:hover {
	background: #93e055;
}

.an-consent__btn--ghost {
	background: transparent;
	border-color: #2a3140;
	color: #e8eaed;
}

.an-consent__btn--ghost:hover {
	border-color: rgba(129, 215, 66, 0.45);
	color: #81d742;
}

.an-consent__panel {
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
	max-height: calc(100vh - 2rem);
	overflow: auto;
}

.an-consent__panel-inner {
	padding: 1rem 1.1rem 1.1rem;
}

.an-consent__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.an-consent__close {
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: #1c2129;
	color: #e8eaed;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.an-consent__options {
	display: grid;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.an-consent__option {
	padding: 0.75rem 0.85rem;
	border: 1px solid #2a3140;
	border-radius: 10px;
	background: #1c2129;
}

.an-consent__option-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.an-consent__badge {
	font-size: 0.75rem;
	font-weight: 600;
	color: #81d742;
}

.an-consent__option--toggle input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: #81d742;
}

.an-consent__manage {
	position: fixed;
	z-index: calc(var(--an-z-modal, 1200) - 2);
	left: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	padding: 0.45rem 0.75rem;
	border: 1px solid #2a3140;
	border-radius: 999px;
	background: rgba(22, 26, 32, 0.96);
	color: #9aa3af;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

.an-consent__manage:hover {
	color: #81d742;
	border-color: rgba(129, 215, 66, 0.45);
}

body.an-consent-open {
	overflow: hidden;
}

@media (min-width: 768px) {
	.an-consent__banner-inner {
		grid-template-columns: 1fr auto;
		align-items: center;
		padding: 1.15rem 1.25rem;
	}

	.an-consent__actions {
		flex-direction: column;
		align-items: stretch;
		min-width: 12rem;
	}

	.an-consent__manage {
		bottom: calc(1rem + 52px);
	}
}

@media (max-width: 767px) {
	.an-consent__actions,
	.an-consent__panel-actions {
		flex-direction: column;
	}

	.an-consent__btn {
		width: 100%;
	}
}
