/* Shared, optional measurement choice; never blocks access to the website. */
.analytics-consent[hidden], .analytics-preferences[hidden] { display: none !important; }
.analytics-consent {
  position: fixed;
  z-index: 10000;
  inset: auto 24px 24px auto;
  width: min(540px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px;
  background: #f7f5ef;
  color: #172323;
  border: 1px solid #aeb9b3;
  border-radius: 16px;
  box-shadow: 0 12px 40px #07151026;
  font: 400 14px/1.65 Inter, system-ui, sans-serif;
  text-align: left;
}
.analytics-consent h2 { margin: 0 0 8px; font: 600 20px/1.3 Inter, system-ui, sans-serif; color: #172323; letter-spacing: -0.02em; }
.analytics-consent p { margin: 0; font: inherit; color: #354a43; }
.analytics-consent a { color: #174c3f; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent .analytics-consent__status:not(:empty) { margin-top: 10px; font-size: 12px; }
.analytics-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.analytics-consent__actions button {
  appearance: none; min-height: 44px; padding: 10px 12px; border: 1px solid #3e6557;
  border-radius: 8px; color: #174c3f; background: transparent; font: 600 13px/1.4 Inter, system-ui, sans-serif; cursor: pointer;
}
.analytics-consent__actions button:last-child { background: #174c3f; color: #fff; }
.analytics-consent__actions button:disabled { opacity: .55; cursor: not-allowed; }
.analytics-consent :focus-visible { outline: 3px solid #327fc0; outline-offset: 3px; }
.analytics-preferences { appearance: none; border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .analytics-consent { inset: auto 12px 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px; }
}
@media (forced-colors: active) {
  .analytics-consent { border: 2px solid CanvasText; }
  .analytics-consent__actions button { border: 1px solid ButtonText; }
}
@media print { .analytics-consent, .analytics-preferences { display: none !important; } }
