.analytics-consent[hidden], .analytics-settings[hidden] { display: none !important }
.analytics-consent, .analytics-settings { box-sizing: border-box }
.analytics-consent {
  position: fixed;
  z-index: 10000;
  left: 18px;
  bottom: 18px;
  width: min(370px, calc(100vw - 36px));
  padding: 16px 17px;
  border: 1px solid #dfd8ce;
  border-radius: 12px;
  background: #f8f4ec;
  box-shadow: 0 9px 28px #1c1a1724;
  color: #242321;
  font: 12px/1.45 'DM Sans', Arial, sans-serif;
}
.analytics-consent-copy strong {
  display: block;
  font: 700 13px/1.3 'Manrope', Arial, sans-serif;
}
.analytics-consent-copy p { margin: 5px 0 0; color: #625d57 }
.analytics-consent-actions { display: flex; gap: 8px; margin-top: 12px }
.analytics-consent-actions button {
  flex: 1;
  min-height: 36px;
  border: 1px solid #aaa198;
  border-radius: 7px;
  padding: 7px 10px;
  background: transparent;
  color: #242321;
  font: 700 11px/1.2 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}
.analytics-consent-actions button[data-analytics-choice="granted"] {
  border-color: #242321;
  background: #242321;
  color: #fff;
}
.analytics-consent-actions button:hover { border-color: #a45b32; color: #a45b32 }
.analytics-consent-actions button[data-analytics-choice="granted"]:hover { background: #a45b32; color: #fff }
.analytics-consent-actions button:focus-visible, .analytics-settings:focus-visible {
  outline: 2px solid #a45b32;
  outline-offset: 3px;
}
.analytics-settings {
  position: fixed;
  z-index: 9999;
  left: 18px;
  bottom: 12px;
  border: 0;
  padding: 6px 2px;
  background: transparent;
  color: #625d57;
  font: 600 10px/1.3 'DM Sans', Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.analytics-settings:hover { color: #a45b32 }
.presentation-page .analytics-consent { bottom: calc(var(--footer) + 18px) }
.presentation-page .analytics-settings { bottom: calc(var(--footer) + 12px) }
@media (max-width: 600px) {
  .analytics-consent { left: 12px; bottom: 12px; width: min(340px, calc(100vw - 24px)); padding: 14px }
  .analytics-settings { left: 12px; bottom: 8px }
  .presentation-page .analytics-consent { bottom: calc(var(--footer) + 12px) }
  .presentation-page .analytics-settings { bottom: calc(var(--footer) + 8px) }
}
