/* CHAT TEMPLATE */
#chat-wrapper-template
{
    background-color: transparent;
    bottom: 0;
    right: 20px;
    z-index: 100;
}
.chat-global-template
{
    position: fixed;
    display: none;
}
#chat-wrapper-minimal-template
{
    position: fixed;
    bottom: 0;
    right: 20px;
    z-index: 100;
    width: 250px;
    background-color: #66cccc;
    border-radius: 15px 15px 0 0;
}
.popup-tmplate
{
    height: 100%;
}
.popup-tmplate .chat-container
{
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
    height: 100%;
}
.popup-tmplate #chat-left-column, .popup-tmplate #chat-right-column 
{
    height: 100%;
}
.popup-tmplate #chat-right-column 
{
    width: 60%;
}
.popup-tmplate #chat-left-column 
{
    width: 100%;
}
.popup-tmplate #chat-left-column .nano 
{
    width: 100%;
    height: 100%;
}
.popup-tmplate .chat-right-column-container {
    min-width: 365px;
}
.popup-tmplate #chat-left-column .nano .nano-content 
{
    height: 100%;
}
.popup-tmplate #chat-footer {
    padding: 2px 0;
}
.popup-tmplate #chat-form
{
    width: 100%;
}
.popup-tmplate .chat-text-input 
{
    width: 70% !important;
}
#chat-wrapper-template .chat-container
{
    border: 2px solid #ccc/*#686766*/;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    display: table;
} 
#chat-wrapper-template #chat-left-column {
    background-color: #f4f4f4;
    border-right: 2px solid #ccc/*#686766*/;
    display: none;
}
#chat-left-column .nano {
    width: 260px;
    height: 400px;
}
#chat-left-column .nano .nano-content { padding: 10px; }
#chat-left-column .nano > .nano-pane {
    background: #E8E8E8;
}
#chat-left-column .nano > .nano-pane > .nano-slider {
    background: #f4f4f4;
}

#chat-wrapper-template .chat-users li a
{
    display: block;
    text-decoration: none;
    /* color: #fff; */
    padding-bottom: 4px;
}
.chat-expand {
    text-decoration: none;
}
a.chat-minus {
    margin: 0 5px 0 7px !important;
}
.popup-tmplate .chat-users li a
{
    padding-bottom: 10px !important;
}
#chat-wrapper-template .chat-username {
    font-size: 13px;
}
/* #chat-wrapper-template .chat-user-mansion {
    color: #efefef;
} */
#chat-wrapper-template .chat-users .fa-circle {
    font-size: 12px;
}
#chat-wrapper-template .chat-user-thumb img {
    width: 45px;
    height: 45px;
}
#chat-wrapper-template .chat-contacts-title {
    font-size: 13px;
}
#chat-wrapper-template .chat-text-input {
    width: 250px;
}
#chat-form-filter {
    display: inline-block;
}
#chat-form-filter input {
    width: 138px;
    height: 20px;
    color: #000;
    border: 1px solid #bbb;
    padding-left: 5px;
}
#chat-form-filter input.empty {
    font-family:FontAwesome;
}
.chat-div-btn {
    float: left;
    border: 1px solid #000;
    height: 439px;
    width: 20px;
    display: table;
}
/* #chat-btn {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    background-color: #fff;
}*/

#chat-wrapper
{
    width: 100%;
    margin: 0;
    padding: 0;
}
.chat-container
{
    margin: auto;
    padding: 0;
    width: 380px;
}
.chat-conversation-active
{
    background-color: #DADADA;
}
#chat-header
{
    width: 100%;
    height: 36px;
    padding: 8px 0;
    color: #000;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #ccc/*#686766*/;
    display: table;
}
#chat-header-minimal
{
    width: 100%;
    height: 32px;
    color: #000;
    text-align: center;
    /*border: 2px solid #ccc#686766*/;
    border-radius: 15px 15px 0 0;
    display: table;
}
#chat-header-minimal div
{
    text-align: right;
    display: table-cell;
    vertical-align: middle;
    padding: 0 10px;
    position: relative;
}
#chat-header-minimal div:first-child
{
    /*border-right: 2px solid #ccc#686766*/;
}
#chat-header-minimal div > .fa
{
    color: #fff;
    font-size: 26px;
}
#chat-header div
{
    text-align: center;
    display: table-cell;
    vertical-align: middle;
}
#chat-header-minimal .chat-thumb
{
    position: relative;
    width: 60px;
    display: inline-block;
    float: left;
}

