@media (max-width: 640px) {
  /* Keep account notices and newsletter controls readable in the dark shell. */
  html body #modal#modal #modalContent :is(.account-details, .account-note, .newsletter-preferences) {
    background: #111b2b !important;
    color: #edf2ff !important;
    border: 1px solid #52617e !important;
    border-radius: 12px !important;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  html body #modal#modal #modalContent :is(.account-details, .account-note, .newsletter-preferences) :is(dt, dd, h3, p, label, span) {
    background: transparent !important;
    color: #edf2ff !important;
  }
  html body #modal#modal #modalContent .newsletter-preferences .account-status {
    margin: 12px 0 0 !important;
    padding: 0 !important;
  }
  html body #modal#modal #modalContent .newsletter-preferences .option-row {
    gap: 10px;
    text-align: left;
  }
  html body #modal#modal #modalContent .newsletter-preferences input[type=checkbox] {
    flex-shrink: 0;
  }
  html body #modal#modal #modalContent .newsletter-preferences button {
    background: #23334e !important;
    color: #fff !important;
    border-color: #7183a8 !important;
  }
  html body #modal#modal.bv-customer-dashboard #modalContent .bv-dashboard-settings-body :is(.account-actions, .account-profile-actions) > :is(a, button):not([hidden]),
  html body #modal#modal.bv-customer-dashboard #modalContent .bv-dashboard-settings-body details :is(a.button, button):not([hidden]),
  html body #modal#modal.bv-customer-dashboard #modalContent .bv-dashboard-settings-body > :is(a, button):not([hidden]) {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }
  html body #modal#modal.bv-customer-dashboard #modalContent .bv-dashboard-settings-body details:not([open]) > summary {
    margin-bottom: 0 !important;
  }
  html body #modal#modal.bv-customer-dashboard #modalContent .newsletter-preferences + :is(a, button) {
    margin-top: 12px !important;
  }
}
