/* Scoped nonmodal notice; original site styles remain unchanged. */
.analytics-consent[hidden], .analytics-consent [hidden] { display: none !important; }
.analytics-consent {
  position: fixed; z-index: 30; right: 12px; bottom: 12px; left: auto;
  width: min(560px, calc(100% - 24px)); box-sizing: border-box;
  max-height: 60vh; overflow: auto; padding: 12px;
  border: 1px solid #dedbe0; border-radius: 9px;
  background: #fff; color: #25232a; box-shadow: 0 3px 16px #25232a26;
  font: 14px/1.4 Arial, Helvetica, sans-serif;
}
.analytics-consent h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; letter-spacing: normal; }
.analytics-consent p { margin: 4px 0; color: #514c56; }
.analytics-consent details { padding: 4px 0; }
.analytics-consent summary { min-height: 24px; cursor: pointer; font-size: 14px; text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.analytics-consent button {
  min-height: 44px; flex: 1 1 130px; padding: 8px;
  border: 1px solid #cc006f; border-radius: 6px; background: #fff; color: #9f0057;
  font: 700 14px/1.3 Arial, Helvetica, sans-serif; cursor: pointer;
}
.analytics-consent button:hover { background: #fff5fa; }
.analytics-consent button:focus-visible, .analytics-consent summary:focus-visible, .analytics-privacy-choice:focus-visible {
  outline: 3px solid #f0008c; outline-offset: 2px;
}
.analytics-privacy-choice {
  padding: 8px 0; min-height: 44px; border: 0; background: transparent;
  color: #514c56; text-decoration: underline; font: 14px/1.5 Arial, Helvetica, sans-serif; cursor: pointer;
}
.analytics-privacy-status { display: block; max-width: 280px; font-size: 12px; color: #64616b; }
/* Keep end-of-page links scrollable above the notice, including its expanded text. */
body:has(.analytics-consent:not([hidden])) { padding-bottom: 230px; }
html:has(.analytics-consent:not([hidden])) { scroll-padding-bottom: 240px; }
html:has(.analytics-consent:not([hidden])) a { scroll-margin-bottom: 240px; }
@media (max-width: 600px) {
  .analytics-consent { right: 8px; bottom: 8px; width: calc(100% - 16px); padding: 10px; }
  .analytics-consent-actions > button { flex: 1 1 100px; }
}

body:has(.analytics-consent:not([hidden]) details[open]) { padding-bottom: 60vh; }
html:has(.analytics-consent:not([hidden]) details[open]) { scroll-padding-bottom: 62vh; }
