
.dsp-user-list .dsp-user-row img{
    width: 44px;
    height: 44px;
    padding: 10px;
}


.dsp-file-input input{
    /*position: absolute;*/
    display: none;
}

.dsp-file-input img{
    display: none;
    width: 13%;
    height: 101px;
    margin: 7px 0px 1px 0px;
}
.dsp-user-list .dsp-user-row p{
    padding: 0px 10px;
}

.dsp-file-input button{
    display: none;
    border: none;
    color: black;
    background: unset;
    font-size: 28px;
    left: 109px;
    top: 13px;
    position: relative;
}

.dsp-file-input button:focus{
    outline: none;
}

/*START CHAT PAGE design start*/

.{
    background: #32465a;
    border-right: 5px solid #435f7a;
}
.emoji-picker-icon{
    font-size: 24px !important;
    right: 12px !important;
}
.emoji-wysiwyg-editor{
    border: 1px solid #adadad !important;
}
#frame {
    width: 100%;
    min-width: 360px;
    max-width: 100%;
    height: 100vh;
    min-height: 300px;
    max-height: 720px;
    background: #E6EAEA;
}
@media screen and (max-width: 360px) {
    #frame {
        width: 100%;
        height: 100vh;
    }
}

@media screen and (max-height: 768px) {
    .dsp-chat-user-container {
        height: 92%;
    }
}

#frame #sidepanel {
    float: left;
    min-width: 280px;
    max-width: 340px;
    width: 40%;
    height: 100%;
    background: #2c3e50;
    color: #f5f5f5;
    overflow: hidden;
    position: relative;
}

#frame #sidepanel #profile {
    width: 80%;
    margin: 25px auto;
}

#frame #sidepanel #profile.expanded .wrap {
    height: 210px;
    line-height: initial;
}
#frame #sidepanel #profile.expanded .wrap p {
    margin-top: 20px;
}
#frame #sidepanel #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";
}
#frame #sidepanel #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;
}

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

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

#frame #sidepanel #profile .wrap img.offline {
    border: 2px solid #95a5a6;
}
#frame #sidepanel #profile .wrap p {
    float: left;
    margin-left: 15px;
}

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

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

#frame #sidepanel #search label {
    position: absolute;
    margin: 10px 0 0 20px;
}
#frame #sidepanel #search input {
    font-family: "proxima-nova",  "Source Sans Pro", sans-serif;
    padding: 10px 0 10px 46px;
    width: calc(100% - 25px);
    border: none;
    background: #32465a;
    color: #f5f5f5;
}
#frame #sidepanel #search input:focus {
    outline: none;
    background: #435f7a;
}
#frame #sidepanel #search input::-webkit-input-placeholder {
    color: #f5f5f5;
}
#frame #sidepanel #search input::-moz-placeholder {
    color: #f5f5f5;
}
#frame #sidepanel #search input:-ms-input-placeholder {
    color: #f5f5f5;
}
#frame #sidepanel #search input:-moz-placeholder {
    color: #f5f5f5;
}
#frame #sidepanel #contacts {
    height: calc(100% - 177px);
    overflow-y: scroll;
    overflow-x: hidden;
}

#frame #sidepanel #contacts.expanded {
    height: calc(100% - 334px);
}
#frame #sidepanel #contacts::-webkit-scrollbar {
    width: 8px;
    background: #2c3e50;
}
#frame #sidepanel #contacts::-webkit-scrollbar-thumb {
    background-color: #243140;
}
#frame #sidepanel #contacts ul li.contact {
    position: relative;
    font-size: 0.9em;
    cursor: pointer;
}

#frame #sidepanel #contacts ul li .wrap:hover {
    background: #32465a;
}
#frame #sidepanel #contacts ul li .wrap.active {
    background: #32465a;
    border-right: 5px solid #435f7a;
}
#frame #sidepanel #contacts ul .dsp-user-row:hover {
    background: #32465a;
}
#frame #sidepanel #contacts ul .dsp-user-row.active {
    background: #32465a;
    border-right: 5px solid #435f7a;
}

