.content.chat-content,
.content.modal-chat-content
{
	display: flex;
	flex-direction:column;
	align-items: stretch;
	align-content: stretch;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
}

.chat_for_user #chat_history_container, .chat_for_user_embed  #chat_history_container,
.chat_for_user #modal_chat_history_container, .chat_for_user_embed  #modal_chat_history_container {
	max-height:100%;
	height: auto !important; /* wpex *!*/
	bottom:0;
	position: absolute;
	overflow-x: hidden;
	width: 100%;
	-webkit-overflow-scrolling: touch;
}

@media all and (min-width: 768px)
{

.chat-footer
{
	position: initial;
	padding-left: 0;
	padding-right: 0;
}

}

.chat-history-container-wrapper
{
	flex-grow: 100;
    top: 0;
    bottom: 0;
    right: 0;
	/* wpex fix */
position: relative;
	height: auto;
}

	#wrapper.chat_for_user_embed .list-group,
	#modal_wrapper.chat_for_user_embed .list-group,
	#wrapper.chat_for_user .list-group,
	#modal_wrapper.chat_for_user .list-group
	{
		display: flex;
		flex-direction: column;
		flex-flow: column nowrap;
		justify-content:flex-end;
	}
