#blc-chat-toggle {
    position: fixed; bottom: 20px; right: 20px; background-color: #0073aa; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 8px rgba(0,0,0,0.2); transition: transform 0.2s; z-index: 9998;
}
#blc-chat-toggle:hover { transform: scale(1.1); }
#blc-chat-window {
    position: fixed; bottom: 100px; right: 20px; width: 350px; max-width: 90%; height: 500px; background-color: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: flex; flex-direction: column; transition: opacity 0.3s, transform 0.3s; transform: translateY(20px); opacity: 0; z-index: 9999;
}
#blc-chat-window:not(.blc-hidden) { transform: translateY(0); opacity: 1; }
.blc-hidden { display: none !important; }
#blc-chat-header {
    background-color: #0073aa; color: white; padding: 15px; font-weight: bold; border-top-left-radius: 10px; border-top-right-radius: 10px; display: flex; justify-content: space-between; align-items: center;
}
#blc-chat-close { cursor: pointer; font-size: 24px; font-weight: normal; }
#blc-chat-messages { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.blc-message { padding: 10px 15px; border-radius: 18px; max-width: 80%; line-height: 1.4; word-wrap: break-word; }
.blc-message.bot { background-color: #f1f0f0; align-self: flex-start; border-bottom-left-radius: 4px; }
.blc-message.user { background-color: #0073aa; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.blc-message.error { background-color: #fbeaea; color: #c0392b; align-self: flex-start; border-bottom-left-radius: 4px; font-weight: bold;}
#blc-chat-form { display: flex; padding: 10px; border-top: 1px solid #eee; }
#blc-chat-input { flex-grow: 1; border: 1px solid #ccc; border-radius: 20px; padding: 10px 15px; font-size: 14px; }
#blc-chat-input:disabled { background-color: #f9f9f9; }
#blc-send-btn {
    background-color: #0073aa; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 30px;
    height: 30px;
    margin-left: 10px; 
    cursor: pointer; 
    font-weight: bold; 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background-color 0.2s;
}
#blc-send-btn:hover { background-color: #005a87; }
#blc-send-btn:disabled { background-color: #a0a0a0; cursor: not-allowed; }