/*! AgentView SaaS Core: cookie consent banner. */
.avd-cc {
	position: fixed;
	z-index: 99980;
	left: 20px;
	right: auto;
	bottom: 20px;
	width: min(420px, calc(100vw - 32px));
	font-family: var(--avd-font-body, 'Olive Display', 'Helvetica Neue', sans-serif);
	word-spacing: var(--avd-word-spacing, -0.06em);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.avd-cc[hidden] {
	display: none;
}

.avd-cc.is-open {
	opacity: 1;
	transform: none;
}

.avd-cc--right {
	left: auto;
	right: 20px;
}

.avd-cc--bar {
	left: 16px;
	right: 16px;
	bottom: 16px;
	width: auto;
}

.avd-cc__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border: 1px solid #262B34;
	border-radius: 20px;
	background: #0A0A0A;
	color: #F4F6F8;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	outline: none;
}

.avd-cc__card:focus-visible {
	box-shadow: 0 0 0 2px #00CAF4, 0 24px 60px rgba(0, 0, 0, 0.35);
}

.avd-cc__title {
	margin: 0;
	padding-right: 32px;
	font-family: var(--avd-font-heading, 'Givonic', sans-serif);
	font-size: 20px;
	font-weight: var(--avd-fw-heading, 700);
	line-height: 1.25;
	word-spacing: normal;
	color: #FFFFFF;
}

.avd-cc__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #C9D1DC;
}

.avd-cc__text[hidden],
.avd-cc__prefs[hidden],
.avd-cc__btn[hidden],
.avd-cc__close[hidden],
.avd-cc [data-cc-label][hidden] {
	display: none;
}

.avd-cc__text a {
	color: #7FB0FF;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.avd-cc__text a:hover {
	color: #FFFFFF;
}

.avd-cc__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #C9D1DC;
	cursor: pointer;
}

.avd-cc__close:hover {
	background: #1B2029;
	color: #FFFFFF;
}

.avd-cc__prefs {
	display: flex;
	flex-direction: column;
	border: 1px solid #262B34;
	border-radius: 14px;
	background: #101319;
}

.avd-cc__row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	cursor: pointer;
}

.avd-cc__row + .avd-cc__row {
	border-top: 1px solid #262B34;
}

.avd-cc__row-text {
	display: flex;
	flex: 1;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.avd-cc__row-text strong {
	font-size: 15px;
	font-weight: 600;
	color: #FFFFFF;
}

.avd-cc__row-text small {
	font-size: 13px;
	line-height: 1.45;
	color: #A9B4C2;
}

/* The checkbox stays in place for keyboards and screen readers; the switch is its picture. */
.avd-cc__row input {
	position: absolute;
	right: 16px;
	width: 44px;
	height: 26px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.avd-cc__switch {
	position: relative;
	flex: none;
	width: 44px;
	height: 26px;
	border-radius: 999px;
	background: #3A4250;
	transition: background-color 0.15s ease;
}

.avd-cc__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #FFFFFF;
	transition: transform 0.15s ease;
}

.avd-cc__row input:checked + .avd-cc__switch {
	background: #0057FF;
}

.avd-cc__row input:checked + .avd-cc__switch::after {
	transform: translateX(18px);
}

.avd-cc__row input:disabled + .avd-cc__switch {
	background: #1F4FB8;
	opacity: 0.7;
}

.avd-cc__row input:focus-visible + .avd-cc__switch {
	outline: 2px solid #00CAF4;
	outline-offset: 3px;
}

.avd-cc__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.avd-cc__btn {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid #4A5361;
	border-radius: 999px;
	background: transparent;
	color: #FFFFFF;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.avd-cc__btn:hover {
	border-color: #FFFFFF;
}

.avd-cc__btn--primary {
	border-color: #0057FF;
	background: #0057FF;
}

.avd-cc__btn--primary:hover {
	border-color: #1A6BFF;
	background: #1A6BFF;
}

.avd-cc__btn--quiet {
	flex: 0 1 auto;
	border-color: transparent;
	color: #C9D1DC;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.avd-cc__btn--quiet:hover {
	border-color: transparent;
	color: #FFFFFF;
}

.avd-cc__btn:focus-visible,
.avd-cc__close:focus-visible {
	outline: 2px solid #00CAF4;
	outline-offset: 2px;
}

/* Bottom bar: text on the left, buttons on the right while there is room. */
@media (min-width: 900px) {
	.avd-cc--bar[data-view="ask"] .avd-cc__card,
	.avd-cc--bar[data-view="notice"] .avd-cc__card {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 28px;
		padding: 18px 24px;
	}

	.avd-cc--bar[data-view="ask"] .avd-cc__title,
	.avd-cc--bar[data-view="notice"] .avd-cc__title {
		padding-right: 0;
	}

	.avd-cc--bar[data-view="ask"] .avd-cc__text,
	.avd-cc--bar[data-view="notice"] .avd-cc__text {
		flex: 1 1 320px;
	}

	.avd-cc--bar .avd-cc__btn {
		flex: 0 1 auto;
	}

	.avd-cc--bar[data-view="prefs"] {
		left: auto;
		width: min(460px, calc(100vw - 32px));
	}
}

@media (max-width: 600px) {
	.avd-cc,
	.avd-cc--right,
	.avd-cc--bar {
		left: 12px;
		right: 12px;
		bottom: 12px;
		width: auto;
	}

	.avd-cc__card {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 20px;
		overflow-y: auto;
	}

	/* Clear the checkout's bottom bar. */
	body:has(.avd-co__bar) .avd-cc {
		bottom: 84px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.avd-cc,
	.avd-cc__switch,
	.avd-cc__switch::after {
		transition: none;
	}
}

@media print {
	.avd-cc {
		display: none;
	}
}

/* While choosing, "Save choices" is the main action. */
.avd-cc[data-view="prefs"] [data-cc="accept"] {
	border-color: #4A5361;
	background: transparent;
}

.avd-cc[data-view="prefs"] [data-cc="accept"]:hover {
	border-color: #FFFFFF;
}
