/**
 * Плашка согласия на использование cookie.
 * Стили отдельно от сборки.
 */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 20px 20px;
  background: rgba(26, 26, 30, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
  opacity: 0;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent.is-hidden {
  display: none;
}

.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-consent__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cookie-consent__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cookie-consent__close-icon {
  flex-shrink: 0;
}

.cookie-consent__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #fff;
}

.cookie-consent__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.cookie-consent__link:hover {
  opacity: 0.85;
}

.cookie-consent__btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  background: #c4a574;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.cookie-consent__btn:hover {
  background: #d4b584;
}

.cookie-consent__btn:active {
  transform: scale(0.98);
}

/* Десктоп: плашка справа внизу, фиксированные размеры */
@media (min-width: 768px) {
  .cookie-consent {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 100%;
    max-width: 380px;
    padding: 20px 24px 24px;
    border-radius: 12px;
    transform: translateY(calc(100% + 40px));
  }

  .cookie-consent__close {
    top: 14px;
    right: 14px;
  }

  .cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
  }

  .cookie-consent__inner {
    max-width: none;
  }

  .cookie-consent__text {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .cookie-consent__btn {
    width: 100%;
    padding: 14px 24px;
    text-align: center;
  }
}

/* ПК: ширина 605px, высота 198px */
@media (min-width: 1024px) {
  .cookie-consent {
    right: 32px;
    bottom: 32px;
    width: 605px;
    max-width: 605px;
    min-height: 198px;
    padding: 24px 32px 32px;
    border-radius: 12px;
    opacity: 0;
  }

  .cookie-consent__close {
    top: 16px;
    right: 16px;
  }

  .cookie-consent.is-visible {
    opacity: 1;
  }

  .cookie-consent__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 142px;
  }

  .cookie-consent__text {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .cookie-consent__btn {
    align-self: flex-start;
    width: auto;
    min-width: 200px;
    padding: 14px 28px;
  }
}
