{"versionId":"76e15e52-48ba-4d58-e53a-08dee389699b","articleId":"6e1f7504-476f-4438-deb2-08dee6c29b03","title":"Chat widget styling: custom CSS","tags":["callouts","setup","styles","All articles"],"content":"<html><head></head><body><p>Use custom CSS to make styling changes to your Helpfruit chat widget beyond the <a href=\"https://help.helpfruit.com/article/bot-styling\" target=\"_blank\" rel=\"noopener\">standard options</a> for avatar, colours, and position. This article covers commonly used selectors and example CSS snippets for common styling changes.</p>\n<div class=\"mce-toc\">\n<h2>Quick links</h2>\n<ul>\n<li><a href=\"#add-custom-css\">Add custom CSS</a></li>\n<li><a href=\"#frequently-used-css-selectors\">Frequently used CSS selectors</a></li>\n<li><a href=\"#callout-selectors\">Callout selectors</a></li>\n<li><a href=\"#example-css-snippets\">Example CSS snippets</a>\n<ul>\n<li><a href=\"#mcetoc_1ju6mffh51g\">Always show the close button</a></li>\n<li><a href=\"#mcetoc_1ju6mffh51h\">Hide the callout on small screens</a></li>\n<li><a href=\"#mcetoc_1ju6mffh51i\">Change widget width</a></li>\n<li><a href=\"#mcetoc_1ju6mffh51j\">Change chat content height</a></li>\n<li><a href=\"#mcetoc_1ju6mffh51k\">Round widget corners</a></li>\n<li><a href=\"#mcetoc_1ju6mffh51l\">Style bot messages</a></li>\n</ul>\n</li>\n<li><a href=\"#tips-for-testing-changes\">Tips for testing changes</a></li>\n</ul>\n</div>\n<h2 id=\"add-custom-css\">Add custom CSS</h2>\n<p>Go to <strong>Configuration &gt; Bot styles</strong>, then open the <strong>Custom CSS</strong> tab.</p>\n<p>Use this area to add styling changes that are not available in the standard widget styling options.</p>\n<p>Some styles may only apply if you add <code>!important</code>. After saving your changes, test the widget on desktop and mobile.</p>\n<h2 id=\"frequently-used-css-selectors\">Frequently used CSS selectors</h2>\n<p>Use the selectors below to target common parts of the chat widget.</p>\n<ul>\n<li>\n<p><code>#myChatButton</code> — use this to style the chat button, including avatar sizing.</p>\n</li>\n<li>\n<p><code>#chatBoxWrapper</code> — the main wrapper for the chat widget. Use this to adjust width, borders, and outer styling.</p>\n</li>\n<li>\n<p><code>#chatBoxWrapper .chatBoxContent</code> — use this to adjust the height of the chat content area.</p>\n</li>\n<li>\n<p><code>#chatBoxWrapper .chatBoxHeader</code> — the header area of the chat widget.</p>\n<ul>\n<li>\n<p><code>.chatHeaderIcon span.icon</code> — the header icon.</p>\n</li>\n<li>\n<p><code>.chatHeaderTitle h1</code> — the header title.</p>\n</li>\n</ul>\n</li>\n<li>\n<p><code>#chatBoxWrapper .wc-message-from-bot .wc-message-content</code> — bot message styling.</p>\n</li>\n<li>\n<p><code>#chatBoxWrapper .wc-message-from-me .wc-message-content</code> — user message styling.</p>\n</li>\n<li>\n<p><code>#chatBoxWrapper .chatBoxContent .wc-chatview-panel .wc-console</code> — the chat input area.</p>\n<ul>\n<li>\n<p><code>button.wc-send</code> — the send button.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h2 id=\"callout-selectors\">Callout selectors</h2>\n<p>Use these selectors to style callouts.</p>\n<ul>\n<li>\n<p><code>.callout-close-wrapper</code></p>\n</li>\n<li>\n<p><code>.callout-message</code></p>\n</li>\n<li>\n<p><code>.callout-message-triangle</code></p>\n</li>\n<li>\n<p><code>.callout-message-triangle-shadow</code></p>\n</li>\n</ul>\n<h2 id=\"example-css-snippets\">Example CSS snippets</h2>\n<h3 id=\"mcetoc_1ju6mffh51g\">Always show the close button</h3>\n<pre><code>/* Always show the close button */\n.callout-close-wrapper {\n  opacity: 100 !important;\n}</code></pre>\n<h3 id=\"mcetoc_1ju6mffh51h\">Hide the callout on small screens</h3>\n<pre><code>@media screen and (max-width: 400px) {\n  .callout-message {\n    display: none;\n  }\n\n  .callout-message-triangle {\n    display: none;\n  }\n\n  .callout-message-triangle-shadow {\n    display: none;\n  }\n\n  #myChatButton {\n    bottom: 2vh;\n  }\n}</code></pre>\n<h3 id=\"mcetoc_1ju6mffh51i\">Change widget width</h3>\n<pre><code>#chatBoxWrapper {\n  width: 420px !important;\n}</code></pre>\n<h3 id=\"mcetoc_1ju6mffh51j\">Change chat content height</h3>\n<pre><code>#chatBoxWrapper .chatBoxContent {\n  height: 500px !important;\n}</code></pre>\n<h3 id=\"mcetoc_1ju6mffh51k\">Round widget corners</h3>\n<pre><code>#chatBoxWrapper,\n#myChatButton {\n  border-radius: 16px !important;\n}</code></pre>\n<h3 id=\"mcetoc_1ju6mffh51l\">Style bot messages</h3>\n<pre><code>#chatBoxWrapper .wc-message-from-bot .wc-message-content {\n  background-color: #f3f4f6 !important;\n  color: #111827 !important;\n}</code></pre>\n<h2 id=\"tips-for-testing-changes\">Tips for testing changes</h2>\n<ul>\n<li>\n<p>Save one change at a time so it is easier to spot problems.</p>\n</li>\n<li>\n<p>Test the widget on desktop and mobile screen sizes, on your website test environment - so you can see how it works with your site's CSS.</p>\n</li>\n<li>\n<p>Check the chat button, header, messages, input area, and callouts.</p>\n</li>\n<li>\n<p>If a style does not apply, try adding <code>!important</code>.</p>\n</li>\n<li>\n<p>Remove any CSS that causes layout or readability issues.</p>\n</li>\n</ul></body></html>","description":"Use custom CSS to make advanced styling changes to your Helpfruit chat widget, including layout, spacing, borders, and callout behaviour.","isMarkdown":false,"publishedOnUtc":"2026-10-16T02:16:17.28467","modifiedOnUtc":"2026-07-23T05:08:07.4770124"}