#fcci-chatbot-root {
--fcci-green: #164B35;
--fcci-green-dark: #0d3423;
--fcci-green-light: #1F6B4A;
--fcci-green-pale: #E8F1EC;
--fcci-gold: #C9A227;
--fcci-text: #1a1f1c;
--fcci-muted: #6b7670;
position: fixed;
bottom: 22px;
right: 22px;
z-index: 999999;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
} .fcci-cb-bubble {
width: 62px;
height: 62px;
border-radius: 50%;
background: linear-gradient(145deg, var(--fcci-green-light), var(--fcci-green-dark));
color: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 6px 20px rgba(13,52,35,0.35);
border: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
position: relative;
}
.fcci-cb-bubble:hover { transform: scale(1.07); box-shadow: 0 8px 26px rgba(13,52,35,0.45); }
.fcci-cb-bubble svg { width: 26px; height: 26px; transition: opacity 0.15s ease, transform 0.15s ease; }
.fcci-cb-bubble .fcci-icon-close { position: absolute; opacity: 0; transform: rotate(-45deg) scale(0.6); }
.fcci-cb-bubble.fcci-cb-active .fcci-icon-chat { opacity: 0; transform: rotate(45deg) scale(0.6); }
.fcci-cb-bubble.fcci-cb-active .fcci-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.fcci-cb-pulse {
position: absolute;
top: -3px; right: -3px;
width: 14px; height: 14px;
background: var(--fcci-gold);
border-radius: 50%;
border: 2px solid #fff;
} .fcci-cb-window {
position: absolute;
bottom: 78px;
right: 0;
width: 360px;
max-width: calc(100vw - 40px);
height: 500px;
max-height: calc(100vh - 140px);
background: #fff;
border-radius: 18px;
box-shadow: 0 20px 60px rgba(13,52,35,0.25), 0 4px 14px rgba(0,0,0,0.08);
display: flex;
flex-direction: column;
overflow: hidden;
opacity: 0;
transform: translateY(16px) scale(0.97);
pointer-events: none;
transition: opacity 0.22s ease, transform 0.22s ease;
}
.fcci-cb-window.fcci-cb-open {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
} .fcci-cb-header {
background: linear-gradient(120deg, var(--fcci-green) 0%, var(--fcci-green-dark) 100%);
color: #fff;
padding: 16px 18px;
display: flex;
align-items: center;
gap: 12px;
border-bottom: 3px solid var(--fcci-gold);
}
.fcci-cb-avatar {
width: 38px;
height: 38px;
border-radius: 50%;
background: rgba(255,255,255,0.15);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
border: 1.5px solid rgba(255,255,255,0.3);
}
.fcci-cb-avatar svg { width: 20px; height: 20px; }
.fcci-cb-header-text { flex: 1; min-width: 0; }
.fcci-cb-header-title { font-weight: 600; font-size: 15px; letter-spacing: 0.1px; }
.fcci-cb-header-sub { font-size: 11.5px; opacity: 0.82; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.fcci-cb-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; display: inline-block; flex-shrink: 0; }
.fcci-cb-close {
background: rgba(255,255,255,0.12);
border: none;
color: #fff;
font-size: 18px;
width: 28px;
height: 28px;
border-radius: 50%;
cursor: pointer;
line-height: 1;
flex-shrink: 0;
transition: background 0.15s ease;
}
.fcci-cb-close:hover { background: rgba(255,255,255,0.25); } .fcci-cb-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
background: #fafcfb;
display: flex;
flex-direction: column;
gap: 12px;
}
.fcci-cb-messages::-webkit-scrollbar { width: 5px; }
.fcci-cb-messages::-webkit-scrollbar-thumb { background: #d4ded8; border-radius: 4px; }
.fcci-cb-row { display: flex; gap: 8px; align-items: flex-end; animation: fcci-fade-in 0.2s ease; }
.fcci-cb-row.user { justify-content: flex-end; }
@keyframes fcci-fade-in {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
.fcci-cb-mini-avatar {
width: 24px; height: 24px;
border-radius: 50%;
background: var(--fcci-green);
color: #fff;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.fcci-cb-mini-avatar svg { width: 13px; height: 13px; }
.fcci-cb-msg {
max-width: 78%;
padding: 10px 13px;
border-radius: 14px;
font-size: 13.5px;
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
}
.fcci-cb-msg a { color: inherit; text-decoration: underline; font-weight: 500; }
.fcci-cb-msg p { margin: 0 0 8px 0; }
.fcci-cb-msg p:last-child { margin-bottom: 0; }
.fcci-cb-msg ul.fcci-cb-list { margin: 4px 0 8px 0; padding-left: 18px; }
.fcci-cb-msg ul.fcci-cb-list:last-child { margin-bottom: 0; }
.fcci-cb-msg ul.fcci-cb-list li { margin-bottom: 4px; }
.fcci-cb-msg strong { font-weight: 700; }
.fcci-cb-msg.bot {
background: #fff;
color: var(--fcci-text);
border-bottom-left-radius: 4px;
box-shadow: 0 1px 3px rgba(0,0,0,0.07);
border: 1px solid #eef2f0;
}
.fcci-cb-msg.bot a { color: var(--fcci-green); }
.fcci-cb-msg.user {
background: linear-gradient(135deg, var(--fcci-green-light), var(--fcci-green));
color: #fff;
border-bottom-right-radius: 4px;
}
.fcci-cb-typing {
display: flex;
gap: 4px;
padding: 12px 14px;
background: #fff;
border-radius: 14px;
border-bottom-left-radius: 4px;
border: 1px solid #eef2f0;
width: fit-content;
}
.fcci-cb-typing span {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--fcci-muted);
opacity: 0.5;
animation: fcci-bounce 1.2s infinite ease-in-out;
}
.fcci-cb-typing span:nth-child(2) { animation-delay: 0.15s; }
.fcci-cb-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes fcci-bounce {
0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
30% { transform: translateY(-4px); opacity: 1; }
} .fcci-cb-suggestions {
padding: 0 14px 10px;
display: flex;
flex-wrap: wrap;
gap: 6px;
background: #fafcfb;
}
.fcci-cb-chip {
background: var(--fcci-green-pale);
color: var(--fcci-green-dark);
border: 1px solid transparent;
border-radius: 14px;
padding: 6px 12px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease;
white-space: nowrap;
}
.fcci-cb-chip:hover { background: #dcece3; border-color: var(--fcci-green-light); } .fcci-cb-inputbar {
display: flex;
align-items: center;
border-top: 1px solid #eef2f0;
padding: 10px 12px;
gap: 8px;
background: #fff;
}
.fcci-cb-inputbar input {
flex: 1;
border: 1.5px solid #e2e8e4;
border-radius: 22px;
padding: 10px 15px;
font-size: 13.5px;
outline: none;
transition: border-color 0.15s ease;
font-family: inherit;
}
.fcci-cb-inputbar input:focus { border-color: var(--fcci-green-light); }
.fcci-cb-send-btn {
background: linear-gradient(135deg, var(--fcci-green-light), var(--fcci-green));
color: #fff;
border: none;
width: 38px;
height: 38px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: transform 0.12s ease, opacity 0.15s ease;
}
.fcci-cb-send-btn svg { width: 16px; height: 16px; }
.fcci-cb-send-btn:hover:not(:disabled) { transform: scale(1.06); }
.fcci-cb-send-btn:disabled { opacity: 0.4; cursor: default; }
.fcci-cb-footer {
text-align: center;
font-size: 10.5px;
color: var(--fcci-muted);
padding: 6px 0 10px;
background: #fff;
}
@media (max-width: 420px) {
.fcci-cb-window { width: calc(100vw - 24px); right: -10px; height: calc(100vh - 120px); }
}