.hm-replay-consent {
  --consent-ink: #282220;
  --consent-accent: var(--accent, #b12822);
  --consent-line: #e7ded6;
  position: fixed;
  z-index: 1000;
  inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto;
  display: grid;
  gap: 1rem;
  box-sizing: border-box;
  width: min(42rem, calc(100% - 2rem));
  max-height: 52vh;
  max-height: 52dvh;
  overflow: auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  color: var(--consent-ink);
  color-scheme: light;
  background: #fffdfa;
  border: 1px solid var(--consent-line);
  border-radius: var(--radius, 2px);
  box-shadow: 0 10px 30px #2c1f191f, 0 2px 8px #2c1f190d;
  font: 16px/1.45 "Instrument Sans", system-ui, sans-serif;
}
.hm-replay-consent-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .6rem;
}
.hm-replay-consent-header strong { font-size: 1.25rem; font-weight: 700; }
.hm-replay-consent-header a { color: #674942; font-size: .94rem; text-decoration: underline; text-underline-offset: 2px; }
.hm-replay-consent p { margin: 0; color: #5d514b; font-size: 1rem; }
.hm-replay-consent-options {
  display: grid;
  border: 1px solid var(--consent-line);
  border-radius: var(--radius-sm, 2px);
}
.hm-replay-consent-options label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.125rem;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: .45rem .7rem;
  font: inherit;
  cursor: pointer;
}
.hm-replay-consent-options small { display: block; color: #5d514b; margin-top: .2rem; font-size: .8rem; }
.hm-replay-consent-options label + label { border-top: 1px solid var(--consent-line); }
.hm-replay-consent-options input[type=checkbox] {
  appearance: auto;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  width: 1.125rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  accent-color: var(--consent-accent);
  cursor: pointer;
}
.hm-replay-consent-options input[type=checkbox]:disabled { cursor: default; }
.hm-replay-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.hm-replay-consent-actions button { min-width: 0; cursor: pointer; }
.hm-replay-consent-actions > button.public-request-button { width: 100%; }
.hm-replay-consent-actions-initial button[data-choice=customize] { grid-column: 1 / -1; }
.hm-replay-consent :focus-visible { outline: 2px solid var(--consent-accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .hm-replay-consent { inset-inline: .65rem; width: auto; }
  .hm-replay-consent-actions { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .hm-replay-consent-actions-initial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