#chat-header .div-data-user, #chat-header-minimal .div-data-user
{
    position: relative;
    width: 240px;
}

#chat-header .chat-messagges-number, #chat-header-minimal .chat-messagges-number
{
    text-align: center !important;
    display: none;
    top: 7px;
    right: 12px;
    background-color: transparent;
    border: none;
    font-weight: bold;
    font-size: 13px;
}
#chat-header .user-data
{
    margin: 0;
    font-size: 13px;
    color: #000;
    text-decoration: none;
}
.header-content .user-data-minimal
{
    margin: 0 !important;
    text-decoration: none !important;
}
.header-content p .user-data-minimal
{
    font-size: 12px !important;
    color: #000 !important;
}
.header-content small .user-data-minimal
{
    font-size: 12px !important;
    color: #fff !important;
}
#chat-header a, #chat-header-minimal a
{
    margin: 0 20px 0 0;
    font-size: 16px;
    color: #4d4d4d;
}
.popup-tmplate #chat-header a
{
    margin: 0 !important;
}
.popup-tmplate #chat-header div:first-child
{
    width: 20px;
    text-align: left;
    padding-left: 8px;
}
.popup-tmplate #chat-header div:last-child
{
    width: 20px;
}

#chat-header-minimal p
{
    margin: 0 8px 0 0;
    text-transform: uppercase;
}
#chat-header p{
    margin: 0;
    text-transform: uppercase;
}
#chat-header small, #chat-header-minimal small
{
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-transform: none;
}
#chat-header-minimal small {
    margin: 0 11px 0 0;
}
.header-content {
    font-size: 13px;
    line-height: 15px;
}

#chat-header-minimal .header-content {
    line-height: 13px;
}

.header-content > span {
    text-transform: uppercase;
}

.header-content  img{
    float: left;
    margin-right: 30px;
    border: 1px solid #000;
}
#chat-footer
{
    background-color: #f4f4f4;
    color: #4d4d4d;
    padding: 3px 0;
    display: none;
    border-top: 2px solid #ccc/*#686766*/;
}

#chat-left-column {
    position: relative;
    min-width: 260px;
    display: table-cell;
    vertical-align: top;
}

#chat-right-column
{
    width: 380px;
    display: table-cell;
    height: 438px;
    vertical-align: top;
    background-color: #fff;
}

.chat-right-column-container
{
    overflow-y: auto;
    height: 100%;
}

.chat-contacts-title
{
    background-color: #f4f4f4;
    color: #000;
    padding: 8px 12px 8px 12px;
    text-align: left;
    font-size: 16px;
    line-height: 16px;
    font-weight: bold;
    border-radius: 4px;
}
.popup-tmplate .chat-contacts-title {
    display: table;
    padding:0;
}
.chat-contacts-title > div {
    display: table-cell;
    vertical-align: middle;
}

.chat-contacts-title > div span {
    padding-left: 10px;
}
.chat-contacts-title > div {
    display: table-cell;
    vertical-align: middle;
}
.popup-tmplate #chat-form-filter {
    padding-top: 13px;
}
.clearfix
{
    clear: both;
    float: none;
}
.chat-contacts-container
{
    overflow-y: auto;
    height: 400px;
}
.chat-title-divider-circle
{
    font-size: 8px!important;
    position: relative;
    bottom: 2px;
    margin: 0 3px;
}

.chat-users
{
    list-style-type: none;
    margin: 10px 10px 10px 0;
    padding: 0;
}

.chat-users li
{
    margin: 0;
    padding-left: 10px;
    padding-top: 10px;
    border-bottom: 1px solid #fff;
}

