/* Optional analytics consent, using Flowayse's existing visual system. */
.analytics-consent {
  position: fixed;
  inset-inline: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(70rem, calc(100% - 2.5rem));
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  margin-inline: auto;
  padding: 1.35rem 1.5rem;
  color: var(--ink, #2d251f);
  background: var(--surface, #fffbf5);
  border: 1px solid var(--gold, #bb8a3f);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgb(45 37 31 / 18%);
  font: 400 .9375rem/1.55 var(--sans, 'Segoe UI', sans-serif);
}
.analytics-consent[hidden], .analytics-consent [hidden] { display: none !important; }
.analytics-consent-copy { flex: 1; min-width: 0; }
.analytics-consent h2 {
  margin: 0 0 .45rem;
  color: inherit;
  font: 400 1.4rem/1.25 var(--serif, Georgia, serif);
  letter-spacing: -.02em;
}
.analytics-consent p { margin: 0; }
.analytics-consent .analytics-current-choice { margin-top: .5rem; font-size: .8125rem; }
.analytics-consent .analytics-current-choice:empty { display: none; }
.analytics-privacy-link, .analytics-settings { text-decoration: underline; text-underline-offset: .2em; }
.analytics-privacy-link { display: inline-block; margin-top: .35rem; }
.analytics-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; flex-shrink: 0; }
.analytics-choice {
  min-height: 46px;
  padding: .7rem 1rem;
  border: 1px solid var(--ink, #2d251f);
  border-radius: 3px;
  color: var(--paper, #f6f1e7);
  background: var(--ink, #2d251f);
  font: 500 .875rem/1.35 var(--sans, 'Segoe UI', sans-serif);
  cursor: pointer;
}
.analytics-choice:hover { background: var(--accent, #785334); border-color: var(--accent, #785334); }
.analytics-choice:focus-visible, .analytics-privacy-link:focus-visible, .analytics-settings:focus-visible {
  outline: 3px solid var(--accent, #785334);
  outline-offset: 3px;
}
.analytics-close { grid-column: 1 / -1; background: transparent; color: var(--ink, #2d251f); }
.analytics-close:hover { color: var(--paper, #f6f1e7); }
.analytics-settings {
  min-height: 44px;
  padding: .35rem;
  margin: 0 0 0 .65rem;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: .8125rem;
  cursor: pointer;
}
@media (max-width: 780px) {
  .analytics-consent { align-items: stretch; flex-direction: column; gap: 1rem; padding: 1.1rem; }
  .analytics-consent-actions { width: 100%; }
}
@media (max-width: 420px) {
  .analytics-consent { inset-inline: .65rem; bottom: .65rem; width: calc(100% - 1.3rem); max-height: calc(100dvh - 1.3rem); }
  .analytics-choice { padding-inline: .65rem; }
}