#wbf-chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--wbf-chat-primary);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: transform 0.3s ease;
} 

#wbf-chat-bubble:hover { transform: scale(1.05); }
#wbf-chat-bubble span { font-size: 28px; color: var(--wbf-chat-text); }

#wbf-chat-window {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 370px;
    max-width: 90%;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wbf-chat-header {
    background-color: var(--wbf-chat-primary);
    color: var(--wbf-chat-text);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wbf-chat-header-info { display: flex; align-items: center; gap: 8px; }
.wbf-chat-header-status { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; }
.wbf-chat-title { font-size: 15px; }
#wbf-chat-close { background: none; border: none; color: inherit; font-size: 16px; cursor: pointer; opacity: 0.8; }
#wbf-chat-close:hover { opacity: 1; }

.wbf-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wbf-message { display: flex; width: 100%; }
.wbf-msg-bubble { max-width: 75%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; word-break: break-word; }

.wbf-msg-bot { justify-content: flex-start; }
.wbf-msg-bot .wbf-msg-bubble { background: #e9ecef; color: #212529; border-bottom-left-radius: 2px; }
.wbf-msg-user { justify-content: flex-end; }
.wbf-msg-user .wbf-msg-bubble { background-color: var(--wbf-chat-primary); color: var(--wbf-chat-text); border-bottom-right-radius: 2px; }

.wbf-chat-input-area { display: flex; border-top: 1px solid #dee2e6; background: #fff; padding: 10px; gap: 8px; }
#wbf-chat-input { color: #212529; flex: 1; border: 1px solid #ced4da; padding: 8px 12px; border-radius: 20px; font-size: 14px; outline: none; }
#wbf-chat-input:focus { border-color: var(--wbf-chat-primary); }
#wbf-chat-send { background-color: var(--wbf-chat-primary); color: var(--wbf-chat-text); border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.wbf-chat-footer-disclaimer { font-size: 10px; color: #6c757d; text-align: center; padding: 6px 10px; background: #fff; border-top: 1px solid #f1f3f5; line-height: 1.2; }