#bdc-chatbot-widget { position: fixed; z-index: 999999; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
#bdc-chatbot-widget.bdc-pos-bottom-right { bottom: 24px; right: 24px; }
#bdc-chatbot-widget.bdc-pos-bottom-left  { bottom: 24px; left: 24px; }

/* Bubble */
#bdc-chatbot-bubble { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,.25); transition: transform .2s; position: relative; }
#bdc-chatbot-bubble:hover { transform: scale(1.08); }
#bdc-chatbot-bubble svg { width: 26px; height: 26px; fill: #fff; }
.bdc-bubble-badge { position: absolute; top: -4px; right: -4px; background: #ef4444; color: #fff; font-size: 11px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; display: none; }

/* Window */
#bdc-chatbot-window { width: 360px; height: 520px; background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.2); display: none; flex-direction: column; overflow: hidden; margin-bottom: 12px; animation: bdc-slide-up .25s ease; }
@keyframes bdc-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Header */
#bdc-chat-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; }
#bdc-chat-header .bdc-chat-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.2); }
.bdc-chat-header-info { flex: 1; }
.bdc-chat-name { font-weight: 700; font-size: 14px; }
.bdc-chat-status { font-size: 11px; opacity: .85; display: flex; align-items: center; gap: 4px; }
.bdc-chat-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; }
#bdc-chat-close { background: rgba(255,255,255,.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
#bdc-chat-close:hover { background: rgba(255,255,255,.35); }

/* Messages */
#bdc-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
#bdc-chat-messages::-webkit-scrollbar { width: 4px; }
#bdc-chat-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.bdc-msg { max-width: 82%; display: flex; flex-direction: column; }
.bdc-msg-user { align-self: flex-end; }
.bdc-msg-bot  { align-self: flex-start; }
.bdc-msg-bubble { padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.bdc-msg-user .bdc-msg-bubble { color: #fff; border-bottom-right-radius: 4px; }
.bdc-msg-bot  .bdc-msg-bubble { background: #fff; color: #1f2937; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.bdc-msg-time { font-size: 10px; color: #9ca3af; margin-top: 3px; }
.bdc-msg-user .bdc-msg-time { text-align: right; }

/* Typing */
.bdc-typing .bdc-msg-bubble { display: flex; align-items: center; gap: 4px; }
.bdc-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: #9ca3af; animation: bdc-bounce .8s ease-in-out infinite; }
.bdc-typing-dot:nth-child(2) { animation-delay: .15s; }
.bdc-typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes bdc-bounce { 0%, 80%, 100% { transform: scale(.8); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* Input */
#bdc-chat-input-area { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid #f0f0f0; background: #fff; }
#bdc-chat-input { flex: 1; border: 1.5px solid #e5e7eb; border-radius: 22px; padding: 9px 14px; font-size: 13px; font-family: inherit; outline: none; transition: border .15s; }
#bdc-chat-input:focus { border-color: var(--bdc-color, #4f46e5); }
#bdc-chat-send { width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .15s; }
#bdc-chat-send:hover { opacity: .85; }
#bdc-chat-send svg { width: 16px; height: 16px; fill: #fff; }

/* Powered by */
#bdc-chat-powered { text-align: center; padding: 6px; font-size: 10px; color: #d1d5db; background: #fff; }
#bdc-chat-powered a { color: #d1d5db; text-decoration: none; }
