#xchat-overlay{
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 99999;
}
#xchat-overlay .xchat-icon{
    cursor: pointer;
    z-index: 99999;
}
#xchat-overlay .xchat-avatar-icon {
    width: 60px;
    height: 60px;
    display: block;
    border-radius: 100%;
    background-size: cover;
    cursor: pointer;
    box-shadow: 0 6px 8px rgba(0,0,0,0.4);
}
#xchat-overlay .xchat-icon::before {
    content: '\e83c';
    font-family: 'entypo-fontello', sans-serif;
    color: #fff;
    padding: 10px;
    border-radius: 100%;
    font-size: 40px;
    background: #0d97d5;
    box-shadow: 0 6px 8px rgba(0,0,0,0.4);
}

#xchat-window{
    position: fixed;
    bottom: 30px;
    right: 30px;
    top: 20%;
    width: 360px;
    z-index: 99999;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    background:#fff;
    border-radius: 5px;
    border: 1px solid #ccc;
    overflow: hidden;
}

#xchat-window .xchat-close{
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-weight: bold;
    font-size: 2.5em;
    color: #828282;
    padding: 0;
}
#typing-indicator{
    display: none;
}
.card-chat #typing-indicator .avatar:after{
    display: none;
}
.card-chat #typing-indicator {
    margin-top: 0;
    padding-top: 0;
}

#xchat-main .card{
    box-shadow: none;
    margin-bottom: 0;
    position: initial;
}
#xchat-main .card .card-content{
    position: initial;
    padding: 15px 0;
}
#xchat-main .card-header{
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
#xchat-main .card-header img{
    width:60px;
    height:60px;
    border-radius:100%;
    float:left;
    margin-right:10px;
}
#xchat-main #conversation-container{
    overflow-y: auto;
    position: absolute;
    top: 96px;
    bottom: 76px;
    left: 0;
    right: 0;
}
#xchat-main #conversation{
    margin-top: 0;
    padding-bottom: 0;
}
#xchat-main #conversation li,
#xchat-main #typing-indicator li {
    margin: 0 15px;
}
#xchat-main .card-chat .msg{
    word-wrap: break-word;
}
#xchat-main .card-chat .other .msg {
    border: 2px solid #e6e6e6;
    background-color: #e6e6e6;
}
#xchat-main .card-chat .other .msg:before{
    border-right-color: #e6e6e6;
    border-top-color: #e6e6e6;
}
#xchat-main .card-chat .self .msg {
    border: 2px solid #199adf;
    background-color: #199adf;
    color: #fff;
}
#xchat-main .card-chat .self .msg p{
    color: #fff;
}
#xchat-main .card-chat .self .avatar:after {
    border-bottom-color: #199adf;
    border-left-color: #199adf;
}
#xchat-main .card-chat .msg {
    border-radius: 10px;
}
#xchat-main .card-chat .msg ul{
    padding-left:5px;
}
#xchat-main .card-chat .msg ul li{
    list-style: disc;
}
#xchat-main .self .avatar span {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 100%;
    background: #f46248;
    color: #fff;
    text-align: center;
    font-size: 19px;
    line-height: 40px;
}
#xchat-main #send-container{
    position:absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 0 15px;
    background: #fff;
}
#xchat-main .send-button button{
    border-radius: 4px;
    background: #199adf;
    border-color: #199adf;
    display: block;
}
#xchat-main .card-chat input.textarea{
    width: calc(100% - 97px);
}
#xchat-main .send-message,
#xchat-main #suggestions{
    padding: 0 15px;
}
#xchat-main hr{
    border-color: #ddd;
}
#xchat-main .send-message{
    text-align:right;
    padding: 0 15px;
}
#xchat-main #suggestions {
    width: 100%;
    height: 38px;
    list-style-type: none;
    /*white-space: nowrap;*/
}
#xchat-main #suggestions li{display: inline-block;
}
#xchat-main #suggestions.expanded{
    height: 40%;
    max-height: 40%;
    overflow-y: auto;
}
#xchat-main #suggestions .suggestion-container{
    border: 1px solid #dfdfdf;
    border-radius: 5px;
}
#xchat-main #suggestions .suggestion-headline{
    padding: 10px;
    border-bottom: 1px solid #dfdfdf;
    padding: 10px;
    text-align: right;
}
#xchat-main #suggestions .suggestion-selections{
    padding: 10px;
    max-height:280px;
    overflow: auto;
}
#xchat-main #suggestions .suggestion{
    border: 1px solid #41419b;
    margin-right: 8px;
    padding: 6px 13px;
    border-radius: 20px;
    color: #41419b;
    font-size: 0.9em;
    display: inline-block;
    margin-bottom: 6px;
}
#xchat-main #suggestions .suggestion:focus {
    /*outline: dashed #888;*/
    outline-offset: 0;
}
#xchat-main #suggestions label {
    background: #fff;
    border: 1px solid #41419b;
    color: #41419b;
    margin-right: 8px;
    margin-bottom: 6px;
    font-size: 0.9em;
    border-radius: 20px;
}
#xchat-main #suggestions label.ui-state-active{
    background: #41419b;
    color: #fff;
}

