.cookie-consent[hidden],
.cookie-consent__summary[hidden],
.cookie-consent__preferences[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 1200;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.cookie-consent__panel {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: #111;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.cookie-consent__panel h2 {
  margin: 0 42px 8px 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
}

.cookie-consent__panel p {
  margin: 8px 0;
  color: #eee7dc;
}

.cookie-consent__panel a,
.legal-content a,
.legal-preferences-button {
  color: #6b4300;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__panel a {
  color: #ffd15a;
}

.cookie-consent__eyebrow {
  color: #ffba04 !important;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cookie-consent__button,
.cookie-consent__close,
.footer-cookie-button,
.legal-preferences-button {
  font: inherit;
  cursor: pointer;
}

.cookie-consent__button {
  min-height: 46px;
  padding: 11px 18px;
  border: 2px solid #ffba04;
  border-radius: 999px;
  font-weight: 900;
}

.cookie-consent__button--primary {
  background: #c12a29;
  color: #fff;
}

.cookie-consent__button--secondary {
  background: transparent;
  color: #fff;
}

.cookie-consent__button--neutral {
  border-color: rgba(255, 255, 255, 0.45);
  background: #252525;
  color: #fff;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible,
.cookie-consent__close:focus-visible,
.footer-cookie-button:focus-visible,
.legal-preferences-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cookie-consent__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #2b2b2b;
  color: #fff;
  font-size: 1.45rem;
}

.cookie-consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #1d1d1d;
}

.cookie-consent__option span {
  display: grid;
  gap: 3px;
}

.cookie-consent__option small {
  color: #cfc8bd;
}

.cookie-consent__option input {
  width: 24px;
  height: 24px;
  accent-color: #c12a29;
}

.footer-cookie-button,
.legal-preferences-button {
  padding: 0;
  border: 0;
  background: transparent;
}

.footer-cookie-button {
  color: inherit;
  text-align: left;
}

.legal-page {
  color: #111;
}

.legal-content {
  max-width: 900px;
}

.legal-content h2 {
  margin: 34px 0 8px;
  color: #681313;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.legal-content p {
  max-width: 78ch;
}

.legal-content code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .cookie-consent {
    padding: 10px;
  }

  .cookie-consent__panel {
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 16px;
  }

  .cookie-consent__actions {
    display: grid;
  }

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

@media (prefers-reduced-motion: reduce) {
  .cookie-consent *,
  .cookie-consent *::before,
  .cookie-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
