.abb-chat{--abb-color:#f39200;--abb-bg:#fff;--abb-text:#1d2327;--abb-muted:#6b7280;--abb-soft:#f3f4f6;font-family:inherit;font-size:15px;line-height:1.45;color:var(--abb-text);z-index:99999}
.abb-chat *{box-sizing:border-box}
.abb-chat--right,.abb-chat--left{position:fixed;bottom:20px}
.abb-chat--right{right:20px}
.abb-chat--left{left:20px}
.abb-chat__launcher{width:60px;height:60px;border-radius:50%;border:0;background:var(--abb-color);color:#fff;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center;transition:transform .15s}
.abb-chat__launcher:hover{transform:scale(1.06)}
.abb-chat__panel{display:none;flex-direction:column;background:var(--abb-bg);border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.25);overflow:hidden}
.abb-chat--right .abb-chat__panel,.abb-chat--left .abb-chat__panel{position:absolute;bottom:76px;width:380px;height:560px;max-height:calc(100vh - 110px)}
.abb-chat--right .abb-chat__panel{right:0}
.abb-chat--left .abb-chat__panel{left:0}
.abb-chat.is-open .abb-chat__panel{display:flex}
.abb-chat--inline .abb-chat__panel{position:relative;width:100%;height:560px;box-shadow:0 2px 12px rgba(0,0,0,.12)}
.abb-chat__head{background:var(--abb-color);color:#fff;padding:12px 14px;display:flex;align-items:center;gap:6px}
.abb-chat__title{font-weight:700;flex:1}
.abb-chat__icon{background:transparent;border:0;color:#fff;font-size:20px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:6px}
.abb-chat__icon:hover{background:rgba(255,255,255,.2)}
.abb-chat__log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:#fafafa}
.abb-chat__msg{max-width:88%;padding:9px 12px;border-radius:12px;word-wrap:break-word;overflow-wrap:anywhere}
.abb-chat__msg p{margin:0 0 6px}
.abb-chat__msg p:last-child{margin-bottom:0}
.abb-chat__msg ul{margin:4px 0 6px 18px;padding:0}
.abb-chat__msg li{margin:2px 0}
.abb-chat__msg a{color:inherit;text-decoration:underline;font-weight:600}
.abb-chat__msg--assistant{background:#fff;border:1px solid #e5e7eb;align-self:flex-start;border-bottom-left-radius:4px}
.abb-chat__msg--user{background:var(--abb-color);color:#fff;align-self:flex-end;border-bottom-right-radius:4px;white-space:pre-wrap}
.abb-chat__msg--notice{background:#fffbeb;color:#92400e;border:1px solid #fde68a;align-self:flex-start;font-size:13px}
.abb-chat__input:disabled{background:#f3f4f6;cursor:not-allowed}
.abb-chat__msg--error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;align-self:flex-start}
.abb-chat__typing{display:flex;gap:4px;padding:12px 14px}
.abb-chat__typing span{width:7px;height:7px;border-radius:50%;background:var(--abb-muted);animation:abbdot 1s infinite ease-in-out}
.abb-chat__typing span:nth-child(2){animation-delay:.15s}
.abb-chat__typing span:nth-child(3){animation-delay:.3s}
@keyframes abbdot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.abb-chat__chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;background:#fafafa}
.abb-chat__chip{border:1px solid var(--abb-color);color:var(--abb-text);background:#fff;border-radius:16px;padding:5px 11px;font-size:13px;cursor:pointer}
.abb-chat__chip:hover{background:var(--abb-soft)}
.abb-chat__form{display:flex;gap:8px;padding:10px;border-top:1px solid #e5e7eb;background:#fff}
.abb-chat__input{flex:1;resize:none;border:1px solid #d1d5db;border-radius:10px;padding:9px 11px;font:inherit;max-height:120px;min-height:40px}
.abb-chat__input:focus{outline:2px solid var(--abb-color);outline-offset:-1px;border-color:transparent}
.abb-chat__send{border:0;background:var(--abb-color);color:#fff;border-radius:10px;width:44px;cursor:pointer;font-size:16px}
.abb-chat__send:disabled{opacity:.5;cursor:default}
.abb-chat__note p{margin:0}
.abb-chat__note a{color:inherit;text-decoration:underline}
.abb-chat__note{font-size:11px;color:var(--abb-muted);text-align:center;padding:0 10px 8px;background:#fff}
@media (max-width:480px){
	.abb-chat--right,.abb-chat--left{bottom:14px}
	.abb-chat--right{right:14px}
	.abb-chat--left{left:14px}
	.abb-chat.is-open:not(.abb-chat--inline) .abb-chat__panel{position:fixed;inset:0;width:auto;height:auto;max-height:none;border-radius:0}
	.abb-chat.is-open:not(.abb-chat--inline) .abb-chat__launcher{display:none}
	.abb-chat__input{font-size:16px}
}
