/* ============================================================
   Lyntrix — cookie-баннер (018).
   Отдельный файл, потому что баннер показывается во всех трёх
   лейаутах (public, auth, cabinet), а их стили не пересекаются.
   Самодостаточен: своя кнопка .cookie-banner__btn вместо .btn —
   в shell.css и web_auth.css у .btn разные несовместимые контракты.
   Только потребляет токены tokens.css, ничего не переобъявляет.
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  width: calc(100% - 32px);
  max-width: 720px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-popup);
  font-family: var(--font);
}
/* Явный [hidden] — у .cookie-banner display:flex, который иначе перебил бы
   штатное hidden-поведение браузера и баннер остался бы виден. */
.cookie-banner[hidden] { display: none; }

.cookie-banner__body { display: flex; gap: 12px; align-items: flex-start; }
.cookie-banner__icon { flex: none; color: var(--brand); line-height: 0; margin-top: 1px; }
.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--t-body);
}
.cookie-banner__link { color: var(--brand); font-weight: 700; text-decoration: none; }
.cookie-banner__link:hover { text-decoration: underline; }

.cookie-banner__btn {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: var(--r-field);
  background: var(--brand);
  color: var(--primary-fg);
  box-shadow: var(--btn-shadow);
  font: 700 13px var(--font);
  white-space: nowrap;
  cursor: pointer;
}
.cookie-banner__btn:hover { background: var(--brand-press); }
.cookie-banner__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; bottom: 12px; }
  .cookie-banner__btn { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner { animation: cookie-rise .26s ease-out; }
  @keyframes cookie-rise {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
  }
}
