
/* 1.3.0: Keep all original GDPR panels and original consent controls. */
html body .gdpr.gdpr-privacy-preferences .gdpr-tabs,
html body .gdpr.gdpr-privacy-preferences .gdpr-subtabs,
html body .gdpr.gdpr-privacy-preferences .gdpr-mobile-menu { display:none !important; }

/* Scrolling belongs to the card, not the page behind it. */
html body .gdpr.gdpr-privacy-preferences .gdpr-wrapper {
  box-sizing:border-box !important;
  max-height: min(88dvh, 820px) !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

/* Clear fixed tab heights/side-bar allocations from upstream GDPR. */
html body .gdpr.gdpr-privacy-preferences .gdpr-content,
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content,
html body .gdpr.gdpr-privacy-preferences .gdpr-consent-management {
  box-sizing:border-box !important;
  position:static !important;
  float:none !important;
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  flex: 1 1 auto !important;
}

/* Content padding. Header and modal close button keep their original behavior. */
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content {
  padding: 14px clamp(18px, 3vw, 32px) 24px !important;
}
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content > div {
  display:block !important;
  position:static !important;
  float:none !important;
  visibility:visible !important;
  opacity:1 !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  margin:0 0 24px !important;
  padding:0 0 18px !important;
  border-bottom:1px solid rgba(75, 94, 110, .2) !important;
}
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content > div:last-child {border-bottom:0 !important;margin-bottom:0 !important;}
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content p,
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content h2,
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content h3,
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content h4 {
  overflow-wrap:break-word;
}
html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content > div .gdpr-active {
  visibility:visible !important;
}
/* Hide original save control only once the replacement is mounted. */
html body .gdpr.gdpr-privacy-preferences.badnet-gdpr-save-ready .badnet-gdpr-original-save {
  display:none !important;
}
html body .gdpr.gdpr-privacy-preferences .badnet-gdpr-save-footer {
  box-sizing:border-box !important;
  position:relative !important;
  display:flex !important;
  width:100% !important;
  justify-content:center !important;
  padding:20px 0 6px !important;
  margin:0 !important;
  border-top:0 !important;
}
html body .gdpr.gdpr-privacy-preferences .badnet-gdpr-save-footer button {
  background:#d0000c;
  color:white;
  border:0;
  border-radius:3px;
  padding:11px 22px;
  font:inherit;
  cursor:pointer;
}
@media(max-width:640px) {
  html body .gdpr.gdpr-privacy-preferences .gdpr-wrapper {
    max-height: 90dvh !important;
    width:calc(100vw - 20px) !important;
    max-width:calc(100vw - 20px) !important;
  }
  html body .gdpr.gdpr-privacy-preferences .gdpr-tab-content {padding:12px 18px 20px !important;}
}
