.kp-cookie-is-open {
	overflow: hidden;
}

.kp-cookie-consent[hidden] {
	display: none;
}

.kp-cookie-consent {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: end center;
	padding: clamp(1rem, 3vw, 2rem);
}

.kp-cookie-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 18, 26, 0.32);
	backdrop-filter: blur(3px);
}

.kp-cookie-consent__panel {
	position: relative;
	width: min(760px, 100%);
	max-height: min(88vh, 820px);
	overflow: auto;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid rgba(16, 32, 48, 0.08);
	border-top: 4px solid var(--kp-orange);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 28px 80px rgba(16, 32, 48, 0.22);
	color: var(--kp-body);
}

.kp-cookie-consent__eyebrow {
	margin: 0 0 0.45rem;
	color: var(--kp-orange);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kp-cookie-consent h2 {
	margin: 0;
	color: var(--kp-text);
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1;
}

.kp-cookie-consent p {
	margin: 0.9rem 0 0;
	max-width: 62ch;
	font-size: 0.96rem;
	line-height: 1.7;
}

.kp-cookie-consent a {
	color: var(--kp-orange);
	font-weight: 700;
	text-decoration: none;
}

.kp-cookie-consent a:hover,
.kp-cookie-consent a:focus-visible {
	text-decoration: underline;
}

.kp-cookie-consent__details {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.kp-cookie-category {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 1rem;
	border: 1px solid rgba(16, 32, 48, 0.08);
	border-radius: 16px;
	background: rgba(248, 245, 240, 0.72);
}

.kp-cookie-category strong,
.kp-cookie-category small {
	display: block;
}

.kp-cookie-category strong {
	color: var(--kp-text);
	font-size: 0.86rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.kp-cookie-category small {
	margin-top: 0.3rem;
	color: var(--kp-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

.kp-cookie-category input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.kp-cookie-category i {
	position: relative;
	display: inline-flex;
	width: 48px;
	height: 28px;
	border: 1px solid rgba(16, 32, 48, 0.14);
	border-radius: 999px;
	background: rgba(16, 32, 48, 0.08);
	transition: background 180ms ease, border-color 180ms ease;
}

.kp-cookie-category i::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 12px rgba(16, 32, 48, 0.18);
	transition: transform 180ms ease;
}

.kp-cookie-category input:checked + i {
	border-color: rgba(224, 108, 32, 0.36);
	background: rgba(224, 108, 32, 0.82);
}

.kp-cookie-category input:checked + i::after {
	transform: translateX(20px);
}

.kp-cookie-category.is-locked {
	background: rgba(224, 108, 32, 0.06);
}

.kp-cookie-category.is-locked i {
	opacity: 0.72;
}

.kp-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1.35rem;
}

.kp-cookie-consent__plain {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.78rem 1.15rem;
	border: 1px solid rgba(224, 108, 32, 0.18);
	border-radius: 999px;
	background: transparent;
	color: var(--kp-orange);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.kp-cookie-consent__plain:hover,
.kp-cookie-consent__plain:focus-visible {
	border-color: rgba(224, 108, 32, 0.36);
	background: rgba(224, 108, 32, 0.07);
}

@media (max-width: 640px) {
	.kp-cookie-consent {
		align-items: end;
		padding: 0.75rem;
	}

	.kp-cookie-consent__panel {
		max-height: 92vh;
		padding: 1.15rem;
		border-radius: 20px;
	}

	.kp-cookie-consent__actions,
	.kp-cookie-consent__actions .kp-button,
	.kp-cookie-consent__plain {
		width: 100%;
	}

	.kp-cookie-category {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
}
