﻿.chatBotWindow {
    background: #fff;
    -webkit-box-shadow: 0 0 5px 5px rgba(222, 222, 222, 0.4);
    -moz-box-shadow: 0 0 5px 5px rgba(222, 222, 222, 0.4);
    box-shadow: 0 0 5px 5px rgba(222, 222, 222, 0.4);
    transition: all .3s ease;
    height: 500px;
    padding-left: 1px;
    padding-right: 1px;
    width: 90% !important;
    margin: 30px auto;
}

    .chatBotWindow .escb-hidden {
        display: none;
    }

    .chatBotWindow .chatBotHeader {
        padding: 10px;
        border-bottom: 2px solid #000;
        overflow: auto;
    }

        .chatBotWindow .chatBotHeader .chatBotIcon,
        .chatBotWindow .chatBotHeader h3 {
            float: left;
        }

        .chatBotWindow .chatBotHeader .chatBotIcon {
            width: auto;
            height: 30px;
            margin-right: 10px;
        }

            .chatBotWindow .chatBotHeader .chatBotIcon img {
                width: 100%;
                height: 100%;
            }

        .chatBotWindow .chatBotHeader .chatBotBtn {
            width: 35px;
            height: 35px;
            float: right;
            cursor: pointer;
            text-align: center;
        }

            .chatBotWindow .chatBotHeader .chatBotBtn:before {
                content: '\f068';
                font-family: FontAwesome;
                font-size: 20px;
                transition: all .3s ease;
                color: #00a251;
            }

    .chatBotWindow.closed .chatBotHeader .chatBotBtn:before {
        content: "\f067";
    }

    .chatBotWindow .chatBotBody .escb-conv-form-wrapper .escb-wrapper-messages {
        height: 345px;
        overflow: hidden;
    }

        .chatBotWindow .chatBotBody .escb-conv-form-wrapper .escb-wrapper-messages #escb-messages {
            overflow-x: hidden;
            top: 20px;
            bottom: 110px;
            overflow-y: auto;
            padding-bottom: 0 !important;
        }

            .chatBotWindow .chatBotBody .escb-conv-form-wrapper .escb-wrapper-messages #escb-messages .escb-message {
                max-width: 100%;
                font-size: 14px;
            }

                .chatBotWindow .chatBotBody .escb-conv-form-wrapper .escb-wrapper-messages #escb-messages .escb-message.escb-to img {
                    display: none;
                }

                .chatBotWindow .chatBotBody .escb-conv-form-wrapper .escb-wrapper-messages #escb-messages .escb-message.escb-from {
                    background: #004f9f;
                }

    .chatBotWindow .chatBotBody #convForm {
        width: 100%;
        margin-bottom: 0;
        box-shadow: none;
        position: absolute;
        bottom: 0;
    }

        .chatBotWindow .chatBotBody #convForm * {
            font-size: 14px;
        }

        .chatBotWindow .chatBotBody #convForm .escb-dragscroll {
            cursor: default;
            position: relative;
            bottom: initial;
            transform: none;
            overflow-x: auto;
        }

            .chatBotWindow .chatBotBody #convForm .escb-dragscroll:after {
                display: none;
            }

        .chatBotWindow .chatBotBody #convForm #userInput {
            box-shadow: 0 0 5px 5px rgba(222, 222, 222, 0.4);
        }

        .chatBotWindow .chatBotBody #convForm button {
            color: #00a251;
        }

            .chatBotWindow .chatBotBody #convForm button:hover {
                color: #fff;
                background: #00a251;
            }

    .chatBotWindow.chrome .chatBotBody #convForm .escb-dragscroll {
        white-space: initial;
        max-height: 75px;
        overflow-x: hidden;
        overflow-y: auto;
        position: absolute;
        bottom: 100%;
        transform: none;
    }

        .chatBotWindow.chrome .chatBotBody #convForm .escb-dragscroll .escb-option {
            float: left;
            display: block;
            margin-top: 0;
            color: #004f9f;
            border-color: #004f9f;
        }


.chatBotHeader h3 {
    font-size: 16px !important;
}

