.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)); }
}

.hm-replay-consent {
  --consent-ink: var(--ink);
  --consent-accent: var(--red);
  --consent-line: var(--line);
  background: var(--panel);
  border-radius: 8px;
  font-family: inherit;
}
.hm-replay-consent-options { border-radius: 8px; }
.hm-replay-consent p, .hm-replay-consent-options small { color: var(--muted); }
.hm-replay-consent-header a { color: var(--red-2); }
.hm-replay-consent-actions .button { font-family: inherit; font-size: .95rem; }
.hm-replay-consent-actions .primary { border: 1px solid transparent; }
.replay-footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .9rem; }
.replay-footer-links a, .replay-footer-links button { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.replay-footer-links button { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.replay-privacy { max-width: 56rem; padding: 3rem 1rem 4rem; margin-inline: auto; }
.replay-privacy h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.replay-privacy h2 { font-size: 1.35rem; margin-top: 2rem; }
.replay-privacy a { text-underline-offset: 3px; }
@media (max-width: 760px) {
  .hm-replay-consent { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .hm-replay-consent-actions .button { padding-inline: 6px; }
}
