/* DDP Pref Shield — always win, only inside #ddp-pref-root */

#ddp-pref-root,
#ddp-pref-root *{
  box-sizing:border-box;
}

/* Stop theme/global button rules from breaking DDP */
/* Stop theme/global button rules from breaking DDP (DO NOT force width) */
#ddp-pref-root button,
#ddp-pref-root .button,
#ddp-pref-root input[type="button"],
#ddp-pref-root input[type="submit"],
#ddp-pref-root input[type="reset"]{
  max-width:100% !important;
  min-width:0 !important;
  text-transform:none !important;
  letter-spacing:normal !important;
  line-height:1.2 !important;
  box-shadow:none !important;
}

/* Stop theme/global form controls rules */
#ddp-pref-root input,
#ddp-pref-root select,
#ddp-pref-root textarea{
  max-width:100% !important;
  text-transform:none !important;
  letter-spacing:normal !important;
  line-height:1.2 !important;
  box-shadow:none !important;
}

/* Keep DDP modal above header/loader */
/* Keep DDP modal ABOVE everything (beats crazy theme z-index) */
#ddp-pref-root{ position:relative !important; z-index:2147483000 !important; }

/* Fullscreen overlay + modal at the very top */
#ddp-pref-root [data-ddp-overlay]{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483646 !important;
}
#ddp-pref-root [data-ddp-modal]{
  position:fixed !important;
  z-index:2147483647 !important;
}

/* Forced change font weight */
#ddp-modal, #ddp-modal *{
  font-synthesis: none;
}

#ddp-cap{ font-weight: 600 !important; }

#ddp-modal .ddp-row label span{
  font-weight: 600 !important;
}

#ddp-modal .ddp-grand-row{
  font-weight: 700 !important;
}
