.cb { position: fixed; right: 20px; bottom: 20px; z-index: 90; font-family: Asap, system-ui, sans-serif; }
.cb__fab { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer; font: 700 .95rem Asap, sans-serif; color: #fff; background: linear-gradient(135deg, #19a4c6, #0083a1); box-shadow: 0 14px 34px rgba(0,131,161,.45); transition: transform .2s, box-shadow .2s; }
.cb__fab:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,131,161,.5); }
.cb__fab .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cb.is-open .cb__fab { display: none; }
.cb__panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 40px)); display: grid; grid-template-rows: auto 1fr auto auto; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(11,61,87,.35); border: 1px solid #dbe9ee; }
.cb__panel[hidden] { display: none; }
.cb__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, #0b3d57, #0a7fa0); }
.cb__x { border: 0; background: transparent; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.cb__log { overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; background: #f6fafc; }
.cb__m { display: grid; gap: 8px; max-width: 88%; }
.cb__m p { margin: 0; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.cb__m--bot { justify-self: start; } .cb__m--bot p { background: #fff; color: #0b3d57; border: 1px solid #dbe9ee; border-bottom-left-radius: 4px; }
.cb__m--me { justify-self: end; } .cb__m--me p { background: linear-gradient(135deg, #19a4c6, #0083a1); color: #fff; border-bottom-right-radius: 4px; }
.cb__link { justify-self: start; display: inline-block; padding: 9px 16px; border-radius: 4px; background: #19a4c6; color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.cb__link:hover { background: #0083a1; } .cb__link--ghost { background: #fff; color: #0083a1; border: 1.5px solid #19a4c6; }
.cb__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid #e3eef2; background: #fff; max-height: 120px; overflow-y: auto; }
.cb__chips button { padding: 7px 12px; border: 1.5px solid #bfe0ea; background: #fff; border-radius: 999px; color: #0b3d57; font: 600 .82rem Asap, sans-serif; cursor: pointer; }
.cb__chips button:hover { background: #e9f6fa; border-color: #19a4c6; }
.cb__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #e3eef2; background: #fff; }
.cb__form input { flex: 1; min-width: 0; padding: 11px 14px; font: inherit; font-size: 16px; border: 1.5px solid #cfdfe6; border-radius: 8px; background: #f6fafc; }
.cb__form input:focus { outline: 0; border-color: #19a4c6; box-shadow: 0 0 0 3px rgba(25,164,198,.2); }
.cb__form button { width: 46px; border: 0; border-radius: 8px; background: #19a4c6; color: #fff; font-size: 1.3rem; cursor: pointer; }
@media (max-width: 560px) { .cb { right: 12px; bottom: 12px; } .cb__fab span { display: none; } .cb__fab { padding: 15px; } .cb__panel { position: fixed; right: 8px; bottom: 8px; width: calc(100vw - 16px); height: min(600px, calc(100vh - 16px)); } }

.cb__typing p { display: inline-flex; gap: 5px; padding: 12px 14px; }
.cb__typing i { width: 7px; height: 7px; border-radius: 50%; background: #19a4c6; animation: cbdot 1s infinite ease-in-out; }
.cb__typing i:nth-child(2) { animation-delay: .15s; } .cb__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .cb__typing i { animation: none; opacity: .7; } }
