.analytics-consent[hidden], .analytics-consent [hidden] { display: none !important; }
.analytics-consent {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  width: min(480px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--line, #d9ded4);
  border-radius: 20px;
  background: var(--white, #fffdf8);
  color: var(--ink, #182d27);
  box-shadow: 0 12px 60px #142f2830;
  font-size: 14px;
  line-height: 1.6;
}
.analytics-consent h2 { font-size: 22px; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 12px; }
.analytics-consent p { margin: 0 0 12px; }
.analytics-consent details { margin-top: 4px; }
.analytics-consent summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 700; }
.analytics-consent details p { font-size: 13px; }
.analytics-consent a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.analytics-consent .analytics-choice { font-size: 12px; color: var(--muted, #59665f); }
.analytics-consent .analytics-choice:empty { display: none; }
.analytics-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.analytics-actions button {
  flex: 1;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--forest, #142f28);
  border-radius: 30px;
  background: transparent;
  color: var(--forest, #142f28);
  font-weight: 700;
  font-size: 14px;
}
.analytics-actions button:hover { background: var(--mint, #c9e2cc); }
.analytics-actions .analytics-close { flex-basis: 100%; border-color: var(--line, #d9ded4); }
.footer-links .analytics-settings {
  padding: 8px 0;
  min-height: 44px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.footer-links .analytics-settings:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 540px) {
  .analytics-consent {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
    border-radius: 16px;
  }
}
