Refactored Modal module to use cleaner styling map