
#center-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#chat-circle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: url('/chat/chat.png') #ff9a83;
    background-position: center center;
    background-size: 60% 60%;
    background-repeat: no-repeat;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: white;
    padding: 28px;
    cursor: pointer;
    box-shadow: 0px 3px 16px #ddd;
}

.btn#my-btn {
    background: white;
    padding-top: 13px;
    padding-bottom: 12px;
    border-radius: 45px;
    padding-right: 40px;
    padding-left: 40px;
    color: #5865C3;
}

#chat-overlay {
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: none;
}

.chat-box {
    direction:rtl;
    display: none;
    background: #efefef;
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 350px;
    max-width: 85vw;
    max-height: 100vh;
    border-radius: 5px;
    box-shadow: 0px 2px 15px 5px #cccccc59;
    z-index: 9999;
}

.chat-box-toggle {
    float: left;
    margin-left: 10px;
    margin-top: -10px;
    cursor: pointer;
}

.chat-box-header {
    background: #ff9a83;
    height: 70px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: #34344a;
    padding-right: 25px;
    text-align: right;
    font-size: 14px;
    padding-top: 17px;
    line-height: 30px;
}

    .chat-box-header span i {
        font-size: 20px;
        line-height: 20px;
    }

.chat-box-body {
    position: relative;
    height: 370px;
    height: auto;
    border: 1px solid #f6f6ee;
    overflow: hidden;
}

#chat-input {
    background: #f4f7f9;
    width: 100%;
    position: relative;
    height: 47px;
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    padding-left: 15px;
    border: none;
    resize: none;
    outline: none;
    /* border: 1px solid #ccc; */
    color: #888;
    border-top: none;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow: hidden;
}

.chat-input > .formChat {
    margin-bottom: 0;
}

#chat-input::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #ccc;
}

#chat-input::-moz-placeholder {
    /* Firefox 19+ */
    color: #ccc;
}

#chat-input:-ms-input-placeholder {
    /* IE 10+ */
    color: #ccc;
}

#chat-input:-moz-placeholder {
    /* Firefox 18- */
    color: #ccc;
}

.chat-submit {
    position: absolute;
    bottom: 4px;
    left: 2px;
    background: transparent;
    box-shadow: none;
    border: none;
    color: #ff9a83;
    width: 35px;
    height: 35px;
}

    .chat-submit i {
        font-size: 18px;
        transform: rotateY(180deg);
        color: #ff9a83;
    }

.chat-logs {
    padding: 15px;
    height: 370px;
    overflow-y: scroll;
}

    .chat-logs::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        background-color: #F5F5F5;
    }

    .chat-logs::-webkit-scrollbar {
        width: 5px;
        background-color: #F5F5F5;
    }

    .chat-logs::-webkit-scrollbar-thumb {
        background-color: #265995;
    }

@media only screen and (max-width: 500px) {
    .chat-logs {
        height: 40vh;
    }
}

.chat-msg.user > .msg-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    float: left;
    width: 15%;
}

.chat-msg.self > .msg-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    float: right;
    width: 15%;
}

.cm-msg-text {
    background: white;
    padding: 10px 15px 10px 15px;
    color: #666;
    max-width: 75%;
    float: left;
    margin-left: 10px;
    position: relative;
    margin-bottom: 5px;
    border-radius: 30px;
}

    .cm-msg-text:before {
        content: " ";
        position: absolute;
        z-index: 2;
        bottom: 0;
        left: -4px;
        height: 18px;
        width: 16px;
        background: #f3f3f3;
        border-bottom-right-radius: 30px;
        -webkit-transform: translate(0, -2px);
    }

    .cm-msg-text:after {
        content: " ";
        position: absolute;
        z-index: 3;
        bottom: -2px;
        left: 4px;
        width: 16px;
        height: 20px;
        background: #265995;
        border-bottom-right-radius: 10px;
        -webkit-transform: translate(-20px, -2px);
    }
.chat-msg.self > .cm-msg-text:before {
    z-index: 3;
    bottom: 0;
    right: -4px;
    height: 18px;
    left: auto;
    border-radius: 0;
    border-bottom-left-radius: 30px;
    -webkit-transform: translate(0, -2px);
    box-shadow: 4px 6px 7px -5px rgb(0 0 0 / 30%);
    background: #599FCE;
    width: 16px;
}

