.cookie-alert {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0.4rem 1.2rem 0 rgba(82, 92, 122, 0.2);
  background-color: #fff;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, z-index 0.2s;
  max-width: calc(100% - 3rem);
  box-sizing: border-box;
}

.cookie-alert--visible {
  opacity: 1;
  z-index: 999999;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.2s;
}

.cookie-alert__text {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-alert__link {
  color: inherit;
  text-decoration: underline;
}

.cookie-alert__button {
  background: #0055a4;
  color: #fff;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
}

.cookie-alert__button:hover {
  background: #003f7a;
}

/* Адаптация для маленьких экранов */
@media (max-width: 480px) {
  .cookie-alert {
    bottom: 1.5rem;
    padding: 0.8rem 1rem;
    max-width: calc(100% - 2rem);
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .cookie-alert__text {
    font-size: 0.9rem; /* чуть меньше, чтобы помещалось */
    margin-right: 0;
  }

  .cookie-alert__button {
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
  }
}