/* ==========================================================================
   Cookie Consent Banner
   Reuses existing tokens from globals.css (--color-*, --radius-*, --shadow-*,
   --ease, .container, .ctaButton) so it matches the rest of the site exactly.
   ========================================================================== */

.cookieBanner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  z-index: 980; /* above .goToTop (800) and .headerBar (900), below mobile nav (950) */
  background: rgba(15, 15, 15, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.cookieBanner.isVisible {
  transform: translateY(0);
  opacity: 1;
}

.cookieBanner,
.cookieBanner * {
  box-sizing: border-box;
}

.cookieBannerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  flex-wrap: wrap;
  max-width: 100%;
}

.cookieBannerText {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.cookieBannerLink {
  color: var(--color-gold-300);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 214, 92, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.25s var(--ease);
}

.cookieBannerLink:hover,
.cookieBannerLink:focus-visible {
  text-decoration-color: var(--color-gold-300);
}

.cookieBannerBtn {
  flex-shrink: 0;
  padding: 12px 30px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 720px) {
  .cookieBannerInner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .cookieBannerText {
    flex-basis: auto;
  }

  .cookieBannerBtn {
    width: 100%;
  }
}

@media screen and (max-width: 400px) {
  .cookieBannerText {
    font-size: 13px;
  }

  .cookieBannerBtn {
    padding: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookieBanner {
    transition: none;
  }
}