﻿
/*@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic&subset=latin,cyrillic);

@import url(https://zavoloklom.github.io/material-design-iconic-font/css/docs.md-iconic-font.min.css);*/

.notify-dot {
    position: absolute;
    top: 9px;
    left: 10px;
    width: 10px;
    height: 10px;
    background-color: #01ff1e;
    border-radius: 50%;
}

.fabs {
    bottom: 0;
    position: fixed;
    margin: 1em;
    right: 0;
    z-index: 998;
}

.fab {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    text-align: center;
    color: #f0f0f0;
    margin: 25px auto 0;
    box-shadow: 0 0 4px rgba(0, 0, 0, .14), 0 4px 8px rgba(0, 0, 0, .28);
    cursor: pointer;
    -webkit-transition: all .1s ease-out;
    transition: all .1s ease-out;
    position: relative;
    z-index: 998;
    overflow: hidden;
    background: #8F53A1;
}

    .fab > i {
        font-size: 2em;
        line-height: 55px;
        -webkit-transition: all .2s ease-out;
        -webkit-transition: all .2s ease-in-out;
        transition: all .2s ease-in-out;
    }

    .fab:not(:last-child) {
        width: 0;
        height: 0;
        margin: 20px auto 0;
        opacity: 0;
        visibility: hidden;
        line-height: 40px;
    }

        .fab:not(:last-child) > i {
            font-size: 1.4em;
            line-height: 40px;
        }

        .fab:not(:last-child).is-visible {
            width: 40px;
            height: 40px;
            margin: 15px auto 10px;
            opacity: 1;
            visibility: visible;
        }

    .fab:nth-last-child(1) {
        -webkit-transition-delay: 25ms;
        transition-delay: 25ms;
    }

    .fab:not(:last-child):nth-last-child(2) {
        -webkit-transition-delay: 20ms;
        transition-delay: 20ms;
    }

    .fab:not(:last-child):nth-last-child(3) {
        -webkit-transition-delay: 40ms;
        transition-delay: 40ms;
    }

    .fab:not(:last-child):nth-last-child(4) {
        -webkit-transition-delay: 60ms;
        transition-delay: 60ms;
    }

    .fab:not(:last-child):nth-last-child(5) {
        -webkit-transition-delay: 80ms;
        transition-delay: 80ms;
    }

    .fab:last-child:active,
    .fab:last-child:focus,
    .fab:last-child:hover {
        box-shadow: 0 0 6px rgba(0, 0, 0, .16), 0 6px 12px rgba(0, 0, 0, .32);
        color: #ffffff;
    }

/*Chatbox*/

.chat {
    position: fixed;
    right: 85px;
    bottom: 20px;
    width: 400px;
    font-size: 12px;
    line-height: 22px;
    font-family: 'Roboto';
    font-weight: 500;
    /*opacity: 0;*/
    box-shadow: 1px 1px 100px 2px rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    -webkit-transition: all .2s ease-out;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.chat-conversation-name-header {
    width: 100%;
    font-family: 'Roboto';
    font-weight: 500;
    color: #f3f3f3;
    /*height: 55px;*/
    /*    height: 58px;
*/ background: #8F53A1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /*padding: 15px 8px;*/
    padding: 15px 15px;
}

.chat-conversation-name-option {
    position: relative;
    font-size: 1rem;
    list-style: none;
    line-height: 1.5;
    height: 100%;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.chat_header {
    width: 100%;
    font-family: 'Roboto';
    font-weight: 500;
    color: #f3f3f3;
    background: #8F53A1;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 10px 15px;
}

.chat_header2 {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

#chat_header_3 {
    height: 55px;
}

.chat_header .span {
    float: right;
}

.chat_card {
    position: relative;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0,0,0,.08);
    padding: 1rem;
    margin-top: 8px;
    margin-bottom: 8px;
    border: 1px solid #d9dbe4;
    background-color: #fff;
    color: #92929e;
}

.is-hide {
    opacity: 0;
}

#chat_header_2 {
    height: 44px;
    text-align: right;
}

.chat_header a.back_btn {
    text-align: right;
    color: #f0f0f0;
    padding: 10px;
    vertical-align: -webkit-baseline-middle;
    cursor: pointer;
}

.chat_header a i {
    font-size: 18px;
}

.resend_form {
    padding: 60px 12px 14px;
    text-align: center;
}

.chat_conversion .resend_form button {
    margin: auto;
    border: 1px solid #8F53A1;
    position: relative;
    width: 50%;
    font-family: 'Roboto';
    font-size: 1rem;
    line-height: 20px;
    font-weight: 600;
    color: #fff;
    outline: none;
    background: #fff;
    display: inline-block;
    resize: none;
    padding: 12px 10px;
    border-radius: 8px;
    background: #8F53A1;
    cursor: pointer;
}

