/* Scoped, non-modal analytics choice; existing Archivo/ink/paper palette. */
.analytics-consent {
	position: fixed;
	inset: auto 16px 16px auto;
	z-index: 80;
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 460px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	padding: 20px;
	border: 1px solid #15112e;
	border-top: 4px solid #bd2684;
	border-radius: 2px;
	background: #f6f4f9;
	color: #15112e;
	font-family: inherit;
	box-shadow: 0 8px 32px #15112e24;
}
.analytics-consent[hidden], .analytics-settings[hidden] { display: none !important; }
.analytics-consent__title {
	margin: 0 0 12px;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}
.analytics-consent__description { font-size: 16px; line-height: 1.5; }
.analytics-consent__description p { margin: 0; }
.analytics-consent__description p + p { margin-top: 10px; }
.analytics-consent__privacy {
	display: inline-block;
	margin-top: 12px;
	color: #90278d;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.analytics-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.analytics-consent__button {
	min-width: 0;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #15112e;
	border-radius: 2px;
	background: #15112e;
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}
.analytics-consent__button:active { background: #90278d; border-color: #90278d; }
.analytics-consent__button:disabled { opacity: .45; cursor: not-allowed; }
.analytics-settings {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.analytics-settings:active { color: #fff; }
.analytics-settings:disabled { opacity: .45; cursor: not-allowed; }
.analytics-consent__title:focus-visible, .analytics-consent__button:focus-visible,
.analytics-consent__privacy:focus-visible, .analytics-settings:focus-visible {
	outline: 3px solid #bd2684;
	outline-offset: 3px;
}
@media (hover: hover) {
	.analytics-consent__button:not(:disabled):hover { background: #90278d; border-color: #90278d; }
	.analytics-consent__privacy:hover { color: #15112e; }
	.analytics-settings:not(:disabled):hover { color: #fff; }
}
@media (min-width: 640px) {
	.analytics-consent { inset: auto 24px 24px auto; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.analytics-consent__button { transition: none; }
}
