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

.analytics-consent {
	box-sizing: border-box;
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	left: max(16px, env(safe-area-inset-left));
	z-index: 10000;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px 24px;
	max-width: 1120px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
	margin-inline: auto;
	padding: 22px 30px;
	overflow-y: auto;
	overscroll-behavior: contain;
	color: #191b50;
	background: #fff;
	border: 1px solid #dce1f5;
	border-radius: 12px;
	box-shadow: 0 12px 36px rgba(25, 27, 80, .08);
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: left;
}

.analytics-consent__copy {
	grid-column: 1 / -1;
	min-width: 0;
}

.analytics-consent__copy strong {
	display: block;
	margin-bottom: 4px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

.analytics-consent__copy p {
	margin: 0;
	color: #56618a;
	font-size: 15px;
	line-height: 1.5;
}

.analytics-consent__preferences {
	grid-column: 1 / -1;
	min-width: 0;
}

.analytics-consent__preferences h2 {
	margin: 0 0 4px;
	color: #191b50;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

.analytics-consent__intro {
	margin: 0;
	color: #56618a;
	font-size: 15px;
	line-height: 1.5;
}

.analytics-consent__options {
	display: grid;
	gap: 10px;
	margin: 18px 0;
}

.analytics-consent__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0;
	padding: 14px 16px;
	background: #f8faff;
	border: 1px solid #e8ecf8;
	border-radius: 9px;
	cursor: pointer;
}

.analytics-consent__option--required {
	cursor: default;
}

.analytics-consent__option-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
	color: #56618a;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.analytics-consent__option-copy strong {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	color: #191b50;
	font-size: 15px;
	font-weight: 700;
}

.analytics-consent__required-state {
	color: #56618a;
	font-size: 12px;
	font-weight: 400;
}

.analytics-consent input.analytics-consent__toggle {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	position: relative;
	flex: 0 0 46px;
	width: 46px;
	height: 28px;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: #687696;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease;
}

.analytics-consent__toggle::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(25, 27, 80, .18);
	transition: transform .15s ease;
}

.analytics-consent input.analytics-consent__toggle:checked {
	background: var(--accent, #3d63ff);
}

.analytics-consent__toggle:checked::before {
	transform: translateX(18px);
}

.analytics-consent input.analytics-consent__toggle:disabled {
	background: #687696;
	opacity: 1;
	cursor: default;
}

.analytics-consent a.analytics-consent__link {
	justify-self: start;
	color: #191b50;
	font-size: 15px;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.analytics-consent a.analytics-consent__link:hover {
	color: var(--accent, #3d63ff);
}

.analytics-consent__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.analytics-consent__button {
	box-sizing: border-box;
	min-width: 128px;
	min-height: 46px;
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: 7px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.analytics-consent .analytics-consent__button:focus-visible,
.analytics-consent input.analytics-consent__toggle:focus-visible,
.analytics-consent__link:focus-visible,
.analytics-preferences-button:focus-visible {
	outline: 3px solid var(--accent, #3d63ff);
	outline-offset: 2px;
}

.analytics-consent button.analytics-consent__button--primary {
	color: #fff;
	background: var(--accent, #3d63ff);
	border: 0;
	box-shadow: none;
}

.analytics-consent button.analytics-consent__button--primary:hover {
	background: var(--accent-3, #3352d0);
}

.analytics-consent button.analytics-consent__button--primary:hover,
.analytics-consent button.analytics-consent__button--primary:focus,
.analytics-consent button.analytics-consent__button--primary:active {
	border: 0;
	box-shadow: none;
}

.analytics-consent__button--secondary {
	color: #191b50;
	background: #fff;
	border-color: #dce1f5;
}

.analytics-consent__button--secondary:hover {
	background: #f8fbff;
	border-color: #b8c5e5;
}

.analytics-preferences-button {
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	font: inherit;
	font-size: .875rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

@media (max-width: 760px) {
	.analytics-consent {
		grid-template-columns: minmax(0, 1fr);
		align-items: stretch;
		gap: 16px;
		padding: 20px;
	}

	.analytics-consent__actions {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
	}

	.analytics-consent__button {
		min-width: 0;
		padding-inline: 16px;
	}
}

@media (max-width: 560px) {
	.analytics-consent__option {
		gap: 14px;
		padding: 12px;
	}

	.analytics-consent__actions {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.analytics-consent,
	.analytics-consent * {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
