/* Общие стили окна согласия на использование cookie */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #1f2937;
  color: #f9fafb;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;

  /* Плавное появление */
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Класс, который делает окно видимым */
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner__text {
  flex: 1 1 320px;
  margin: 0;
}

.cookie-banner__text a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.cookie-banner__btn--ok {
  background: #2563eb;
  color: #fff;
}

.cookie-banner__btn--ok:hover {
  background: #1d4ed8;
}

.cookie-banner__btn--close {
  background: transparent;
  color: #d1d5db;
  border: 1px solid #4b5563;
}

.cookie-banner__btn--close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* На узких экранах кнопки уходят на новую строку */
@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner__actions {
    justify-content: center;
  }
}
