# Customize the chat with CSS

> Add custom CSS to fix overlaps with your theme or restyle the chat and the Product Questions block.

AI Shopping Assistant · Published November 14, 2026 · https://help.brandye.com/ai-shopping-assistant/customize-the-chat-with-css

Use custom CSS when the chat settings can't fix how the chat fits your theme, for example when the chat bar covers your cart drawer. The CSS applies to the chat bar or button, the chat window and the [Product Questions block](https://help.brandye.com/ai-product-questions/add-product-questions-to-product-pages). It goes inside each of them, so a rule on `:host` changes all of them. For example, hiding `:host` on phones also hides the Product Questions block.

Try the settings first. To move the chat, switch to a button, or change its **Position** or **Distance from the bottom**. See [Choose how the chat opens](https://help.brandye.com/ai-shopping-assistant/choose-how-the-chat-opens). To hide the chat on phones or on some pages, [choose where the chat bar appears](https://help.brandye.com/ai-shopping-assistant/choose-where-the-chat-bar-appears).

## Add custom CSS

1. In Brandye, open **AI Product Questions**.
2. Under **Setup**, open [**Appearance**](https://admin.shopify.com/store/YOUR_STORE/apps/brandye-2/app/product-questions/appearance).
3. Open the **Chat look** tab.
4. Enter your CSS under **Custom CSS**.
5. Check the preview beside the settings.
6. Click **Save**.

Open your storefront on a computer and on a phone to check the result.

## Put the chat bar under your cart drawer

The chat bar sits above everything on the page by default. To place it under most cart drawers, open **Examples** under **Custom CSS**, then copy **Set the chat bar's z-index to 50**:

```css
:host {
  --brandye-chat-bar-z-index: 50;
}
```

If the bar still covers your cart drawer, use a lower number.

## Get help with your CSS

Click **Request help** under **Custom CSS** to ask the Brandye team, through the support chat, to match the chat to your theme. You can also [contact Brandye support](https://help.brandye.com/getting-started/contact-brandye-support).
