/**
 * EVENT RUNBOOK — CONSENT
 * Version 1.0.0
 */

.er-consent {
  --er-consent-paper: #f4f1e9;
  --er-consent-ink: #171717;
  --er-consent-line: #aaa79f;
  --er-consent-muted: #5f5e59;

  position: fixed;
  z-index: 10000;

  left: 24px;
  right: 24px;
  bottom: 24px;

  max-width: 1280px;
  margin-inline: auto;

  color: var(--er-consent-ink);
  background: var(--er-consent-paper);

  border: 1px solid var(--er-consent-ink);

  font-family:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.er-consent__inner {
  display: grid;
  grid-template-columns:
    minmax(0, 20fr)
    minmax(230px, 8fr);

  gap: 32px;

  padding: 24px;
}

.er-consent__copy {
  min-width: 0;
}

.er-consent__eyebrow {
  margin: 0 0 8px;

  font-family:
    "IBM Plex Mono",
    ui-monospace,
    monospace;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: .08em;
}

.er-consent__title {
  margin: 0 0 10px;

  max-width: 720px;

  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.er-consent__status {
  display: inline-block;

  margin: 0 0 12px;
  padding: 5px 8px;

  border: 1px solid var(--er-consent-line);

  font-size: 12px;
  line-height: 1.4;
}

.er-consent__text {
  max-width: 850px;

  margin: 0;

  color: var(--er-consent-muted);

  font-size: 14px;
  line-height: 1.55;
}

.er-consent__learn {
  display: inline-block;

  margin-top: 12px;

  color: inherit;

  font-size: 13px;
  font-weight: 600;

  text-underline-offset: 3px;
}

.er-consent__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 8px;
}

.er-consent__button,
.er-consent__close {
  width: 100%;

  min-height: 46px;

  border: 1px solid var(--er-consent-ink);
  border-radius: 0;

  background: transparent;
  color: var(--er-consent-ink);

  font: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.er-consent__button:hover,
.er-consent__button:focus-visible,
.er-consent__close:hover,
.er-consent__close:focus-visible {
  background: var(--er-consent-ink);
  color: var(--er-consent-paper);
}

.er-consent__button:focus-visible,
.er-consent__close:focus-visible,
.er-consent__learn:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.er-consent__close {
  margin-top: 6px;

  border-color: var(--er-consent-line);

  font-weight: 400;
}

[data-er-consent-settings] {
  cursor: pointer;
}

@media (max-width: 760px) {
  .er-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .er-consent__inner {
    grid-template-columns: 1fr;

    gap: 20px;

    padding: 18px;
  }

  .er-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .er-consent__close {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .er-consent__actions {
    grid-template-columns: 1fr;
  }

  .er-consent__close {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .er-consent *,
  .er-consent *::before,
  .er-consent *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
