/**
 * Згода на cookie. Окремий файл: банер потрібен на всіх сторінках сайта,
 * зокрема там, де немає шорткодів Lexoria.
 */

.lx-cc,
.lx-cc * { box-sizing: border-box; }

/*
 * Ховаємо і сам контейнер, і вкладені блоки: правило браузера для [hidden]
 * слабке, і тема може його перебити — тоді банер лишався б на екрані
 * навіть після натискання «Прийняти всі».
 */
.lx-cc[hidden],
.lx-cc [hidden] { display: none !important; }

.lx-cc__banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	flex-wrap: wrap;
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 24px;
	border-radius: 20px;
	background: rgba(11, 31, 58, .97);
	border: 1px solid rgba(229, 192, 121, .35);
	box-shadow: 0 24px 60px rgba(4, 12, 26, .45);
	backdrop-filter: blur(8px);
	font-family: "Open Sans", system-ui, -apple-system, sans-serif;
	animation: lx-cc-up .35s ease;
}

@keyframes lx-cc-up {
	from { transform: translateY(20px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.lx-cc__text { flex: 1 1 420px; min-width: 0; }

.lx-cc__title {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 6px;
}

.lx-cc__desc {
	font-size: 14px;
	line-height: 1.6;
	color: #C4D0E1;
	margin: 0;
}

.lx-cc__desc a {
	color: #E5C079;
	text-decoration: underline;
}

.lx-cc__desc a:hover { color: #EFD9B4; }

.lx-cc__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.lx-cc__btn {
	border-radius: 999px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
	white-space: nowrap;
}

.lx-cc__btn--gold {
	background: linear-gradient(135deg, #C4913D 0%, #E5C079 100%);
	color: #fff;
}

.lx-cc__btn--gold:hover { filter: brightness(1.06); }

.lx-cc__btn--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, .28);
	color: #fff;
}

.lx-cc__btn--outline:hover { border-color: #E5C079; color: #E5C079; }

.lx-cc__btn--ghost {
	background: transparent;
	border-color: transparent;
	color: #9FB0C6;
}

.lx-cc__btn--ghost:hover { color: #fff; }

/* Вікно налаштувань */

.lx-cc__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lx-cc__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 23, 41, .62);
	backdrop-filter: blur(6px);
}

.lx-cc__panel {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 22px;
	padding: 28px;
	box-shadow: 0 30px 80px rgba(4, 12, 26, .5);
	font-family: "Open Sans", system-ui, sans-serif;
}

.lx-cc__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.lx-cc__panel-title {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 21px;
	font-weight: 700;
	color: #0B1F3A;
	margin: 0;
}

.lx-cc__panel .lx-modal__close {
	position: static;
	flex: none;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #8C99AC;
	cursor: pointer;
}

.lx-cc__panel .lx-modal__close:hover { color: #0B1F3A; }

.lx-cc__group {
	border-top: 1px solid #E4E8EF;
	padding: 16px 0;
}

.lx-cc__group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.lx-cc__group-title {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #0B1F3A;
}

.lx-cc__group-desc {
	font-size: 14px;
	line-height: 1.55;
	color: #56657D;
	margin: 6px 0 0;
}

/* Перемикач */

.lx-cc__switch {
	position: relative;
	flex: none;
	cursor: pointer;
}

.lx-cc__switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.lx-cc__track {
	display: block;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: #D7DEE8;
	transition: background-color .18s ease;
}

.lx-cc__thumb {
	display: block;
	width: 20px;
	height: 20px;
	margin: 3px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(8, 23, 41, .3);
	transition: transform .18s ease;
}

.lx-cc__switch input:checked + .lx-cc__track { background: #3F7D62; }
.lx-cc__switch input:checked + .lx-cc__track .lx-cc__thumb { transform: translateX(20px); }
.lx-cc__switch input:focus-visible + .lx-cc__track { outline: 2px solid #C4913D; outline-offset: 2px; }
.lx-cc__switch.is-locked { opacity: .65; cursor: default; }

.lx-cc__panel-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #E4E8EF;
}

@media (max-width: 720px) {
	.lx-cc__banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
		padding: 18px;
		gap: 14px;
	}

	.lx-cc__actions { width: 100%; }
	.lx-cc__btn { flex: 1 1 auto; padding: 12px 14px; }
	.lx-cc__btn--ghost { order: 3; flex-basis: 100%; }
	.lx-cc__panel { padding: 22px 18px; }
	.lx-cc__panel-actions { flex-direction: column-reverse; }
	.lx-cc__panel-actions .lx-cc__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.lx-cc__banner { animation: none; }
	.lx-cc__thumb, .lx-cc__track { transition: none; }
}
