﻿.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 0 0 0 rgba(255,255,255,.4),24px 0 0 0 rgba(255,255,255,.2)
    }

    50% {
        background-color: rgba(255,255,255,.4);
        box-shadow: 12px 0 0 0 rgba(255,255,255,1),24px 0 0 0 rgba(255,255,255,.4)
    }

    100% {
        background-color: rgba(255,255,255,.2);
        box-shadow: 12px 0 0 0 rgba(255,255,255,.4),24px 0 0 0 rgba(255,255,255,1)
    }
}

@-moz-keyframes typing {
    0% {
        background-color: rgba(255,255,255,1);
        box-shadow: 12px 0 0 0 rgba(255,255,255,.4),24px 0 0 0 rgba(255,255,255,.2)
    }

    50% {
        background-color: rgba(255,255,255,.4);
        box-shadow: 12px 0 0 0 rgba(255,255,255,1),24px 0 0 0 rgba(255,255,255,.4)
    }

    100% {
        background-color: rgba(255,255,255,.2);
        box-shadow: 12px 0 0 0 rgba(255,255,255,.4),24px 0 0 0 rgba(255,255,255,1)
    }
}

@keyframes typing-black {
    0% {
        background-color: rgba(74,74,74,1);
        box-shadow: 12px 0 0 0 rgba(74,74,74,.4),24px 0 0 0 rgba(74,74,74,.2)
    }

    50% {
        background-color: rgba(74,74,74,.4);
        box-shadow: 12px 0 0 0 rgba(74,74,74,1),24px 0 0 0 rgba(74,74,74,.4)
    }

    100% {
        background-color: rgba(74,74,74,.2);
        box-shadow: 12px 0 0 0 rgba(74,74,74,.4),24px 0 0 0 rgba(74,74,74,1)
    }
}

@keyframes typing {
    0% {
        background-color: rgba(255,255,255,1);
        box-shadow: 12px 0 0 0 rgba(255,255,255,.4),24px 0 0 0 rgba(255,255,255,.2)
    }

    50% {
        background-color: rgba(255,255,255,.4);
        box-shadow: 12px 0 0 0 rgba(255,255,255,1),24px 0 0 0 rgba(255,255,255,.4)
    }

    100% {
        background-color: rgba(255,255,255,.2);
        box-shadow: 12px 0 0 0 rgba(255,255,255,.4),24px 0 0 0 rgba(255,255,255,1)
    }
}

form.convFormDynamic {
    width: calc(100% - 0px);
    margin: 10px auto 15px;
    padding: 0 !important;
    position: relative;
    box-shadow: 0 0 5px 5px rgba(222,222,222,.4)
}

    form.convFormDynamic textarea.userInputDynamic {
        border: none;
        padding: 7px 10px;
        outline: 0;
        font-size: .905rem;
        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: 0;
        font-size: .905rem;
        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.conv-form-wrapper div#messages {
    max-height: 380px;
    height: auto !important;
    overflow-y: auto;
    /* overflow-x:scroll;*/
    scrollbar-width: 1px;
    -ms-overflow-style: auto;
}

div.conv-form-wrapper * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

div.conv-form-wrapper div#messages:after {
    content: '';
    display: table;
    clear: both
}

div.conv-form-wrapper {
    position: relative
}

    div.conv-form-wrapper div.wrapper-messages {
        position: relative;
        height: 400px;
        max-height: 71vh;
        overflow-y: scroll;
        transition: margin .1s
    }

    div.conv-form-wrapper: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.conv-form-wrapper div#messages, div.conv-form-wrapper div.wrapper-messages {
        max-height: 71vh
    }
}

div#feed ul::-webkit-scrollbar, div.conv-form-wrapper div.options::-webkit-scrollbar, div.conv-form-wrapper div.wrapper-messages::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: 0 0
}

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.conv-form-wrapper div#messages {
    transition: bottom .15s,padding-bottom .15s;
    position: absolute;
    bottom: 0;
    height: auto !important;
    width: 100%;
    padding-bottom: 20px
}

