/**
 * Cookie Consent Banner Styles
 * @package Aristos_Theme
 */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 0 30px 22px;
  z-index: 9999;
  animation: aristosCookieUp 0.35s ease;
}

@keyframes aristosCookieUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes aristosCookieDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

.cookie-consent.is-hiding {
  animation: aristosCookieDown 0.3s ease forwards;
}

/* Зелёная плашка накладывается на чёрный, как хедер */
.cookie-consent__content {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 22px 48px;
  background: #0d2117;
  border-radius: 5px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.55);
}

.cookie-consent__content p {
  flex: 1;
  min-width: 260px;
  margin: 0;
  color: #f0f0f0;
  font-family: 'Rubik', 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
}

.cookie-consent__content a {
  color: #d3b95e;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.cookie-consent__content a:hover {
  color: #f0f0f0;
}

/* Кнопка — как телефон в шапке */
.cookie-consent__accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0) 100%) border-box;
  color: #d3b95e;
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.cookie-consent__accept:hover {
  color: #f0f0f0;
  background:
    linear-gradient(#0d2117, #0d2117) padding-box,
    linear-gradient(90deg, #d3b95e 0%, rgba(211, 185, 94, 0.4) 100%) border-box;
}

.cookie-consent__accept:focus-visible {
  outline: 2px solid #d3b95e;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding: 0 16px 16px;
  }

  .cookie-consent__content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }

  .cookie-consent__accept {
    width: 100%;
  }
}
