.thodos-consent {
  --analytics-bg: var(--paper);
  --analytics-ink: var(--ink);
  --analytics-border: var(--line);
  position: fixed;
  z-index: 150;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px max(24px, calc((100vw - 1240px) / 2)) calc(22px + env(safe-area-inset-bottom));
  background: var(--analytics-bg);
  color: var(--analytics-ink);
  border-top: 1px solid var(--analytics-border);
  font-family: var(--sans);
}
.thodos-consent[hidden] { display: none !important; }
.thodos-consent h2 { margin: 0 0 7px; font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: 0; }
.thodos-consent p { max-width: 690px; margin: 0; font-size: 12px; line-height: 1.6; text-wrap: pretty; }
.thodos-consent a { text-decoration: underline; text-underline-offset: 3px; }
.thodos-consent-actions { display: flex; flex-shrink: 0; gap: 10px; }
.thodos-consent-actions .button { padding: 12px 18px; min-height: 44px; font-size: 12px; line-height: 1.4; letter-spacing: 0; text-transform: none; border-color: var(--analytics-ink); color: var(--analytics-ink); }
.thodos-consent-actions .button:hover { background: var(--analytics-ink); color: var(--analytics-bg); }
.thodos-privacy-controls { padding: 8px 24px 20px; background: var(--deep); color: var(--paper); text-align: center; }
.thodos-privacy-controls button { padding: 8px; min-height: 44px; background: transparent; color: inherit; border: 0; text-decoration: underline; text-underline-offset: 4px; font: 12px var(--sans); }
.thodos-analytics-qa { position: fixed; z-index: 151; top: 5px; right: 5px; max-width: min(460px, calc(100vw - 10px)); max-height: 60dvh; overflow: auto; background: var(--paper); color: var(--ink); padding: 10px; border: 1px solid var(--ink); font-size: 11px; }
.thodos-analytics-qa pre { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 760px) {
  .thodos-consent { display: block; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); max-height: 75dvh; overflow-y: auto; }
  .thodos-consent h2 { font-size: 24px; }
  .thodos-consent-actions { margin-top: 14px; }
  .thodos-consent-actions .button { flex: 1; padding-inline: 10px; }
}
