I mentioned this in another comment, but I think this CSS can be optimized.  See this [article on MDN][].  In particular, the use of descendant selectors is expensive.

[article on MDN]: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Writing_efficient_CSS