/* Only lock the underlying page while the GDPR consent notice remains visible. */
html.badnet-gdpr-locked, html.badnet-gdpr-locked body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
/* Prevent GDPR's body top=-scrollY behavior from displacing the document. */
html.badnet-gdpr-locked body.gdpr-noscroll {
  position: static !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}
/* Allow scrolling inside cookie preference panels if their height exceeds the viewport. */
html.badnet-gdpr-locked .gdpr.gdpr-privacy-preferences .gdpr-wrapper {
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
