/*
 * KMR cookie consent — banner + preferences modal.
 * All classes scoped with `kx-cc-` to avoid collisions.
 * Brand tokens fall back to literals so this is self-contained.
 */

.kx-cc-banner,
.kx-cc-modal {
	--accent: var(--kx-amber, #FEBB19);
	--accent-strong: var(--kx-amber-strong, #F5A800);
	font-family: var(--font-sans, 'Play', system-ui, -apple-system, sans-serif);
	box-sizing: border-box;
}

.kx-cc-banner *,
.kx-cc-modal * {
	box-sizing: border-box;
}

.kx-cc-banner[hidden],
.kx-cc-modal[hidden] {
	display: none !important;
}

.kx-cc-eyebrow {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--accent, #FEBB19);
	margin-bottom: 8px;
}

.kx-cc-link {
	color: var(--accent, #FEBB19);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.kx-cc-link:hover { color: var(--accent-strong, #F5A800); }

/* ---------- Banner ---------- */

.kx-cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9000;
	background: #0D0D0D;
	border-top: 1px solid #262C32;
	color: #C4CCD4;
	box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
	animation: kx-cc-rise 0.28s ease;
}

@keyframes kx-cc-rise {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

.kx-cc-banner__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 20px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
}

.kx-cc-banner__copy { max-width: 720px; flex: 1 1 420px; }

.kx-cc-banner__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #C4CCD4;
}

.kx-cc-banner__actions {
	display: flex;
	gap: 10px;
	flex: none;
	flex-wrap: wrap;
}

/* ---------- Shared buttons (build on .kx-btn / .kx-amberbtn / .kx-ghost) ---------- */

.kx-cc-btn {
	height: 44px;
	padding: 0 20px;
	border-radius: 3px;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	font-family: inherit;
	white-space: nowrap;
	cursor: pointer;
}

.kx-cc-btn--ghost {
	color: #C4CCD4;
	border: 1px solid #262C32;
}
.kx-cc-btn--ghost:hover {
	background: var(--accent, #FEBB19);
	color: #0D0D0D;
	border-color: var(--accent, #FEBB19);
}

.kx-cc-btn--amber {
	background: var(--accent, #FEBB19);
	color: #0D0D0D;
	border: 1px solid var(--accent, #FEBB19);
}
.kx-cc-btn--amber:hover { background: var(--accent-strong, #F5A800); border-color: var(--accent-strong, #F5A800); }

.kx-cc-btn:focus-visible,
.kx-cc-close:focus-visible {
	outline: 2px solid var(--accent, #FEBB19);
	outline-offset: 2px;
}

/* ---------- Modal ---------- */

.kx-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 9100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.kx-cc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.kx-cc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #161A1E;
	border: 1px solid #262C32;
	border-radius: 8px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	color: #C4CCD4;
	padding: 28px;
	animation: kx-cc-pop 0.2s ease;
}

@keyframes kx-cc-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.99); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.kx-cc-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.kx-cc-modal__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.15;
	color: #fff;
	font-weight: 700;
}

.kx-cc-modal__intro {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: #9AA4AE;
}

.kx-cc-close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #262C32;
	border-radius: 4px;
	background: transparent;
	color: #9AA4AE;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.kx-cc-close:hover { color: #fff; border-color: var(--accent, #FEBB19); }

/* ---------- Categories ---------- */

.kx-cc-cats {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.kx-cc-cat {
	padding: 18px 0;
	border-top: 1px solid #1A1B1D;
}
.kx-cc-cat:first-child { border-top: 0; padding-top: 0; }

.kx-cc-cat__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.kx-cc-cat__label {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
}

.kx-cc-cat__desc {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: #9AA4AE;
	max-width: 92%;
}

/* ---------- Toggle switch ---------- */

.kx-cc-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.kx-cc-switch input {
	position: absolute;
	top: 0;
	left: 0;
	width: 46px;
	height: 26px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.kx-cc-switch__track {
	position: relative;
	display: inline-block;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: #262C32;
	border: 1px solid #262C32;
	transition: background 0.18s ease, border-color 0.18s ease;
}

.kx-cc-switch__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #9AA4AE;
	transition: transform 0.18s ease, background 0.18s ease;
}

.kx-cc-switch input:checked + .kx-cc-switch__track {
	background: var(--accent, #FEBB19);
	border-color: var(--accent, #FEBB19);
}
.kx-cc-switch input:checked + .kx-cc-switch__track::after {
	transform: translateX(20px);
	background: #0D0D0D;
}

.kx-cc-switch input:focus-visible + .kx-cc-switch__track {
	outline: 2px solid var(--accent, #FEBB19);
	outline-offset: 2px;
}

.kx-cc-switch--locked input { cursor: not-allowed; }
.kx-cc-switch--locked .kx-cc-switch__track { opacity: 0.85; }

.kx-cc-switch__state {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
	color: #6E7A85;
}

/* ---------- Modal footer ---------- */

.kx-cc-modal__foot {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* lock background scroll while modal open */
.kx-cc-locked { overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
	.kx-cc-banner__inner { padding: 18px 20px; }
	.kx-cc-banner__actions { width: 100%; }
	.kx-cc-banner__actions .kx-cc-btn { flex: 1 1 auto; justify-content: center; }
	.kx-cc-modal { padding: 0; align-items: flex-end; }
	.kx-cc-modal__dialog {
		max-width: 100%;
		max-height: 90vh;
		border-radius: 12px 12px 0 0;
	}
	.kx-cc-modal__foot .kx-cc-btn { flex: 1 1 auto; justify-content: center; }
	.kx-cc-cat__desc { max-width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.kx-cc-banner,
	.kx-cc-modal__dialog { animation: none; }
	.kx-cc-switch__track,
	.kx-cc-switch__track::after,
	.kx-cc-close { transition: none; }
}
