.analytics-settings, .analytics-choice, .analytics-policy {
  color: #171717;
  font: 400 14px/1.5 Onest, system-ui, sans-serif;
}
.analytics-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 1rem;
  padding: .5rem 1rem;
  background: #fff;
  border-top: 1px solid #e6e6e6;
}
.analytics-settings a, .analytics-settings button, .analytics-choice a, .analytics-policy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.analytics-settings a, .analytics-settings button {
  padding: .5rem 0;
}
.analytics-settings button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.analytics-choice {
  position: fixed;
  z-index: 50;
  right: max(.75rem, env(safe-area-inset-right));
  bottom: max(.75rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(25rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid #dedede;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 .4rem 2rem #0002;
}
.analytics-choice[hidden], .analytics-settings [hidden] { display: none; }
.analytics-choice p { margin: 0 0 .65rem; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.analytics-actions button {
  flex: 1 1 7.5rem;
  min-height: 44px;
  padding: .45rem .65rem;
  border: 1px solid #7a7a7a;
  border-radius: .4rem;
  background: #fff;
  color: #171717;
  font: 500 14px/1.3 Onest, system-ui, sans-serif;
  cursor: pointer;
}
.analytics-actions button:hover { background: #f4f4f4; }
:is(.analytics-settings, .analytics-choice, .analytics-policy) :focus-visible {
  outline: 2px solid #bc1728;
  outline-offset: 3px;
}
.analytics-policy {
  max-width: 42rem;
  margin: 2.5rem auto;
  padding: 0 1rem;
  font-size: 1rem;
}
.analytics-policy section + section { margin-top: 3rem; }
