#ccb-root{--ccb-color:#b3122e;--ccb-bg:#fff;--ccb-text:#1f1f1f;--ccb-muted:#6b6b6b;--ccb-soft:#f4f1f1;--ccb-border:#e8e2e2;position:fixed;right:20px;bottom:20px;z-index:2147483000;font-family:inherit;font-size:14px;line-height:1.45;color:var(--ccb-text)}
#ccb-root.ccb-rtl{right:auto;left:20px}
#ccb-root *{box-sizing:border-box}
#ccb-root button{font-family:inherit;cursor:pointer}

.ccb-bubble{width:60px;height:60px;border-radius:50%;border:0;background:var(--ccb-color);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.22);transition:transform .2s ease}
.ccb-bubble:hover{transform:scale(1.06)}
.ccb-open .ccb-bubble{transform:scale(.9)}

.ccb-panel{position:absolute;bottom:76px;right:0;width:370px;height:560px;max-height:calc(100vh - 110px);background:var(--ccb-bg);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.2);display:flex;flex-direction:column;overflow:hidden;opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease,visibility .2s}
.ccb-rtl .ccb-panel{right:auto;left:0}
.ccb-open .ccb-panel{opacity:1;visibility:visible;transform:none}

.ccb-head{background:var(--ccb-color);color:#fff;padding:14px 12px 14px 16px;display:flex;align-items:center;gap:4px}
.ccb-head-txt{flex:1;display:flex;flex-direction:column;min-width:0}
.ccb-head-txt strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ccb-head-txt span{font-size:12px;opacity:.9;display:flex;align-items:center;gap:6px}
.ccb-dot{width:8px;height:8px;border-radius:50%;background:#4ade80;display:inline-block}
.ccb-icon{background:transparent;border:0;color:#fff;font-size:22px;width:34px;height:34px;border-radius:8px;line-height:1}
.ccb-icon:hover{background:rgba(255,255,255,.15)}

.ccb-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#fbf9f9}
.ccb-msg{max-width:85%;padding:10px 13px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere}
.ccb-assistant{background:var(--ccb-bg);border:1px solid var(--ccb-border);align-self:flex-start;border-bottom-left-radius:4px}
.ccb-user{background:var(--ccb-color);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.ccb-rtl .ccb-assistant{border-bottom-left-radius:14px;border-bottom-right-radius:4px}
.ccb-rtl .ccb-user{border-bottom-right-radius:14px;border-bottom-left-radius:4px}
.ccb-msg a{color:var(--ccb-color);text-decoration:underline;word-break:break-all}
.ccb-user a{color:#fff}

.ccb-typing{display:flex;gap:4px;padding:14px}
.ccb-typing span{width:7px;height:7px;border-radius:50%;background:var(--ccb-muted);animation:ccb-b 1.2s infinite ease-in-out}
.ccb-typing span:nth-child(2){animation-delay:.15s}
.ccb-typing span:nth-child(3){animation-delay:.3s}
@keyframes ccb-b{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}

.ccb-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 16px 4px;background:#fbf9f9}
.ccb-chip{border:1px solid var(--ccb-color);background:var(--ccb-bg);color:var(--ccb-color);border-radius:999px;padding:6px 12px;font-size:13px}
.ccb-chip:hover{background:var(--ccb-color);color:#fff}

.ccb-wa{display:block;text-align:center;font-size:12px;padding:6px;color:var(--ccb-muted);text-decoration:none;border-top:1px solid var(--ccb-border);background:var(--ccb-bg)}
.ccb-wa:hover{color:#128c4b}

.ccb-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--ccb-border);background:var(--ccb-bg)}
.ccb-form textarea{flex:1;resize:none;border:1px solid var(--ccb-border);border-radius:12px;padding:10px 12px;font:inherit;font-size:16px;line-height:1.35;max-height:110px;outline:none;background:var(--ccb-bg);color:var(--ccb-text);margin:0}
.ccb-form textarea:focus{border-color:var(--ccb-color)}
.ccb-send{width:42px;height:42px;flex-shrink:0;border:0;border-radius:50%;background:var(--ccb-color);color:#fff;display:flex;align-items:center;justify-content:center}
.ccb-send:disabled{opacity:.5;cursor:default}
.ccb-rtl .ccb-send svg{transform:scaleX(-1)}

@media (max-width:480px){
	#ccb-root{right:16px;bottom:16px}
	#ccb-root.ccb-rtl{left:16px}
	.ccb-open .ccb-bubble{display:none}
	.ccb-panel{position:fixed;inset:0;width:100%;height:100%;max-height:none;border-radius:0;bottom:0}
	.ccb-rtl .ccb-panel{left:0}
}
