/* Chat Container */
#vendor-chat-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    height: 500px;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Messages Area */
#vendor-chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
}

/* Single Message */
.vendor-chat-msg {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 75%;
    clear: both;
    line-height: 1.4;
    word-wrap: break-word;
    font-size: 14px;
}

/* Sent by current user */
.vendor-chat-msg.me {
    background: #4a90e2;
    color: #fff;
    float: right;
    border-bottom-right-radius: 0;
}

/* Received from others */
.vendor-chat-msg.other {
    background: #e5e5ea;
    color: #000;
    float: left;
    border-bottom-left-radius: 0;
}

/* Input Area */
#vendor-chat-input {
    border: none;
    border-top: 1px solid #ddd;
    padding: 10px;
    height: 60px;
    resize: none;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

/* Send Button */
#vendor-chat-send {
    border: none;
    background: #4a90e2;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

#vendor-chat-send:hover {
    background: #357abd;
}

/* Scrollbar style */
#vendor-chat-messages::-webkit-scrollbar {
    width: 6px;
}
#vendor-chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Floating Chat Button */
#vendor-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4a90e2;
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 15px;
    z-index: 9999;
    transition: background 0.3s;
}
#vendor-chat-button:hover {
    background: #357abd;
}

/* Popup */
#vendor-chat-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#vendor-chat-header {
    background: #4a90e2;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
#vendor-chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.vendor-chat-login {
    padding: 20px;
    text-align: center;
}
