.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 1200;
  bottom: 16px;
  left: 16px;
  right: 16px;
  width: auto;
  max-width: 820px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 22px;
  background: #fffdf8;
  color: #3a2116;
  border: 1px solid #dec9b4;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(43, 22, 13, .14);
  font-family: 'DM Sans', sans-serif;
}
.analytics-consent h2 {
  margin: 0 0 8px;
  font: 600 18px/1.3 'DM Sans', sans-serif;
}
.analytics-consent p { margin: 0; font-size: 14px; line-height: 1.6; }
.analytics-consent a { color: #6b4a3a; text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.analytics-consent-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #6b4a3a;
  border-radius: 5px;
  background: #fffdf8;
  color: #3a2116;
  font: 500 14px/1.4 'DM Sans', sans-serif;
  cursor: pointer;
}
.analytics-consent-actions button:hover { background: #f5ede4; }
.analytics-preferences { padding: 8px 24px 24px; text-align: center; }
.analytics-preferences button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #6b4a3a;
  font: 400 14px/1.5 'DM Sans', sans-serif;
  text-decoration: underline;
  cursor: pointer;
}
.analytics-consent button:focus-visible,
.analytics-preferences button:focus-visible { outline: 2px solid #3a2116; outline-offset: 3px; }
@media (max-width: 480px) {
  .analytics-consent { bottom: 10px; left: 10px; right: 10px; padding: 18px; }
  .analytics-consent-actions button { flex: 1; }
}
