/* Cookie Banner Block */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 51.5rem; /* 824px */
  background-color: var(--color-bg-popup);
  box-shadow: var(--shadow-popup);
  border-radius: var(--radius-card);
  padding: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: cookie-slide-up 0.5s ease-out;
}

@keyframes cookie-slide-up {
  from {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Верхняя часть: иконка + текст */
.cookie-banner__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: clamp(2rem, 3vw + 1rem, 2.75rem); /* 32px → 44px */
  height: clamp(2rem, 3vw + 1rem, 2.75rem);
}

.cookie-banner__text {
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1.0625rem); /* 14px → 17px */
  line-height: 1.3;
}

/* Кнопки */
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(2.5rem, 1.5vw + 2rem, 3.0625rem); /* 40px → 49px */
  padding: 0 clamp(1.25rem, 1.5vw + 0.75rem, 2rem);
  border-radius: var(--radius-btn);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: var(--font-size-small);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

/* Модификатор: кнопка "Отказаться" (outline) */
.cookie-banner__btn--decline {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.cookie-banner__btn--decline:hover {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

/* Модификатор: кнопка "Принять" (filled) */
.cookie-banner__btn--accept {
  background-color: var(--color-accent);
  color: var(--color-text-dark);
}

.cookie-banner__btn--accept:hover {
  background-color: #00c8e5;
}

/* Скрытое состояние */
.cookie-banner--hidden {
  display: none;
}

/* Десктоп: горизонтальная раскладка */
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 3vw + 0.5rem, 3rem);
  }
}
