#analytics-consent, #analytics-preferences {
  box-sizing: border-box;
  font-family: Montserrat, Arial, sans-serif;
  color: #282c75;
  background: #fff;
  border: 1px solid #d9dcea;
  border-radius: 12px;
  box-shadow: 0 4px 24px #0002;
}
#analytics-consent[hidden], #analytics-preferences[hidden] { display: none !important; }
#analytics-consent {
  position: fixed;
  z-index: 10000;
  inset: auto 16px max(16px, env(safe-area-inset-bottom));
  width: auto;
  max-width: 560px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
}
#analytics-consent h2 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
#analytics-consent p { margin: 0 0 12px; }
#analytics-consent a { color: inherit; text-decoration: underline; }
.analytics-consent-actions { display: flex; gap: 12px; }
#analytics-consent button {
  flex: 1;
  min-height: 44px;
  border: 1px solid #282c75;
  border-radius: 8px;
  background: #fff;
  color: #282c75;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}
#analytics-consent button:hover { background: #f2f2f7; }
#analytics-preferences {
  position: fixed;
  z-index: 900;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  padding: 10px 12px;
  font-size: 12px;
  min-height: 44px;
  cursor: pointer;
}
#analytics-consent button:focus-visible, #analytics-preferences:focus-visible, #analytics-consent a:focus-visible {
  outline: 3px solid #ffb706;
  outline-offset: 3px;
}
