Style the parts with classNames. The dialog renders in a portal on document.body, so selectors written on a parent never reach it. Pass classNames or styles keyed by part: header, body, footer, title, mask and the rest.
className lands on the dialog box, rootClassName on the portal root and wrapClassName on the scroll wrapper.