/* Cookie consent banner. Kept in its own file because the site Content Security
   Policy does not allow inline or script-injected style elements. */

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 -6px 24px rgba(16, 24, 39, 0.12);
}

.cookie-banner-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
}

.cookie-banner-text {
  flex: 1 1 420px;
  min-width: 0;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-banner-title {
  margin-bottom: 4px !important;
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-weight: 760;
}

.cookie-banner-text a {
  color: var(--teal);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner-actions .button {
  min-height: 44px;
  padding: 11px 22px;
  font-size: 0.94rem;
  cursor: pointer;
}

.cookie-banner-actions .cookie-decline {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink);
}

/* Inline trigger that reopens the banner from body copy, for example in the
   privacy policy. Styled to read as a link rather than a button. */
.policy-inline-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    gap: 16px;
    padding: 18px 20px;
  }

  .cookie-banner-actions .button {
    flex: 1 1 auto;
  }
}