.chat_option {
    position: relative;
    font-size: 1rem;
    list-style: none;
    line-height: 1.5;
    height: 100%;
    width: 100%;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 400;
}

    .chat_option .chat_head {
        font-weight: 600;
    }

    .chat_option .sec_head {
        font-size: 0.9rem;
        font-weight: 300;
        line-height: 2;
    }

.chat_body {
    background: #fff;
    width: 100%;
    display: inline-block;
    text-align: center;
    overflow-y: auto;
}

#chat_form {
    /*height: 300px;*/
    height: 450px;
}

.chat_body li, p, a {
    -webkit-animation: zoomIn .5s cubic-bezier(.42, 0, .58, 1);
    animation: zoomIn .5s cubic-bezier(.42, 0, .58, 1);
}

.chat_body p {
    padding: 10px;
    color: #1E398D;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0 0 5px;
    font-weight: 600;
    text-align: center;
}

.chat_body a {
    width: 10%;
    text-align: center;
    border: none;
    box-shadow: none;
    line-height: 40px;
    font-size: 15px;
}

.chat_converse {
    position: relative;
    background: #f9f9f9;
    height: 300px;
    min-height: 0;
    font-size: 12px;
    line-height: 18px;
    width: 100%;
    padding: 16px 15px;
    overflow-y: auto;
}

.chat_converse2 {
    height: 100%;
    max-height: 800px
}


input {
    position: relative;
    width: 90%;
    font-family: 'Roboto';
    font-size: 1rem;
    line-height: 20px;
    font-weight: 500;
    color: #4b4b4b;
    -webkit-font-smoothing: antialiased;
    outline: none;
    background: #fff;
    display: inline-block;
    resize: none;
    padding: 12px 10px;
    border-radius: 8px;
}

/*.chat_form .message_form {
    margin: 10px 0  0;
    padding: 10px 12px 14px;
}*/

.chat_form .message_form input {
    text-align: right;
    margin: 5px 0 5px 0;
    border: 1px solid #e0e0e0;
    width: 100%;
}

.chat_form .message_form textarea {
    text-align: right;
    margin: 5px 0 5px 0;
    border: 1px solid #e0e0e0;
    position: relative;
    width: 100%;
    font-family: 'Roboto';
    font-size: 1rem;
    line-height: 20px;
    font-weight: 500;
    color: #4b4b4b;
    -webkit-font-smoothing: antialiased;
    outline: none;
    background: #fff;
    display: inline-block;
    resize: none;
    padding: 12px 10px;
    border-radius: 8px;
}

.chat_form .message_form button {
    margin: 5px 0 5px 0;
    border: 1px solid #8F53A1;
    position: relative;
    width: 100%;
    font-family: 'Roboto';
    font-size: 1rem;
    line-height: 20px;
    font-weight: 600;
    color: #fff;
    outline: none;
    background: #fff;
    display: inline-block;
    resize: none;
    padding: 12px 10px;
    border-radius: 8px;
    background: #8F53A1;
    cursor: pointer;
}

.message_form button {
    margin: 5px 0 5px 0;
    border: 1px solid #8F53A1;
    position: relative;
    width: 100%;
    font-family: 'Roboto';
    font-size: 1rem;
    line-height: 20px;
    font-weight: 600;
    color: #fff;
    outline: none;
    background: #fff;
    display: inline-block;
    resize: none;
    padding: 12px 10px;
    border-radius: 8px;
    background: #8F53A1;
    cursor: pointer;
}
/* header img */
.header_img {
    display: inline-block;
    height: 3rem;
    width: 3rem;
    font-size: 1rem;
    line-height: 2.75rem;
    text-align: center;
    background-color: #efefef;
    border: 2px solid #fff;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
}

    .header_img .avatar_img {
        height: 100%;
        width: 100%;
        -o-object-fit: contain;
        object-fit: contain !important;
        -o-object-position: center;
        object-position: center;
    }

/* search */

.chat_form .search_que input {
    margin: 2px 0 0 0;
    border: 1px solid #e0e0e0;
}

.chat_form .search_que i {
    background: #8F53A1;
    width: 45px;
    height: 45px;
    font-size: 18px;
    color: #fff;
    line-height: 2.6;
    font-weight: 600;
    text-align: center;
    margin: 2px -45px 0 0;
    position: absolute;
    border-radius: 8px 0 0 8px;
}

/*chat bottom*/

