#chatMessages-wrap{
	/*display: flex; flex-direction: row;*/
	width: 100%; height: 100%;
	position: relative;
}
#chatMessages-wrap.admin-ux{
	padding-left: 320px;
}
#chatMessages-wrap img.emoji-icon{
	display: inline-block;
	width: 20px; height: 20px;
	vertical-align: text-bottom;
	outline: none;
}
#chatMessages-wrap .avatar{
	display: flex; align-items: center;
}
#chatMessages-wrap .avatar picture{
	display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px;
	font-size: 1.5em; color: var(--e-global-color-text); font-weight: 500;
	border-radius: 50%;
	background-color: rgb(68, 68, 68);
}
#chatMessages-wrap a{ color: inherit; font-weight: 500; text-decoration: underline; }
#chatMessages-wrap .search-wrap{ position: relative; }
#chatMessages-wrap .search-bar{
	display: block; 
	width: 100%;
	padding: 10px 2em 10px 2.2em;
	color: #fff;
	border: 0; border-radius: 10px;
	background-color: transparent;
	-webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
}
#chatMessages-wrap .search-bar-icon{
	display: flex;
	position: absolute; top: 50%; z-index: 1;
	transform: translateY(-50%);
	color: var(--e-global-color-text);
}
#chatMessages-wrap .search-bar-icon.search-icon{ left: 0.7em; }
#chatMessages-wrap .search-bar-icon.delete-icon{ display: none; right: 0.7em; }
#chatMessages-wrap .search-bar-icon svg{
	width: 1em; height: 1em;
	fill: currentColor;
}

/**** chat user list ******/
#chatMessages-userlist{
	display: flex; flex-direction: column;
	width: 320px; height: 100%;
	position: absolute; top: 0; left: 0; z-index: 1;
	border-right-width: 1px; border-right-style: solid; border-right-color: var(--e-global-color-02a16bf);
}
#chatMessages-userlist .userlist-title{ 
	margin: 0; padding: 12px;
	color: #fff; font-weight: 500;
	border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--e-global-color-02a16bf);
	background-color: rgba(42, 40, 40, .9);
}
#user-search-wrap{ padding: 12px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--e-global-color-02a16bf); }
#user-search-result{
	display: none;
	padding: 12px;
}
#chatMessages-userlist .userlist-list{
	height: 100%;
	padding: 12px;
	overflow-x: hidden; overflow-y: auto;
}
#chatMessages-userlist .userlist-user{
	display: flex; gap: 12px;
	padding: 8px;
	position: relative;
	border-radius: 8px;
}
#chatMessages-userlist .userlist-user:hover{
	background-color: rgba(245, 245, 245, .1);
}
#chatMessages-userlist .infos{
	display: flex; flex-direction: column;
	font-size: .8125rem; color: var(--e-global-color-text);
	overflow: hidden;
}
#chatMessages-userlist .infos span{
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#chatMessages-userlist .infos .username{ font-size: 1.2em; color: #fff; font-weight: 500; }
.chat-wrapper{
	width: 100%; height:100%;
	overflow: hidden;
	overflow-y: auto;
}
#chatMessages-userlist .chatMessage-link{
	display: block;
	width: 100%; height: 100%;
	position: absolute; top: 0; left: 0; z-index: 1;
}

#chatMessages-container,
#chatMessages-error{
	display: flex; flex-direction: column;
	width: 100%; height: 100%;
}
#chatMessages-error{
	align-items: center; justify-content: center;
	font-size: 1.2em; color: #fff;
}
#user-infos-wrap{
	display: flex; gap: 10px; align-items: center;
	width: 100%;
	padding: 12px calc(1em + 5px);
	font-size: 0.875em; color: var(--e-global-color-text);
	border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: var(--e-global-color-02a16bf);
}
#user-infos-wrap .dot-svg{ display: flex; width: 4px; height: 4px; }
#user-infos-wrap .dot-svg svg{ width: 100%; height: 100%; fill: currentcolor; }
#user-infos-wrap .username{ font-size: 1.5em; color: #fff; font-weight: 500; }

.chat-wrapper-inner{
	width: 100%; padding: 1em;
}
.message-wrap .message-wrap-inner{
	display: flex;
	width: 100%;
}
.message-wrap.from-me .message-wrap-inner{
	justify-content: right;
}
.chat-message{
	display: flex; flex-direction: row; gap: 8px;
	min-width: 25%; max-width: 45%;
	padding: 10px 5px;
}
.messenger-wrapper.admin-ux .chat-message{
	max-width: 45%;
}
/*.user-avatar .avatar{
	width: 44px; height: 44px;
	border: none; border-radius: 50%;
	background-color: rgb(68,68,68);
}*/
.message{
	display: flex; flex-direction: column; gap: 10px;
	padding: 14px 18px;
	color: #f5f5f5;
	border: 1px solid var(--e-global-color-02a16bf); border-radius: 22px;
	background-color: rgb(52,50,50);
}
.message-wrap.from-me .message{
	background-color: #9b4767;
}
.message-top .username{ font-weight: 500; }
.message-top time{ font-size: 12px; }
.message-text ul, .message-text li{ /*list-style: none;*/ margin: 0px; }
.message-text ul{
	display: flex; flex-direction: column; gap: 5px;
	margin-left: 20px; padding: 12px;
}
.message-text .msg-gal-images{ gap: 5px; padding-bottom: 20px; }
.message-text .msg-gal-images.gal-1{ display: block; }
.message-text .msg-gal-images.gal-2{ display: flex; }
.message-text .msg-gal-images.gal-3{ display: grid; grid-template-columns: repeat(4, 1fr); }
.message-text .msg-gal-images .msg-gal-item{ display: flex; }
.message-text .msg-gal-images .msg-gal-item img{ border-radius: 8px; }