#frame #sidepanel #contacts ul li.contact.active span.contact-status {
    border: 2px solid #32465a !important;
}
#frame #sidepanel #contacts ul li.contact .wrap {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 10px 0 15px 20px;
}

#frame #sidepanel #contacts ul .dsp-user-list .dsp-user-row{
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 10px 0 15px 20px;
}
#frame #sidepanel #contacts ul li.contact .wrap span.online {
    position: absolute;
    left: 20px;
    margin: -2px 0 0 -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #2c3e50;
    background: #95a5a6;
}
#frame #sidepanel #contacts ul li.contact .wrap span.msg-unread{
    right: 20px;
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    background: #2c3e50;
}
#frame #sidepanel #contacts ul li.contact .wrap span.online {
    background: #2ecc71;
}
#frame #sidepanel #contacts ul li.contact .wrap img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    float: left;
    padding: 0;
    margin-right: 10px;
}
#frame #sidepanel #contacts ul .dsp-user-row img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    float: left;
    padding: 0;
    margin-right: 10px;
}

#frame #sidepanel #contacts ul li.contact .wrap .meta {
    padding: 5px 0 0 0;
}

#frame #sidepanel #contacts ul li.contact .wrap .meta .name {
    font-weight: 600;
}
#frame #sidepanel #contacts ul li.contact .wrap .meta .preview {
    margin: 5px 0 0 0;
    padding: 0 0 1px;
    font-weight: 400;
    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;
}
#frame #sidepanel #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;
}
#frame #sidepanel #bottom-bar {
    position: absolute;
    width: 100%;
    bottom: 0;
}
#frame #sidepanel #bottom-bar button {
    float: left;
    border: none;
    width: 50%;
    padding: 10px 0;
    background: #32465a;
    color: #f5f5f5;
    cursor: pointer;
    font-size: 0.85em;
    font-family: "proxima-nova",  "Source Sans Pro", sans-serif;
}

#frame #sidepanel #bottom-bar button:focus {
    outline: none;
}
#frame #sidepanel #bottom-bar button:nth-child(1) {
    border-right: 1px solid #2c3e50;
}
#frame #sidepanel #bottom-bar button:hover {
    background: #435f7a;
}
#frame #sidepanel #bottom-bar button i {
    margin-right: 3px;
    font-size: 1em;
}

#frame .content {
    float: right;
    width: 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

@media screen and (min-width: 900px) {
    #frame .content {
        width: calc(100% - 340px);
    }
}
#frame .content .contact-profile {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #f5f5f5;
}
#frame .content .contact-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    float: left;
    margin: 9px 12px 0 9px;
}
#frame .content .contact-profile p {
    float: left;
    font-weight: 500;
    text-transform: capitalize;
}

#frame .content .messages {
    width: 100%;
    height: 540px;
    max-height: calc(100% - 120px);
    overflow-y: scroll;
    overflow-x: hidden;
}

#frame .content .messages::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}
#frame .content .messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}
#frame .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;
}
#frame .content .messages ul li:nth-last-child(1) {
    margin-bottom: 20px;
}
#frame .content .messages ul li.sent .message-time {
    margin: 6px 8px 0 0;
    position: absolute;
    left: 0px;
}
#frame .content .messages ul li.sent .message-text {
    background: #435f7a;
    color: #f5f5f5;
}
#frame .content .messages ul li.replies .message-time {
    float: right;
    margin: 6px 0 0 8px;
    position: absolute;
    right: 0;
    bottom: -25px;
}
#frame .content .messages ul li .message-image{
    margin-top: 10px;
}
#frame .content .messages ul li.replies img{
    float: right;
}
#frame .content .messages ul li.replies .message-text {
    background: #f5f5f5 !important;
    float: right;
}
/*#frame .content .messages ul li img {
  width: 22px;
  border-radius: 50%;
  float: left;
}*/
#frame .content .messages ul li .message-text {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 205px;
    line-height: 130%;
    margin-top: 15px;
    word-break: break-word;
}