.chat_bottom {
    position: relative;
    background: #ffffff;
    font-size: 0.85rem;
    line-height: 1.6;
    width: 100%;
    padding: 16px 15px;
    text-align: center;
}

    .chat_bottom span b {
        font-weight: 600;
    }

    .chat_bottom img {
        margin: 0px 4px 0px 2px;
        display: inline-block;
        vertical-align: middle;
        width: 16px;
    }
/* new chats */
.avatar_img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}

.new_chat_list {
    padding-right: 0px;
    padding-left: 0px;
}

    .new_chat_list li {
        display: -ms-flexbox;
        display: flex;
        -ms-flex-align: center;
        align-items: center;
        overflow: hidden;
        padding: 0.5rem;
    }

    .new_chat_list > li :hover {
        border-radius: 5px;
    }

.new_chat_text {
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    vertical-align: baseline;
    word-break: break-word;
}

.chat_flex_1 {
    -ms-flex: 1;
    flex: 1;
}

.new_chat_text p {
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #92929e;
    padding: unset;
    line-height: unset;
    font-size: 1rem;
    margin: 0 8px 0 5px;
    text-align: right;
}

.text_green {
    color: #03a84e !important;
}

.mr_0 {
    margin: 0px !important;
}

.chat_state p {
    text-align: left !important;
}

h3.chat_h {
    font-size: 1rem;
    line-height: 24px;
    font-weight: 600;
    letter-spacing: 0px;
    color: #545454;
    text-align: right;
    margin: 0px;
    padding: 0.5rem;
}

.chat_timeago {
    font: 400 0.75rem Lato,sans-serif;
    color: #92929e;
}

.chat_state button {
    border-radius: 5px;
    padding: 0.25rem 0.8rem;
    vertical-align: middle;
    font-size: 1.3rem;
    border: 1px solid #8F53A1;
    line-height: 1.5rem;
    text-align: center;
    background-color: #8F53A1;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

/* chat conversation */
.chat_conversation {
    font-size: 0.9rem;
    line-height: 1.5;
}

#chat_header_4 {
    height: 150px;
}

