#wp-chatbot {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 280px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    font-family: sans-serif;
    z-index: 9999;
}
#chatbot-header {
    background: #efa666;
    color: white;
    padding: 10px;
    border-radius: 12px 12px 0 0;
    font-weight: bold;
}
#chatbot-body {
    padding: 0 0 10px 0;
    height: 350px;
    position: relative;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
#chat-log {
    max-height: 309px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 14px;
}
#chatbot-input-wrapper {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: row;
    margin-left: -1px;
    border-radius: 0 0 12px 12px;
    background-color: #fff;
}
#chat-input {
    flex: 1;
    padding: 8px;
    padding: 6px;
    border: none;
    outline: none;
}
#chat-send-button {
    flex: 1;
    padding: 8px 12px;
    cursor: pointer;
    max-width: max-content;
    border: none;
    background-color: transparent;
}
#chat-send-button:hover {
    background-color: transparent;
}
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #efa666;
    color: white;
    padding: 12px 14px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10000;
}
#chatbot-loader {
    margin-top: 10px;
    padding: 0 8px;
    font-style: italic;
    color: #888;
    font-size: 14px;
}
/* Wrapper for each message */
.chat-message {
    display: flex;
    margin: 8px;
}

/* Bubble styling */
.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* User messages: left-aligned */
.chat-message.user {
    justify-content: flex-start;
}
.chat-message.user .chat-bubble {
    background-color: #e0e0e0;
    color: #000;
    border-bottom-left-radius: 0;
}

/* Bot messages: right-aligned */
.chat-message.bot {
    justify-content: flex-end;
}
.chat-message.bot .chat-bubble {
    background-color: #efa66688;
    color: #000;
    border-bottom-right-radius: 0;
}