﻿

.chat-p2c {
    position: fixed;
    right: 14px;
    bottom: -33px;
    width: 880px;
    z-index: 9999999; 
}

.lang-ltr .chat-p2c {
    right: auto;
    left: 14px;
    direction:ltr !important;
    text-align:left
}


.chat-p2c a {
    display: inline-block;
    text-align: center;
    max-width: 100%;
}

a.chatIcon {
    position: absolute;
    z-index: 9999;
    font-size: 10px;
    background-color: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    text-align: center;
    line-height: 36px;
    right: -22px;
    bottom: 0px;
    /* box-shadow: 0 0 2px black; */
    border: 2px solid #a8acb0;
    color: #35568b;
}

.lang-ltr a.chatIcon {
    right: auto;
    left: -22px;
}

a.chatIcon i {
    font-size: 26px;
}



.chat-p2c .chatP2C-contacts ul {
    list-style-type: none;
    padding: 0;
}

.chatP2C-holder {
    width: 100%;
    height: 450px;
    min-height: 300px;
    max-height: 720px;
    background: #E6EAEA;
    margin-bottom: 44px;
    /* direction: ltr; */
    border: 0;
    border-radius: 11px;
    overflow: hidden;
    box-shadow: rgb(0 0 0 / 51%) 0 0 3px 1px;
}



    .chatP2C-holder .chatP2C-sidepanel {
        float: left;
        /* min-width: 280px; */
        /* max-width: 340px; */
        width: 299px;
        height: 100%;
        background: #045e69;
        color: #f5f5f5;
        overflow: hidden;
        position: relative;
    }
  .lang-ltr .chatP2C-holder 
  .chatP2C-sidepanel {
      float:right
  }