.chat .chat_converse .chat_msg_item {
    position: relative;
    margin: 8px 0 15px 0;
    padding: 8px 10px;
    max-width: 60%;
    display: block;
    word-wrap: break-word;
    border-radius: 3px;
    -webkit-animation: zoomIn .5s cubic-bezier(.42, 0, .58, 1);
    animation: zoomIn .5s cubic-bezier(.42, 0, .58, 1);
    clear: both;
    z-index: 999;
}

    .chat .chat_converse .chat_msg_item .chat_avatar {
        position: absolute;
        top: 0;
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_admin .chat_avatar {
        right: -52px;
        background: rgba(0, 0, 0, 0.03);
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_user .chat_avatar {
        left: -52px;
        background: rgba(0, 0, 0, 0.6);
    }

    .chat .chat_converse .chat_msg_item .chat_avatar, .chat_avatar img {
        width: 40px;
        height: 40px;
        text-align: center;
        border-radius: 50%;
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_admin {
        margin-right: 60px;
        float: right;
        background: rgba(0, 0, 0, 0.03);
        color: #666;
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_user {
        margin-left: 20px;
        float: left;
        background: #42a5f5;
        color: #eceff1;
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_admin:before {
        content: '';
        position: absolute;
        top: 15px;
        right: -12px;
        z-index: 998;
        border: 6px solid transparent;
        border-right-color: rgba(255, 255, 255, .4);
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_admin:before {
        content: '';
        position: absolute;
        top: 15px;
        right: -12px;
        z-index: 998;
        border: 6px solid transparent;
        border-right-color: rgba(255, 255, 255, .4);
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_admin .chat_avatar {
        right: -52px;
        background: rgba(0, 0, 0, 0.03);
    }

    .chat .chat_converse .chat_msg_item .chat_avatar {
        position: absolute;
        top: 0;
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_admin .chat_avatar {
        right: -52px;
        background: rgba(0, 0, 0, 0.03);
    }

    .chat .chat_converse .chat_msg_item.chat_msg_item_user .chat_avatar {
        left: -52px;
        background: rgba(0, 0, 0, 0.6);
    }

    .chat .chat_converse .chat_msg_item .chat_avatar, .chat_avatar img {
        width: 40px;
        height: 40px;
        text-align: center;
        border-radius: 50%;
    }

.status {
    margin: 45px 0 0 -50px;
    float: left;
    font-size: 11px;
    opacity: 0.3;
}

.status2 {
    margin: -10px 0 0 20px;
    float: left;
    display: block;
    font-size: 11px;
    opacity: 0.3;
}

.fab_field {
    width: 100%;
    display: inline-block;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 5px 15px;
}

.fab_field2 {
    bottom: 0px;
    position: absolute;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    z-index: 999;
}

.fab_field a {
    display: inline-block;
    text-align: center;
}

#fab_camera {
    float: right;
    background: rgba(0, 0, 0, 0);
}

#fab_send {
    float: left;
    /*    background: rgba(0, 0, 0, 0);
*/ margin: 5px auto 0px;
}

.fab_field .fab {
    width: 35px;
    height: 35px;
    box-shadow: none;
    margin: 5px;
}

    .fab_field .fab > i {
        font-size: 1.6em;
        line-height: 35px;
        color: #bbb;
        transform: rotate(-180deg);
    }

        .fab_field .fab > i:hover {
            color: #42a5f5;
        }

.chat_field {
    position: relative;
    margin: 5px 0 5px 0;
    width: 50%;
    font-family: 'Roboto';
    font-size: 12px;
    line-height: 30px;
    font-weight: 500;
    color: #4b4b4b;
    -webkit-font-smoothing: antialiased;
    font-smoothing: antialiased;
    border: none;
    outline: none;
    display: inline-block;
}

    .chat_field.chat_message {
        height: 30px;
        resize: none;
        font-size: 13px;
        font-weight: 400;
    }
/*Chatbox scrollbar*/
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    margin: 2px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

/*Element state*/
.is-active {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    -webkit-transition: all 1s ease-in-out;
    transition: all 1s ease-in-out;
}

.is-float {
    box-shadow: 0 0 6px rgba(0, 0, 0, .16), 0 6px 12px rgba(0, 0, 0, .32);
}

.is-loading {
    display: block;
    -webkit-animation: load 1s cubic-bezier(0, .99, 1, 0.6) infinite;
    animation: load 1s cubic-bezier(0, .99, 1, 0.6) infinite;
}
/*Animation*/

/*new style*/

.chat_body {
    text-align: right;
}

.chat_body p {
    text-align: center;
}

.notice {
    background: #FFF4E5;
    color: #5C3B00;
    border-radius: 3px;
    padding: 16px 18px;
    line-height: 1.8;
    margin-bottom: 18px;
    border: 1px solid #f3e2a2;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.notice .icon {
    font-size: 20px;
    margin-top: 2px;
    color: #FF9800;
}

.field {
    margin-bottom: 20px;
}

.label {
    display: block;
    font-weight: bold;
}


.chat_form .message_form input.phone-input {
    unicode-bidi: plaintext;
    text-align: left;
}

.radios {
    display: flex;
    gap: 16px;
    align-items: center
}

.radios label {
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.iti-mobile .iti--container {
    text-align-last: start;
}

.iti__country-list {
    text-align: left;
    left: 0;
    unicode-bidi: plaintext;
    min-width: 240px;
    max-width: 200px;
}

.iti__selected-flag {
    gap: 4px;
}

.iti__country, .iti__country.iti__highlight {
    text-align: right;
}

.iti__flag-box, .iti__country-name {
    margin-right: unset;
    margin-left: 6px;
}

.iti__country-name, .iti__dial-code {
    unicode-bidi: plaintext;
}

@-webkit-keyframes zoomIn {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0.0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0.0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 1;
    }
}

@-webkit-keyframes load {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0.0;
    }

    50% {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes load {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
        opacity: 0.0;
    }

    50% {
        -webkit-transform: scale(1.5);
        transform: scale(1.5);
        opacity: 1;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        opacity: 0;
    }
}
/* SMARTPHONES */

@media only screen and (min-width: 300px) {
    .chat {
        width: 250px;
    }
}
/* LANDSCAPE */

@media only screen and (min-width: 480px) {
    .chat {
        width: 300px;
    }

    .chat_field {
        width: 65%;
    }
}
/* TABLETS */

@media only screen and (min-width: 768px) {
    .chat {
        width: 300px;
    }

    .chat_field {
        width: 65%;
    }
}
/* TABLET LANDSCAPE / DESKTOP */

@media only screen and (min-width: 1024px) {
    .chat {
        width: 300px;
    }

    .chat_field {
        width: 65%;
    }
}

@media only screen and (max-width: 480px) {
    .chat_header {
        height: 80px;
    }

    #chat_header_2 {
        height: 24px;
    }
}

::-webkit-input-placeholder { /* Chrome */
    color: #bbb;
}

:-ms-input-placeholder { /* IE 10+ */
    color: #bbb;
}

::-moz-placeholder { /* Firefox 19+ */
    color: #bbb;
}

:-moz-placeholder { /* Firefox 4 - 18 */
    color: #bbb;
}
