fix: pos payment using non-default mode of payment (#44920)
* fix: pos payment using non-default mode of payment (#41108)
* fix: included css syntax
* refactor: created a function to sanitize the class name
* refactor: reusing method to sanitize class name
* refactor: function rename
(cherry picked from commit 98cbb7e900)
Co-authored-by: Diptanil Saha <diptanil.dev@gmail.com>