#frame .content .message-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 99;
    padding-top: 20px;
    background: #e6eaea;
    box-shadow: 0 0 5px lightgrey;
}
#frame .content .message-input .wrap {
    position: relative;
}
#frame .content .message-input .wrap input {
    float: left;
    border: none;
    width: calc(100% - 90px);
    padding: 11px 32px 10px 8px;
    font-size: 0.8em;
    color: #32465a;
}

#frame .content .message-input .wrap input:focus {
    outline: none;
}
#frame .content .message-input .wrap .attachment {
    position: absolute;
    left: 20px;
    z-index: 4;
    bottom: 15px;
    font-size: 2em;
    color: #435f7a;
    opacity: .7;
    cursor: pointer;
    top: 14px;
}

#frame .content .message-input .wrap .attachment:hover {
    opacity: 1;
}
#frame .content .message-input .wrap button {
    float: right;
    border: none;
    width: 100%;
    padding: 12px 0;
    cursor: pointer;
    background: #32465a;
    color: #f5f5f5;
    height: 60px;
}
#frame .content .message-input .wrap button .fa-paper-plane{
    font-size: 26px;
}
#frame .content .message-input .wrap .dsp-instant-chat-message-box{
    height: 60px !important;
    padding-right: 45px;
}

#frame .content .message-input .wrap button:hover {
    background: #435f7a;
}
#frame .content .message-input .wrap button:focus {
    outline: none;
}

@media screen and (min-width: 740px) and (max-width: 800px){
    #frame .content .message-input .wrap .attachment{
        left: 5px;
        bottom: 15px;
        margin-top: -3px;
        font-size: 30px;
    }
    #frame .content .message-input .wrap button {
        float: right;
        border: none;
        width: 100%;
        padding: 12px 0;
        cursor: pointer;
        background: #32465a;
        color: #f5f5f5;
        height: 50px;
    }
    #frame .content .message-input .wrap button .fa-paper-plane{
        font-size: 22px;
    }
    #frame .content .message-input .wrap .dsp-instant-chat-message-box{
        height: 50px !important;
    }
}


