/* === Cookie Notice — динамичный, адаптивный, без крестика === */
.cookie_notice {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(90%, 640px);
  background: #fff;
  color: #1f2937;
  border: 1px solid #e6f0ea;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 12px 18px;
  display: none;
  z-index: 9999;
  line-height: 1.45;
  font-size: 14px;
  animation: fadeInCookie .25s ease-out both;
}

.cookie_notice.is-visible { display: block; } /* ✅ было flex, делаем block */

.cookie_notice > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.cookie_notice .cookie_text {
  margin: 0;
  flex: 1;
  color: #111827;
}

.cookie_notice a {
  color: #0fa86b;
  font-weight: 500;
  text-decoration: underline;
  transition: color .15s ease;
}
.cookie_notice a:hover { color: #FF6163; }

/* Кнопка — единственное действие */
.cookie_notice .cookie_btn {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 8px;
  background: #10b981;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(16,185,129,.2);
  text-align: center; /* ✅ добавил, на всякий */
}
.cookie_notice .cookie_btn:hover {
  background: #0fa06f;
  transform: translateY(-1px);
}
.cookie_notice .cookie_btn:active {
  transform: translateY(0);
}

/* Мобильная версия */
@media (max-width: 640px) {
    .cookie_notice {
      width: calc(100% - 16px - var(--ai-fab-space, 76px));
      bottom: 90px;
      padding: 12px;
      border-radius: 10px;
      font-size: 13px;
    }

  .cookie_notice > div {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie_notice .cookie_btn {
    width: 100%;
    padding: 12px 14px;
  }
}

/* Анимация появления */
@keyframes fadeInCookie {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
