Here's a compilation of CSS styling order in a diagram, on which CSS rules has higher priority and take precedence over the rest :
DisclaimerDisclaimer: Me and myMy team and I worked this piece out together with a blog post (https://vecta.io/blog/definitive-guide-to-css-styling-order) which I think it comeswill come in handy to all front-end developers.
Hope it helps! :)