﻿.chat_window {
    font-family: "Calibri", "Roboto", sans-serif;
    position: absolute;
    width: calc(100% - 20px);
    max-width: 400px;
    border-radius: 10px;
    right: 3%;
    bottom: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #f8f8f8;
    overflow: hidden;
    z-index: 999999;
}
@media (max-width: 768px) {
    .chat_window {
        max-height: -webkit-fill-available;
        height: 70%;
        bottom: 15%;
    }
}

.top_menu {
    background-color: #fff;
    width: 100%;
    padding: 15px 0 11px;
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
}

    .top_menu:hover {
        cursor: pointer;
    }

    .top_menu .buttons {
        position: absolute;
        top: 17px;
        left: 90%;
        margin: 0px !important;
    }

        .top_menu .buttons .btn {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: inline-block;
            margin-right: 10px;
            margin-bottom: 5px;
            position: relative;
        }

        .top_menu .buttons i {
            color: gray;
        }

            .top_menu .buttons i:hover {
                color: lightgray;
            }

    .top_menu .title {
        text-align: center;
        color: #555;
        font-size: 16px;
    }

#collapseChat {
    height: 450px;
}

.messages {
    position: relative;
    list-style: none;
    padding: 15px 7px 0 7px;
    margin: 0;
    height: 394px;
    overflow: scroll;
}

    .messages .message {
        clear: both;
        overflow: hidden;
        margin-bottom: 15px;
        transition: all 0.5s linear;
        opacity: 0;
    }

        .messages .message.left .avatar {
            background-color: #f5886e;
            background-size: cover;
            float: left;
        }

        .messages .message.left .text_wrapper {
            background-color: #ffffff;
            margin-left: 15px;
            word-wrap: break-word;
        }

            .messages .message.left .text_wrapper::after, .messages .message.left .text_wrapper::before {
                right: 99%;
                border-right-color: #ffffff;
            }

        .messages .message.left .text {
            color: #000000;
        }

        .messages .message.right .avatar {
            background-color: #fdbf68;
            background-size: cover;
            float: right;
        }

        .messages .message.right .text_wrapper {
            background-color: #cfd7db;
            margin-right: 15px;
            float: right;
            word-wrap: break-word;
        }

            .messages .message.right .text_wrapper::after, .messages .message.right .text_wrapper::before {
                left: 99%;
                border-left-color: #cfd7db;
            }

        .messages .message.right .text {
            color: #000000;
        }

        .messages .message.appeared {
            opacity: 1;
        }

        .messages .message .avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: inline-block;
        }

        .messages .message .text_wrapper {
            display: inline-block;
            padding: 15px 15px 10px 15px;
            border-radius: 6px;
            max-width: calc(100% - 85px);
            min-width: 100px;
            position: relative;
        }

            .messages .message .text_wrapper::after, .messages .message .text_wrapper:before {
                top: 18px;
                border: solid transparent;
                content: " ";
                height: 0;
                width: 0;
                position: absolute;
                pointer-events: none;
            }

            .messages .message .text_wrapper::after {
                border-width: 10px;
                margin-top: 0px;
            }

            .messages .message .text_wrapper::before {
                border-width: 12px;
                margin-top: -5px;
            }

            .messages .message .text_wrapper .text {
                font-size: 14px;
                font-weight: 300;
            }

                .messages .message .text_wrapper .text p {
                    margin: 0 0 5px;
                }

.bottom_wrapper {
    position: relative;
    width: 100%;
    background-color: #fff;
    padding: 15px 15px;
    position: absolute;
    bottom: 0;
}

    .bottom_wrapper .message_input_wrapper {
        display: inline-block;
        height: 37px;
        border-radius: 19px;
        border: 1px solid #bcbdc0;
        width: calc(100% - 160px);
        position: relative;
        padding: 0 20px;
    }

        .bottom_wrapper .message_input_wrapper .message_input {
            border: none;
            height: 100%;
            box-sizing: border-box;
            width: calc(100% - 40px);
            position: absolute;
            outline-width: 0;
            color: gray;
        }

    .bottom_wrapper .send_message {
        width: 140px;
        height: 37px;
        display: inline-block;
        border-radius: 37px;
        background-color: #337ab7;
        border: 2px solid #337ab7;
        color: #fff;
        cursor: pointer;
        transition: all 0.2s linear;
        text-align: center;
        float: right;
    }

        .bottom_wrapper .send_message:hover {
            color: #337ab7;
            background-color: #fff;
        }

        .bottom_wrapper .send_message .text {
            font-size: 14px;
            font-weight: 300;
            display: inline-block;
            line-height: 48px;
            position: absolute;
            bottom: 15px;
            right: 75px;
        }

        .bottom_wrapper .send_message .btn {
            background: transparent;
        }

.message_template {
    display: none;
}
