﻿.chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: auto;
    background-color: #F5F5F5;
}


/* Messages list styles */
.chatbot-container .messages-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
    margin: 0 10px 10px 10px;
    overflow: hidden;
}

    .chatbot-container .messages-container .messages-list {
        display: flex;
        flex-direction: column;
        overflow-y: scroll;
        padding-right: 20px;
        margin-right: -20px;
        overscroll-behavior: contain;
    }

.chatbot-container .messages-list .message-timestamp {
    font-size: 12px;
    color: #777;
    margin: 2px 60px 0 60px;
    align-self: flex-start;
}

    .chatbot-container .messages-list .message-timestamp.from-user {
        align-self: flex-end;
    }

.chatbot-container .messages-list .message-row {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
    align-items: start;
    justify-content: flex-start;
}

    .chatbot-container .messages-list .message-row.from-user {
        flex-direction: row-reverse;
    }

.chatbot-container .message-row .message-avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: transparent;
}

    .chatbot-container .message-row .message-avatar img {
        height: 40px;
        width: 40px;
        border-radius: 50%;
    }


.chatbot-container .message-row .message {
    max-width: 75%;
    border-radius: 10px;
    border: none;
    padding: 10px;
}

    .chatbot-container .message-row .message.from-bot {
        background-color: #fff;
        margin-left: 10px;
    }

    .chatbot-container .message-row .message.from-user {
        background-color: var(--main-color-alpha-40);
        margin-right: 10px;
    }

.chatbot-container .message .message-text {
    font-size: 18px;
}

.chatbot-container .message-text p {
    margin: 0;
    white-space: pre-wrap;
}



/* Send box styles */
.chatbot-container .send-box {
    display: flex;
    align-items:center;
    flex-direction: row;
    flex-shrink: 0;
    min-height: 50px;
    align-self: stretch;
    margin: 0 25px 0 25px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

    .chatbot-container .send-box.options {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        z-index: 1;
    }

    .chatbot-container .send-box .send-input {
        background-color: transparent;
        flex-grow: 1;
        align-self: center;
        font-size: 18px;
        line-height: 25px;
        border: none;
        padding: 0;
        margin: 0 20px;
        resize: none;
        outline: none;
    }

    .chatbot-container .send-box .send-button,
    .chatbot-container .send-box .microphone-button {
        height: 50px;
        width: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        align-self: center;
        cursor: pointer;
    }

        .chatbot-container .send-box .send-button img {
            height: 25px;
            width: 25px;
        }

        .chatbot-container .send-box .microphone-button span {
            height: 25px;
            width: 25px;
            line-height: 25px;
            font-size: 22px;
            color: var(--webchat-main-color);
            text-align: center;
            cursor: pointer;
        }

.chatbot-container .speak-button {
    position: absolute;
    top: 10px;
    margin-left: 15px;
    align-self: flex-end;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

    .chatbot-container .speak-button span {
        height: 25px;
        width: 25px;
        line-height: 25px;
        font-size: 22px;
        color: var(--webchat-main-color);
        text-align: center;
        cursor: pointer;
    }

@media only screen and (max-width: 768px)
{
    

    .chatbot-container .send-box .send-input:focus::placeholder {
        color: transparent;
    }
}