.analytics-consent[hidden], .analytics-consent-settings[hidden] { display: none !important; }
.analytics-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 1rem 1rem;
  max-width: 68rem;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-300, #dce2d3);
  border-radius: 0.8rem;
  background: var(--paper, #fff);
  color: var(--ink, #231f20);
  box-shadow: 0 0.35rem 1.5rem #231f2020;
  font-family: inherit;
}
.analytics-consent__copy { flex: 1 1 32rem; min-width: 0; }
.analytics-consent h2 { margin: 0 0 0.3rem; font-size: 1rem; line-height: 1.4; }
.analytics-consent p { margin: 0; max-width: 78ch; font-size: 0.85rem; line-height: 1.55; }
.analytics-consent a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.analytics-consent__status:not(:empty) { margin-top: 0.5rem; font-weight: 600; }
.analytics-consent__actions { display: flex; flex-wrap: wrap; flex: 0 1 22rem; gap: 0.6rem; }
.analytics-consent__actions button {
  flex: 1 1 9rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.analytics-consent__actions button:hover { background: #a7ce3920; }
.analytics-consent__actions button:disabled { opacity: 0.55; cursor: not-allowed; }
.analytics-consent button:focus-visible, .analytics-consent a:focus-visible, .analytics-consent-settings:focus-visible { outline: 3px solid var(--lime-dark, #526b00); outline-offset: 3px; }
.analytics-consent-settings {
  position: fixed;
  z-index: 999;
  inset: auto auto 0.55rem 0.75rem;
  max-width: calc(100vw - 1.5rem);
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-300, #dce2d3);
  border-radius: 0.35rem;
  background: var(--paper, #fff);
  color: var(--ink, #231f20);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.3;
  cursor: pointer;
}
@media (max-width: 48rem) {
  .analytics-consent { inset-inline: 0.6rem; bottom: 0.6rem; display: block; padding: 0.9rem; }
  .analytics-consent__actions { margin-top: 0.8rem; }
}
@media print { .analytics-consent, .analytics-consent-settings { display: none !important; } }
