/*
 * Cookie consent banner — double opt-in flow, shown on every page (patient
 * and HCP alike).
 *
 * The banner is injected by assets/js/consent.js, not present in the
 * generated markup, so its selectors live outside every
 * "GENERATED from assets/partials/…" block in the pages that reference it.
 * Nothing here touches the header or footer partials.
 */

.consent-banner {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 60; /* above .site-header (30) and .isi-peek/.isi (20/21) */
  padding-block: var(--space-l);
  padding-inline: var(--container-margin);
  padding-inline-end: max(var(--container-margin), env(safe-area-inset-right, 0px));
  padding-block-end: max(var(--space-l), env(safe-area-inset-bottom, 0px));
  background-color: var(--color-surface);
  color: var(--color-text-body);
  box-shadow: 0 -4px 20px 0 rgb(0 0 0 / 20%);
  font-family: var(--font-support);
}

.consent-banner__title {
  margin: 0 0 var(--space-s);
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-bold);
}

.consent-banner__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  max-inline-size: 60rem;
}

.consent-banner__body p {
  margin: 0;
  font-size: var(--font-size-body-sm);
  line-height: var(--line-height-body);
}

.consent-banner__body a {
  color: var(--color-link);
  text-decoration: underline;
}

/*
 * Accept/Reject reuse components.css's `.button` / `.button--outline` CTA
 * primitive directly (same pill shape, same Manrope weight, same
 * `--color-cta`) rather than a bespoke style — only the banner-specific
 * layout lives here.
 */
.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-block-start: var(--space-m);
}

@media (width < 30rem) {
  .consent-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
