After successfully achieving the desired button behavior in my local setup, I encountered a subtle change when importing it into Wordpress. Unfortunately, I am unable to identify how to correct this issue.
My goal is for the button to expand vertically instead of horizontally. Currently, when the button contains too much text, it extends beyond the boundaries of the div element.
The attached image illustrates the preferred local behavior compared to the overflowing one.
--I meticulously reviewed the "Computed" styles line by line, yet I have not been able to pinpoint the cause of the problem. It does not appear to be related to overflow-x/y, which are among the few distinctions.
Please note that in the image, the problematic button uses a different font; however, changing the font did not resolve the fitting issue.