/* Chatbot by KQ — Electrily Widget Styles */
#cbkq-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    background: #FF6B00;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(255,107,0,0.38);
    font-family: system-ui, -apple-system, sans-serif;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}
#cbkq-launcher:hover { background: #e05e00; transform: scale(1.03); }

#cbkq-widget {
    position: fixed;
    bottom: 84px;
    right: 24px;
    z-index: 999998;
    width: 370px;
    height: 540px;
    border-radius: 18px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    font-family: system-ui, -apple-system, sans-serif;
    background: #f5f5f5;
    animation: cbkq-pop 0.2s ease;
}
@keyframes cbkq-pop {
    from { opacity:0; transform: translateY(12px) scale(0.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}

.cbkq-header {
    background: #FF6B00;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}
.cbkq-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #fff; flex-shrink: 0;
}
.cbkq-header-info { flex: 1; }
.cbkq-header-name  { font-weight: 600; font-size: 15px; color: #fff; margin: 0; }
.cbkq-header-status { font-size: 12px; color: rgba(255,255,255,0.85); margin: 0; display:flex; align-items:center; gap:5px; }
.cbkq-status-dot { width:7px; height:7px; border-radius:50%; background:#4ade80; display:inline-block; }
.cbkq-close-btn {
    background: none; border: none; color: rgba(255,255,255,0.8);
    font-size: 22px; cursor: pointer; padding: 0 4px; line-height:1;
}
.cbkq-close-btn:hover { color: #fff; }

.cbkq-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.cbkq-msg { display: flex; flex-direction: column; max-width: 84%; }
.cbkq-msg.bot  { align-self: flex-start; }
.cbkq-msg.user { align-self: flex-end; }
.cbkq-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.55;
    word-break: break-word;
}
.cbkq-msg.bot  .cbkq-bubble { background:#fff; border:1px solid #e8e8e8; border-bottom-left-radius:4px; color:#1a1a1a; }
.cbkq-msg.user .cbkq-bubble { background:#FF6B00; color:#fff; border-bottom-right-radius:4px; }
.cbkq-time { font-size:11px; color:#aaa; margin-top:3px; padding:0 4px; }
.cbkq-msg.user .cbkq-time { text-align:right; }

.cbkq-typing-dots { display:flex; gap:4px; align-items:center; }
.cbkq-dot { width:7px; height:7px; border-radius:50%; background:#bbb; animation: cbkq-bounce 1.2s infinite; }
.cbkq-dot:nth-child(2) { animation-delay:0.2s; }
.cbkq-dot:nth-child(3) { animation-delay:0.4s; }
@keyframes cbkq-bounce { 0%,80%,100%{transform:scale(0.7);opacity:0.4} 40%{transform:scale(1);opacity:1} }

/* Intake form */
.cbkq-intake {
    flex: 1; display:flex; flex-direction:column;
    justify-content:center; padding: 28px 22px; gap:14px; background:#fff;
}
.cbkq-intake-title { font-size:17px; font-weight:600; color:#1a1a1a; margin:0 0 4px; }
.cbkq-intake-sub   { font-size:13px; color:#777; margin:0 0 8px; }
.cbkq-intake input {
    width:100%; box-sizing:border-box;
    border:1px solid #ddd; border-radius:10px;
    padding:10px 14px; font-size:14px; outline:none;
    font-family: system-ui, sans-serif; color:#1a1a1a;
    transition: border-color 0.15s;
}
.cbkq-intake input:focus { border-color:#FF6B00; }
.cbkq-intake-btn {
    background:#FF6B00; color:#fff; border:none;
    border-radius:10px; padding:11px; font-size:15px;
    font-weight:600; cursor:pointer; font-family:system-ui,sans-serif;
    transition: background 0.15s;
}
.cbkq-intake-btn:hover { background:#e05e00; }
.cbkq-intake-error { font-size:12px; color:#cc2200; margin:-6px 0 0; display:none; }

/* Input bar */
.cbkq-input-row {
    display:flex; gap:8px; padding:10px 12px;
    background:#fff; border-top:1px solid #eee; flex-shrink:0;
}
.cbkq-input {
    flex:1; border:1px solid #ddd; border-radius:22px;
    padding:9px 15px; font-size:14px; outline:none;
    font-family:system-ui,sans-serif; color:#1a1a1a;
    background:#fafafa; transition:border-color 0.15s;
}
.cbkq-input:focus { border-color:#FF6B00; background:#fff; }
.cbkq-send-btn {
    background:#FF6B00; border:none; border-radius:50%;
    width:38px; height:38px; cursor:pointer; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    font-size:17px; color:#fff; transition: background 0.15s;
}
.cbkq-send-btn:hover { background:#e05e00; }

@media (max-width: 480px) {
    #cbkq-widget { width: calc(100vw - 24px); right: 12px; bottom: 76px; }
    #cbkq-launcher { right: 12px; bottom: 12px; }
}
