.analytics-consent[hidden], .analytics-settings[hidden] { display: none !important; }
.analytics-consent {
  position: fixed; inset: auto 20px 20px auto; z-index: 100;
  width: min(440px, calc(100vw - 40px)); max-height: calc(100dvh - 40px);
  overflow: auto; padding: 24px; color: var(--ink, #242424);
  background: var(--bg, #faf9f6); border: 1px solid var(--line, #dedcd5);
  box-shadow: 0 8px 36px #00000014; font: 14px/1.6 'Inter', sans-serif;
}
.analytics-consent h2 { margin: 0 0 10px; font: 500 24px/1.2 'Cormorant', serif; }
.analytics-consent p { margin: 0 0 16px; }
.analytics-consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.analytics-consent button {
  flex: 1 1 140px; min-height: 44px; padding: 10px 14px; border: 1px solid currentColor;
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.analytics-consent button:hover { background: #eae8e1; }
.analytics-consent .analytics-close { flex-basis: 100%; border-color: transparent; }
.analytics-settings {
  padding: 5px 0; border: 0; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
@media (max-width: 600px) {
  .analytics-consent { inset: auto 12px 12px; width: auto; max-height: calc(100dvh - 24px); padding: 20px; }
  footer:has(.analytics-settings:not([hidden])) { flex-wrap: wrap; gap: 16px 24px; }
}
