#global-chat-container {
    position: relative;
}
#global-chat-content{
    position: absolute;
    top: 2px;
    right: 12px;
    background-color: #fafafa;
    border: 1px solid rgba(100, 100, 100, .4);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    -moz-box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    -o-box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    overflow: visible;
    width: 300px;
    display: none;
    border-radius: 2px;
    z-index: 99;
    /* min-height: 75px; */
}
#global-chat-content h5 {
    text-align: center;
    background-color: #3e6f8d;
    margin: 0;
    padding: 5px;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: 600;
    border-top-right-radius: 2px;
    border-top-left-radius: 2px;
    box-shadow: 0 0 black;
}
#global-chat-content p {
    font-size: 0.8em;
    margin: 0;
    padding: 5px;
    border-bottom: 1px solid #888;
}
#global-chat-content a{
    font-size: 0.8em;
    margin: 0;
    padding: 5px;
    color: dodgerblue;
}
#global-chat-list-container > div:hover{
    background: #dddddd;
}
#global-chat-list-container > div{
    padding: 5px 5px 5px 10px;
    font-size: 0.9em;
    cursor: pointer;
    border-bottom: 1px solid #efefef
}
#global-chat-list-container > div > span{
    color: gray
}
.global-chat-list.new{
    background: #d5e9eb;
    font-weight: bold;
}




#chat-popup{
    height: 60vh;
    width: 350px;
    max-width: 80vw;
    position: fixed;
    bottom: 0;
    right: 10px;
    background: white;
    box-shadow: 0px 0px 5px 1px grey;
    overflow: auto;
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
    padding-bottom: 50px;
}

#chat-popup::-webkit-scrollbar {
    width: 5px;
}

#chat-popup::-webkit-scrollbar-track {
    background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
}

#chat-popup::-webkit-scrollbar-thumb {
    /*background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);*/
    background-image: linear-gradient(to top, #48c6ef 0%, #6f86d6 100%);
    /*background: #888;*/
}

#chat-popup::-webkit-scrollbar-thumb:hover {
    background-image: linear-gradient(to top, #30cfd0 0%, #330867 100%);
}

#chat-popup > .chat-container{
    padding-top: 50px;
}
#chat-popup  #chat-popup-close{
    margin-right: 10px;
}
#chat-popup > .chat-header{
    padding: 10px;
    letter-spacing: 1px;
    box-shadow: 0px 0px 2px grey;
    position: fixed;
    z-index: 2;
    background: #fff;
    width: 350px;
    max-width: 80vw;
}
#chat-popup .chat-popup{
    position: relative;
    background: #fefefe;
    width: 70%;
    background-image: linear-gradient(to top, #e6e9f0 0%, #eef1f5 100%);
    overflow: auto;
}
#chat-popup .chat-msg {
    position: relative;
    /*border: 1px solid #d0d0d0;*/
    border-radius: 5px;
    width: calc(100% - 50px);
    padding: 5px;
    font-size: 14px;
    margin-bottom: 1em;
}
#chat-popup .chat-msg-container {
    padding: 10px;
}
#chat-popup .chat-msg.pull-left {
    text-align: right;
    /*border-radius: 10px 10px 0px 10px;*/
    background: #ABDBF1;
    /*background: #ABDBF1;*/
    /*background-image: linear-gradient(-120deg, #accbee 10%, #e7f0fd 100%);*/
    border: 1px solid #ACCBEE;
}
#chat-popup .chat-msg.pull-left:after {
    content: "";
    position: absolute;
    top: 10px;
    right: -12px;
    border-left: solid 12px #ABDBF1;
    border-bottom: solid 12px transparent;
    border-top: solid 12px transparent;
}
#chat-popup .chat-msg.pull-right {
    background: white;

    /*background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);*/
    /*border-radius: 10px 10px 10px 0px;*/
}
/*.chat-msg.pull-right:before {
    content: "";
    position: absolute;
    top: 11px;
    left: -10px;
    border-right: solid 11px #fefefe;
    border-bottom: solid 11px transparent;
    border-top: solid 11px transparent;
    z-index: 1;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}*/
#chat-popup .chat-msg.pull-right:after {
    content: "";
    position: absolute;
    top: 10px;
    left: -12px;
    border-right: solid 12px white;
    border-bottom: solid 12px transparent;
    border-top: solid 12px transparent;
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}
#chat-popup .chat-msg img {
    max-width: 70px;
    max-height: 70px;
}
#chat-popup .chat-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 25px;
    border: 1px solid #d0d0d0;
}
#chat-popup .chat-datetime {
    font-size: 10px;
    color: #a0a0a0;
}
#chat-popup .chat-input-container{
    position: fixed;
    bottom: 0;
    height: 50px;
    width: 350px;
    max-width: 80vw;
}
#chat-popup .chat-input-container input[type=text] {
    margin-bottom: 0;
    height: 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border: 1px solid #d0d0d0;
    /*position: absolute;
    bottom: 0;
    margin: 0px;*/
}