.footer { z-index:2000; } /**/
.chatMessage {
	font-family: 'Open Sans',sans-serif;
}

.chatMessage .side img {
	width:24px;
	height:auto;
	display:block;
	margin-left:auto;
	margin-right:auto;
}

.chatMessageYou > .side {
	float:left;
	width:30px;
	margin-top:7px;
}
.chatMessageHim > .side {
	float:right;
	width:30px;
	margin-top:7px;
}

.chatMessageYou .main {
	margin-left:30px;
	text-align:left;
}
.chatMessageHim .main {
	margin-right:30px;
	text-align:right;
}
.chatMessage .main {
}
.chatMessage .main .content {
	display:inline-block;
	background:#f1f0f0;
	color:#333;
	max-width:172px;
	word-wrap: break-word;
	vertical-align: top;
	margin-top:6px;
    padding: 7px 9px 7px 9px;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
    -webkit-border-radius: 12px;
    border-radius: 12px;
	font-size:0.9em;
	text-align:left;
	font-family:"Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort,system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif;
}

.chatMessageHim .main .content {
    display:inline-block;
    background:#8ec845;
    color:white;

}

/*.chatMessage.chatMessageHim br {
    display: none;
}*/

.chatMessageYou .main .content {
    display:inline-block;
    background:#52b6d9;
    color:white;
}
.chatMessage .main .info {
	font-size:0.6em;
	padding-top:6px;
	color: rgba(0,0,0,.54);
}

.login_notice {
	text-align:center;
	padding:30px 0px 0px 0px;
}


#chatUserSettings .settings {
	font-family: 'Open Sans',sans-serif;
}
#chatUserSettings .settings .title {
	font-weight:900;
	font-size:1.3em;
	text-align:center;
}

/*#chatFriendButton {
	float:left;
	line-height:24px;
	margin:0px 0px 0px 30px;
}*/

/* CHAT MESSAGES LIST */

#chat_messages_list_outer {
    background:#d2e1fa;
    color:#fff;
    position:absolute;
}
#chat_messages_list_outer .options {
    padding:3px;
}
#chat_messages_list_container {
    width:472px;
    max-height:331px;
    overflow-y:auto;
}
.chat_messages_list {
    margin:3px;
    padding:3px;
    position:relative;
    cursor:pointer;
    background:#f1f0f0;
    color:#000;
}
.chat_messages_list .hover {
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    background:white;
    
    /*filter: alpha(opacity=40);
    -moz-opacity: 0.4;
    opacity:0.4;*/
}

.chat_messages_list .image {
    float:left;
}
.chat_messages_list .image img {
    width: 32px;
    height: 32px;
    padding: 7px;
}
.chat_messages_list .name {
    padding:0px 3px;
}
.chat_messages_list .message {
    max-width: 443px;
    padding: 3px;
    word-break: break-all;
    color:#333;
}
.chat_messages_list .date {
    float:right;
}
.chat_messages_list .options {
    padding:3px;
    float:right;
}

/**/
.chat_field.mobile, body.chat .chat_field.browser {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index:2001;
}
.chat_field.browser {
    position:fixed;
    /*bottom:58px;*/
    right:30px;
    left:0px;
    z-index:999;
}

.chat_field.browser > .chatwindows {
    float:left;
    overflow: hidden;
    /* height: 70%; */
    max-height: 382px;
    width: calc( 100% - 240px );
}
/* CHAT FRIENDS LIST */
.chat_friends_list {
    /*height:100%;*/
}



.chat_friends_list.mobile, body.chat .chat_friends_list.browser {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 2001;
    overflow:auto;
}
.chat_friends_list.browser {
    display:inline-block;
    padding: 2px;
    border-radius: 9px;
    vertical-align: bottom;
    position: absolute;
    bottom: 0px;
    right: 0px;
}
body.chatAtSide .chat_friends_list.browser {
    width:204px;
}
body.chat_FL_active .chat_friends_list.browser {
    background-image: url(/img/header_profile.jpg);
    background-position: right;
    box-shadow: 0px 0px 2px 1px lightgrey;
}
/*#chat_fixed_field .chat_friends_list.browser {
    background-image: url(/img/header_profile.jpg);
    background-position: right;
}*/


.chat_friends_list .title {
    color:#fff;
    text-align:center;
    font-weight:900;
    cursor:pointer;
    background:#1E90FE;
    width:223px;
    border-radius:9px 9px 0px 0px;
    height: 21px;
    vertical-align: middle;
    line-height: 21px;
    position:relative;
    padding:3px;
}
body:not(.mobile) .chat_friends_list .title > .opts {
    margin-right:7px;
    position:absolute;
    right:0px;
    top:50%;
    transform:translate(0%,-50%);
}
body:not(.mobile) .chat_friends_list .title #noticesChat {
    display:inline-block;
    border-radius:33px;
    color:white;
}
body:not(.mobile) .chat_friends_list .title #noticesChat.active {
    background:red;
    box-shadow:0px 0px 2px 1px yellow;
    padding:0px 3px;
}
body:not(.mobile) .chat_friends_list .title #noticesChat.unactive {
    display:none;
}

