/* Forked from https://github.com/eduardotkoller/convForm, all classes and IDs prefixed with escb- (eArcu Simple Chat Bot) to help with integration */
.escb-typing_loader{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    -webkit-animation: escb-typing 1s linear infinite alternate;
    -moz-animation: escb-typing 1s linear infinite alternate;
    -ms-animation: escb-typing 1s linear infinite alternate;
    animation: escb-typing 1s linear infinite alternate;
    position: relative;
    left: -12px;
    margin: 7px 15px 6px;
}
.escb-to .escb-typing_loader {
    animation: escb-typing-black 1s linear infinite alternate;
}
@-webkit-keyframes escb-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 escb-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 escb-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 escb-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.escb-convFormDynamic {
    width: calc(100% - 33px);
    margin: 10px auto 15px;
    padding: 0 !important;
    position: relative;
    box-shadow: 0 0 5px 5px rgba(222, 222, 222, 0.4);
}

form.escb-convFormDynamic textarea.escb-userInputDynamic {
    border: none;
    padding: 7px 10px;
    outline: none;
    font-size: 0.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.esch-hidden {
    display:none;
}
form.escb-convFormDynamic input.escb-userInputDynamic {
    border: none;
    padding: 7px 10px;
    outline: none;
    font-size: 0.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.escb-conv-form-wrapper div#escb-messages {
    max-height: 71vh;
    height: auto !important;
    overflow-y: scroll;
}
div.escb-conv-form-wrapper div#escb-messages:after {
    content: '';
    display: table;
    clear: both;
}
div.escb-conv-form-wrapper {
    position: relative;
}
div.escb-conv-form-wrapper div.escb-wrapper-messages {
    position: relative;
    height: 577px;
    max-height: 71vh;
    overflow-y: scroll;
}
div.escb-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.escb-conv-form-wrapper div.escb-wrapper-messages, div.escb-conv-form-wrapper div#escb-messages {
        max-height: 71vh;
    }
}

div.escb-conv-form-wrapper div.escb-wrapper-messages::-webkit-scrollbar, div#escb-feed ul::-webkit-scrollbar, div.escb-conv-form-wrapper div.escb-options::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    /* remove scrollbar space */
    background: transparent;
    /* optional: just make scrollbar invisible */
}
input[type="text"].escb-userInputDynamic.error {
    color: #ac0000 !important;
}
input[type="text"].escb-userInputDynamic {
    border-radius: 3px;
    margin: 7px 10px;
}

textarea.escb-userInputDynamic.escb-error {
    color: #ac0000 !important;
}

textarea.escb-userInputDynamic {
    border-radius: 3px;
    margin: 7px 10px;
}

div.escb-conv-form-wrapper div#escb-messages {
    transition: bottom 0.15s, padding-bottom 0.15s;
    position: absolute;
    bottom: 0;
    height: auto !important;
    width: 100%;
    padding-bottom: 20px;
    /*max-height: 71vh;*/
}
div.escb-conv-form-wrapper div.escb-options {
    word-wrap: normal;
    white-space: nowrap;
    overflow-x: scroll;
    position: absolute;
    bottom: 100%;
    width: 100%;
    transform: translateY(-5px);
}
div.escb-conv-form-wrapper div.escb-options:after {
    content: '';
    display: table;
    clear: both;
}
div.escb-conv-form-wrapper div.escb-options div.escb-option {
    padding: 7px 12px;
    border: 1px solid rgba(6,153,184,0.3);
    display: inline-block;
    margin: 5px;
    background: #fff;
    color: #06c5a6;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.9rem;
}


div.escb-conv-form-wrapper div.escb-message {
    animation: escb-slideTop 0.15s ease;
}
div.escb-conv-form-wrapper div.escb-message:after {
    content: '';
    display: table;
    clear: both;
}
div.escb-conv-form-wrapper div.escb-message.ready {
    animation: escb-bounceIn 0.2s ease;
    transform-origin: 0 0 0;
}
div.escb-conv-form-wrapper  div#escb-messages div.escb-message {
    border-radius: 20px;
    padding: 12px 22px;
    font-size: 0.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.escb-conv-form-wrapper div#escb-messages div.escb-message.escb-to {
    background: #efefef;
    color: #6f6f6f;
    float: left;
    border-top-left-radius: 0;
}
div.escb-conv-form-wrapper div#escb-messages div.escb-message.escb-from {
    background: #06b79a;
    color: #fff;
    border-top-right-radius: 0;
}
escb-.message.escb-to+.escb-message.escb-from, .escb-message.escb-from+.escb-message.escb-to {
    margin-top: 15px;
}
@keyframes escb-slideTop {
    0% {
        margin-bottom: -25px;
    }
    100% {
        margin-bottom: 0;
    }
}

@keyframes escb-bounceIn {
    0% {
        transform: scale(0.75, 0.75);
    }
    100% {
        transform: scale(1.0, 1.0);
    }
}
div.escb-conv-form-wrapper div.escb-options div.escb-option:hover {
    background: #eeeeee;
}
div.escb-conv-form-wrapper div.escb-options div.escb-option-image:hover {
    background-repeat: no-repeat;
    background-position: center;
}

div.escb-conv-form-wrapper div.escb-options div.escb-option.escb-selected {
    background: #06b79a;
    color: #fff;
}
div.escb-conv-form-wrapper div.escb-options div.escb-option.escb-selected:hover {
    background: #069c7f;
}

form.escb-convFormDynamic button.escb-submit {
    padding: 3px;
    border: none;
    float: left;
    margin: 5px;
    color: #06c5a6;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 36px;
    height: 35px;
    margin-top: 4px;
    background: #fff;
    outline: none !important;
}
div.escb-conv-form-wrapper div.escb-options div.escb-option-image {
    background-repeat: no-repeat;
    min-height:64px;
    min-width:64px;
    background-position:center;
    
}
                           
div.escb-conv-form-wrapper div#escb-messages div.escb-message.escb-from-image {
    background-repeat: no-repeat;
    min-height:64px;
    min-width:64px;
    background-position:center;

}

form.escb-convFormDynamic button.escb-submit:hover {
    background: #06b79a;
    color: #fff;
}

button.escb-submit.escb-glow {
    box-shadow: 0 0 10px 5px rgba(6, 197, 166, 0.4);
}
.escb-no-border {
    border: none !important;
}
.escb-dragscroll {
    cursor: grab;
}
div.escb-conv-form-wrapper div#escb-messages::-webkit-scrollbar, div#escb-feed ul::-webkit-scrollbar {
    width: 0px;
    /* remove scrollbar space */
    background: transparent;
    /* optional: just make scrollbar invisible */
}
span.escb-clear {
    display: block;
    clear: both;
}

.escb-spinLoader,
.escb-spinLoader:before,
.escb-spinLoader:after {
    background: #06c5a6 !important;
    -webkit-animation: escb-spinLoaderChat 1s infinite ease-in-out;
    animation: escb-spinLoaderChat 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}
.escb-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: -0.16s;
    animation-delay: -0.16s;
}
.escb-spinLoader:before,
.escb-spinLoader:after {
    position: absolute;
    top: 0;
    content: '';
}
.escb-spinLoader:before {
    left: -1.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}
.escb-spinLoader:after {
    left: 1.5em;
}
@-webkit-keyframes escb-spinLoaderChat {
    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }
    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}
@keyframes escb-spinLoaderChat {
    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }
    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}
