How do you ladies stand up for yourself if someone behaves very rudely towards you in public? I feel like confronting them is not feminine?

For instance I was waiting in line to be served today, when another woman started a whole racist rant towards me. She was dressed immaculately too - beautiful flowy dress, shiny handbag, crisp white gloves and a fancy hat. I wasn’t sure what to do and so I left, but a part of me is shaking and also very angry that someone spoke to me in this manner and got away with it.

Other instances include when someone cuts in front of you in a line, pushes you aside when trying to get to their destination etc. I’m not the confrontational type, and in the past when I call out their poor behaviour they just roll their eyes at me :(