Chat Assistant CSS Class Reference
Theme chat assistants with CSS custom properties and scoped classes for the launcher, panel, chat, articles, tickets, history, and inline mode.
Styling Model
The embedded chat assistant (stored by Simply360 as a DataConversationWidget) renders into the host page's light DOM and injects one namespaced stylesheet. All widget-owned classes begin with s360c-. The prefix keeps ordinary site styles from colliding with the widget, but broad host rules such as button { all: unset; } can still reach it.
Use CSS custom properties for theme changes and semantic classes for targeted layout or component changes. Popover widgets append their .s360c-root directly to document.body; they do not inherit variables from the empty data-s360-conversation marker. Inline widgets append the root inside the marker and can inherit from it.
Default Styling Simply360 Provides
- A system font stack at
15px, dark#1f2937text, white background,#f9fafbsecondary surfaces, and#e5e7ebborders. - A neutral
#6b7280built-in primary color and#4b5563hover color when no Team, widget, embed, or host override is present. - A
56pxcircular launcher positioned20pxfrom the selected lower corner, with the panel14pxabove it. - A
380pxpopover panel with a12pxradius and0 10px 40px rgba(0,0,0,.15)shadow. Its available height is calculated from the dynamic viewport so the launcher and panel remain on-screen. - Responsive behavior below
440px, reduced-motion support, visible keyboard focus through native/control styles, bounded scrolling for long chat/article/history content, and complete loading/empty/error states. - Inline mode fills the target's width and height, removes fixed positioning and the launcher, and gives the panel a
1pxborder instead of the floating shadow treatment. Give the target an explicit height or minimum height.
Theme Precedence
The primary color resolves in this order, from highest to lowest:
- Host CSS override variables such as
--s360c-host-primary. S360Conversation.init()theme values, stored internally as--s360c-init-*.- The chat assistant's configured primary color.
- The Team Style Kit primary color.
- The built-in neutral defaults.
Use the public --s360c-host-* properties instead of assigning internal --s360c-init-*, --s360c-widget-primary, or --s360c-team-primary values yourself.
/* All chat assistants on this page */
.s360c-root {
--s360c-host-primary: #7c3aed;
--s360c-host-primary-hover: #6d28d9;
--s360c-host-text: #17132b;
--s360c-host-bg: #ffffff;
--s360c-host-radius: 18px;
--s360c-host-font: "Inter", system-ui, sans-serif;
--s360c-host-font-size: 15px;
}
/* One imperative instance initialized with instanceId: "sales-help" */
#s360-conversation-widget-sales-help {
--s360c-host-primary: #0f766e;
}
Public Theme Properties
| Property | Purpose and fallback |
|---|---|
--s360c-host-primary | Launcher, header, selected tabs, user messages, links, focus borders, and submit controls. Falls through configured colors to #6b7280. |
--s360c-host-primary-hover | Hover/active primary color. Modern browsers derive a slightly darker primary when this is omitted; the fixed fallback is #4b5563. |
--s360c-host-text | Main text color; default #1f2937. |
--s360c-host-bg | Panel and input-area background; default #fff. |
--s360c-host-radius | Panel radius; default 12px. |
--s360c-host-font | Widget font family; defaults to the system UI stack. |
--s360c-host-font-size | Root font size; default 15px. Individual controls retain accessible minimums where required. |
Advanced Layout Properties
These variables are available when a host needs to coordinate the widget with fixed headers and footers. They are lower-level than the public theme properties, so test both desktop and small viewports after changing them.
| Property | Default or role |
|---|---|
--s360c-text-light | #6b7280; secondary copy. |
--s360c-bg-secondary | #f9fafb; assistant bubbles, cards, and subdued surfaces. |
--s360c-border | #e5e7eb; panel dividers and form controls. |
--s360c-shadow | 0 10px 40px rgba(0,0,0,.15); popover panel shadow. |
--s360c-launcher-offset | 20px; distance from the selected bottom corner. |
--s360c-launcher-size | 56px; launcher width and height. |
--s360c-panel-gap | 14px; gap between launcher and popover panel. |
--s360c-popover-max-height | Calculated from 100dvh (or 100vh) minus the launcher/gutter budget. |
--s360c-panel-content-min-height, --s360c-panel-content-max-height | Calculated content bounds. Override only when the host provides an equivalent viewport-safe layout. |
--s360c-chat-input-textarea-max-height, --s360c-chat-messages-min-height, --s360c-chat-messages-max-height | Calculated chat composer/message balance for short viewports. |
--s360c-bg-hover, --s360c-text-secondary | Optional history/list refinements; selectors fall back to a translucent hover and the widget's secondary text treatment. |
Root, Launcher, and Callout Classes
| Class | Element or state |
|---|---|
.s360c-root | Top-level widget element, theme owner, and fixed-position popover root. |
.s360c-root--bottom-right, .s360c-root--bottom-left | Popover corner placement. |
.s360c-root--inline | Inline layout modifier. |
.s360c-button, .s360c-button--active | Popover launcher and open-panel state. |
.s360c-button__icon, .s360c-button__icon--chat, .s360c-button__icon--close, .s360c-button__avatar | Launcher icon states and configured avatar. |
.s360c-launcher-callout, .s360c-launcher-callout--visible, .s360c-launcher-callout--panel-open | Optional launcher prompt, visible state, and suppression while the panel is open. A configured behavior also adds a namespaced behavior modifier. |
Panel and Tab Classes
| Classes | Purpose |
|---|---|
.s360c-panel, .s360c-panel--open, .s360c-panel--inline | Panel, visible state, and inline modifier. |
.s360c-panel__header, .s360c-panel__title, .s360c-panel__header-actions | Primary-colored panel header. |
.s360c-panel__new-chat, .s360c-panel__close | Header action buttons. |
.s360c-panel__tabs, .s360c-tab, .s360c-tab--active | Tab list, tab, and selected tab. |
.s360c-panel__content | Scrollable active-panel area. |
.s360c-panel__loading, .s360c-panel__loading--icons, .s360c-panel__loading-icon | Text or configured-icon loading states. |
.s360c-error | Panel-level visible error. |
Chat Classes
| Area | Classes |
|---|---|
| Shell | .s360c-chat, .s360c-chat__messages, .s360c-chat__empty, .s360c-chat__prechat. |
| Composer | .s360c-chat__input-area, .s360c-chat__input, .s360c-chat__send. |
| Verified visitor | .s360c-chat__verified-footer, .s360c-chat__verified-label, .s360c-chat__verified-signout. |
| Offline/return | .s360c-chat__offline-message, .s360c-chat__offline-form, .s360c-chat__offline-error, .s360c-chat__return-bar. |
| Message shell | .s360c-message, .s360c-message--user, .s360c-message--assistant, .s360c-message--system, .s360c-message--with-dataview. |
| Message content | .s360c-message__bubble, .s360c-message__bubble--md, .s360c-message__system, .s360c-message__deleted, .s360c-message__typing, .s360c-message__attachments. |
| Actions and follow-ups | .s360c-message__actions, .s360c-message__follow-ups, .s360c-message__follow-ups-label. |
| Article references | .s360c-message__article-refs, .s360c-message__article-ref, .s360c-article-link. |
| Satisfaction prompt | .s360c-csat-overlay, .s360c-csat-emoji. |
.s360c-message__bubble--md contains sanitized rich text. Scope any rules for headings, paragraphs, lists, links, code, and horizontal rules beneath that class so they do not affect the rest of the page.
Data View Attachments in Chat
| Classes | Purpose |
|---|---|
.s360c-message__dataview, .s360c-message__dataview--list, .s360c-message__dataview--map | Attachment card and display-mode modifiers. |
.s360c-message__dataview-summary | Attachment summary/header. |
.s360c-message__dataview-mount, .s360c-message__dataview-mount--error | Data View mount point and load failure. |
.s360c-message__dataview-table, .s360c-message__dataview-table-scroll, .s360c-message__dataview-table--error | Compact tabular attachment, horizontal scroller, and failure state. |
List/map attachments can also contain normal s360-* Data View classes. See Data View CSS Class Reference before overriding their internal record cards.
Knowledge Base Classes
| Area | Classes |
|---|---|
| Shell/search | .s360c-kb, .s360c-kb__search, .s360c-kb__search-input. |
| Article list | .s360c-kb__list, .s360c-kb__loading, .s360c-kb__empty, .s360c-kb__card, .s360c-kb__card-title, .s360c-kb__card-summary, .s360c-kb__card-category. |
| Article detail | .s360c-kb__detail, .s360c-kb__back, .s360c-kb__detail-title, .s360c-kb__detail-category, .s360c-kb__detail-body. |
Ticket and Handoff Classes
| Classes | Purpose |
|---|---|
.s360c-ticket, .s360c-ticket__intro, .s360c-ticket__form | Ticket panel, introduction, and form. |
.s360c-ticket__field, .s360c-ticket__label, .s360c-ticket__required | Field group, label, and required marker. |
.s360c-ticket__input, .s360c-ticket__textarea | Text controls. |
.s360c-ticket__error, .s360c-ticket__submit | Submission error and primary submit control. |
.s360c-ticket__success, .s360c-ticket__success-icon, .s360c-ticket__new | Success state and Send Another control. |
Conversation History Classes
| Area | Classes |
|---|---|
| Shell/list | .s360c-history, .s360c-history__list, .s360c-history__loading, .s360c-history__empty. |
| Conversation card | .s360c-history__card, .s360c-history__card-header, .s360c-history__card-subject, .s360c-history__card-time, .s360c-history__card-meta, .s360c-history__msg-count, .s360c-history__ai-badge. |
| Status badges | .s360c-history__badge, .s360c-history__badge--open, .s360c-history__badge--pending, .s360c-history__badge--resolved, .s360c-history__badge--closed. |
| Paging | .s360c-history__pager, .s360c-history__pager-btn, .s360c-history__pager-info. |
| Detail header | .s360c-history__back-bar, .s360c-history__back-btn, .s360c-history__detail-header, .s360c-history__detail-subject. |
| Detail messages | .s360c-history__messages, .s360c-history__msg, .s360c-history__msg--user, .s360c-history__msg--agent, .s360c-history__msg-content, .s360c-history__msg-content--user, .s360c-history__msg-content--agent, .s360c-history__msg-meta. |
Inline Mode Example
<div
id="support-panel"
data-s360-conversation
data-token="<widget token>"
data-widget-id="CWDG-1234-ABCD"
data-mode="inline">
</div>
#support-panel {
width: 100%;
min-height: 32rem;
height: min(44rem, 80vh);
}
#support-panel .s360c-root--inline {
--s360c-host-primary: #0f766e;
}
#support-panel .s360c-panel__header {
padding: 1.25rem 1.5rem;
}
Safe Overrides
- Keep structural selectors beneath
.s360c-rootor a specific widget root id. - Do not remove focus indicators, required markers, offline/error messages, handoff disclosures, or disabled states.
- Do not select generated random instance ids. For one-widget styling through the imperative API, pass a stable
instanceId; the root id becomess360-conversation-widget-{instanceId}. - Test configured tabs only: a widget can expose chat, articles, tickets, history, or a subset. Also test long translated labels, multiline messages, attachments, offline mode, and a viewport narrower than
440px. - Prefer custom properties over overriding the primary-color rules one by one. This preserves hover, active, focus, message, and form consistency.
See Embedding Data Views, Wizards, and the chat assistant for initialization, Data View CSS Class Reference, and Wizard CSS Class Reference.