.cookie-consent {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(545px, calc(100% - 24px));
  min-height: 68px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: #202020;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  color: #e5e5e5;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
}

.cookie-consent.is-visible {
  animation: cookie-consent-in .45s cubic-bezier(.22, 1, .36, 1) forwards;
  pointer-events: auto;
}

.cookie-consent.is-closing {
  animation: cookie-consent-out .25s ease forwards;
  pointer-events: none;
}

.cookie-consent-copy {
  min-width: 0;
}

.cookie-consent-message {
  margin: 0;
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.cookie-details-link,
.cookie-preferences-link {
  padding: 0;
  border: 0;
  background: none;
  color: #e5e5e5;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.cookie-details-link:hover,
.cookie-preferences-link:hover {
  color: #fff;
}

.cookie-details {
  max-width: 520px;
  margin-top: .8rem;
  color: #bcbcbc;
  font-size: .78rem;
  line-height: 1.55;
}

.cookie-details p {
  margin: 0 0 .45rem;
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.cookie-button {
  padding: 12px 17px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.cookie-button:hover {
  transform: translateY(-1px);
}

.cookie-button:focus-visible,
.cookie-details-link:focus-visible,
.cookie-preferences-link:focus-visible {
  outline: 2px solid #aeb6ff;
  outline-offset: 3px;
}

.cookie-button-decline {
  border: 1px solid rgba(229, 229, 229, .42);
  background: transparent;
  color: #e5e5e5;
}

.cookie-button-decline:hover {
  border-color: #e5e5e5;
  background: rgba(255, 255, 255, .08);
}

.cookie-button-allow {
  border: 1px solid #eaeaea;
  padding-right: 19px;
  padding-left: 19px;
  background: #eaeaea;
  color: #202020;
}

.cookie-button-allow:hover {
  background: #fff;
  border-color: #fff;
}

.site-footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-preferences-link {
  color: var(--muted);
  font: inherit;
  text-transform: uppercase;
}

@keyframes cookie-consent-in {
  from { opacity: 0; transform: translate(-50%, 1rem); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes cookie-consent-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 1rem); }
}

@media (max-width: 640px) {
  .cookie-consent {
    display: block;
    bottom: .75rem;
    padding: 14px 18px;
  }

  .cookie-consent-actions {
    margin-top: 1rem;
  }

  .cookie-button {
    flex: 1;
  }

  .site-footer-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent.is-visible,
  .cookie-consent.is-closing,
  .cookie-button {
    animation: none;
    transition: none;
  }

  .cookie-consent.is-visible {
    opacity: 1;
    transform: translateX(-50%);
  }
}