@media screen and (min-width: 735px) {
    #frame .content .messages ul li .message-text {
        max-width: 300px;
    }
}
@media screen and (max-width: 735px) {
    #frame #sidepanel {
        width: 58px;
        min-width: 58px;
    }
    #frame #sidepanel #profile {
        width: 100%;
        margin: 0 auto;
        padding: 5px 0 0 0;
        background: #32465a;
    }
    #frame #sidepanel #profile .wrap {
        height: 55px;
    }
    #frame #sidepanel #profile .wrap img {
        width: 40px;
        margin-left: 4px;
    }
    #frame #sidepanel #profile .wrap p {
        display: none;
    }

    #frame #sidepanel #profile .wrap i.expand-button {
        display: none;
    }

    #frame #sidepanel #search {
        display: none;
    }
    #frame #sidepanel #contacts {
        height: calc(100% - 149px);
        overflow-y: scroll;
        overflow-x: hidden;
    }
    #frame #sidepanel #contacts::-webkit-scrollbar {
        display: none;
    }
    #frame #sidepanel #contacts ul li.contact {
        padding: 6px 0 46px 8px;
    }
    #frame #sidepanel #contacts ul li.contact .wrap {
        width: 100%;
    }
    #frame #sidepanel #contacts ul li.contact .wrap img {
        margin-right: 0px;
    }
    #frame #sidepanel #contacts.search-result{
        position: absolute;
        width: 100%;
        background: #2c3e50;
        left: 15px;
        z-index: 9999;
        top: 48px;
    }
    #frame #sidepanel #contacts.search-result ul li.contact .wrap .meta{
        display: block;
    }
    #frame #sidepanel #contacts.search-result ul li.contact{
        padding-bottom: 0px;
        min-height: 60px;
        border-bottom: 1px solid #182633;
    }
    #frame #sidepanel #contacts.search-result ul li.contact .wrap .meta label{
        display: block;
    }
    #frame #sidepanel #contacts.search-result ul li.contact .wrap .meta img{
        margin-right: 15px;
    }
    #frame #sidepanel #contacts ul li.contact .wrap .meta label,
    #frame #sidepanel #contacts ul li.contact .wrap .meta p {
        display: none;
    }
    #frame #sidepanel #contacts ul li.contact .wrap span.online{
        left: 0;
    }
    #frame #sidepanel #bottom-bar button {
        float: none;
        width: 100%;
        padding: 15px 0;
    }
    #frame #sidepanel #bottom-bar button:nth-child(1) {
        border-right: none;
        border-bottom: 1px solid #2c3e50;
    }
    #frame #sidepanel #bottom-bar button i {
        font-size: 1.3em;
    }
    #frame #sidepanel #bottom-bar button span {
        display: none;
    }
    #frame .content {
        width: calc(100% - 58px);
        min-width: 200px !important;
        padding-top: 48px;
    }
    #frame .content .messages {
        max-height: calc(100% - 105px);
    }
    #frame .content .message-input .wrap button {
        padding: 16px 0;
    }
    #frame .content .message-input .wrap .attachment {
        margin-top: 0px;
        left: 65px;
    }
    #frame .content .message-input .wrap input {
        padding: 15px 32px 16px 8px;
    }
    #frame .content .message-input .wrap .attachment{
        left: 10px;
        bottom: 22px;
        font-size: 24px;
        opacity: 1;
    }
    #frame #sidepanel #contacts ul li.contact .wrap{
        padding: 0;
    }
    #frame{
        position: relative;
        height: 100vh;
    }
    #frame #sidepanel{
        position: unset;
    }
    #frame #sidepanel #search{
        display: block;
        position: absolute;
        width: 100%;
        top: 0;
        left: 56px;
        z-index: 990;
    }
    #frame #sidepanel #search input{
        width: 100%;
    }
    #frame #sidepanel #search input:focus,
    #frame #sidepanel #search input:active{
        border:1px solid #666;
        outline: 1px solid #666;
    }
    #frame .content .message-input .wrap button {
        float: right;
        border: none;
        width: 100%;
        padding: 12px 0;
        cursor: pointer;
        background: #32465a;
        color: #f5f5f5;
        height: 50px;
    }
    #frame .content .message-input .wrap button .fa-paper-plane{
        font-size: 18px;
    }
    #frame .content .message-input .wrap .dsp-instant-chat-message-box{
        height: 50px !important;
    }
    #frame .dsp-send-message-container .center-chat{
        width: 65% !important;
        margin-left: 7px;
    }
    .message-pg .emoji-picker-icon{
        margin-right: 0;
    }

}
@media screen and (min-height: 768px) {
    #frame .content .messages{
        min-height: 530px;
    }
}


/*START CHAT PAGE design end*/
#frame .not-found-message{
    text-align: center;
    margin:20px 0;
}

.dsp-instant-chat-message-box {
    cursor: text;
    padding: 10px;
}

.message-pg #frame {
    overflow: hidden;
}

@media screen and (min-width: 1080px) {
    .left-image {
        width: 8%;
        max-width: 100px;
    }
    .center-chat {
        width: 80%
    }
    .right-send {
        width: 10%
    }
}
@media screen and (min-width: 400px) {
    .left-image {
        width: 10%;
        max-width: 100px;
    }
    .center-chat {
        width: 73%
    }
    .right-send {
        width: 14%
    }
}
@media screen and (max-width: 399px) {
    .left-image {
        width: 15%;
        max-width: 100px;
    }
    .center-chat {
        width: 70%
    }
    .right-send {
        width: 15%
    }
    #frame .content .message-input .wrap .attachment{
        font-size: 18px;
    }
}