fix(css): reorder css rules to have them applied correctly