In really large codebases, long CSS selector do affect your site's performance. To prevent this from happening, it's important to write selectors that are specific enough, but not too specific.
Have a look at csswizardry.com/2011/09/writing-efficient-css-sel… where Harry Roberts explains this in full detail.