/* ═══════════════════════════════════════════
   Cookie Consent v2 — liveinnl.nl
   ═══════════════════════════════════════════ */

/* ── Баннер ──────────────────────────────── */
#lnl-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9990;
  /* Стеклянный эффект */
  background: rgba(10, 14, 35, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 -12px 48px rgba(0,0,0,.4);
  /* Анимация */
  transform: translateY(110%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .4s ease;
  will-change: transform, opacity;
}
#lnl-cookie-banner.lnl-cb-show {
  transform: translateY(0);
  opacity: 1;
}
#lnl-cookie-banner.lnl-cb-hide {
  transform: translateY(110%);
  opacity: 0;
}

.lnl-cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lnl-cb-ico {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
}

.lnl-cb-text { flex: 1; min-width: 240px; }

.lnl-cb-title {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: .01em;
}

.lnl-cb-desc {
  font-size: .77rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
  margin: 0;
}

.lnl-cb-link {
  color: #4f9cf9;
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.lnl-cb-link:hover { color: #fff; }

.lnl-cb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Кнопки ──────────────────────────────── */
.lnl-btn {
  padding: 9px 20px;
  border-radius: 50px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s, border-color .2s, color .2s;
  white-space: nowrap;
  min-height: 38px;
  letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lnl-btn:focus-visible {
  outline: 2px solid #4f9cf9;
  outline-offset: 2px;
}

/* Синяя — «Принять все» / «Сохранить» */
.lnl-btn-primary {
  background: #0038c8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,56,200,.35);
}
.lnl-btn-primary:hover {
  background: #1a4ddb;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,56,200,.45);
}
.lnl-btn-primary:active { transform: translateY(0); }

/* Контур — «Только необходимые» (в баннере) */
.lnl-btn-outline {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.2);
}
.lnl-btn-outline:hover {
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

/* Призрак — «Настройки» */
.lnl-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.35);
  padding: 9px 12px;
}
.lnl-btn-ghost:hover { color: rgba(255,255,255,.75); }

/* Контур в модалке (светлая тема) */
.lnl-btn-modal-outline {
  background: transparent;
  color: #5a637a;
  border: 1.5px solid rgba(0,0,0,.13);
  min-height: 42px;
}
.lnl-btn-modal-outline:hover {
  border-color: #0038c8;
  color: #0038c8;
}

/* ── Модальное окно ──────────────────────── */
#lnl-cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9995;
  align-items: center;
  justify-content: center;
}
#lnl-cookie-modal.lnl-modal-open { display: flex; }

.lnl-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 40, .7);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  animation: lnl-fade-in .25s ease;
}

.lnl-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 22px;
  padding: 28px 26px 22px;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  margin: 16px;
  box-shadow: 0 32px 96px rgba(0,10,60,.25), 0 0 0 1px rgba(0,0,0,.04);
  animation: lnl-modal-in .3s cubic-bezier(.34,1.56,.64,1);
  scroll-behavior: smooth;
}

@keyframes lnl-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lnl-modal-in {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lnl-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.06);
  color: #8893a7;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.lnl-modal-close:hover {
  background: rgba(0,0,0,.11);
  color: #0d1225;
  transform: rotate(90deg);
}

.lnl-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.lnl-modal-ico { font-size: 1.3rem; line-height: 1; }

.lnl-modal-title {
  font-family: 'Unbounded', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  color: #0d1225;
  margin: 0;
  line-height: 1.3;
}

.lnl-modal-desc {
  font-size: .79rem;
  color: #7a85a0;
  margin: 0 0 18px;
  line-height: 1.6;
}

/* ── Категории ───────────────────────────── */
.lnl-cat {
  border: 1px solid rgba(0,56,200,.09);
  border-radius: 13px;
  padding: 13px 15px;
  margin-bottom: 8px;
  background: #f7f8fb;
  transition: border-color .2s;
}
.lnl-cat:hover { border-color: rgba(0,56,200,.18); }

.lnl-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.lnl-cat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lnl-cat-name {
  font-size: .83rem;
  font-weight: 700;
  color: #0d1225;
}

.lnl-cat-badge {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(5,150,105,.1);
  border-radius: 50px;
  padding: 2px 7px;
}

.lnl-cat-desc {
  font-size: .75rem;
  color: #7a85a0;
  margin: 0;
  line-height: 1.55;
}

/* ── Toggle ──────────────────────────────── */
.lnl-toggle {
  flex-shrink: 0;
  width: 46px; height: 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: #d5d9e8;
  position: relative;
  transition: background .25s cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.lnl-toggle:focus-visible {
  outline: 2px solid #0038c8;
  outline-offset: 2px;
}
.lnl-toggle::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px; left: 3px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.lnl-toggle-on { background: #0038c8; }
.lnl-toggle-on::after { transform: translateX(20px); }

.lnl-toggle-disabled {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
  background: #059669;
}
.lnl-toggle-disabled::after { transform: translateX(20px); }

/* ── Кнопки модалки ──────────────────────── */
.lnl-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.lnl-modal-actions .lnl-btn-primary { flex: 1; min-height: 42px; }

/* ── Toast ───────────────────────────────── */
#lnl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: #0d1225;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  z-index: 9999;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  letter-spacing: .01em;
}
#lnl-toast.lnl-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Footer кнопка ───────────────────────── */
.lnl-footer-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  padding: 4px 0;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .01em;
}
.lnl-footer-btn:hover { color: rgba(255,255,255,.7); }

/* ── Мобилка ─────────────────────────────── */
@media (max-width: 680px) {
  .lnl-cb-inner { padding: 14px 16px; gap: 12px; }
  .lnl-cb-ico   { display: none; }
  .lnl-cb-actions { width: 100%; justify-content: flex-end; }
  .lnl-btn { padding: 8px 14px; font-size: .76rem; }
  .lnl-btn-ghost { padding: 8px 10px; }
}

@media (max-width: 400px) {
  .lnl-cb-actions { flex-direction: column; align-items: stretch; }
  .lnl-btn { min-height: 44px; }
  .lnl-modal-box { padding: 22px 16px 18px; border-radius: 18px 18px 0 0; margin: 0; max-height: 92vh; position: absolute; bottom: 0; }
  #lnl-cookie-modal { align-items: flex-end; }
  #lnl-toast { bottom: 16px; font-size: .75rem; }
}
