Overview
The theme editor settings cover colors, texts, position and size. When you need more, for example to move the floating bar above a sticky add-to-cart bar or to match your theme's font, add custom CSS.
The golden rule: change Talkom's CSS variables instead of overriding layout rules. Variables survive our updates, hard overrides may not.
Where to add your CSS
AI Assistant (Core) > Custom CSS: for the floating bar, the chat window and Ask About Product. This CSS loads on every page.
AI Mode > Custom CSS: for the AI Mode button and page. See AI Mode setup.
Both fields are in the theme editor under App embeds. Click Save after every change, and test on a theme copy first.
How the variables work
All Talkom variables start with --tai-. They're defined on :root and on the Talkom app container .talkomai-App, so set your values on .talkomai-App and add !important to make sure they win:
.talkomai-App { --tai-margin-top-bottom: 32px !important; }AI Assistant (Core)
Position the floating bar
Set the side and the base distance in the embed settings (Position and Margin top/bottom). The margin is stored in --tai-margin-top-bottom, so you can change it per page or screen size with CSS.
Lift the bar on mobile only:
@media (max-width: 749px) { .talkomai-App { --tai-margin-top-bottom: 80px !important; } }Move the bar when a cart button appears
Many themes show a sticky add-to-cart bar at the bottom of product pages, or a floating cart button. If it covers the Talkom bar, raise the bar only when that element is on the page. Replace .sticky-add-to-cart with the class your theme uses (right-click the cart bar > Inspect to find it):
body:has(.sticky-add-to-cart) .talkomai-App { --tai-margin-top-bottom: 90px !important; }If your theme only shows the cart bar after scrolling, target the class it gets when visible, for example .sticky-add-to-cart.is-visible.
Font and colors
Colors come from the embed settings. To use your theme's font or fine-tune details, these variables are available:
--tai-font-family,--tai-font-weight: the font of the assistant.--tai-primary-color: the main brand color.--tai-message-received-bg,--tai-message-received-color: the AI's message bubbles.--tai-input-bg-color: the message input background.--tai-conversation-starter-font-size,--tai-conversation-starter-font-weight: conversation starter chips.
.talkomai-App { --tai-font-family: "Your Theme Font", sans-serif !important; --tai-message-received-bg: #f7f3ee !important; }Style the messages
The AI's answers use the class .talkomai-message.talkomai-received. For example, numbered lists in answers:
.talkomai-message.talkomai-received > ol { list-style: decimal !important; margin: 5px 5px 5px 30px !important; }Useful class names
.floating-bar: the floating bar entry point.talkomai-chat-window: the chat window.talkomai-chat-title: the window header with name and logo.talkomai-messages: the message list.talkomai-welcome-message,.talkomai-collections,.talkomai-conversation-starters: Welcome screen parts.talkomai-products,.talkomai-product: product cards in the chat.talkomai-message-input: the message input.talkomai-chat-disclaimer: the disclaimer line
Ask About Product
The product page block has two parts: the suggested questions and the "Ask AI about this product" button. Add its CSS to the AI Assistant (Core) Custom CSS field.
.talkom-ai-product-page-suggestions-container,.talkom-ai-product-page-suggestions-label,.talkom-ai-product-page-suggestion: the question suggestions.talkom-ai-product-page-button-container,.talkom-ai-product-page-button: the button--tai-product-page-suggestion-font-size,--tai-product-page-suggestion-font-weight: suggestion text--tai-product-context-button-bg,--tai-product-context-button-color,--tai-product-context-button-border,--tai-product-context-button-hover: button colors
Add space above the block and make the suggestions a bit larger:
.talkom-ai-product-page-suggestions-container { margin-top: 16px !important; --tai-product-page-suggestion-font-size: 15px !important; }Positioning the whole block on the page (above or below the Add to cart button) is done in the theme editor by dragging the block. See Ask About Product.
AI Mode
Button position, page offsets under your header and input styling are covered in AI Mode setup.
Troubleshooting
Nothing changes: check that you saved the theme, that the rule has
!important, and that you're previewing the theme you edited.Works on desktop, not on mobile: your theme may use different elements on mobile. Check with the mobile preview and add a media query.
Broke after a theme update: class names in your theme (like the sticky cart bar) can change. Inspect the element again and update the selector.
Need help?
Send us your store URL and a screenshot, and we'll write the CSS for you. Message us in the chat in the bottom right corner.