.card-chat .other .msg {
    word-wrap: break-word;
}

.arrow_box:after, .arrow_box:before {
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

#xchat-baloon{
    position: fixed;
    right: 125px;
    bottom: 50px;
    cursor: pointer;
    z-index: 99999;

    opacity: 0;
    -webkit-animation: baloon-slide-up 1s ease;
    -o-animation: baloon-slide-up 1s ease;
    animation: baloon-slide-up 1s ease;
    animation-delay: 1.5s;
    animation-fill-mode: forwards;
}
#xchat-baloon .baloon-text {
    position: relative;
    max-width: 210px;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 7px;
    padding: 5px 13px;
    border-radius: 9px;
    border: 1px solid #cacaca;
}
#xchat-baloon .baloon-text:after, #xchat-baloon .baloon-text:before {
    left: 100%;
    top: 75%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
#xchat-baloon .baloon-text:after {
    border-color: rgba(255, 255, 255, 0);
    border-left-color: #fff;
    border-width: 10px 10px 2px 10px;
    margin-top: -10px;
}
#xchat-baloon .baloon-text:before {
    border-color: rgba(207, 207, 207, 0);
    border-left-color: #cacaca;
    border-width: 11px 11px 3px 11px;
    margin-top: -11px;
}

#chat-announce {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
}

/* TYPING INDICATOR */
.tiblock {
    align-items: center;
    display: flex;
    height: 17px;
    padding-left: 3px;
}

.ticontainer .tidot {
    background-color: #90949c;
}

.tidot {
    -webkit-animation: mercuryTypingAnimation 1.5s infinite ease-in-out;
    border-radius: 2px;
    display: inline-block;
    height: 6px;
    margin-right: 4px;
    width: 6px;
}

@-webkit-keyframes mercuryTypingAnimation{
    0%{
        -webkit-transform:translateY(0px)
    }
    28%{
        -webkit-transform:translateY(-5px)
    }
    44%{
        -webkit-transform:translateY(0px)
    }
}

.tidot:nth-child(1){
    -webkit-animation-delay:200ms;
}
.tidot:nth-child(2){
    -webkit-animation-delay:300ms;
}
.tidot:nth-child(3){
    -webkit-animation-delay:400ms;
}
/* END TYPING INDICATOR */

@keyframes baloon-slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up-fade-in{
    0% {
        opacity:0;
        transform:  translate(0px,40px)  ;
    }
    100% {
        opacity:1;
        transform:  translate(0px,0px)  ;
    }
}

@-moz-keyframes slide-up-fade-in{
    0% {
        opacity:0;
        -moz-transform:  translate(0px,40px)  ;
    }
    100% {
        opacity:1;
        -moz-transform:  translate(0px,0px)  ;
    }
}

@-webkit-keyframes slide-up-fade-in {
    0% {
        opacity:0;
        -webkit-transform:  translate(0px,40px)  ;
    }
    100% {
        opacity:1;
        -webkit-transform:  translate(0px,0px)  ;
    }
}

@-o-keyframes slide-up-fade-in {
    0% {
        opacity:0;
        -o-transform:  translate(0px,40px)  ;
    }
    100% {
        opacity:1;
        -o-transform:  translate(0px,0px)  ;
    }
}

@-ms-keyframes slide-up-fade-in {
    0% {
        opacity:0;
        -ms-transform:  translate(0px,40px)  ;
    }
    100% {
        opacity:1;
        -ms-transform:  translate(0px,0px)  ;
    }
}
@media(max-width:330px){
    #xchat-window{
            width: 100%;
            bottom: 20px;
            right: 0px;
            height: 300px;
    }
}