/* Website chatbot widget. Every class starts with cb- so it can sit on any page. */
.cb-launch { position: fixed; right: 22px; bottom: 22px; z-index: 9000; display: flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font-family: 'Poppins', system-ui, sans-serif; background: linear-gradient(135deg, #ff9a2e, #e8590c); color: #fff; padding: 8px 20px 8px 8px; border-radius: 99px; box-shadow: 0 14px 34px rgba(232, 89, 12, .45); transition: transform .25s, box-shadow .25s; }
.cb-launch:hover { transform: translateY(-3px); }
.cb-launch .ic { width: 46px; height: 46px; border-radius: 50%; background: #fff var(--cb-emblem) center / 80% no-repeat; position: relative; }
.cb-launch .ic::after { content: ''; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #2fbf6c; border: 2px solid #fff; }
.cb-launch b { font-size: 14.5px; font-weight: 600; }
.cb-launch.pulse::before { content: ''; position: absolute; inset: 0; border-radius: 99px; border: 2px solid #ff9a2e; animation: cbPulse 2s ease-out infinite; }
@keyframes cbPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.3, 1.5); opacity: 0; } }
.cb-tip { position: fixed; right: 26px; bottom: 90px; z-index: 9000; background: #fff; color: #1d2433; font: 500 13.5px/1.4 'Poppins', sans-serif; padding: 10px 16px; border-radius: 14px 14px 4px 14px; box-shadow: 0 12px 30px rgba(29, 36, 51, .2); max-width: 230px; animation: cbIn .4s both; cursor: pointer; }
@keyframes cbIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cb-panel { position: fixed; right: 22px; bottom: 22px; z-index: 9100; width: 372px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 44px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(29, 36, 51, .35); font-family: 'Poppins', system-ui, sans-serif; font-size: 14px; color: #1d2433;
  opacity: 0; transform: translateY(24px) scale(.96); visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; transform-origin: bottom right; }
.cb-panel.open { opacity: 1; transform: none; visibility: visible; }
.cb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #ff9a2e, #e8590c); color: #fff; }
.cb-head .av { width: 42px; height: 42px; border-radius: 50%; background: #fff var(--cb-emblem) center / 82% no-repeat; flex: none; }
.cb-head .tt { flex: 1; min-width: 0; line-height: 1.25; }
.cb-head .tt b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-head .tt small { opacity: .92; font-size: 12px; }
.cb-head .tt small::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5df29a; margin-right: 6px; }
.cb-head button { background: rgba(255, 255, 255, .22); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.cb-head button:hover { background: rgba(255, 255, 255, .4); }
.cb-msgs { flex: 1; overflow-y: auto; padding: 16px 14px 6px; background: #fff7ee; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.cb-m { max-width: 86%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; word-wrap: break-word; white-space: pre-line; animation: cbIn .3s both; }
.cb-m.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 3px 10px rgba(29, 36, 51, .07); }
.cb-m.me { align-self: flex-end; background: linear-gradient(135deg, #ff9a2e, #e8590c); color: #fff; border-bottom-right-radius: 4px; }
.cb-m a.lk { display: inline-block; margin-top: 8px; color: #e8590c; font-weight: 600; text-decoration: none; border: 1.5px solid #f58220; border-radius: 99px; padding: 3px 14px; font-size: 13px; white-space: normal; }
.cb-m a.lk:hover { background: #f58220; color: #fff; }
.cb-m.err { background: #fde8e8; color: #9b1c1c; }
.cb-typing { align-self: flex-start; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px; padding: 12px 16px; display: flex; gap: 5px; box-shadow: 0 3px 10px rgba(29, 36, 51, .07); }
.cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #f58220; animation: cbDot 1s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .15s; } .cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px 4px; background: #fff7ee; max-height: 132px; overflow-y: auto; }
.cb-chips button { font: 500 13px 'Poppins', sans-serif; background: #fff; color: #e8590c; border: 1.5px solid #f58220; border-radius: 99px; padding: 6px 14px; cursor: pointer; transition: all .2s; text-align: left; }
.cb-chips button:hover { background: #f58220; color: #fff; }
.cb-chips button.main { background: linear-gradient(135deg, #ff9a2e, #e8590c); color: #fff; border-color: transparent; }
.cb-chips button.skip { color: #5d6679; border-color: #cfd4de; }
.cb-chips button.skip:hover { background: #5d6679; color: #fff; }
.cb-form { display: flex; gap: 8px; padding: 10px 12px 12px; background: #fff7ee; border-top: 1px solid #f1e6d8; }
.cb-form input { flex: 1; min-width: 0; font: 14px 'Poppins', sans-serif; border: 1.5px solid #ecdcc6; border-radius: 99px; padding: 9px 16px; outline: none; background: #fff; color: #1d2433; }
.cb-form input:focus { border-color: #f58220; box-shadow: 0 0 0 3px rgba(245, 130, 32, .18); }
.cb-form button { width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, #ff9a2e, #e8590c); color: #fff; font-size: 16px; flex: none; }
.cb-form button:disabled { opacity: .5; cursor: not-allowed; }
.cb-hint { padding: 0 16px 6px; background: #fff7ee; font-size: 11.5px; color: #8a7a64; min-height: 18px; }
@media (max-width: 520px) {
  .cb-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .cb-launch b { display: none; }
  .cb-launch { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .cb-launch.pulse::before, .cb-typing i { animation: none; } }
