/*
 * Уведомление о cookie: полоса внизу, поверх содержимого, но не вместо него.
 * Цвета и радиусы — из переменных темы; если темы нет (или она другая),
 * значения по умолчанию держат вид читаемым.
 */

.fm-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  background: var(--bg, #fff);
  color: var(--ink, #111);
  border: 1px solid var(--line, #e6e6e0);
  border-radius: var(--r-card, 12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  font: 400 14px/1.5 var(--font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
}

.fm-cookie[hidden] { display: none; }

.fm-cookie__text {
  margin: 0;
  flex: 1 1 320px;
  color: var(--ink-2, #444447);
}

.fm-cookie__text a { color: var(--brand, #007aff); }

.fm-cookie__ok {
  flex: 0 0 auto;
  padding: 9px 20px;
  border: 0;
  border-radius: var(--r-btn, 100px);
  background: var(--ink, #111);
  color: #fff;
  font: 500 14px/1 var(--font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
  cursor: pointer;
}

.fm-cookie__ok:hover { background: var(--ink-2, #444447); }

/* Движение — только тем, кто его не просил отключить. */
@media (prefers-reduced-motion: no-preference) {
  .fm-cookie { animation: fm-cookie-in .28s ease-out both; }
  @keyframes fm-cookie-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 600px) {
  .fm-cookie { gap: 12px; padding: 14px; font-size: 14px; }
  .fm-cookie__ok { width: 100%; }
}