.chat-message-reply-wrap{
	position: relative;
	width: 100%;
	border-top: 1px solid var(--e-global-color-02a16bf);
}
#chat-image-share-wrap{
	display: none;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
}
#chat-image-share-list{
	display: flex; flex-wrap: nowrap; gap: 10px;
	width: fit-content;
	padding: 12px;
	overflow-x: auto; overflow-y: hidden;
}
#chat-image-share-list .image-list-item{
	display: flex; align-items: center; justify-content: center;
	width: 70px; height: 70px;
	position: relative;
	border-radius: 8px;
}
#chat-image-share-list .image-list-item.placeholder{ color: var(--e-global-color-text); background-color: rgba(255,255,255,.1); }
#chat-image-share-list .image-list-item.placeholder svg{ width: 24px; height: 24px; }
#chat-image-share-list .image-list-item img{
	width: 100%; height: 100%;
	object-fit: cover;
	border-radius: 8px;
}
#chat-image-share-list .image-list-item .image-item-delete{
	display: flex;
	width: 20px; height: 20px;
	padding: 5px;
	position: absolute; top: -8px; right: -8px; z-index: 1;
	color: #fff;
	border-radius: 50%;
	background-color: var(--e-global-color-primary);
}
#chat-image-share-list .image-list-item .image-item-delete svg{ width: 100%; height: 100%; fill: currentcolor; }
/**** DROP AREA ****/
#drop-file-area-wrap{
	display: none;
	width: 100%; height: 100%;
	position: absolute; top: 0; left: 0; z-index: 50;
	color: #fff;
	cursor: grabbing;
	background-color: rgba(0,0,0, .7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
#drop-file-area-wrap .area-wrap{
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 100%; height: 100%;
}

.chat-message-reply{
	display: flex; position: relative;
	color: #fff;
}
.btn-action{
	display: flex; align-items: center; justify-content: center;
	min-width: 50px;
	position: relative;
	font-size: 24px; color: #fff; text-align: center;
	cursor: pointer;
}
.btn-action:hover{ color: var(--e-global-color-primary); }
.chat-message-reply svg{
	margin: auto;
	position: absolute; bottom: 14px; left: 0; right: 0;
}
#chat-message-attachment svg{
	transform: rotate(45deg);
}
#chat-message-send, #chat-message-emojies{
	font-size: 20px;
}
#chat-message-reply div:hover svg{
	color: var(--e-global-color-primary);
}
.chat-message-editor{
	width: 100%;
	max-height: 150px;
	overflow-x: hidden;
	overflow-y: auto;
}
#chat-message-editor-content{
	padding: 12px 0;
	outline: none;
}

/*** EMOJIES PICKER ***/
#emoji-piker{
	display: none;
	width: 362px;
	position: absolute; bottom: 100%; right: 32px;
	border: 1px solid var(--e-global-color-02a16bf); border-radius: 8px;
	background-color: var(--e-global-color-ce7617c);
}
#emoji-piker.open{
	display: block;
}
#emoji-piker-nav{
	padding: 12px;
	padding-right: 16px;
}
#emoji-piker-search{ padding: 0 12px; }
#emoji-piker-scroll{ padding: 0 12px; height: 280px; overflow-x: hidden; overflow-y: auto; }
#emoji-piker-scroll .emoji-piker-scroll-wrap{ width: 100%; height: 100%; }
#emoji-piker-scroll .emoji-category .sticky{
	padding: 6px;
	position: sticky; top: -1px; z-index: 1;
	font-weight: 500; text-align: left; color: #fff;
	background-color: rgba(42,40,40, .9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
#emoji-piker-scroll .emoji-cat-list{
	display: grid; grid-template-columns: repeat(9, 1fr);
}
#emoji-piker-scroll .emoji-cat-list .emoji-icon-wrap{
	width: 36px; height: 36px;
	padding: 5px;
}
#emoji-piker-preview{ height: 70px; padding: 12px; }
#emoji-piker-preview .emoji-piker-preview-wrap{
	display: flex; justify-content: left; align-items: center;
    height: 100%;
}
#emoji-preview-icon{ display: flex; }
#emoji-preview-icon .emoji-icon-wrap{ width: 36px; height: 36px;}
#emoji-preview-infos{
	/*display: flex; flex-direction: column; align-items: left;*/
	padding-left: 12px; 
	color: #fff; font-size: 1em;
	overflow: hidden;
}
#emoji-preview-infos.placeholder:after{
	content: 'Pick an emoji...';
	display: block;
	font-size: 16px; color: rgba(255,255,255,0.5);
}
#emoji-preview-infos:after{
	display: none;
}
#emoji-preview-infos span{
	display: block;
	width: 100%;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#emoji-preview-infos .emoji-preview-code{ font-size: 0.9em; color: var(--e-global-color-text); }
#emoji-piker-search-list{ display: none; }