:root {
	--lcc-orange: #dd752c;
	--lcc-orange-dark: #b95616;
	--lcc-black: #1d1d1b;
	--lcc-white: #ffffff;
	--lcc-cream: #fff8f3;
	--lcc-border: #eadfd7;
}

body.lcc-open {
	overflow: hidden;
}

.lcc[hidden],
.lcc-reopen[hidden] {
	display: none !important;
}

.lcc {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	padding: 24px;
	place-items: end center;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lcc__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(29, 29, 27, 0.36);
	backdrop-filter: blur(3px);
}

.lcc__panel {
	position: relative;
	width: min(100%, 920px);
	max-height: calc(100vh - 48px);
	padding: 26px 28px 24px;
	overflow: auto;
	border: 1px solid var(--lcc-border);
	border-radius: 18px;
	color: var(--lcc-black);
	background: var(--lcc-white);
	box-shadow: 0 24px 70px rgba(29, 29, 27, 0.28);
}

.lcc__brand {
	margin-bottom: 7px;
	color: var(--lcc-orange);
	font-family: Georgia, serif;
	font-size: 1.08rem;
	font-weight: 700;
}

.lcc__panel h2 {
	margin: 0 42px 7px 0;
	color: var(--lcc-black);
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
	line-height: 1.2;
}

.lcc__intro {
	max-width: 780px;
	margin: 0 0 19px;
	color: #625c57;
	font-size: 0.88rem;
	line-height: 1.55;
}

.lcc__close {
	position: absolute;
	top: 16px;
	right: 18px;
	display: grid;
	width: 36px;
	height: 36px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--lcc-border);
	border-radius: 50%;
	color: var(--lcc-black);
	background: var(--lcc-white);
	font-size: 1.35rem;
	cursor: pointer;
}

.lcc.is-first-visit .lcc__close {
	display: none;
}

.lcc__categories {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.lcc__category {
	display: flex;
	min-width: 0;
	padding: 15px;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	border: 1px solid var(--lcc-border);
	border-radius: 12px;
	background: var(--lcc-cream);
	cursor: pointer;
}

.lcc__category:first-child {
	cursor: default;
}

.lcc__category strong {
	display: block;
	margin-bottom: 4px;
	font-size: 0.87rem;
}

.lcc__category p {
	margin: 0;
	color: #716861;
	font-size: 0.72rem;
	line-height: 1.45;
}

.lcc__always {
	display: grid;
	width: 34px;
	height: 22px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 999px;
	color: #fff;
	background: var(--lcc-black);
	font-size: 0.7rem;
}

.lcc__switch {
	position: relative;
	display: block;
	width: 38px;
	height: 22px;
	flex: 0 0 auto;
}

.lcc__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.lcc__switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #b8b1ac;
	transition: background 160ms ease;
}

.lcc__switch span::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
	content: "";
	transition: transform 160ms ease;
}

.lcc__switch input:checked + span {
	background: var(--lcc-orange);
}

.lcc__switch input:checked + span::after {
	transform: translateX(16px);
}

.lcc__switch input:focus-visible + span,
.lcc button:focus-visible,
.lcc-reopen:focus-visible {
	outline: 3px solid #f4b942;
	outline-offset: 3px;
}

.lcc__links {
	display: flex;
	margin-top: 14px;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.lcc__links a {
	color: var(--lcc-black);
	font-size: 0.75rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lcc__actions {
	display: flex;
	margin-top: 18px;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

.lcc__button {
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--lcc-black);
	border-radius: 9px;
	font-size: 0.82rem;
	font-weight: 750;
	cursor: pointer;
}

.lcc__button--reject,
.lcc__button--save {
	color: var(--lcc-black);
	background: var(--lcc-white);
}

.lcc__button--accept {
	border-color: var(--lcc-orange);
	color: #fff;
	background: var(--lcc-orange);
}

.lcc__button:hover {
	border-color: var(--lcc-orange-dark);
}

.lcc__button--accept:hover {
	background: var(--lcc-orange-dark);
}

.lcc-reopen {
	position: fixed;
	z-index: 99990;
	right: 18px;
	bottom: 18px;
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid var(--lcc-border);
	border-radius: 999px;
	color: var(--lcc-black);
	background: #fff;
	box-shadow: 0 8px 24px rgba(29, 29, 27, 0.15);
	font-size: 0.7rem;
	font-weight: 700;
	cursor: pointer;
}

@media (max-width: 760px) {
	.lcc {
		padding: 10px;
	}

	.lcc__panel {
		max-height: calc(100vh - 20px);
		padding: 22px 18px 18px;
		border-radius: 14px;
	}

	.lcc__categories {
		grid-template-columns: 1fr;
	}

	.lcc__category {
		padding: 12px;
	}

	.lcc__actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.lcc__button {
		width: 100%;
	}

	.lcc-reopen {
		right: 10px;
		bottom: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lcc *,
	.lcc-reopen {
		transition: none !important;
	}
}