.chat-msg.self > .cm-msg-text:after {
    z-index: 4;
    bottom: -2px;
    right: -36px;
    width: 16px;
    height: 20px;
    left: auto;
    background: #f3f3f3;
    border-radius: 0;
    border-bottom-left-radius: 10px;
    -webkit-transform: translate(-20px, -2px);
    box-shadow: inset 2px 0 3px -3px rgb(0 0 0 / 45%);
}

.chat-msg.user > .cm-msg-text:before {
    content: " ";
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: -4px;
    height: 18px;
    width: 16px;
    background: #fff;
    border-bottom-right-radius: 30px;
    -webkit-transform: translate(0, -2px);
}

.chat-msg.user > .cm-msg-text:after {
    content: " ";
    position: absolute;
    z-index: 3;
    bottom: -2px;
    left: 4px;
    width: 16px;
    height: 20px;
    background: #efefef;
    border-bottom-right-radius: 10px;
    -webkit-transform: translate(-20px, -2px);
}

.chat-msg {
    clear: both;
    margin-top: 5px !important;
}

    .chat-msg.self > .cm-msg-text {
        float: right;
        margin-right: 10px;
        background: #599FCE;
        color: white;
    }

.cm-msg-button > ul > li {
    list-style: none;
    float: left;
    width: 50%;
}

.cm-msg-button {
    clear: both;
    margin-bottom: 70px;
}

.tooltip {
    position: relative;
    display: inline-block;
    /* border-bottom: 1px dotted black; */
    opacity: 1;
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 120px;
        background-color: #265995;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
        bottom: 110%;
        left: 50%;
        margin-left: -60px;
        font-family: IRANSansFaNum;
    }

        .tooltip .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #265995 transparent transparent transparent;
        }

    .tooltip:hover .tooltiptext {
        visibility: visible;
    }

button:focus {
    outline: 1px none;
    /* outline: 5px auto -webkit-focus-ring-color; */
}

.chat-input .formChat {
    display: flex;
}

    .chat-input .formChat button {
        border: none;
        color: #888;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center
    }

        .chat-input .formChat button:hover {
            color: #ff9a83;
        }

    .chat-input .formChat .btn-holder {
        display: flex;
    }


/* .chat-input form .btn-holder input[type="file"] {
    width: 50px;
} */

.btn-simple {
    padding: 5px 4px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fileinput-new {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn.btn-simple {
    background-color: transparent;
    color: #999;
    box-shadow: none;
}

.btn-file {
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

    .btn-file > input {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        font-size: 23px;
        cursor: pointer;
        filter: alpha(opacity=0);
        opacity: 0;
        direction: ltr;
        cursor: pointer;
    }

.chat-msg p {
    display: block;
    clear: both;
    font-size: 10px;
    background-color: #ff9a83a8;
    width: 80px;
    text-align: right;
    padding: 5px;
    border-radius: 20px;
    /* margin-right: 50px; */
}

.chat-msg.user p {
    float: left;
    /* margin-left: 50px; */
}
#chat-circle.btn .badge {
    position: relative;
    top: -40px;
    right: -30px;
    font-family: 'IRANSansFaNum';
}

#chat-circle .badge-primary {
    color: #fff;
    background-color: #007bff;
}

#chat-circle .badge {
    display: inline-block;
    padding: 8px;
    font-size: 19px;
    font-size: 95%;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}
.wel {
    width: 230px;
    height: 220px;
    background-color: #449397;
    padding: 15px;
    border-radius: 15px;
    text-align: right;
    color: #fff;
    margin: 20px auto;
    font-size: 15px;
    line-height: 25px;
}

.btn-holder {
    position: relative;
}

.emoji{
    padding-right:10px !important;
    font-size:15pt !important;
}
.emoji-box {
    width: 160px;
    background-color: #fff;
    height: auto;
    position: absolute;
    top: -330px;
    left: 15px;
    box-shadow: 0px 3px 16px #ddd;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    z-index: 999;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

    .emoji-box span {
        cursor: pointer;
        width:10px !important;
        margin:4px;
    }

.close-box {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    color: #777;
    text-align: left;
    text-indent: 5px;
    clear: both;
    width: 100%;
}

    .close-box i {
        cursor: pointer;
    }