The dialog boxes appear in the same order as the products have been rendered onto the screen if multiple messages are shown in succession.
Currently, the dialog box is inside the Product Card and Cart Item component, it needs to be shifted to the layout component (so that rendering takes place in a single place).
Also, the dialog box should not cover the entire screens which make the other actions non-clickable.