/* ILYK — банер і панель вибору щодо cookie. [ILYK 30.11.2026] Пара до inc/visitor-choice.php */

.ilyk-vc {
	display: none;
	position: fixed;
	left: 24px;
	bottom: calc(24px + var(--ilyk-player-clearance, 0px));
	z-index: 100000;
	width: 400px;
	max-width: calc(100vw - 48px);
	font-family: inherit;
	color: #1e293b;
}
html.ilyk-vc-pending .ilyk-vc,
.ilyk-vc.is-open { display: block; }

.ilyk-vc__card {
	position: relative;
	box-sizing: border-box;
	max-height: calc(100vh - 48px - var(--ilyk-player-clearance, 0px));
	overflow-y: auto;
	padding: 22px 22px 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 14px 44px rgba(15, 23, 42, .16);
	animation: ilyk-vc-in .35s cubic-bezier(.2, .7, .2, 1) both;
	outline: none;
}
@keyframes ilyk-vc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ilyk-vc__label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #64748b;
}
.ilyk-vc__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #334155;
}
.ilyk-vc__text a,
.ilyk-vc__more {
	color: #1e293b;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.ilyk-vc__text a:hover,
.ilyk-vc__more:hover { color: var(--ilyk-clr-primary, #095FCC); }

/* ── Кнопки ── */
.ilyk-vc__actions {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}
.ilyk-vc__btn {
	flex: 1 1 0;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 50px;
	background: #eef2f7;
	color: #1e293b;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .2s, color .2s, transform .2s;
}
.ilyk-vc__btn:hover { background: #e2e8f0; }
.ilyk-vc__btn--primary {
	background: var(--ilyk-clr-primary, #095FCC);
	color: #fff;
}
.ilyk-vc__btn--primary:hover { background: #1e293b; color: #fff; }
.ilyk-vc__btn:active { transform: scale(.98); }
.ilyk-vc__btn:focus-visible,
.ilyk-vc__more:focus-visible,
.ilyk-vc__close:focus-visible,
.ilyk-vc__switch:focus-visible {
	outline: 2px solid var(--ilyk-clr-primary, #095FCC);
	outline-offset: 2px;
}

.ilyk-vc__btn--save { display: none; }
.ilyk-vc.is-settings .ilyk-vc__btn--save { display: block; }
.ilyk-vc.is-settings [data-vc="necessary"] { display: none; }
.ilyk-vc.is-settings [data-vc="all"] { background: #eef2f7; color: #1e293b; }
.ilyk-vc.is-settings [data-vc="all"]:hover { background: #e2e8f0; }
.ilyk-vc.is-settings .ilyk-vc__btn--save { order: -1; }

.ilyk-vc__more {
	display: block;
	margin: 12px auto 0;
	padding: 4px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 13px;
	color: #64748b;
	cursor: pointer;
}
.ilyk-vc.is-settings .ilyk-vc__more { display: none; }

.ilyk-vc__close {
	display: none;
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.ilyk-vc__close:hover { background: #f1f5f9; color: #1e293b; }
html:not(.ilyk-vc-pending) .ilyk-vc.is-open .ilyk-vc__close { display: flex; }

/* ── Налаштування ── */
.ilyk-vc__settings { display: none; margin-top: 14px; }
.ilyk-vc.is-settings .ilyk-vc__settings { display: block; }

.ilyk-vc__row {
	display: block;
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid #e2e8f0;
	font-weight: 400;
	cursor: default;
}
label.ilyk-vc__row { cursor: pointer; }
.ilyk-vc__row:last-child { padding-bottom: 2px; }
.ilyk-vc__row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}
.ilyk-vc__row-title {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
}
.ilyk-vc__always {
	font-size: 12px;
	color: #64748b;
	white-space: nowrap;
}
.ilyk-vc__desc {
	display: block;
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
}

/* Перемикач */
.ilyk-vc__switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	width: 40px;
	height: 24px;
	margin: 0;
	border-radius: 50px;
	background: #cbd5e1;
	cursor: pointer;
	transition: background-color .2s;
}
.ilyk-vc__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
	transition: transform .2s;
}
.ilyk-vc__switch:checked { background: var(--ilyk-clr-primary, #095FCC); }
.ilyk-vc__switch:checked::after { transform: translateX(16px); }

/* ── Телефон ── */
@media (max-width: 600px) {
	.ilyk-vc {
		left: 12px;
		right: 12px;
		bottom: calc(12px + var(--ilyk-player-clearance, 0px));
		width: auto;
		max-width: none;
	}
	.ilyk-vc__card {
		max-height: calc(100vh - 24px - var(--ilyk-player-clearance, 0px));
		padding: 18px 18px 12px;
	}
	.ilyk-vc__text { font-size: 13.5px; }
}
@media (max-width: 360px) {
	.ilyk-vc__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.ilyk-vc__card { animation: none; }
	.ilyk-vc__btn, .ilyk-vc__switch, .ilyk-vc__switch::after { transition: none; }
}
@media print { .ilyk-vc { display: none !important; } }

/* Посилання [ilyk_cookie_settings] на сторінці політики */
.ilyk-vc-open { cursor: pointer; }

/* Підпис про передачу даних на власних прев'ю відео (single-ilyk_news.php) */
.ilyk-vc-note {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: #64748b;
}
.ilyk-vc-note--over {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 10px;
	z-index: 2;
	margin: 0;
	color: rgba(255, 255, 255, .88);
	text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
	pointer-events: none;
}
