/* Chatbot Ballon */
#mybot {
    bottom: 0px;
    display: block;
    position: fixed;
    right: 23px;
    width: 100px;
    height: 130px;
    z-index: 9999;
}

#mybot > div.chat-icon {
    animation: shake 1.5s;
    animation-iteration-count: infinite;
    cursor: pointer;
    text-align: center;
}

#mybot > div.chat-icon > img {
    border-radius: 100px;
    margin-top: 20px;
    width: 80%;
    border: 5px double #7ed6f8;
}

#mybot > div.chat-icon p {
    background-color: #cecdcd;
    border-radius: 4px;
    color: #000;
    font-size: 12px;
    font-weight: 300;
    line-height: 20px;
    margin: -28px 0 0 -25px;
    padding: 8px;
    position: absolute;
    text-align: center;
    width: 120px;
}

#mybot > div.chat-icon > div.tooltip-arrow {
    position: absolute;
    top: 2%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #cecdcd;
    margin-top: 6px;
}

/* Chatbot Conversation */
#mybot > div.chat-bot {
    -webkit-box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, .5);
    background-color: #f9f9f9;
    border-top-left-radius: 3px;
    bottom: 0;
    box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, .5);
    display: none;
    flex-direction: column;
    height: 500px;
    overflow: hidden;
    position: fixed;
    right: 0;
    width: 400px;
    z-index: 9999;
}

#mybot > div.chat-bot > span.close-chat-bot {
    text-align: right;
    padding: .6rem 1rem 0 1rem;
    font-size: .6rem;
    text-transform: uppercase;
    cursor: pointer;
}

#mybot > div.chat-bot > .chat-frame {
    height: 100%;
}

@media screen and (max-width: 640px) {
    #mybot > div.chat-bot {
        background-color: #f9f9f9;
        border-radius: 0px;
        bottom: 0;
        display: none;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
        position: fixed;
        right: 0;
        width: 100%;
    }
}

@keyframes shake {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(0px, 5px) rotate(0deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* Chatbot Frame */
#mybot-frame {
    background: #f9f9f9;
    width: 100%;
    height: 100%;
}

/* Chatbot Frame - Header */
#mybot-frame > div.header {
    align-items: center;
    display: flex;
    height: 80px;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

#mybot-frame > div.header > img {
    height: 55px;
    display: flex;
}

#mybot-frame > div.header > div.title {
    margin-left: -25px;
    text-align: center;
    float: left;
}

#mybot-frame > div.header > div.title > .text-bot-name {
    color: #000;
    margin: 0;
    font-size: 13.76px;
    line-height: 17px;
}

#mybot-frame > div.header > div.title > .text-bot-title {
    color: #000;
    font-weight: 200;
    font-size: 10.32px;
    line-height: 12px;
    margin: 2px 0 0;
}

/* Chatbot Frame - Body */
#mybot-frame > div#result_div {
    padding: 10px 10px 30px 10px;
    overflow-y: auto;
    position: fixed;
    top: 90px;
    bottom: 70px;
    width: 100%;
}

#mybot-frame > div#result_div .content-bot {
    padding-left: 5px;
    padding-right: 5px;
    align-items: flex-end;
    display: flex;
    justify-content: flex-start;
}

#mybot-frame > div#result_div .content-image-bot {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 2px 0px;
    height: 40px;
    min-width: 40px;
    transform-origin: right bottom;
    animation: 0.3s ease 0s 1 normal forwards running Lmuha;
    border-radius: 50% 50% 0px;
    padding: 3px;
    margin: 3px;
}

#mybot-frame > div#result_div .content-bot {
    padding-left: 10px;
    padding-right: 10px;
    align-items: flex-end;
    display: flex;
    justify-content: flex-start;
}

#mybot-frame > div#result_div .content-image-bot {
    box-shadow: rgba(0, 0, 0, 0.15) 0px 1px 2px 0px;
    height: 40px;
    min-width: 40px;
    transform-origin: right bottom;
    animation: 0.3s ease 0s 1 normal forwards running Lmuha;
    border-radius: 50% 50% 0px;
    padding: 3px;
    margin: 3px;
}