.chat-users li:last-child
{
    margin: 0;
}
/*
.chat-users li.new-messages
{
    background-color: #FFFF8E;
    -moz-transition: all 1s ease-in;
    -webkit-transition: all 1s ease-in;
    -o-transition: all 1s ease-in;
    transition: all 1s ease-in;
}
*/

.chat-users li a
{
    text-decoration: none;
}

.chat-discussion-box
{
    list-style-type: none;
    height: 330px;
    text-align: center;
    padding: 5px 8px;
    overflow: auto;
}

.chat-discussion-box > div {
    position: relative;
    margin: 8px 2px;
    text-align: left;
    clear: both;
}
.chat-discussion-right {
    float: right;
}
.chat-discussion-left {
    float: left;
}
.chat-discussion-right .chat-talk-active-box
{
    background-color: #c2ebeb;
    position: relative;
    border: 1px solid /*#000*/#ccc;
    float: right;
}
.chat-discussion-right:after, .chat-discussion-right:before {
    left: 98%;
    top: 42px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.chat-discussion-right:after {
	border-color: rgba(194, 235, 235, 0);
	border-left-color: #c2ebeb;
	border-width: 5px;
	margin-top: -30px;
}
.chat-discussion-right:before {
	border-color: rgba(0, 0, 0, 0);
	border-left-color: #ccc/*#000*/;
	border-width: 6px;
	margin-top: -31px;
}

.chat-discussion-left .chat-talk-active-box{
	position: relative;
	background: #fff;
	border: 1px solid #ccc/*#000*/;
}
.chat-discussion-left:after, .chat-discussion-left:before {
	right: 249px;
        top: 40px;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.chat-discussion-left:after {
	border-color: rgba(255, 255, 255, 0);
	border-right-color: #fff;
	border-width: 5px;
	margin-top: -30px;
}
.chat-discussion-left:before {
	border-color: rgba(0, 0, 0, 0);
	border-right-color: #ccc/*#000*/;
	border-width: 6px;
	margin-top: -31px;
}
.chat-talk-active-time
{
    font-size: 10px;
    color: #7d807c;
    line-height: 12px;
    padding: 0 5px;
    position: absolute;
    right: 0;
}
.chat-discussion-right .chat-talk-active-time {
    bottom: 2px;
}
.chat-discussion-left .chat-talk-active-time {
    bottom: 0px;
}
.chat-user-thumb img
{
    width: 50px;
    height: 50px;
    border: 1px solid #4d4d4d;
}

.chat-user-thumb
{
    display: table-cell;
    padding: 0 15px 0 0;
    position: relative;
    z-index: 2;
}
.chat-user-thumb .img-no-avatar {
    width: 36px !important;
    height: 36px !important;
    padding: 5px;
}
a#chat-window-link {
    margin-right: 7px;
}
.chat-messagges-number {
    position: absolute;
    right: 10px;
    top: -5px;
    background-color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50px;
    border: 1px solid #5b84ab;
    font-size: 13px;
    padding: 0 1px;
    line-height: 18px;
    color: #5b84ab;
    z-index: 5;
    text-align: center;
}
.chat-username-box
{
    display: table-cell;
    vertical-align: middle;
}

.header-status-online {
    background-color: #66cccc;
}

.header-status-busy {
    background-color: #fad25f;
}

.header-status-offline {
    background-color: #bdbfbb;
}

.chat-users .fa-circle
{
    font-size: 18px;
    display: table-cell;
    vertical-align: middle;
    padding: 0 10px 0 0;
}

.chat-user-online .fa-circle
{
    color: #66cccc;
}

.chat-user-busy .fa-circle
{
    color: #fad25f;
}

.chat-user-offline .fa-circle
{
    color: #bdbfbb;
}

.chat-username
{
    color: #000;
    line-height: 18px;
    margin: 0 0 5px 0;
}

.chat-user-active-thumb img
{
    width: 42px;
    height: 42px;
    border: 1px solid #4d4d4d;
}

.chat-user-active-thumb .img-no-avatar
{
    width: 36px;
    height: 36px;
    padding: 5px;
    border: 1px solid #4d4d4d;
}

.chat-user-active-thumb
{
    display: table-cell;
    padding: 0;
}

.chat-user-mansion
{
    font-size: 10px;
   /* color: #7d807c; */
    line-height: 12px;
}

.chat-active-discussion-box
{
    position: relative;
    display: table-cell;
    vertical-align: top;
    width: 250px;
}

.chat-discussion-left .chat-active-discussion-box
{
    padding: 0 0 0 20px;
}

.chat-discussion-right .chat-active-discussion-box
{
    padding: 0 4px 0 0;
}

.chat-discussion-right .chat-active-discussion-container
{
    float: right;
}

.chat-discussion-left .chat-active-discussion-container
{
    float: left;
}

.chat-talk-active-box
{
    display: inline-block;
    border: 1px solid #000;
    padding: 16px 12px;
    font-size: 13px;
    max-width: 235px;
    min-width: 115px;
    word-wrap: break-word;
}
.chat-talk-active-box > a > i
{
    padding-right: 5px;
}

.chat-text-input
{
    width: 310px;
    border: 1px solid #808080 !important;
    border-radius: 5px;
    padding: 5px !important;
    color: #a8a8a8;
    font-size: 14px;
    margin: 3px 10px 0px 7px;
}

.fa-angle-down.chat-user-state
{
    font-size: 12px;
    padding: 5px;
    position: relative;
    z-index: 100;
    display: inline-block;
    cursor: pointer;
}

.chat-user-state-box
{
    position: absolute;
    background-color: #fff;
    padding: 10px;
    border: 1px solid #000;
    text-align: left;
    left: -43px;
    top: 26px;
    z-index: 10;
    cursor: default;
}

.chat-user-state-title
{
    font-size: 12px;
    margin: 0 0 10px 0;
}
.chat-user-state-angle-up
{
    width: 20px;
    height: 9px;
    background: transparent url(../image/layout/menu_triangle.png) no-repeat center center;
    display: block;
    position: absolute;
    width: 100%;
    left: -0px;
    top: -8px;
}
.chat-user-state-angle-down
{
    width: 20px;
    height: 9px;
    background: transparent url(../image/layout/menu_triangle_down.png) no-repeat center center;
    display: block;
    position: absolute;
    right: 40px;
    bottom: -9px;
}
form#chat-form {
    width: 100%;
    margin: 0;
    position: relative;
}
form#chat-form i {
    color: #ccc;
}
#chat-footer .btn-upload {
    height: 28px;
    width: 30px;
    background-color: transparent;
    border: none;
}
#chat-footer .fa-li.fa-lg {
    left: -10px;
    color: #808080;
}
#chat-footer .icon-chat {
    width: 30px;
    text-align: center;
    font-size: 20px;
    color: #808080;
}

