The button css class is influenced by my own css (styles.css) class for buttons. Here it is the padding that makes the button in the AI chat appear wider.
This happens because of a conflict between styles. In simple terms, CSS follows certain rules (like cascade, importance, and specificity) to decide which style will be applied to an element.
On your page, the browser calculates the styles, and the page’s styles end up overriding the widget’s styles. When you add a new style to the Custom CSS field, it’s applied “closer” to the widget (this is how our widget is designed), which makes it stronger than your website’s styles and allows it to override them.
Hi @Max
OK, I understood. I should declare my button class more precisely, use the custom CSS function or exclude the icon-button__Container-sc in my class.