div.escb-conv-form-wrapper div.escb-options div.escb-option {
    border: 1px solid #00a251 !important;
    background: #00a251 !important;
    color: #fff !important;
    border-radius: 2px !important;
    font-weight: bold !important;
}

    div.escb-conv-form-wrapper div.escb-options div.escb-option:hover {
        background: #fff !important;
        color: #00a251 !important;
    }

.chatBotWindow .chatBotBody .escb-conv-form-wrapper .escb-wrapper-messages #escb-messages .escb-message.escb-from {
    background: #00a251 !important;
}

.chatBotWindow textarea.escb-userInputDynamic.escb-error {
    color: #00a251 !important;
}

.chatBotWindow .chatBotHeader .chatBotIcon img {
    box-shadow: 0 0 0 rgba(0,128,0, 0.4);
    animation: pulse 2s infinite;
    border-radius: 11px;
}

    .chatBotWindow .chatBotHeader .chatBotIcon img:hover {
        animation: none;
    }

@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(0,128,0, 0.4);
    }

    70% {
        -webkit-box-shadow: 0 0 0 10px rgba(0,128,0, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 0 0 rgba(0,128,0, 0);
    }
}

@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(0,128,0, 0.4);
        box-shadow: 0 0 0 0 rgba(0,128,0, 0.4);
    }

    70% {
        -moz-box-shadow: 0 0 0 10px rgba(0,128,0, 0);
        box-shadow: 0 0 0 10px rgba(0,128,0, 0);
    }

    100% {
        -moz-box-shadow: 0 0 0 0 rgba(0,128,0, 0);
        box-shadow: 0 0 0 0 rgba(0,128,0, 0);
    }
}

.typing_loader {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    -webkit-animation: typing 1s linear infinite alternate;
    -moz-animation: typing 1s linear infinite alternate;
    -ms-animation: typing 1s linear infinite alternate;
    animation: typing 1s linear infinite alternate;
    position: relative;
    left: -12px;
    margin: 7px 15px 6px;
}

.to .typing_loader {
    animation: typing-black 1s linear infinite alternate;
}

@-webkit-keyframes typing {
    0% {
        background-color: rgba(255,255,255, 1);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,0.4), 24px 0px 0px 0px rgba(255,255,255,0.2);
    }

    50% {
        background-color: rgba(255,255,255, 0.4);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,1), 24px 0px 0px 0px rgba(255,255,255,0.4);
    }

    100% {
        background-color: rgba(255,255,255, 0.2);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,0.4), 24px 0px 0px 0px rgba(255,255,255,1);
    }
}

@-moz-keyframes typing {
    0% {
        background-color: rgba(255,255,255, 1);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,0.4), 24px 0px 0px 0px rgba(255,255,255,0.2);
    }

    50% {
        background-color: rgba(255,255,255, 0.4);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,1), 24px 0px 0px 0px rgba(255,255,255,0.4);
    }

    100% {
        background-color: rgba(255,255,255, 0.2);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,0.4), 24px 0px 0px 0px rgba(255,255,255,1);
    }
}

@keyframes typing-black {
    0% {
        background-color: rgba(74, 74, 74, 1);
        box-shadow: 12px 0px 0px 0px rgba(74, 74, 74, 0.4), 24px 0px 0px 0px rgba(74, 74, 74, 0.2);
    }

    50% {
        background-color: rgba(74, 74, 74, 0.4);
        box-shadow: 12px 0px 0px 0px rgba(74, 74, 74, 1), 24px 0px 0px 0px rgba(74, 74, 74,0.4);
    }

    100% {
        background-color: rgba(74, 74, 74, 0.2);
        box-shadow: 12px 0px 0px 0px rgba(74, 74, 74,0.4), 24px 0px 0px 0px rgba(74, 74, 74,1);
    }
}

@keyframes typing {
    0% {
        background-color: rgba(255,255,255, 1);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,0.4), 24px 0px 0px 0px rgba(255,255,255,0.2);
    }

    50% {
        background-color: rgba(255,255,255, 0.4);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,1), 24px 0px 0px 0px rgba(255,255,255,0.4);
    }

    100% {
        background-color: rgba(255,255,255, 0.2);
        box-shadow: 12px 0px 0px 0px rgba(255,255,255,0.4), 24px 0px 0px 0px rgba(255,255,255,1);
    }
}

