/*! © 2026 COPISRAD INNOVATION (Siskind Carlos Alberto). Chat widget v1.0. */

.cw-fab{position:fixed;bottom:24px;right:24px;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#6366f1);border:none;color:#fff;font-size:26px;cursor:pointer;box-shadow:0 8px 24px rgba(59,130,246,.45),0 2px 6px rgba(0,0,0,.18);z-index:99998;display:flex;align-items:center;justify-content:center;transition:transform .25s ease,box-shadow .25s ease}
.cw-fab:hover{transform:scale(1.08);box-shadow:0 12px 32px rgba(59,130,246,.6)}
.cw-fab.cw-pulse::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid #3b82f6;opacity:0;animation:cwPulse 2.4s ease-out 1}
@keyframes cwPulse{0%{transform:scale(.85);opacity:.9}100%{transform:scale(1.6);opacity:0}}
.cw-fab .cw-badge{position:absolute;top:-4px;right:-4px;background:#ef4444;color:#fff;border-radius:10px;padding:2px 6px;font-size:10px;font-weight:700;display:none}
.cw-panel{position:fixed;bottom:96px;right:24px;width:380px;max-width:calc(100vw - 32px);height:540px;max-height:calc(100vh - 120px);background:#0d1117;border:1px solid #1f2937;border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.45);z-index:99999;display:none;flex-direction:column;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,sans-serif;color:#e5e7eb}
.cw-panel.cw-open{display:flex;animation:cwSlide .28s ease-out}
@keyframes cwSlide{from{transform:translateY(16px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
.cw-header{padding:14px 16px;background:linear-gradient(135deg,#3b82f6,#6366f1);display:flex;align-items:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.08)}
.cw-avatar{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;color:#fff;flex-shrink:0}
.cw-titles{flex:1;min-width:0}
.cw-title{font-size:14px;font-weight:600;color:#fff;line-height:1.2}
.cw-subtitle{font-size:11px;color:rgba(255,255,255,.78);display:flex;align-items:center;gap:6px;margin-top:2px}
.cw-dot{width:6px;height:6px;background:#22c55e;border-radius:50%;display:inline-block;box-shadow:0 0 6px #22c55e}
.cw-close{background:transparent;border:none;color:#fff;font-size:22px;cursor:pointer;opacity:.85;line-height:1;padding:4px 8px;border-radius:6px}
.cw-close:hover{opacity:1;background:rgba(255,255,255,.12)}
.cw-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;background:#0d1117;scroll-behavior:smooth}
.cw-body::-webkit-scrollbar{width:6px}
.cw-body::-webkit-scrollbar-thumb{background:#1f2937;border-radius:3px}
.cw-bubble{max-width:82%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5;word-wrap:break-word;white-space:pre-wrap}
.cw-bubble.cw-user{align-self:flex-end;background:linear-gradient(135deg,#3b82f6,#6366f1);color:#fff;border-bottom-right-radius:4px}
.cw-bubble.cw-bot{align-self:flex-start;background:#1f2937;color:#e5e7eb;border-bottom-left-radius:4px}
.cw-bubble.cw-error{background:#7f1d1d;color:#fecaca}
.cw-typing{align-self:flex-start;background:#1f2937;padding:12px 16px;border-radius:14px;border-bottom-left-radius:4px;display:none}
.cw-typing.cw-show{display:flex;gap:4px;align-items:center}
.cw-typing span{width:7px;height:7px;border-radius:50%;background:#9ca3af;display:inline-block;animation:cwBounce 1.2s infinite ease-in-out}
.cw-typing span:nth-child(2){animation-delay:.15s}
.cw-typing span:nth-child(3){animation-delay:.3s}
@keyframes cwBounce{0%,80%,100%{transform:scale(.6);opacity:.5}40%{transform:scale(1);opacity:1}}
.cw-footer{padding:10px 12px;border-top:1px solid #1f2937;background:#0d1117;display:flex;flex-direction:column;gap:6px}
.cw-input-row{display:flex;gap:8px;align-items:flex-end}
.cw-input{flex:1;border:1px solid #1f2937;background:#111827;color:#f9fafb;padding:10px 12px;border-radius:10px;font-family:inherit;font-size:14px;resize:none;max-height:90px;min-height:38px;outline:none;line-height:1.4}
.cw-input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.2)}
.cw-send{background:linear-gradient(135deg,#3b82f6,#6366f1);border:none;color:#fff;width:38px;height:38px;border-radius:10px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:opacity .2s}
.cw-send:disabled{opacity:.5;cursor:not-allowed}
.cw-meta{font-size:10px;color:#6b7280;text-align:center;display:flex;justify-content:space-between;padding:0 4px}
.cw-meta a{color:#9ca3af;text-decoration:none}
.cw-meta a:hover{color:#3b82f6;text-decoration:underline}
@media(max-width:600px){.cw-panel{bottom:0;right:0;width:100vw;max-width:100vw;height:100vh;max-height:100vh;border-radius:0;border:none}.cw-fab{bottom:16px;right:16px;width:54px;height:54px;font-size:23px}}
