.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.chat-widget-container {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 325px;
    height: 500px;
    z-index: 1000;
}

#chat-widget {
    height: 100%;
}

#chat-widget-message-textarea {
    resize: none;
    overflow: hidden;
    min-height: 50px;
    max-height: 100px;
}

/* Messages boxes */

.chat-message-left {
    margin-left: 20px;
    margin-right: 0;
}

.chat-message-right {
    margin-left: 0;
    margin-right: 20px;
}

.chat-message-left .chat-message-inner {
    background-color: #f5f5f5;
    border-color: #e5e5e5;
    color: #333;
}

.chat-message-right .chat-message-inner {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* Chat Message body scroll */

.chat-thread-body {
    max-height: 338px; /* set the max height of the chat messages container */
    overflow-y: auto; /* enable scrolling */
}

/* Style the scrollbar */
.chat-thread-body::-webkit-scrollbar {
    width: 5px; /* set the width of the scrollbar */
}

.chat-thread-body::-webkit-scrollbar-track {
    background: #f1f1f1; /* set the color of the scrollbar track */
}

.chat-thread-body::-webkit-scrollbar-thumb {
    background: #c2c2c2; /* set the color of the scrollbar thumb */
}

.chat-thread-body::-webkit-scrollbar-thumb:hover {
    background: #999; /* set the color of the scrollbar thumb on hover */
}

/* Typing indicator */

.typing-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 5px;
    animation: blink 1s infinite;
}

.dot:last-child {
    margin-right: 0;
}

@keyframes blink {
    0% {
        opacity: .2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: .2;
    }
}


