/* FloatingBox */

.floating-btn {
    width: 50px;
    height: 50px;
    background: #0785f2;
    text-decoration: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 30px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 20px;
    bottom: 20px;
    transition: background-color 0.25s ease-out, box-shadow 0.25s ease-out;
    border: none;
    cursor: pointer;
    outline: none;
}

.floating-btn:hover {
    box-shadow: 0 4px 5px -2px rgba(0,0,0,.2), 0 7px 10px 1px rgba(0,0,0,.14), 0 2px 16px 1px rgba(0,0,0,.12);
}

.floating-btn.clicked {
    background-color: #F98012;
}

.floating-btn i {
    transition: transform 0.25s cubic-bezier(.4, 0, .2, 1);
}

.floating-btn.clicked i {
/*      transform: rotate(315deg);*/
}

#legal-text {
    margin: 16px auto;
    text-align: center;
    color: #ccc;
    font-size: 10px;
    max-width: 25em;
    line-height: 1.0;
    letter-spacing: .2px;
}

.icon {
    margin-right: 8px;
    opacity: 0.5;
    font-size: 21px;
}

.form-box {
    margin: 16px auto;
    font-size: 16px;
    border-radius: 9px;
    position: fixed;
    opacity: 0;
    overflow: hidden;
    bottom: 0;
    right: 10px;
    transform: translate(-50%,-50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
    background-color: #f5f5f7;
    transition: all .25s ease-in-out;
}

.form-box.open {
    transform: translate(10px, -70px);
    height: 500px;
    width: 366px;
    opacity: 1;
}

.body-box {
    overflow-x: hidden;
    height: 367px;
}

.header-box {
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    background: #4169cc;
    padding: 23px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.form-box input {
    padding: 10px 0;
    margin-bottom: 30px;
}

.form-box textarea {
    height: 80px;
    padding: 10px 0;
    margin-bottom: 20px;
}

.form-box input, .form-box textarea {
    width: 100%;
    box-shadow: none;
    outline: none;
    box-sizing: border-box;
    border: none;
    cursor: text;
    border-bottom: 1px solid #dcdcdc;
    transition: .3s width ease-in-out;
    margin: none;
}

.form-box input[type="submit"] {
    border-bottom: none;
    cursor: pointer;
    background: #4169cc;
    color: #fff;
    margin-bottom: 0;
}

.form-box form div {
    position: relative;
}

.active {
    opacity: 0.7 !important;
}

.form-box form div .inputLabel {
    position: absolute;
    left: -1px;
    top: 8px;
    pointer-events: none;
    color: #999;
    transition: .2s ease-in-out;
    font-size: 14px;
}

.form-box input:focus ~ .inputLabel,
.form-box textarea:focus ~ .inputLabel,
.form-box input:valid ~ .inputLabel,
.form-box textarea:valid ~ .inputLabel {
    top: -12px;
    left: 0;
    color: #4169cc;
    font-size: 10px;
    font-weight: bold;
    transition: .2s ease-in-out;
}

.form-box input:focus,
.form-box textarea:focus,
.form-box textarea:valid,
.form-box input:valid {
    width: 100%;
    border-bottom: 2px solid rgb(76, 118, 224);
}

.footer-box {
    margin-bottom: 0;
    min-height: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    background: #fff;
    margin-bottom: 0px;
    border-radius: 0 0 6px 6px;
}

/* FlowChat */

ul.chat-window {
    width: 100%;
    height: 100%;
    overflow: scroll;
    overflow-x: hidden;
    margin-top: 0;
    padding: 20px;
    list-style: none;
    margin: 0;
    box-sizing: border-box;
}

ul.chat-window>li .text {
    box-sizing: border-box;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 10px 15px;
    line-height: 20px;
}

ul.chat-window>li.bot .text {
    background-color: #01bad8;
    color: #fff;
    float: left;
}

ul.chat-window>li {
    clear: both;
    max-width: 80%;
    box-sizing: border-box;
    white-space: pre-wrap;
}

ul.chat-window>li.user {
    float: right;
}

ul.chat-window>li.bot {
    float: left;
}

ul.chat-window>li.user .text {
    background-color: #ddd;
}

ul.chat-window>li.options {
    margin-top: 10px;
    list-style: none;
    max-width: 100%;
    width: 100%;
    float: left;
    text-align: right;
}

ul.chat-window>li.options>ul {
    margin-top: 0;
    padding: 0;
    list-style: none;
    margin-top: 10px;
}

ul.chat-window>li.options>ul>li {
    border-radius: 10px;
    padding: 5px 10px;
    border: 1px solid #01bad8;
    display: inline-block;
    cursor: pointer;
    margin-left: 10px;
    margin-bottom: 10px;
}

.typing-indicator {
    background-color: #E6E7ED;
    will-change: transform;
    width: auto;
    border-radius: 50px;
    padding: 10px;
    display: table;
    margin: 0;
    margin-left: 10px;
    position: relative;
    -webkit-animation: 2s bulge infinite ease-out;
            animation: 2s bulge infinite ease-out;
}
.typing-indicator::before, .typing-indicator::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -2px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #E6E7ED;
}
.typing-indicator::after {
    height: 10px;
    width: 10px;
    left: -10px;
    bottom: -10px;
}
.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}
.typing-indicator span:nth-of-type(1) {
    -webkit-animation: 1s blink infinite 0.3333s;
            animation: 1s blink infinite 0.3333s;
}
.typing-indicator span:nth-of-type(2) {
    -webkit-animation: 1s blink infinite 0.6666s;
            animation: 1s blink infinite 0.6666s;
}
.typing-indicator span:nth-of-type(3) {
    -webkit-animation: 1s blink infinite 0.9999s;
            animation: 1s blink infinite 0.9999s;
}

@-webkit-keyframes blink {
    50% {
        opacity: 1;
    }
}

@keyframes blink {
  50% {
    opacity: 1;
  }
}
@-webkit-keyframes bulge {
    50% {
        -webkit-transform: scale(1.05);
                transform: scale(1.05);
    }
}
@keyframes bulge {
    50% {
        -webkit-transform: scale(1.05);
                transform: scale(1.05);
    }
}