.analytics-consent[hidden] { display: none !important; }
.analytics-consent {
  position: fixed;
  z-index: 20;
  inset: auto 20px 20px;
  display: grid;
  width: min(760px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 28px;
  margin-inline: auto;
  padding: 20px 22px;
  border: 1px solid rgba(74, 53, 42, .2);
  border-radius: 16px;
  background: #fffdf9;
  color: #29242a;
  box-shadow: 0 16px 50px rgba(33, 29, 25, .2);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.analytics-consent__copy h2 { margin: 0 0 6px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.analytics-consent__copy p { max-width: 470px; margin: 0; color: #625b61; font-size: 13px; line-height: 1.55; }
.analytics-consent__copy a { color: inherit; text-underline-offset: 2px; }
.analytics-consent__actions { display: flex; flex-direction: column; gap: 8px; }
.analytics-consent__actions button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(74, 53, 42, .28);
  border-radius: 4px;
  background: #fffdf9;
  color: #29242a;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
}
.analytics-consent__actions button:hover { background: #f1ece3; }
.analytics-consent button:focus-visible { outline: 3px solid #7152b2; outline-offset: 3px; }
footer .footer-links [data-analytics-settings] { padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
footer .footer-links [data-analytics-settings]:hover { color: var(--ink); }

@media (max-width: 640px) {
  .analytics-consent { inset: auto 12px 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100% - 24px); grid-template-columns: 1fr; gap: 14px; padding: 17px; }
  .analytics-consent__actions { flex-direction: row; }
  .analytics-consent__actions button { flex: 1 1 0; padding-inline: 8px; }
}
