/* ───────────────────────────────────────────────────────────────────
   styles-cookie-consent.css  —  cookie consent banner
   ───────────────────────────────────────────────────────────────────
   Injected into every HTML response by functions/_middleware.js, on the
   same hostnames that get the Google Analytics tag. Pages served from
   disk, from *.pages.dev previews, or from `npm run dev` never load it,
   because they never load the tag either.

   Markup is built by js/cookie-consent.js — see that file for structure.
   ─────────────────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: var(--white, #ffffff);
  border-top: 0.5px solid var(--border, rgba(0, 0, 0, 0.1));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  font-family: var(--font-sans, system-ui, sans-serif);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary, #4a4a47);
  margin: 0;
  max-width: 660px;
  min-width: 260px;
  flex: 1;
}

.cookie-banner__text a {
  color: var(--navy-700, #185FA5);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cookie-banner__btn--accept {
  background: var(--navy-700, #185FA5);
  color: var(--navy-50, #E6F1FB);
  border: none;
}

.cookie-banner__btn--accept:hover {
  background: var(--navy-800, #0C447C);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--text-primary, #1a1a18);
  border: 0.5px solid var(--slate-300, #94A3B8);
}

.cookie-banner__btn--decline:hover {
  border-color: var(--slate-700, #475569);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--navy-500, #378ADD);
  outline-offset: 2px;
}

/* The footer's "Cookie settings" link is styled in styles.css, which every
   page loads, so it can stay hidden where this stylesheet isn't injected. */

@media (max-width: 640px) {
  .cookie-banner__inner {
    padding: 16px 20px;
    gap: 14px;
  }

  .cookie-banner__text {
    font-size: 13px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1;
  }
}
