/* Уведомление о cookie и Яндекс.Метрике. Цвета — токены темы (tokens.css). */
.cookie-notice {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 95; /* выше .tabbar (90), ниже off-canvas (100) и модалок (200) */
  width: min(560px, calc(100vw - 32px));
  padding: 16px 18px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  font-size: var(--fs-xs);
  line-height: 1.5;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice__text { margin: 0 0 12px; color: var(--text-secondary); }
.cookie-notice__text a { color: var(--accent); text-decoration: underline; }
.cookie-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-notice__actions .btn { flex: 1 1 auto; text-transform: none; letter-spacing: 0; }
.site-footer__cookie {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; text-align: left;
  text-decoration: underline; cursor: pointer;
}
@media (max-width: 1023px) {
  /* над нижней панелью .tabbar (58px) */
  .cookie-notice {
    left: 8px; right: 8px; width: auto;
    bottom: calc(58px + 8px + env(safe-area-inset-bottom, 0px));
  }
}

/* Таблица cookie на странице политики */
.legal-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: var(--fs-sm); }
.legal-body th, .legal-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--bg-section); }
@media (max-width: 640px) { .legal-body table { display: block; overflow-x: auto; } }
