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

.hk-analytics-consent {
	position: fixed;
	right: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 100000;
	width: min(420px, calc(100vw - 48px));
	pointer-events: none;
}

.hk-analytics-consent__dialog {
	position: relative;
	width: 100%;
	border: 1px solid rgba(26, 21, 64, 0.12);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(16, 12, 42, 0.22);
	padding: 26px;
	color: #1b1733;
	opacity: 0;
	pointer-events: none;
	transform: translateY(14px) scale(0.985);
	transform-origin: right bottom;
	transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.hk-analytics-consent.is-visible .hk-analytics-consent__dialog {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.hk-analytics-consent__dialog h2 {
	margin: 0;
	font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.hk-analytics-consent__dialog p {
	margin: 12px 0 0;
	color: #5d5874;
	font-size: 14px;
	line-height: 1.6;
}

.hk-analytics-consent__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 22px;
}

.hk-analytics-consent__button {
	min-height: 46px;
	border: 1px solid #1a1540;
	border-radius: 10px;
	background: #fff;
	padding: 11px 16px;
	color: #1a1540;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hk-analytics-consent__button--reject:hover {
	background: #f5f4fa;
	transform: translateY(-1px);
}

.hk-analytics-consent__button--accept {
	border-color: #bee320;
	background: #bee320;
	color: #1b1733;
}

.hk-analytics-consent__button--accept:hover {
	border-color: #acd018;
	background: #acd018;
	transform: translateY(-1px);
}

.hk-analytics-consent__button:focus-visible {
	outline: 3px solid #1a1540;
	outline-offset: 3px;
}

.hk-analytics-settings:focus-visible {
	outline: 3px solid #bee320;
	outline-offset: 3px;
}

.hk-analytics-settings {
	display: block;
	width: max-content;
	margin: 0 auto 18px;
	border: 0;
	background: transparent;
	padding: 4px 8px;
	color: #a9a4c8;
	font-size: 12px;
	line-height: 1.4;
	text-decoration: underline;
	text-decoration-color: rgba(169, 164, 200, 0.45);
	text-underline-offset: 3px;
	cursor: pointer;
}

.hk-analytics-settings:hover {
	color: #fff;
	text-decoration-color: #bee320;
}

@media (max-width: 480px) {
	.hk-analytics-consent {
		right: 14px;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
		width: calc(100vw - 28px);
	}

	.hk-analytics-consent__dialog {
		border-radius: 15px;
		padding: 22px;
	}

	.hk-analytics-consent__actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hk-analytics-consent__dialog,
	.hk-analytics-consent__button {
		transition: none;
	}
}