#chat-footer .icon-chat:hover {
    cursor: pointer;
}
.chat-user-emo {
    position: absolute;
    top: -54px;
    width: 250px;
    background-color: #fff;
    border: 1px solid #000;
    height: 50px;
    right: 24px;
}
.fontelico-emo {
    margin: 10px;
    color: #000 !important;
    padding-top: 5px;
    display: inline-block;
}
.fontelico-emo:hover{
    cursor: pointer;
}
.chat-errors {
    position: fixed;
    display: none;
    bottom: 12px;
    right: 108px;
    text-align: center;
    background-color: #ff2340;
    color: #fff;
    padding: 5px;
    font-size: 12px;
}
.fancybox-loading {
    width: 24px;
    height: 24px;
    background: url('fancybox_loading.gif') center center no-repeat;
    z-index: 999;
    position: absolute;
    left: 12px;
}

@media (min-width: 1160px) {
    .popup-tmplate .chat-contacts-title {
        width: 100%;
        padding: 0 20px 0 0;
        box-sizing: border-box;
    }
    .chat-contacts-title > div:first-child {
        width: 20%;
    }
    .chat-contacts-title > div:last-child {
        width: 80%;
    }
    .popup-tmplate #chat-form-filter {
        width: 100%;
    }
    .popup-tmplate #chat-form-filter .live-search-box {
        width: 100%;
    }
  }
