.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 1rem 1rem auto;
  width: min(29rem, calc(100% - 2rem));
  box-sizing: border-box;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.15rem;
  background: #fffdf5;
  color: #633000;
  border: 1px solid #d1bba0;
  border-radius: .8rem;
  box-shadow: 0 .4rem 2rem #38190033;
  font: 1rem/1.5 system-ui, sans-serif;
}
.analytics-consent h2 { font: 750 1.25rem/1.3 system-ui, sans-serif; margin: 0; }
.analytics-consent p { margin: .6rem 0 1rem; }
.analytics-consent a { color: inherit; text-decoration: underline; }
.analytics-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.analytics-actions button, .analytics-settings {
  font: 650 .95rem/1.3 system-ui, sans-serif;
  padding: .55rem .85rem;
  border: 1px solid #8a4b12;
  border-radius: .35rem;
  background: #ffffcd;
  color: #633000;
  cursor: pointer;
}
.analytics-actions button { flex: 1 1 8rem; min-height: 44px; }
.analytics-actions button:hover, .analytics-settings:hover { background: #f5f500; }
.analytics-settings { display: block; margin: .4rem auto; }
footer:has(> .analytics-settings) { padding-bottom: .55rem; }
.analytics-consent :focus-visible, .analytics-settings:focus-visible {
  outline: 3px solid #8a4b12;
  outline-offset: 3px;
}