@media screen and (max-width: 735px) {

    .chat-p2c{
        width: auto;
        min-width: 95%;
    }

    .chatP2C-holder .chatP2C-sidepanel {
        width: 58px;
        min-width: 58px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile {
    width: 75%;
    margin: 7px auto;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile {
        width: 100%;
        margin: 0 auto;
        padding: 5px 0 0 0;
        background: #32465a;
    }

    .tab-content > .active {
        padding: 0 !important;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile.expanded .wrap {
    height: 210px;
    line-height: initial;
}

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile.expanded .wrap p {
        margin-top: 20px;
    }

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile.expanded .wrap i.expand-button {
        -moz-transform: scaleY(-1);
        -o-transform: scaleY(-1);
        -webkit-transform: scaleY(-1);
        transform: scaleY(-1);
        filter: FlipH;
        -ms-filter: "FlipH";
    }

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap {
    height: 60px;
    line-height: 60px;
    overflow: hidden;
    -moz-transition: 0.3s height ease;
    -o-transition: 0.3s height ease;
    -webkit-transition: 0.3s height ease;
    transition: 0.3s height ease;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap {
        height: 55px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap img {
    width: 50px;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid #e74c3c;
    height: 50px;
    float: left;
    cursor: pointer;
    object-fit: cover;
    -moz-transition: 0.3s border ease;
    -o-transition: 0.3s border ease;
    -webkit-transition: 0.3s border ease;
    transition: 0.3s border ease;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap img {
        width: 40px;
        margin-left: 4px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap img.online {
    border: 2px solid #2ecc71;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap img.away {
    border: 2px solid #f1c40f;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap img.busy {
    border: 2px solid #e74c3c;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap img.offline {
    border: 2px solid #95a5a6;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap p {
    float: left;
    margin-left: 15px;
    margin-top: 11px;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap p {
        display: none;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap i.expand-button {
    float: right;
    margin-top: 23px;
    font-size: 0.8em;
    cursor: pointer;
    color: #435f7a;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap i.expand-button {
        display: none;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    width: 150px;
    margin: 70px 0 0 0;
    border-radius: 6px;
    z-index: 99;
    line-height: initial;
    background: #435f7a;
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options {
        width: 58px;
        margin-top: 57px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options.active {
    opacity: 1;
    visibility: visible;
    margin: 75px 0 0 0;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options.active {
        margin-top: 62px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #435f7a;
    margin: -8px 0 0 24px;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options:before {
        margin-left: 23px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul {
    overflow: hidden;
    border-radius: 6px;
}

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li {
        padding: 15px 0 30px 18px;
        display: block;
        cursor: pointer;
    }

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li {
        padding: 15px 0 35px 22px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li:hover {
    background: #496886;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li span.status-circle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 5px 0 0 0;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li span.status-circle {
        width: 14px;
        height: 14px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li span.status-circle:before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -3px 0 0 -3px;
    background: transparent;
    border-radius: 50%;
    z-index: 0;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li span.status-circle:before {
        height: 18px;
        width: 18px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li p {
    padding-left: 12px;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li p {
        display: none;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li#status-online span.status-circle {
    background: #2ecc71;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li#status-online.active span.status-circle:before {
    border: 1px solid #2ecc71;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li#status-away span.status-circle {
    background: #f1c40f;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li#status-away.active span.status-circle:before {
    border: 1px solid #f1c40f;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li#status-busy span.status-circle {
    background: #e74c3c;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li#status-busy.active span.status-circle:before {
    border: 1px solid #e74c3c;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li#status-offline span.status-circle {
    background: #95a5a6;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #status-options ul li#status-offline.active span.status-circle:before {
    border: 1px solid #95a5a6;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #expanded {
    padding: 100px 0 0 0;
    display: block;
    line-height: initial !important;
}

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #expanded label {
        float: left;
        clear: both;
        margin: 0 8px 5px 0;
        padding: 5px 0;
    }

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #expanded input {
        border: none;
        margin-bottom: 6px;
        background: #32465a;
        border-radius: 3px;
        color: #f5f5f5;
        padding: 7px;
        width: calc(100% - 43px);
    }

        .chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap #expanded input:focus {
            outline: none;
            background: #435f7a;
        }

.chatP2C-holder .chatP2C-sidepanel #search {
    border-top: 1px solid #32465a;
    border-bottom: 1px solid #32465a;
    font-weight: 300;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel #search {
        display: none;
    }
}

.chatP2C-holder .chatP2C-sidepanel #search label {
    position: absolute;
    margin: 10px 0 0 20px;
}

.chatP2C-holder .chatP2C-sidepanel #search input {
    padding: 10px 0 10px 46px;
    width: calc(100% - 25px);
    border: none;
    background: #32465a;
    color: #f5f5f5;
    width: 100%;
    text-align: center;
    font-size: 12px;
}


    .chatP2C-holder .chatP2C-sidepanel #search input:focus {
        outline: none;
        background: #435f7a;
    }

    .chatP2C-holder .chatP2C-sidepanel #search input::-webkit-input-placeholder {
        color: #f5f5f5;
    }

    .chatP2C-holder .chatP2C-sidepanel #search input::-moz-placeholder {
        color: #f5f5f5;
    }

    .chatP2C-holder .chatP2C-sidepanel #search input:-ms-input-placeholder {
        color: #f5f5f5;
    }

    .chatP2C-holder .chatP2C-sidepanel #search input:-moz-placeholder {
        color: #f5f5f5;
    }

    .chatP2C-holder .chatP2C-sidepanel #search input:focus::-webkit-input-placeholder {
        color: #435f7a;
    }

    .chatP2C-holder .chatP2C-sidepanel #search input:focus::-moz-placeholder {
        color: #435f7a;
    }

    .chatP2C-holder .chatP2C-sidepanel #search input:focus:-ms-input-placeholder {
        color: #435f7a;
    }

    .chatP2C-holder .chatP2C-sidepanel #search input:focus:-moz-placeholder {
        color: #435f7a;
    }

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts {
    height: 277px;
    overflow-y: scroll;
    overflow-x: hidden;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts {
        height: calc(100% - 149px);
        overflow-y: scroll;
        overflow-x: hidden;
    }

        .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts::-webkit-scrollbar {
            display: none;
        }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts.expanded {
    height: calc(100% - 334px);
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts::-webkit-scrollbar {
    width: 8px;
    background: #2c3e50;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts::-webkit-scrollbar-thumb {
    background-color: #243140;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact {
    position: relative;
    padding: 10px 0 15px 0;
    font-size: 0.9em;
    cursor: pointer;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact {
        padding: 6px 0 46px 8px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact:hover {
    background: #32465a;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact.active {
    background: #036e7a;
    border-right: 5px solid #045e69;
}

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact.active span.contact-status {
        border: 2px solid #32465a !important;
    }

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap {
    width: 88%;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap {
        width: 100%;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap span {
    position: absolute;
    left: 0;
    margin: -2px 0 0 -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #2c3e50;
    background: #95a5a6;
}

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap span.online {
        background: #2ecc71;
    }

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap span.away {
        background: #f1c40f;
    }

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap span.busy {
        background: #e74c3c;
    }

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap img {
    width: 40px;
    border-radius: 50%;
    /* float: left; */
    /* margin-right: 10px; */
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap img {
        margin-right: 0px;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .meta {
    padding: 5px 0 0 0;
    max-width: 176px;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .meta {
        display: none;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .meta .name {
    font-weight: 600;
    margin-bottom: 0;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .meta .preview {
    margin: 5px 0 0 0;
    padding: 0 0 1px;
    font-weight: 400;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-transition: 1s all ease;
    -o-transition: 1s all ease;
    -webkit-transition: 1s all ease;
    transition: 1s all ease;
}

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .meta .preview span {
        position: initial;
        border-radius: initial;
        background: none;
        border: none;
        padding: 0 2px 0 0;
        margin: 0 0 0 1px;
        opacity: .5;
    }

.chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar {
    position: absolute;
    width: 100%;
    bottom: 0;
}

    .chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a {
        float: left;
        border: none;
        width: 50%;
        padding: 10px 0;
        background: #045e69;
        color: #f5f5f5;
        cursor: pointer;
        font-size: 0.85em;
    }

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a {
        float: none;
        width: 100%;
        padding: 15px 0;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a:focus {
    outline: none;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a:nth-child(1) {
    border-right: 1px solid #2c3e50;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a:nth-child(1) {
        border-right: none;
        border-bottom: 1px solid #2c3e50;
    }
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a:hover {
    background: #148194;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a i {
    margin-right: 3px;
    font-size: 1em;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a i {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .chatP2C-sidepanel .chatP2C-bottom-bar a span {
        display: none;
    }
}

.chatP2C-holder .content {
    float: right;
    width: 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .content {
        width: calc(100% - 58px);
        /* min-width: 300px !important; */
    }
}

@media screen and (min-width: 900px) {
    .chatP2C-holder .content {
        width: calc(100% - 300px);
    }
}

.chatP2C-holder .content .contact-profile {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #f5f5f5;
}

.chat-p2c.contact-profile a {
    padding: 0 9px;
}

.chatP2C-holder .content .contact-profile img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin: 9px 12px 0 9px;
}

.chatP2C-holder .content .contact-profile p {
    /* float: left; */
}

.chatP2C-holder .content .contact-profile .social-media {
    float: right;
}

    .chatP2C-holder .content .contact-profile .social-media i {
        margin-left: 14px;
        cursor: pointer;
    }

        .chatP2C-holder .content .contact-profile .social-media i:nth-last-child(1) {
            margin-right: 20px;
        }

        .chatP2C-holder .content .contact-profile .social-media i:hover {
            color: #435f7a;
        }

.chatP2C-holder .content .messages {
    background-image: url(../images/chat/chat-bg.jpg);
    height: auto;
    min-height: calc(100% - 93px);
    max-height: calc(100% - 93px);
    overflow-y: scroll;
    overflow-x: hidden;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .content .messages {
        max-height: calc(100% - 105px);
    }
}

.chatP2C-holder .content .messages::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.chatP2C-holder .content .messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

.chatP2C-holder .content .messages ul li {
    display: inline-block;
    clear: both;
    float: left;
    margin: 15px 15px 5px 15px;
    width: calc(100% - 25px);
    font-size: 0.9em;
    position: relative;
}

    .chatP2C-holder .content .messages ul li:nth-last-child(1) {
        margin-bottom: 20px;
    }

    .chatP2C-holder .content .messages ul li.sent img {
        margin: 6px 8px 0 0;
    }

    .chatP2C-holder .content .messages ul li.sent p {
    }

    .chatP2C-holder .content .messages ul li.replies img,
    .chatP2C-holder .content .messages ul li.sent img {
        float: right;
        margin: 6px 0 0 8px;
    }

    .chatP2C-holder .content .messages ul li.replies p {
        background: #f5f5f5;
        float: right;
        padding: 7px 20px;
    }

    .chatP2C-holder .content .messages ul li img {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
        float: left;
    }

    .chatP2C-holder .content .messages ul li p {
        display: inline-block;
        padding: 10px 15px;
        border-radius: 20px;
        max-width: 205px;
        line-height: 130%;
    }

    .chatP2C-holder .content .messages ul li img.seen-img {
        width: 12px;
        position: absolute;
        left: 0;
        bottom: 2px
    }

.lang-ltr .chatP2C-holder .content .messages ul li img.seen-img {
    left: auto;
    right: 0;
}

@media screen and (min-width: 735px) {
    .chatP2C-holder .content .messages ul li p {
        max-width: 300px;
    }
}

.chatP2C-holder .content .message-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 99;
}

    .chatP2C-holder .content .message-input .wrap {
        display: flex;
    }

        .chatP2C-holder .content .message-input .wrap input {
            float: left;
            border: none;
            width: calc(100% - 100px);
            padding: 11px 32px 10px 8px;
            font-size: 12px;
            color: #32465a;
            height: 46px;
        }
       .chatP2C-holder .content .message-input .wrap input {
         direction:ltr !important 
        }


@media screen and (max-width: 735px) {
    .chatP2C-holder .content .message-input .wrap input {
        padding: 15px 32px 16px 8px;
    }

    .chatP2C-holder .content .message-input .wrap input {
        height: 53px;
    }
}

.chatP2C-holder .content .message-input .wrap input:focus {
    outline: none;
}

.chatP2C-holder .content .message-input .wrap .attachment {
    position: absolute;
    right: 60px;
    z-index: 4;
    margin-top: 10px;
    font-size: 1.1em;
    color: #435f7a;
    opacity: .5;
    cursor: pointer;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .content .message-input .wrap .attachment {
        margin-top: 17px;
        right: 65px;
    }
}

.chatP2C-holder .content .message-input .wrap .attachment:hover {
    opacity: 1;
}

.chatP2C-holder .content .message-input .wrap a, .chatP2C-holder .content .message-input .wrap .submit {
    float: right;
    border: none;
    width: 50px;
    padding: 7px;
    cursor: pointer;
    background-color: #fff !important;
    color: #32465a;
    font-size: 20px;
}

@media screen and (max-width: 735px) {
    .chatP2C-holder .content .message-input .wrap a, .chatP2C-holder .content .message-input .wrap .submit {
        padding: 16px 0;
    }
}

@media screen and (max-width: 440px) {
    .chat-p2c {
        position: fixed;
        z-index: 99999;
        right: 0px;
        bottom: 10px;
        width: 100%
    }

    a.chatIcon {
        right: 58px !important;
        bottom: 9px !important;
    }
}

a.attach {
}

.chatP2C-holder .content .message-input .wrap a:hover, .chatP2C-holder .content .message-input .wrap .submit:hover {
    color: #5e5d5d;
    background-color: #fafafa;
}

.chatP2C-holder .content .message-input .wrap a:focus,
.chatP2C-holder .content .message-input .wrap .submit:focus {
    outline: none;
}

.chatP2C-holder .content .messages ul li.replies p, .chatP2C-holder .content .messages ul li.sent p {
    position: relative;
    min-width: 160px;
}

    .chatP2C-holder .content .messages ul li.replies p small,
    .chatP2C-holder .content .messages ul li.sent p small {
        position: absolute;
        right: 12px;
        bottom: 0px;
        border-radius: 5px;
        padding: 0 5px;
        color: #607D8B;
        white-space: nowrap;
    }

.lang-ltr .chatP2C-holder .content .messages ul li.replies p small,
.lang-ltr .chatP2C-holder .content .messages ul li.sent p small {
    /* right: auto; */
    /* left: 12px; */
    left: auto;
    right: -1px;
    direction: rtl;
}

.lang-rtl .chatP2C-holder .content .messages ul li.replies p small, .lang-rtl .chatP2C-holder .content .messages ul li.sent p small {
    right: auto;
    left: -1px;
    direction: ltr;
}

.lang-rtl p.preview, .lang-rtl .contact-profile, .lang-rtl .wrap, .lang-rtl .replies {
    direction: rtl
}

.lang-rtl .chatP2C-holder .content .contact-profile img, .lang-rtl .chatP2C-holder .content .message-input .wrap input, .lang-rtl .chatP2C-holder .content .message-input .wrap button {
    float: right;
}


.chatIcon .noti-icon-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    font-size: 10px;
}


.unread p {
    font-weight: bold !important;
    color: #aab9c8
}

.popout {
    animation: popout 1s ease;
    -webkit-animation: popout .5s ease;
}

@keyframes popout {
    from {
        transform: scale(0)
    }

    80% {
        transform: scale(1.2)
    }

    to {
        transform: scale(1)
    }
}

@-webkit-keyframes popout {
    from {
        -webkit-transform: scale(0)
    }

    80% {
        -webkit-transform: scale(1.2)
    }

    to {
        -webkit-transform: scale(1)
    }
}


#callModal, #callModal * {
}

.runing-call #callModal {
    position: fixed;
    width: 190px;
    left: 16px;
    bottom: 0;
    height: 200px;
    min-height: inherit;
    top: auto;
}

    .runing-call #callModal .modal-dialog {
        position: fixed;
        width: 190px;
        left: 16px;
        height: 148px;
        bottom: 0;
        min-height: inherit;
    }

.runing-call .lang-ltr #callModal .modal-dialog {
    left: auto;
    right: 16px;
}

.lang-ltr #callModal .ml-3 {
    margin-left: auto !important;
    margin-right: 1rem !important;
}

.runing-call #callModal .modal-title {
    display: none
}

.runing-call #callModal h4 {
    font-size: 16px;
    margin-bottom: 0 !important;
}

.runing-call #callModal .mt-2 {
    margin-top: 2px !important
}

.runing-call #callModal .btn-lg {
    font-size: 12px;
    padding: 10px 18px;
    margin: 2px !important;
}

.runing-call .modal-backdrop {
    display: none !important
}

.close.minimiz-icon {
    font-size: 20px !important;
    color: #304f6e !important;
}

.runing-call #callModal .close.minimiz-icon {
    padding: 10px !important;
}

.chatP2C-holder .content .messages ul li img.chat-image {
    float: none !important;
    max-width: 200px;
    border-radius: 0;
    width: auto;
    height: auto;
    background-color: #fff;
    padding: 10px;
    margin: 0;
    border-radius: 8px;
}

.close.close-chat-box {
    position: absolute;
    left: 3px;
    top: 3px;
    background-color: #000;
    padding: 9px;
    z-index: 999;
    color: #fff;
    line-height: 15px;
    padding-top: 6px;
    border-radius: 50%;
}
.lang-ltr .close.close-chat-box {
     right: 3px;
     left: auto;
     line-height: 17px;
}
 .chatP2C-contacts ul li.contact .wrap .meta small {
    color: #6d8b8b;
    position: absolute;
    top: 1px;
}
.lang-rtl .chatP2C-contacts ul li.contact .wrap .meta small {
    left: -25px;
}
.lang-ltr .chatP2C-contacts ul li.contact .wrap .meta small { 
    right: -18px; 
}

.chatP2C-bottom-bar a.nav-link.active {
    background-color: #034851;
}

.chat-p2c li a.btn.btn-light.btn-round {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    padding-right: 30px;
    position: relative;
}

    .chat-p2c li a.btn.btn-light.btn-round i {
        position: absolute;
        right: 0px;
        top: 7px;
    }

.lang-ltr .chat-p2c li a.btn.btn-light.btn-round i {
    right: 7px;
}

.lang-ltr .chatP2C-sidepanel p.name i {
    margin-right: 8px;
}

.replies img.seen-img {
    display: none;
}

.sent .user-img {
    display: none;
}

.enlarged a.chatIcon {
    right: -75px;
    bottom: 50px;
}

.enlarged .lang-ltr a.chatIcon {
    right: auto;
    left: -75px;
}


.enlarged .topbar-left a.logo img {
    min-height: inherit;
}

.dropdown-menu.chat-menu .fa {
    font-size: 15px;
}


@media screen and (max-width: 440px) {
    .lang-ltr a.chatIcon {
        right: auto !important;
        left: -29px !important;
        bottom: 0px !important;
    }

    .lang-ltr ul#webSocialList {
        bottom: -13px;
    }
}



.chatP2C-holder .chatP2C-sidepanel
.chatP2C-contacts ul li.contact .wrap img,
.chatP2C-holder .content .contact-profile img {
    width: 49px;
    object-fit: contain;
    height: 49px;
    background-color: #d1d1d1;
    padding: 0;
}



.chatP2C-holder .content .messages ul li p {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a.chatIcon {
    display: none;
}


.notification-list .notify-item .notify-icon i {
    font-size: 22px;
}

.notification-list .dropdown-item.notify-item {
    position: relative;
}

.lang-rtl .notification-list .dropdown-item.notify-item .noti-icon-badge {
    right: auto;
    left: 16px;
}

.lang-ltr .notification-list .dropdown-item.notify-item .noti-icon-badge {
    left: auto;
    right: 16px;
}


.messages-drop .dropdown-item.notify-item {
    position: relative;
    min-height: 55px;
}

.messages-drop .notify-item .notify-details {
    line-height: 2.5;
}


#chatBox.chatP2C-holder .content .contact-profile p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 270px;
}

.chat-p2c .MSGBox.chatP2C-holder .content .contact-profile {
    width: 100%;
    height: 50px;
    line-height: 34px;
    background: #f5f5f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel {
    background: #f9f9f9;
    color: #3f494e;
}

 

.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap img.online {
    border: 2px solid #1f8581;
    width: 36px;
    height: 36px;
}


.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap p {
    margin-left: 13px;
    margin-top: 7px;
}

.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap {
    height: 38px;
    line-height: 30px;   
}


 .lang-ltr .chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap {
   text-align: left !important; 
}


.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile {
    width: 100%;
    margin: 0px auto;
    box-shadow: black 0 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
    padding-bottom: 6px;
    margin-bottom: 8px;
}
@media screen and (max-width: 735px) {
    .chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel 
    .chatP2C-profile 
    .input-group ,
    .chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel 

     .chatP2C-contacts
     .input-group 
    {

        display: none;
    }

   .chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel  a.btn.btn-light {
    margin-top: 30px;
}

    .chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-profile .wrap {
    min-height: 74px; 
}

   
}
.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact {
    position: relative;
    padding: 6px 0 8px 0;
    font-size: 0.9em;
    cursor: pointer;
}

.chat-p2c .MSGBox .contact {
    position: relative;
}
.chat-p2c .MSGBox .contact .badge {
    position: absolute; 
    bottom: 1px;
    top: auto;
}

.lang-ltr .chat-p2c .MSGBox .contact .badge { 
    right: -17px; 
}

.lang-rtl .chat-p2c .MSGBox .contact .badge { 
    left: -17px; 
}

.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact:hover {
    background: #fffaf0;
}

.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts {
    height: 277px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 0 !important;
    width: 100%;
    max-width: none;
    /* box-sizing: revert; */
    left: 0;
    right: 0;
    position: absolute;
    bottom: 0;
    top: 99px;
    height: auto;
    background-color: #fff;
    width: 102%;
}

.chat-p2c .MSGBox.chatP2C-holder {
}

.lang-rtl .chat-p2c .MSGBox p.name i {
    margin-left: 7px;
}

.lang-ltr .chat-p2c .MSGBox p.name i {
    margin-right: 7px;
}

.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .meta .preview {
    margin: 2px 0 0 0;
}

.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact.active {
    background: #f1f1f1;
    border-right: 5px solid #2a8985;
}

.chat-p2c .MSGBox.chatP2C-holder .content .messages ul li.sent p {
    background: #effbeb;
}

.chat-p2c .MSGBox.chatP2C-holder .content .message-input .dropdown-item {
    font-size: 14px !important;
    width: 100%;
}

.chat-p2c .MSGBox.chatP2C-holder .content .messages ul li p strong {
    position: relative;
    min-width: 114px;
    line-height: 33px;
}

.chat-p2c .MSGBox.chatP2C-holder .content .messages ul li.replies p {
    padding: 7px 15px;
}

.chat-p2c .MSGBox.chatP2C-holder .content .messages ul li p {
    border-radius: 9px;
    padding-bottom: 25px !important;
}




.dropdown-item .badge.badge-pill.badge-danger.noti-icon-badge,
.chatP2C-contacts .badge.badge-pill.badge-danger.noti-icon-badge {
    /* background-color: #1ab1ab; */
    background-color: #f8991d;
}






.comments .media-body small.text-muted {
    float: left;
    margin-top: -19px !important;
}

.card-body.comments {
    overflow: auto;
    max-height: 380px;
    border: 1px solid #dddddd;
    margin-bottom: 117px;
    background-color: #f9f9f9;
}

.comments .media {
    position: relative;
    background-color: #fff;
}

.card-body.comments .card.inner-card {
    position: absolute;
    left: 0;
    bottom: 13px;
    right: 0;
    padding-top: 6px;
    padding-bottom: 7px;
}

.card-body.comments .media img.align-self-start {
    width: 40px;
    height: auto;
    box-shadow: #b4b4b4 0px 1px 3px;
}

.card-body.comments .media p {
    margin-bottom: 0;
}

.card-body.comments .media .media-body img {
    max-width: 350px;
    height: auto;
    margin: auto;
    display: block;
}

.lang-rtl .card-body.comments .media button.close {
    left: 0px;
    position: absolute;
    margin: 0;
    bottom: 3px;
    width: 30px;
    text-align: center;
}

.lang-ltr .card-body.comments .media button.close {
    left: auto;
    right: 0px;
}


.lang-ltr .chatP2C-holder .content .messages ul li.replies p {
    float: left;
}

.lang-ltr .chatP2C-holder .content .messages ul li.replies img,
.lang-ltr .chatP2C-holder .content .messages ul li.sent img {
    float: left;
    margin: 6px 9px 0px 1px;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .meta .name {
    font-weight: normal;
    margin-bottom: 0;
    /* width: 70%; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 30px;
    height: 24px;
    font-size: 12px;
}

.chat-p2c .MSGBox.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .meta .name {
    max-width: 80%;
    font-size: 12px;
}






#chatBox .chatP2C-sidepanel .tab-pane {
    padding: 2px !important;
}

#chatBox .chatP2C-contacts {
    width: 102%;
}

#chatBox .chatP2C-sidepanel .tab-pane span.badge {
    position: absolute;
    top: 5px;
    right: 6px;
}


#chatBox .notActive .message-input,
#chatBox .notActive .contact-profile {
    opacity: 0;
    pointer-events: none;
}

#chatBox .notActive .content {
    background-image: url(../images/chatBG.png);
    background-repeat: no-repeat;
    background-position: center center;
}


a.attach.dropdown-toggle:after {
    display: none;
}


.chatP2C-contacts.add-new {
    transition: all .3s ease-out;
    top: 100% !important;
}

    .chatP2C-contacts.add-new.active {
        top: 0 !important;
        z-index: 2;
    }

.chatP2C-profile input {
    border: 0;
}

.chatP2C-profile .input-group {
    box-shadow: rgb(0 0 0 / 12%) 0px 1px 0px 0px;
}



.circle-div {
    width: 49px;
    height: 49px;
    line-height: 49px;
    text-align: center;
    font-size: 20px;
    border-radius: 50%;
}

    .circle-div.circle-project {
        background-color: #319d98;
        color: #fff;
    }

    .circle-div.circle-task {
        background-color: #f26722;
        color: #fff;
    }

.chat-start {
    margin-top: 74px;
}

    .chat-start img {
        max-width: 156px;
    }



.download-file {
    padding: 18px;
    border-radius: 7px;
    border: 1px dashed #f8991d; 
}

    .download-file i {
        font-size: 30px;
        bottom: -3px;
        position: relative;
        z-index: 0;
        color: #45c0bb;
    }

    .sent a.close.close-chat-box {
        background-color: #ff2f2f;
        color: #fff;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        text-align: center;
        line-height: 22px !important;
        padding: 0 !important;
        top: -7px;
        z-index: 10;
    }

    .lang-rtl    .sent a.close.close-chat-box {
        left: -7px;
       
    }
.lang-ltr  .sent a.close.close-chat-box { 
    top: -7px; 
}
.delete-chat-modal {
    position: absolute;
    z-index: 999;
    width: 100%;
    left: 0;
    right: 0;
    background-color: rgb(0 0 0 / 43%);
    top: 0;
    bottom: 0;
    max-width: inherit;
    margin: 0;
}

    .delete-chat-modal .modal-content {
        max-width: 288px;
        margin: auto;
        margin-top: 40px;
    }

.chatP2C-contacts.add-new > .row {
    position: absolute;
    top: 0;
}

ul.new-chat-list {
    position: absolute;
    top: 114px;
    width: 100%;
    overflow: auto;
    max-height: 334px;
}

.chatP2C-sidepanel .chatP2C-contacts.add-new ul.new-chat-list li.contact .wrap .meta .name {
    max-width: 100%;
    font-size: 12px;
}

.chatP2C-holder .chatP2C-sidepanel .chatP2C-contacts ul li.contact .wrap .col {
    max-width: 196px;
}

.lang-ltr .chatP2C-holder .content .message-input { 
    direction: rtl;
}

.lang-ltr  .dropdown-menu .dropdown-item{
     direction: ltr;
     text-align:left
}

.chatP2C-holder .content .messages li.date span {
    border-radius: 5px;
    background-color: #fff;
    padding: 6px;
    position: relative;
    bottom: -9px;
}

.chatP2C-holder .content .messages  li.date {
    text-align: center;
    border-bottom: 1px solid #c5c4c4;
    margin-bottom: 25px;
}

.lang-ltr .wrap.col-12.text-left.mb-2 {
    text-align: left !important;
}