Strange, indeed the custom class on snippet isn’t getting applied.
What you could do is wrap your snippet call in a container and apply custom styling on that container.
OR
Wrap the content of the snippet inside a container and then apply custom styling.