.analytics-consent-panel {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 10000;
  /* Global reduced-motion durations must not animate this focus stacking change. */
  transition-property: none;
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.25rem;
  border: 1px solid #aebccd;
  border-radius: 14px;
  background: #101826;
  color: #f5f7fa;
  box-shadow: 0 8px 32px #0008;
}
/* A keyboard user can choose analytics while a nonmodal source inspector is open. */
.analytics-consent-panel:focus-within { z-index: 10020; }
.analytics-consent-panel[hidden] { display: none; }
.analytics-consent-panel h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.analytics-consent-panel p { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.analytics-consent-actions button {
  flex: 1 1 10rem;
  padding: .75rem 1rem;
  border: 1px solid #aebccd;
  border-radius: 8px;
  background: #f5f7fa;
  color: #101826;
  font: inherit;
  cursor: pointer;
}
.analytics-consent-actions a { color: #f5f7fa; text-decoration: underline; }
.analytics-consent-settings { color: inherit; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.analytics-consent-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.analytics-consent-actions button:focus-visible, .analytics-consent-settings:focus-visible { outline: 3px solid #78d3fa; outline-offset: 3px; }
@media print { .analytics-consent-panel, .analytics-consent-settings, .analytics-consent-status { display: none !important; } }
