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

.analytics-consent {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	z-index: 1000;
	margin: 0 auto;
	max-width: 760px;
	padding: 1.25rem;
	border: 1px solid rgba(28, 27, 24, 0.18);
	border-radius: 14px;
	background: #fffdf8;
	box-shadow: 0 12px 36px rgba(28, 27, 24, 0.18);
	color: #1c1b18;
}

.analytics-consent__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.analytics-consent__copy {
	min-width: 0;
	flex: 1;
}

.analytics-consent__copy h2 {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
}

.analytics-consent__copy p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
}

.analytics-consent__copy a {
	white-space: nowrap;
}

.analytics-consent__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	min-width: 190px;
}

.analytics-consent__button,
.analytics-preferences {
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.analytics-consent__button {
	padding: 0.65rem 0.9rem;
	font-weight: 600;
}

.analytics-consent__button:hover,
.analytics-consent__button:focus-visible,
.analytics-preferences:hover,
.analytics-preferences:focus-visible {
	background: #1c1b18;
	color: #fffdf8;
}

.analytics-preferences {
	padding: 0.3rem 0.7rem;
	font-size: 0.85rem;
}

@media (max-width: 600px) {
	.analytics-consent {
		right: 0.75rem;
		bottom: 0.75rem;
		left: 0.75rem;
		max-width: calc(100vw - 1.5rem);
		padding: 1rem;
	}

	.analytics-consent__inner {
		display: grid;
		gap: 0.9rem;
	}

	.analytics-consent__copy a {
		white-space: normal;
	}

	.analytics-consent__actions {
		min-width: 0;
	}
}