body:not(.chat_FL_active) .chat_friends_list.browser .title {
    width:111px;
    float:right;
}
body.chat_FL_active .chat_friends_list.browser .title {
}
.chat_friends_list .title .btn.settings {
    width:24px;
    float:right;
}
.chat_friends_list .title .btn {
    color:#fff;
}
.chat_friends_list .title .btn:hover {
    opacity:0.5;
}
.chat_friends_list.browser .content {
    /*display:inline-block;*/
}
.chat_friends_list.mobile .content {
    padding-bottom:57px;/* for bottom navigation bar */
    /*10.4.23, mobile problems, footer*/
    /*height: 87%;
    overflow: auto;*/
}
.chat_friends_list.browser .content.bottom > #chat_friends_list_outer {
    height:300px;
}
.chat_friends_list .bottom {
    /*display:none;*/
    /*height:333px;*/
    width:223px;
}
.chat_friends_list .side {
    /*min-height:130px;*/
    /*width:187px;*/
}

/**/
/* LMOCHCSSCC0001 Check size of chats before clicking them.  */
#chat_friends_list_outer { /* from droptag.js */
    /*max-height: 100px;*/
    /*overflow: auto;*/ /* PROBLEM if using overflow on SDK_INT 30 */
    /*height: calc(100% - 400px);*/
}
.chatBX { /* from droptag.js */
    /*max-height: 400px;
    height: 82vmax;*/    
    overflow: scroll;
    height: 73vmax;
    height: calc(100% - 176px);
}
#chat_friends_list_container {
    /*overflow:auto;
    position: absolute;
    width: 100%;.*/
}
.chat_friends_list.browser .content:not(.side) #chat_friends_list_container { /* from droptag.js */
    height:300px; /* with header_fixed, height is modified by resolutions.js */
    overflow:auto; /* missing on browser */
}
#chat_fixed_field .chat_friends_list.browser #chat_friends_list_container { /* from droptag.js */
    border-radius: 9px;
    margin: 0px 2px;
}
.chat_field .chat_friends_list.browser #chat_friends_list_container { /* from droptag.js */
}
.chat_friends_list.mobile #chat_friends_list_container {
    /*10.4.23,
    height:93%;
    margin-bottom:70px;*/
}
#chat_friends_list_top { /* from droptag.js */
}
#chat_friends_list_bottom { /* from droptag.js */
    position:absolute;
    bottom:0;
}
.chat_friends_list_bottom input {
    width:165px;
    border:solid 1px #ccc;
    float:right;
    padding-left:21px;
    height:18px;
}

#chat_friends_find_outer {
    position:relative;
}
.chat_friends_find::before {
    background-image: url(/img/lupa.png);
    background-repeat: no-repeat;
    background-size: auto;
    content: '';
    display: inline-block;
    height: 16px;
    left: 1px;
    position: absolute;
    bottom: 1px;
    width:16px;
    height:16px;
}
.chat_friends_search::before {
    background-image: url(/img/loader.gif);
    background-repeat: no-repeat;
    background-size: auto;
    content: '';
    display: inline-block;
    height: 16px;
    left: 1px;
    position: absolute;
    bottom: 1px;
    width:16px;
    height:16px;
}
/**/

.chat_friends_list_div {
    cursor:pointer;
    padding:3px;
    position:relative;
    background:white;
    z-index:3;
    height: 74px;
    overflow:hidden;
}
.chat_friends_list_div.sys {
    border-bottom:solid 1px red;
}
.chat_friends_list_div .hover {
    /*background:#cfcfcf;*/
    /*.chat_messages_list .hover {*/
    /*position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;*/
    background:white;
    
    /*filter: alpha(opacity=40);
    -moz-opacity: 0.4;
    opacity:0.4;*/
    z-index:-1;
/*}*/
}

.chat_friends_list_div .image {
    width:auto ;
    height:auto;
    float:left;
}
.chat_friends_list_div .image img {
    width: 75px;
    height: 75px;
    border-radius: 40px;
}
.chat_friends_list_div .status {
    width: 15px;
    height: 15px;
    border-radius: 25px;
    float: left;
    margin: 58px 0px 0px -24px;
}
.chat_friends_list_div .cmd {
    position: absolute;
    right: 11px;
    top: 11px;
}
.chat_friends_list_div .cmd:hover .cmd_menu {
    display:inline-block;
}
.chat_friends_list_div .cmd > .cmd_menu {
    position:absolute;
    background:#0294F5;
    display:none;
    padding:7px 3px;
    right:1px;
    top:0px;
    width:80px;
    border-radius:25px;
}

