.analytics-consent {
  position: fixed; inset: auto 1rem 1rem; margin: 0 auto; z-index: 10000;
  width: min(42rem, calc(100% - 2rem)); box-sizing: border-box;
  max-height: 50dvh; overflow-y: auto; padding: 1rem;
  border: 1px solid var(--ds-color-border, #e7e7e7); border-radius: 12px;
  background: var(--ds-color-surface, #fff); color: var(--ds-color-text, #111);
  font-family: var(--ds-font-family-body, sans-serif); box-shadow: 0 4px 24px #0003;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent p { line-height: 1.5; margin: .6rem 0; overflow-wrap: anywhere; }
.analytics-consent a { color: inherit; text-decoration: underline; }
.analytics-consent-actions { display: flex; gap: .75rem; margin-top: .8rem; }
.analytics-consent-actions button {
  flex: 1; min-height: 44px; padding: .65rem; border: 1px solid var(--ds-color-border, #ddd);
  border-radius: 8px; background: var(--ds-color-surface, #fff); color: inherit; cursor: pointer;
}
.analytics-consent-actions button:focus-visible { outline: 2px solid #8b6500; outline-offset: 2px; }
.analytics-consent-actions button:disabled { opacity: .5; cursor: default; }
.analytics-consent .analytics-consent-choice { font-weight: var(--ds-font-weight-heading, 700); }
.analytics-consent .analytics-consent-scope { font-size: var(--ds-font-size-help, .8rem); }
.analytics-consent-actions button[aria-pressed="true"] {
  border-color: var(--ds-color-text, #111); box-shadow: inset 0 0 0 1px var(--ds-color-text, #111);
}
.analytics-consent-actions button[aria-pressed="true"]::before { content: '✓'; margin-inline-end: .4em; }
@media (max-width: 400px) {
  .analytics-consent { inset: auto .5rem .5rem; width: calc(100% - 1rem); max-height: 75dvh; padding: .75rem; }
  .analytics-consent-actions { flex-direction: column; gap: .5rem; }
}
