#wthc-chat-box {
    width: 100%;
    max-width: 700px;
    height: 500px; /* Fixed height for the chat container */
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

#wthc-messages {
    flex-grow: 1; /* Messages area takes all available space */
    overflow-y: auto; /* Enables scrolling for the messages */
    padding: 10px;
    background-color: #f7f7f7;
}

#wthc-chat-form-container {
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ccc;
    display: flex;
}

#wthc-chat-input {
    flex-grow: 1;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#wthc-send-button {
    padding: 8px 15px;
    cursor: pointer;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
}

.wthc-message-row {
    margin-bottom: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    line-height: 1.4;
    max-width: 90%;
}

.wthc-username {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

.wthc-timestamp {
    font-size: 0.75em;
    color: #999;
    display: block;
    text-align: right;
}

/* Style for current user's messages */
.wthc-my-message {
    background-color: #d1e7f3; /* Light blue */
    margin-left: auto; /* Pushes the message to the right */
    text-align: right;
}

.wthc-my-message .wthc-username {
    color: #005a87; /* Darker blue for contrast */
}

/* Style for other users' messages */
.wthc-message-row:not(.wthc-my-message) {
    background-color: #fff;
    text-align: left;
}