.sll-chatbot {
--sll-chatbot-bg: #ffffff;
--sll-chatbot-ink: #202124;
--sll-chatbot-muted: #667085;
--sll-chatbot-line: #e5e7eb;
--sll-chatbot-soft: #f7f4f8;
--sll-chatbot-user: #f0eaf5;
box-sizing: border-box;
color: var(--sll-chatbot-ink);
font-family: inherit;
font-size: 16px;
line-height: 1.45;
}
.sll-chatbot *,
.sll-chatbot *::before,
.sll-chatbot *::after {
box-sizing: border-box;
}
.sll-chatbot--floating {
bottom: 20px;
position: fixed;
right: 20px;
z-index: 99999;
}
.sll-chatbot .sll-chatbot__panel[hidden] {
display: none !important;
}
.sll-chatbot__toggle {
align-items: center;
background: var(--sll-chatbot-accent, #6f4e8d);
border: 0;
border-radius: 999px;
box-shadow: 0 14px 30px rgba(31, 31, 31, 0.2);
color: #ffffff;
cursor: pointer;
display: inline-flex;
font: inherit;
font-weight: 700;
height: 56px;
justify-content: center;
min-width: 72px;
padding: 0 20px;
}
.sll-chatbot__toggle:focus-visible,
.sll-chatbot__close:focus-visible,
.sll-chatbot__send:focus-visible,
.sll-chatbot__prompt:focus-visible,
.sll-chatbot__input:focus-visible {
outline: 3px solid color-mix(in srgb, var(--sll-chatbot-accent, #6f4e8d) 30%, #ffffff);
outline-offset: 2px;
}
.sll-chatbot__panel {
background: var(--sll-chatbot-bg);
border: 1px solid var(--sll-chatbot-line);
border-radius: 8px;
box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
display: flex;
flex-direction: column;
margin-bottom: 12px;
max-height: min(680px, calc(100vh - 112px));
overflow: hidden;
width: min(380px, calc(100vw - 32px));
}
.sll-chatbot--inline .sll-chatbot__panel {
box-shadow: none;
margin: 0;
max-height: 680px;
width: 100%;
}
.sll-chatbot__header {
align-items: center;
background: var(--sll-chatbot-accent, #6f4e8d);
color: #ffffff;
display: flex;
gap: 12px;
justify-content: space-between;
padding: 14px 16px;
}
.sll-chatbot__title {
color: inherit;
font-size: 1rem;
font-weight: 700;
line-height: 1.2;
margin: 0;
}
.sll-chatbot__status {
color: rgba(255, 255, 255, 0.82);
font-size: 0.79rem;
margin: 2px 0 0;
}
.sll-chatbot__close {
background: rgba(255, 255, 255, 0.14);
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 999px;
color: #ffffff;
cursor: pointer;
font: inherit;
font-size: 0.78rem;
font-weight: 700;
padding: 6px 10px;
}
.sll-chatbot__history {
background: linear-gradient(180deg, #ffffff 0%, #fbfafc 100%);
display: flex;
flex: 1 1 auto;
flex-direction: column;
gap: 10px;
min-height: 280px;
overflow-y: auto;
padding: 16px;
}
.sll-chatbot__message {
display: flex;
width: 100%;
}
.sll-chatbot__message--bot {
justify-content: flex-start;
}
.sll-chatbot__message--user {
justify-content: flex-end;
}
.sll-chatbot__bubble {
border-radius: 8px;
max-width: 92%;
padding: 10px 12px;
white-space: normal;
word-break: break-word;
}
.sll-chatbot__message--bot .sll-chatbot__bubble {
background: #ffffff;
border: 1px solid var(--sll-chatbot-line);
}
.sll-chatbot__message--user .sll-chatbot__bubble {
background: var(--sll-chatbot-user);
border: 1px solid color-mix(in srgb, var(--sll-chatbot-accent, #6f4e8d) 20%, #ffffff);
}
.sll-chatbot__bubble a {
color: var(--sll-chatbot-accent, #6f4e8d);
font-weight: 700;
text-decoration: underline;
text-underline-offset: 2px;
}
.sll-chatbot__note {
color: var(--sll-chatbot-muted);
display: block;
font-size: 0.78rem;
margin-top: 8px;
}
.sll-chatbot__prompts {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 2px 0 4px;
}
.sll-chatbot__prompt {
background: var(--sll-chatbot-soft);
border: 1px solid var(--sll-chatbot-line);
border-radius: 999px;
color: var(--sll-chatbot-ink);
cursor: pointer;
font: inherit;
font-size: 0.8rem;
padding: 6px 9px;
}
.sll-chatbot__form {
align-items: stretch;
background: #ffffff;
border-top: 1px solid var(--sll-chatbot-line);
display: flex;
gap: 8px;
padding: 12px;
}
.sll-chatbot__input {
background: #ffffff;
border: 1px solid #d0d5dd;
border-radius: 8px;
color: var(--sll-chatbot-ink);
flex: 1 1 auto;
font: inherit;
min-width: 0;
padding: 10px 12px;
}
.sll-chatbot__send {
background: var(--sll-chatbot-accent, #6f4e8d);
border: 0;
border-radius: 8px;
color: #ffffff;
cursor: pointer;
font: inherit;
font-weight: 700;
padding: 0 14px;
}
@media (max-width: 520px) {
.sll-chatbot--floating {
bottom: 14px;
left: 14px;
right: 14px;
}
.sll-chatbot__panel {
max-height: calc(100vh - 96px);
width: 100%;
}
.sll-chatbot__toggle {
margin-left: auto;
}
}