You can't style the scrollbar of a pseudo-element because pseudo-elements (like ::before and ::after) can't be independently scrollable. Scrollbars belong to 'real' DOM elements with overflow set to auto or scroll. If your pseudo-element overflows the parent, the scrollbar is actually on the parent. To style it you need to target the scrollable container (parent), not the pseudo-element.