form.convFormDynamic {
    width: calc(100% - 33px);
    /*margin: 10px auto 15px;*/
    margin: 50px auto 25px;
    padding: 0 !important;
    position: relative;
    box-shadow: 0 0 5px 5px rgba(222, 222, 222, 0.4);
}

    form.convFormDynamic textarea.userInputDynamic {
        border: none;
        padding: 7px 10px;
        outline: none;
        font-size: 16px;
        float: left;
        width: calc(100% - 70px);
        line-height: 1.3em;
        min-height: 1.7em;
        max-height: 10rem;
        display: block;
        max-width: 88%;
        margin-right: 2.5%;
    }


    form.convFormDynamic input.userInputDynamic {
        border: none;
        padding: 7px 10px;
        outline: none;
        font-size: 16px;
        float: left;
        width: calc(100% - 70px);
        line-height: 1.3em;
        min-height: 1.7em;
        max-height: 10rem;
        display: block;
        max-width: 88%;
        margin-right: 2.5%;
    }

div#chat.conv-form-wrapper div#messages {
    max-height: 71vh;
    height: auto !important;
    overflow-y: scroll;
}

    div#chat.conv-form-wrapper div#messages:after {
        content: '';
        display: table;
        clear: both;
    }

div#chat.conv-form-wrapper {
    position: relative;
}

    div#chat.conv-form-wrapper div.wrapper-messages {
        position: relative;
        height: 577px;
        /*max-height: 71vh;*/
        max-height: 50vh;
        overflow-y: scroll;
        /* Sam */ overflow: hidden;
    }
/*div#chat:before {
    content: '';
    position: absolute;
    width: 100%;
    display: block;
    height: 30px;
    top: 0;
    left: 0;
    z-index: 2;
    background: linear-gradient(#fff, transparent);
}*/


@media (max-width: 767px) {
    div#chat.conv-form-wrapper div.wrapper-messages, div#chat.conv-form-wrapper div#messages {
        /*max-height: 71vh;*/
        padding-bottom: 20px !important;
    }
}

div#chat div.wrapper-messages::-webkit-scrollbar, div#feed ul::-webkit-scrollbar, div#chat div.options::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    /* remove scrollbar space */
    background: transparent;
    /* optional: just make scrollbar invisible */
}

input[type="text"].userInputDynamic.error {
    color: #ac0000 !important;
}

input[type="text"].userInputDynamic {
    border-radius: 3px;
    margin: 7px 10px;
}

textarea.userInputDynamic.error {
    color: #ac0000 !important;
}

textarea.userInputDynamic {
    border-radius: 3px;
    margin: 7px 10px;
}

div#chat.conv-form-wrapper div#messages {
    transition: bottom 0.15s, padding-bottom 0.15s;
    position: absolute;
    bottom: 0;
    height: auto !important;
    width: 100%;
    padding-bottom: 20px !important;
    /*max-height: 71vh;*/
}

div#chat div.options {
    word-wrap: normal;
    /*white-space: nowrap;*/
    /*overflow-x: scroll;*/
    position: absolute;
    bottom: 100%;
    width: 100%;
    /*transform: translateY(-5px);*/
    transform: translateY(-10px);
}

    div#chat div.options:after {
        content: '';
        display: table;
        clear: both;
    }

    div#chat div.options div.option {
        padding: 7px 12px;
        border: 1px solid rgba(233, 30, 99, 0.42);
        display: inline-block;
        margin: 5px;
        background: #fff;
        color: #e91e63;
        cursor: pointer;
        border-radius: 20px;
        font-size: 16px;
        margin-left: 0px;
        margin-right: 10px;
    }

div#chat.conv-form-wrapper div.message {
    animation: slideTop 0.15s ease;
}

    div#chat.conv-form-wrapper div.message:after {
        content: '';
        display: table;
        clear: both;
    }

    div#chat.conv-form-wrapper div.message.ready {
        animation: bounceIn 0.2s ease;
        transform-origin: 0 0 0;
    }

