.ap-chat{position:fixed;bottom:24px;right:24px;z-index:9999;font-family:"Manrope",-apple-system,sans-serif}
.ap-chat__fab{display:flex;align-items:center;gap:10px;background:#1C2B6B;color:#fff;border:none;border-radius:999px;padding:11px 18px 11px 13px;font-family:inherit;font-size:.875rem;font-weight:700;cursor:pointer;box-shadow:0 8px 28px rgba(11,22,66,.30),0 0 0 4px rgba(0,212,200,.18);transition:transform 240ms cubic-bezier(.2,.7,.2,1),box-shadow 240ms cubic-bezier(.2,.7,.2,1)}
.ap-chat__fab:hover{transform:translateY(-2px);box-shadow:0 12px 36px rgba(11,22,66,.35),0 0 0 6px rgba(0,212,200,.22)}
.ap-chat__fab-icon{width:30px;height:30px;background:#00D4C8;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ap-chat__fab-icon svg{width:15px;height:15px;color:#1C2B6B}
.ap-chat__fab-dot{position:absolute;top:4px;left:34px;width:10px;height:10px;background:#FF7A45;border-radius:50%;border:2px solid #1C2B6B;animation:apChatPulse 2s ease infinite}
@keyframes apChatPulse{0%,100%{box-shadow:0 0 0 0 rgba(255,122,69,.5)}50%{box-shadow:0 0 0 7px rgba(255,122,69,0)}}
.ap-chat__panel{position:absolute;bottom:70px;right:0;width:320px;background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(11,22,66,.18);display:flex;flex-direction:column;overflow:hidden;animation:apChatSlide 240ms cubic-bezier(.2,.7,.2,1) both}
.ap-chat__panel[hidden]{display:none!important}
@keyframes apChatSlide{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:400px){.ap-chat__panel{width:calc(100vw - 32px);right:-8px}}
.ap-chat__head{background:#1C2B6B;padding:13px 14px;display:flex;align-items:center;gap:10px}
.ap-chat__avatar{width:34px;height:34px;border-radius:50%;background:#00D4C8;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ap-chat__avatar svg{width:17px;height:17px;color:#1C2B6B}
.ap-chat__head-name{font-size:.875rem;font-weight:800;color:#fff;line-height:1.2}
.ap-chat__head-status{font-size:.68rem;color:#00D4C8;font-weight:600;margin-top:1px}
.ap-chat__close{margin-left:auto;background:rgba(255,255,255,.12);border:none;border-radius:7px;color:#fff;width:26px;height:26px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.ap-chat__close svg{width:13px;height:13px}
.ap-chat__body{overflow-y:auto;padding:12px 10px;display:flex;flex-direction:column;gap:9px;max-height:280px;background:#F6F8FC;scroll-behavior:smooth}
.ap-chat__msg{display:flex;flex-direction:column}
.ap-chat__msg--ai{align-items:flex-start}
.ap-chat__msg--user{align-items:flex-end}
.ap-chat__bubble{max-width:88%;padding:9px 13px;border-radius:16px;font-size:.8125rem;line-height:1.55;font-weight:500;white-space:pre-wrap;word-break:break-word}
.ap-chat__msg--ai .ap-chat__bubble{background:#fff;color:#0B1642;border-radius:4px 16px 16px 16px;box-shadow:0 1px 3px rgba(11,22,66,.07)}
.ap-chat__msg--user .ap-chat__bubble{background:#1C2B6B;color:#fff;border-radius:16px 16px 4px 16px}
.ap-chat__typing{display:flex;gap:4px;padding:10px 13px;background:#fff;border-radius:4px 14px 14px 14px;width:fit-content;box-shadow:0 1px 3px rgba(11,22,66,.07)}
.ap-chat__typing span{width:6px;height:6px;background:#94A3B8;border-radius:50%;animation:apChatBounce .9s ease infinite}
.ap-chat__typing span:nth-child(2){animation-delay:.15s}
.ap-chat__typing span:nth-child(3){animation-delay:.30s}
@keyframes apChatBounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-5px)}}
.ap-chat__suggestions{display:flex;flex-wrap:wrap;gap:5px;padding:8px 10px;background:#F6F8FC;border-top:1px solid #E5E9F2}
.ap-chat__sugg{background:#fff;border:1.5px solid #E5E9F2;border-radius:20px;padding:4px 10px;font-family:inherit;font-size:.7rem;font-weight:700;color:#1C2B6B;cursor:pointer;transition:border-color 180ms,background 180ms;white-space:nowrap}
.ap-chat__sugg:hover{border-color:#00D4C8;background:rgba(0,212,200,.08)}
.ap-chat__foot{padding:9px 10px;border-top:1px solid #E5E9F2;background:#fff;display:flex;gap:7px;align-items:flex-end}
.ap-chat__input{flex:1;border:1.5px solid #E5E9F2;border-radius:10px;padding:8px 11px;font-family:inherit;font-size:.8125rem;font-weight:500;color:#0B1642;background:#F6F8FC;outline:none;resize:none;max-height:96px;overflow-y:auto;line-height:1.4;transition:border-color 180ms}
.ap-chat__input:focus{border-color:#00D4C8}
.ap-chat__send{width:34px;height:34px;background:#00D4C8;border:none;border-radius:9px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background 180ms,transform 180ms}
.ap-chat__send:hover{background:#00B5AA;transform:scale(1.06)}
.ap-chat__send:disabled{background:#E5E9F2;cursor:not-allowed;transform:none}
.ap-chat__send svg{width:14px;height:14px;color:#1C2B6B}
