/* ── Cookie Consent Banner ── */

#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--colour-ink, #0d0d0d);
  border-top: 3px solid var(--colour-accent, #ff9900);
  padding: 1.25rem var(--container-padding, clamp(2rem, 6vw, 4rem));
  font-family: var(--font-body, 'Manrope', sans-serif);

  /* Hidden by default — slides up on .is-visible */
  transform: translateY(100%);
  opacity: 0;
  transition: none;
}

#cookie-consent.is-visible {
  animation: cookieSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#cookie-consent.is-dismissing {
  animation: cookieSlideDown 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

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

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

/* Inner layout */
.cookie-consent__inner {
  max-width: var(--container-max, 1300px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cookie-consent__text {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-consent__text a {
  color: var(--colour-accent, #ff9900);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: #fff;
}

/* Buttons */
.cookie-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-consent__btn {
  font-family: var(--font-body, 'Manrope', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.cookie-consent__btn--accept {
  background: var(--colour-accent, #ff9900);
  color: #000;
  border: 2px solid var(--colour-accent, #ff9900);
}

.cookie-consent__btn--accept:hover {
  background: var(--colour-accent-dark, #cc7a00);
  border-color: var(--colour-accent-dark, #cc7a00);
}

.cookie-consent__btn--decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.cookie-consent__btn--decline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive: stack on small screens ── */
@media (max-width: 640px) {
  #cookie-consent {
    padding: 1rem 1.25rem;
  }

  .cookie-consent__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1;
    padding: 0.7rem 1rem;
  }
}