div#chat.conv-form-wrapper div#messages div.message,
div#chat.conv-form-wrapper div#messages div.message.to.typing,
div#chat.conv-form-wrapper div#messages div.message.to span {
    border-radius: 20px;
    padding: 12px 22px;
    font-size: 16px;
    color: #333;
    display: inline-block;
    padding: 10px 15px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
    float: right;
    clear: both;
    max-width: 65%;
    word-wrap: break-word;
}

    div#chat.conv-form-wrapper div#messages div.message.to {
        border-radius: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
        float: left;
    }

        div#chat.conv-form-wrapper div#messages div.message.to.typing {
            width: auto;
        }

        div#chat.conv-form-wrapper div#messages div.message.to.typing,
        div#chat.conv-form-wrapper div#messages div.message.to span {
            background: #efefef;
            color: #6f6f6f;
            border-top-left-radius: 0;
            position: relative;
            float: left;
        }

        div#chat.conv-form-wrapper div#messages div.message.to span {
            clear: none;
            top: 35px;
        }

        div#chat.conv-form-wrapper div#messages div.message.to img {
            float: left;
            width: 75px;
            margin-right: 5px;
            margin-top: 20px;
        }

        div#chat.conv-form-wrapper div#messages div.message.to.image span {
            background: none;
            padding: 0;
            border-radius: 0;
            top: 0;
        }

            div#chat.conv-form-wrapper div#messages div.message.to.image span img {
                max-height: 300px;
                margin-left: 80px;
                margin-top: 10px;
            }

    div#chat.conv-form-wrapper div#messages div.message.from {
        background: #e91e63;
        color: #fff;
        border-top-right-radius: 0;
    }

.message.to + .message.from, .message.from + .message.to {
    margin-top: 15px;
}

@keyframes slideTop {
    0% {
        margin-bottom: -25px;
    }

    100% {
        margin-bottom: 0;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.75, 0.75);
    }

    100% {
        transform: scale(1.0, 1.0);
    }
}

div#chat div.options div.option:hover {
    background: #eeeeee;
}

div#chat div.options div.option.selected {
    background: #e91e63;
    color: #fff;
}

    div#chat div.options div.option.selected:hover {
        background: #7b1fa2;
    }

form.convFormDynamic button.submit {
    padding: 3px;
    border: none;
    float: left;
    margin: 5px;
    color: #e91e63;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 36px;
    height: 35px;
    margin-top: 7px;
    background: #fff;
    outline: none !important;
}


    form.convFormDynamic button.submit:hover {
        background: #e91e63;
        color: #fff;
    }

button.submit.glow {
    box-shadow: 0 0 10px 5px rgba(233, 30, 99, 0.4);
}

.no-border {
    border: none !important;
}

.dragscroll {
    cursor: grab;
}

div#chat div#messages::-webkit-scrollbar, div#feed ul::-webkit-scrollbar {
    width: 0px;
    /* remove scrollbar space */
    background: transparent;
    /* optional: just make scrollbar invisible */
}

span.clear {
    display: block;
    clear: both;
}

.spinLoader,
.spinLoader:before,
.spinLoader:after {
    background: #e91e63 !important;
    -webkit-animation: spinLoaderChat 1s infinite ease-in-out;
    animation: spinLoaderChat 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}

.spinLoader {
    color: #e91e63 !important;
    text-indent: -9999em;
    margin: 50% auto;
    position: relative;
    font-size: 11px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

    .spinLoader:before,
    .spinLoader:after {
        position: absolute;
        top: 0;
        content: '';
    }

    .spinLoader:before {
        left: -1.5em;
        -webkit-animation-delay: -0.32s;
        animation-delay: -0.32s;
    }

    .spinLoader:after {
        left: 1.5em;
    }

@-webkit-keyframes spinLoaderChat {
    0%, 80%, 100% {
        box-shadow: 0 0;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

@keyframes spinLoaderChat {
    0%, 80%, 100% {
        box-shadow: 0 0;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}


.btn.btn--green.button-text.header__donate.button_two {
    right: 180px;
}

#New_MobileChatbutton {
    position: fixed;
    bottom: 20px;
    right: 20px;
}