#mybot-frame > div#result_div .content-text-bot {
    background: #cce6ff;
    color: #000;
    border-radius: 3px;
    padding: 12px;
    font-size: 14px;
    font-weight: 400;
    width: 400px;
    float: left;
    box-shadow: 0 0px 1px 0 rgba(0,0,0,0.16), 0 0px 10px 0 rgba(0,0,0,0.12);
    border-top-left-radius: 0;
    margin-bottom: 10px;
    margin-top: 5px;
    width: 100%;
    position: relative;
}

#mybot-frame > div#result_div .content-text-bot:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 0px solid rgba(0, 0, 0, 0);
    border-bottom: 15px solid rgba(0, 0, 0, 0);
    border-right: 15px solid #cce6ff;
    left: -15px;
    margin-top: -12px;
}

#mybot-frame > div#result_div .content-user {
    padding-left: 10px;
    padding-right: 10px;
    align-items: flex-end;
    display: flex;
    justify-content: flex-end;
}

#mybot-frame > div#result_div .content-text-user {
    background: #fff;
    float: right;
    color: #000;
    border-radius: 3px;
    padding: 12px;
    font-size: 14px;
    font-weight: 400;
    width: 400px;
    box-shadow: 0 0px 1px 0 rgba(0,0,0,0.16), 0 0px 10px 0 rgba(0,0,0,0.12);
    border-top-right-radius: 0;
    position: relative;
    left: -6px;
    margin-bottom: 10px;
    margin-top: 5px;
    width: 100%;
    word-wrap: break-word;
}

#mybot-frame > div#result_div .content-text-user:before {
    content: "";
    width: 0;
    height: 0;
    border-top: 0px solid rgba(0, 0, 0, 0);
    border-bottom: 15px solid rgba(0, 0, 0, 0);
    border-left: 15px solid #fff;
    position: absolute;
    right: -15px;
    margin-top: -12px;
}

#mybot-frame > div#result_div .content-buttons {
    text-align: center;
}

#mybot-frame > div#result_div .buttons-step {
    display: inline-block;
    background: #33ccff;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 300;
}

#mybot-frame > div#result_div .loading {
    background: #cce6ff;
    color: #000;
    border-radius: 3px;
    padding: 12px;
    font-size: 14px;
    font-weight: 400;
    width: 400px;
    float: left;
    box-shadow: 0 0px 1px 0 rgba(0,0,0,0.16), 0 0px 10px 0 rgba(0,0,0,0.12);
    border-top-left-radius: 0;
    margin-bottom: 10px;
    margin-top: 5px;
    width: 100%;
    position: relative;
}

#mybot-frame > div#result_div .loading:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 0px solid rgba(0, 0, 0, 0);
    border-bottom: 15px solid rgba(0, 0, 0, 0);
    border-right: 15px solid #cce6ff;
    left: -15px;
    margin-top: -12px;
}

#mybot-frame > div#result_div .loading>div {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    margin-right: 5px;
}

#mybot-frame > div#result_div .loading .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

#mybot-frame > div#result_div .loading .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

/* Chatbot Frame - Footer */
#mybot-frame > div.chat-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}
/* Spinner animation start */
@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }
    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}
/* Spinner animation end */


/* Chatbot Coupa */
#mybot-ballon > div.chat-icon {
    animation: shake 1.5s infinite;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mybot-ballon > div.chat-icon > img {
    border-radius: 50%;
    margin: 0;
    width: 70%;
}

#mybot-ballon > div.chat-icon p {
    background-color: #FFF;
    border-radius: 4px;
    color: #000;
    font-size: 11px;
    font-weight: 200;
    line-height: 12px;
    margin: -10px 0;
    padding: 3px;
    text-align: center;
    width: 100%;
}

#mybot-frame > div.chat-bot {
    padding: 0.6rem 1rem 0 1rem;
    font-size: .6rem;
    text-transform: uppercase;
    cursor: pointer;
    position: fixed;
    right: 0;
    top: 0;
}