.chat_friends_list_div .cmd > .cmd_menu > div {
    font-size:0.7em;
}

.chat_friends_list_div .status_on { background:#07F607; }
.chat_friends_list_div .status_idle { background:#F5DE0A; }
.chat_friends_list_div .status_off { background:gray; }
.chat_friends_list_div .status_occupied { background:red; }
.chat_friends_list .user_on {/*background:#f1f0f0;*/}
.chat_friends_list .user_idle {}
.chat_friends_list .user_off {}
.chat_friends_list .user_occupied {}

.chat_friends_list_div .name {
    font-size: 0.9em;
    color: #333;
    margin: 20px 17px 0px 0px;
    white-space: nowrap;
    overflow: auto;
    text-overflow: ellipsis;
}
.chat_friends_list_div .name .not_seen_messages {
    background: red;
    color: white;
    border-radius: 66px;
    padding: 1px 4px;
    position: absolute;
    right: 13px;
    top: 50%;
    transform:translate(0,-50%);
    display:none;
    font-size: 0.8em !important;
    font-weight: bolder;
}
.chat_friends_list_div .name .last_message {
    font-family:"Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort,system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif;
}
.chat_friends_list_div .name .not_seen_messages.active {
    display:inline-block;
}
.chat_friends_list.browser .chat_friends_list_div .name {
    margin-left:80px;
    overflow-x: hidden;
}

.chat_friends_list .name h4.usrname {
    margin: 0px 0px 0px 0px;
    text-transform: capitalize;
}
body:not(.mobile) .chat_friends_list .name h4.usrname {
    width: 120px;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 22px;
    display: block;
}
/* CHAT WINDOWS */
body.chat:not(.mobile) .chat_field.browser .chat_windows {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background:white;
}
body.chat.mobile .chat_field.mobile .chat_windows {
    position: absolute;
    top: 0px; /*10.4.23, if this is not set then title and back button are missing (mobile)*/
    left: -100%;
    bottom: 0px;
    width:100%;
    background:white;
    transition:all 1s;
}
body.chat.mobile .chat_field.mobile .chat_windows.active {
    left:0px;
    transition:all 1s;
}

/*body.c_i_f .chat_field.mobile .chat_windows {
    bottom:0px;
}*/

.chat_field.browser .chat_windows {
    display:inline-block;
    padding: 3px 3px 0px 3px;
    background-color: #f5f7f8;
}


.chat_field .chat_windows > .title {
    background:white;
    color: rgba(13, 13, 13, 0.87);
    text-align:center;
    font-weight:900;
    padding:2px;
}
.chat_field.mobile .chat_windows > .title {
    box-shadow: 0px 1px 9px 0px #aaaaaa;
}
.chat_field .chat_windows > .title > .loader {
    float:right;
    width:14px;
    height:14px;
}
.chat_field .chat_windows > .title > a {
    color:black;
}
.chat_field .chat_windows img {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    border-radius: 35px;
    margin: 4px 4px;
}
.chat_field.browser .chat_windows > .title {
    cursor:pointer;
    border-radius:13px 13px 0px 0px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.chat_field .chat_windows > .content {
    overflow-y:auto;
    overflow-x:hidden;
    background:#f5f7f8;
}
.chat_field.browser .chat_windows > .content {
    width:auto;
    height:300px;
    margin: 6px 10px;
}
.chat_field .chat_windows > .chat_input {
    word-wrap: break-word;
    min-height: 22px;
    border: solid 1px #52b6d9!important;
    background-color: #fff!important;
    border-radius: 6px!important;
    margin: 6px 2px;
    overflow-y: visible;
}
.chat_windows > .title .btn {
    float:right;
    cursor:pointer;
}
/**/
.chat_settings {
    display:none;
    width:90%;
    margin-left:auto;
    margin-right:auto;
    background:#BBBBBB;
}
button.chat_windows_back {
    background-color: white;
    border: none;
}

/* definitions of body.some_class_name and chat.
 *----------------------------------------------
 * - .c_i_f => chat input is focused. 
 * - .c_f_o => chat friend window is open
 * - .KIO   => mobile keyboard is visible
 * */
body.chat .chat_field.browser .chat_windows > .content {
    /*height:calc(100% - 77px);*/
}

/*body.chat.c_i_f .chat_field.browser .chat_windows > .content {
    height:calc(100% - 77px);
}*/
/* LPCCHCSSOS0001 Content charBx style css */
body.chat .chat_field.mobile .chat_windows > .content {
    /*height:calc( 100% - 104px );*/
    overflow:auto;
}

/*body.chat.mobile.c_i_f.KIO .chat_field.mobile .chat_windows > .content { height:calc( 100% - 50px ); }
body.chat.mobile.c_i_f:not(.KIO) .chat_field.mobile .chat_windows > .content { height:calc( 100% - 50px ); }*/
body.chat.mobile.c_f_o_a .chat_field .chat_windows > .content { /*height:calc( 100% - 108px );*/ }
body.chat.mobile.c_f_o_a > div.header {
    display:none;
}
body.chat.mobile.c_f_o_a > div.nav {
    display:none;
}
body.chat.mobile.c_f_o_a #chat_fixed_field {
    top:0px;
}



/*--*/
.chat_field .chat_windows .chat_input {
    position:relative;
}

/* fonts for colored emoji but they fuck the letters. what is possible to insert emo in special block.
 * "Noto Color Emoji" */
body:not(.mobile) .chat_field .chat_windows .chat_input > div.textarea {
    font-family:"Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort,system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif;
    text-align: left;
    margin-right: 40px;
    max-height: 100px;
	overflow: auto;
	background: white !important;
	font-size: 1em;
	vertical-align: middle;
	line-height: 35px;
	-webkit-writing-mode: horizontal-tb !important;
}

body.mobile .chat_field .chat_windows .chat_input {
    /*max-height:66px;
    overflow:auto;*/
}
/*body.c_i_f.mobile  .chat_field .chat_windows .chat_input {}*/

.chat_field .chat_windows .chat_input > .chat_input_opts { 
    float:right;
    /*margin: 0px 4px 0px 0px;*/
    display:none;
    z-index:2;
}
body/*.c_i_f*/ .chat_field .chat_windows .chat_input > .chat_input_opts {
    position:absolute;
    padding:2px;
    display:block;
    
    right: 0%;
    top: 50%;
    transform: translate(0%,-50%);
}

.chat_field .chat_windows .chat_input > .chat_input_opts > button {
    float:right;
    background-position: center;
    background-repeat: no-repeat;
    border-style: hidden;
    margin: 1px 4px;
}
.chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton {
    height: 22px;
    width: 27px;
    position:relative;
    background:white;
    padding:0px;
}
body/*.c_i_f*/ .chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton {
    width:30px;
    height:30px;
}
.chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton .emosxxxfield {}
.chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton .emosxxxbutton {}
.chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton .emosxxx {
    position: absolute;
    bottom: 40px;
    right: 0px;
}
.chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton .emosxxxbutton:before {
    display:none;
}

body/*.c_i_f*/ .chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton .emosxxxfield { 
    width:30px;
    height:30px;
    margin:0px auto;
}
body/*.c_i_f*/ .chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton .emosxxxbutton { 
    width:30px;
    height:30px;
    background: none;
    border: none;
    outline: none;
}
body/*.c_i_f*/ .chat_field .chat_windows .chat_input > .chat_input_opts > button.chatEmojiButton .emosxxxbutton:before {
    width:30px;
    height:30px;
    font-size: 2em;
    display: block;
}


.chat_field .chat_windows .chat_input > .chat_input_opts > button.chatSendButton {
    background-color: white;
    background-image: url(/img/Enviar.png);
    background-size: 100% 100%;
    height: 30px;
    width: 36px;
}

body.c_i_f .chat_field .chat_windows .chat_input > .chat_input_opts > button.chatSendButton {
    width:36px;
    height:30px; 
}
.chat_field .chat_windows .chat_input > div.input[contentEditable=true] {
    height:36px;
    background:white !important;
    font-size: 1em;
    vertical-align: middle;
    line-height: 26px;
}
/*body.c_i_f .chat_field .chat_windows .chat_input > div.input[contentEditable=true] {
    height:36px;
    overflow:auto;
    margin: 0px 83px 0px 0px;
}*/

/*body.chat.c_i_f.mobile > div.nav { display:none !important; }
body.chat.c_i_f.mobile > .header { display:none !important; }
body.chat.c_i_f.mobile #chat_fixed_field { top:0px !important; }
body.chat.c_i_f.mobile #chat_fixed_field .chat_windows > .chat_windows_back { display:none; !important; }
body.chat.c_i_f.mobile #chat_fixed_field .chat_windows > .title { display:none; !important; }*/

body:not(.emoji_active) .chat_field.mobile .chat_windows .chat_input > div.input[contentEditable=true]:empty:not(:focus):before {
    content: attr(data-text);
    margin: 0px 5px;
    color: #aaaaaa;
}
*:focus {
    outline: none;
}
