/* Layout: Call button = bottom-left. WhatsApp (bottom) + chatbot (just above it) = bottom-right. */
.float-actions .float-call { position: fixed; left: 16px; bottom: 16px; }
.cb-widget { position: fixed; right: 16px; bottom: 80px; z-index: 1035; font-family: inherit; font-size: 15px; line-height: 1.45; }
.cb-widget *, .cb-widget *::before, .cb-widget *::after { box-sizing: border-box; }
.cb-toggle { display: inline-flex; align-items: center; gap: .55rem; height: 52px; padding: 0 1.1rem 0 .95rem; color: #fff; font-weight: 600; background: var(--blue, #1769e0); border: 0; border-radius: 999px; box-shadow: 0 8px 22px rgba(16, 42, 67, .28); cursor: pointer; }
.cb-toggle i { font-size: 1.3rem; }
.cb-toggle:hover { background: var(--blue-dark, #1054b6); }
.cb-toggle:focus-visible, .cb-close:focus-visible, .cb-form button:focus-visible, .cb-chip:focus-visible { outline: 3px solid var(--cyan, #19b8c5); outline-offset: 2px; }
.cb-widget.is-open .cb-toggle { display: none; }

.cb-panel { display: flex; flex-direction: column; width: 360px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(16, 42, 67, .35); }
.cb-panel[hidden] { display: none; }
.cb-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; color: #fff; background: var(--navy, #102a43); }
.cb-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; font-size: 1.15rem; background: var(--blue, #1769e0); border-radius: 50%; }
.cb-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.cb-title strong { overflow: hidden; font-size: .98rem; text-overflow: ellipsis; white-space: nowrap; }
.cb-title small { color: #b9ccdc; font-size: .78rem; }
.cb-dot { display: inline-block; width: 8px; height: 8px; margin-right: .25rem; background: #3ddc84; border-radius: 50%; }
.cb-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -.5rem; color: #fff; background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.cb-close:hover { background: rgba(255, 255, 255, .12); }

.cb-messages { flex: 1; padding: 1rem .9rem .4rem; overflow-y: auto; background: var(--soft, #f4f8fc); overscroll-behavior: contain; }
.cb-msg { display: flex; flex-direction: column; max-width: 88%; margin-bottom: .7rem; }
.cb-msg.bot { align-items: flex-start; }
.cb-msg.user { align-items: flex-end; margin-left: auto; }
.cb-bubble { padding: .6rem .85rem; color: var(--ink, #19324d); overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line, #e2ebf3); border-radius: 14px 14px 14px 4px; }
.cb-msg.user .cb-bubble { color: #fff; background: var(--blue, #1769e0); border-color: var(--blue, #1769e0); border-radius: 14px 14px 4px 14px; }
.cb-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.cb-link { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .8rem; color: var(--blue-dark, #1054b6); font-size: .86rem; font-weight: 600; text-decoration: none; background: #fff; border: 1px solid var(--blue, #1769e0); border-radius: 999px; }
.cb-link:hover { color: #fff; background: var(--blue, #1769e0); }
.cb-typing .cb-bubble { display: inline-flex; gap: 4px; padding: .75rem .9rem; }
.cb-typing span { width: 7px; height: 7px; background: #8aa0b5; border-radius: 50%; animation: cb-bounce 1s infinite ease-in-out; }
.cb-typing span:nth-child(2) { animation-delay: .15s; }
.cb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.cb-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem .9rem; background: var(--soft, #f4f8fc); }
.cb-chips:empty { display: none; }
.cb-chip { min-height: 36px; padding: .3rem .8rem; color: var(--ink, #19324d); font-size: .85rem; background: #fff; border: 1px solid #c9d8e6; border-radius: 999px; cursor: pointer; }
.cb-chip:hover { color: #fff; background: var(--navy, #102a43); border-color: var(--navy, #102a43); }

.cb-form { display: flex; gap: .5rem; padding: .7rem .8rem; background: #fff; border-top: 1px solid var(--line, #e2ebf3); }
.cb-form input { flex: 1; min-width: 0; height: 44px; padding: 0 .9rem; font-size: 16px; color: var(--ink, #19324d); border: 1px solid #c9d8e6; border-radius: 999px; }
.cb-form input:focus { border-color: var(--blue, #1769e0); outline: 0; box-shadow: 0 0 0 3px rgba(23, 105, 224, .18); }
.cb-form button { flex: none; width: 44px; height: 44px; color: #fff; background: var(--blue, #1769e0); border: 0; border-radius: 50%; cursor: pointer; }
.cb-form button:hover { background: var(--blue-dark, #1054b6); }
.cb-form button:disabled { background: #9db6d6; cursor: wait; }

@media (max-width: 480px) {
	.cb-widget.is-open { left: 8px; right: 8px; bottom: 8px; }
	.cb-widget.is-open .cb-panel { max-height: calc(100dvh - 16px); }
	.cb-panel { width: 100%; max-width: none; height: min(560px, calc(100dvh - 16px)); }
	.cb-toggle span { display: none; }
	.cb-toggle { width: 52px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cb-typing span { animation: none; } }
