.custom-chat-widget {
    display:none;
    cursor:pointer;
    padding: 15px 30px 15px 25px;
    position: absolute;
    z-index: 99999;
    border-radius: 50px 0 0 50px;
    right: 0;
    top: 50px;
}

.viewers-chat-count{
    display: none;
    cursor: default;
    padding: 15px 5px 15px 12px;
    top: 25%;
    position: absolute;
    z-index: 99999;
    border-radius: 50px 0 0 50px;
    right: 0;
}

.viewers-mobile-count {
    display: none;
}

#chat-name {
    font-size: 15px !important;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.chat-box {
    display:none;
    z-index: 999999999999999;
    background: #d6d3d3;
    position:fixed;
    right:30px;
    top:110px;
    width:350px;
    max-width: 85vw;
    max-height:100vh;
    border-radius:5px;
}

.chat-box-toggle {
    float:right;
    margin-right:15px;
    cursor:pointer;
}

.chat-box-header {
    height:70px;
    border-top-left-radius:5px;
    border-top-right-radius:5px;
    color:white;
    text-align:center;
    font-size:20px;
    padding-top:17px;
}

.chat-box-body {
    position: relative;
    height:370px;
    height:auto;
    border:1px solid #ccc;
    overflow: hidden;
}

.chat-box-body:after {
    content: "";
    opacity: 0.1;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height:100%;
    position: absolute;
    z-index: -1;
}

#chat-input {
    background: #f4f7f9;
    width:100%;
    position:relative;
    height:47px;
    padding-top:10px;
    padding-right:50px;
    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 > form {
    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:3px;
    right:10px;
    background: transparent;
    box-shadow:none;
    border:none;
    border-radius:50%;
    color:#5A5EB9;
    width:35px;
    height:35px;
}

.chat-logs {
    padding:10px;
    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: #5A5EB9;
}



@media only screen and (max-width: 500px) {
    .chat-logs {
        height:40vh;
    }

    .chat-box { 
        top: 140px;
    }

    .custom-chat-widget {
        top: 65px;
    }
}

@media only screen and (max-width: 750px) {
    .viewers-chat-count {
        visibility: hidden;
    }
}

.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:20px;
    border-radius:4px;
}
.chat-msg {
    clear:both;
}
.chat-msg.self > .cm-msg-text {
    float:right;
    margin-right:10px;
}
.cm-msg-button>ul>li {
    list-style:none;
    float:left;
    width:50%;
}
.cm-msg-button {
    clear: both;
    margin-bottom: 70px;
}