div.conv-form-wrapper div.options {
    word-wrap: normal;
    white-space: nowrap;
    overflow-x: scroll;
    position: absolute;
    bottom: 100%;
    width: 100%;
    transform: translateY(-5px)
}

    div.conv-form-wrapper div.options:after {
        content: '';
        display: table;
        clear: both
    }

    div.conv-form-wrapper div.options div.option {
        padding: 7px 12px;
        border: 1px solid rgba(6,153,184,.3);
        display: inline-block;
        margin: 5px;
        background: #fff;
        color: #06c5a6;
        cursor: pointer;
        border-radius: 20px;
        font-size: .9rem
    }

div.conv-form-wrapper div.message {
    animation: slideTop .15s ease
}

    div.conv-form-wrapper div.message:after {
        content: '';
        display: table;
        clear: both
    }

    div.conv-form-wrapper div.message.ready {
        animation: bounceIn .2s ease;
        transform-origin: 0 0 0
    }

div.conv-form-wrapper div#messages div.message {
    border-radius: 20px;
    padding: 12px 22px;
    font-size: .905rem;
    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.conv-form-wrapper div#messages div.message.to {
        background: #efefef;
        color: #6f6f6f;
        float: left;
        border-top-left-radius: 0
    }

    div.conv-form-wrapper div#messages div.message.from {
        background: rgb(22, 46, 98);
        color: #fff;
        border-top-right-radius: 0
    }

.message.from + .message.to, .message.to + .message.from {
    margin-top: 15px
}

@keyframes slideTop {
    0% {
        margin-bottom: -25px
    }

    100% {
        margin-bottom: 0
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(.75,.75)
    }

    100% {
        transform: scale(1,1)
    }
}

div.conv-form-wrapper div.options div.option:hover {
    background: #eee
}

div.conv-form-wrapper div.options div.option.selected {
    background: rgb(22, 46, 98);
    color: #fff
}

    div.conv-form-wrapper div.options div.option.selected:hover {
        background: #069c7f
    }

form.convFormDynamic button.submit {
    padding: 3px;
    border: none;
    float: left;
    margin: 5px;
    color: rgb(22, 46, 98);
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.1rem;
    width: fit-content;
    margin-top:9px;
    height:fit-content;
    background: #fff;
    outline: 0 !important
}

    form.convFormDynamic button.submit:hover {
        background: rgb(22, 46, 98);
        color: #fff
    }

button.submit.glow {
    box-shadow: 0 0 10px 5px rgba(6,197,166,.4)
}

.no-border {
    border: none !important
}

.dragscroll {
    cursor: grab
}

div#feed ul::-webkit-scrollbar, div.conv-form-wrapper div#messages::-webkit-scrollbar {
    width: 0;
    background: 0 0
}

span.clear {
    display: block;
    clear: both
}

.spinLoader, .spinLoader:after, .spinLoader:before {
    background: #06c5a6 !important;
    -webkit-animation: spinLoaderChat 1s infinite ease-in-out;
    animation: spinLoaderChat 1s infinite ease-in-out;
    width: 1em;
    height: 4em
}

.spinLoader {
    color: #06c5a6 !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: -.16s;
    animation-delay: -.16s
}

    .spinLoader:after, .spinLoader:before {
        position: absolute;
        top: 0;
        content: ''
    }

    .spinLoader:before {
        left: -1.5em;
        -webkit-animation-delay: -.32s;
        animation-delay: -.32s
    }

    .spinLoader:after {
        left: 1.5em
    }

@-webkit-keyframes spinLoaderChat {
    0%,100%,80% {
        box-shadow: 0 0;
        height: 4em
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em
    }
}

@keyframes spinLoaderChat {
    0%,100%,80% {
        box-shadow: 0 0;
        height: 4em
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em
    }
}
