#chat-window {
    max-height: 360px;
    overflow-y: auto;
    margin: 10px 0;
    background-color: #f1f1f1;
}
#chat-window .element {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
#chat-window .element.inbox{
	
}
#chat-window .element.outbox {
    justify-content: end;
}
#chat-window .message {
    background-color: #fff;
    padding: 10px 10px;
    margin: 5px 10px;
    min-width: 300px;
	max-width: calc(100% - 100px);
}

#chat-window .message .date {
    width: 100%;
    opacity: 0.8;
    font-size: 11px;
}

#chat-window .message .username {
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
}
#chat-window .element.outbox .message {
    background-color: #4c5c25;
    color: #fff;
    
}
#chat-window .element .foto {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
	 margin-right: 10px;
}
#chat-window .element.inbox .foto {
    order: -1;
    margin-left: 10px;
}

#chat-window .element .bukva {
    background-color: #4c5c25;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 35px;
    opacity: 0.5;
}
#chat-window .text {
	margin: 10px 0;
}
#chat-window .reply-message .date,
#chat-window .reply-message .controls{
	display: none;
}
#chat-window .reply-message .username{
	
}
#chat-window .reply-message .text {
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
#chat-window .reply-message {
    border-left: 6px solid #e7e7e7;
    background-color: #3d491e;
    padding: 10px 10px 8px 20px;
    margin-bottom: 10px;
}

#chat-window .element.inbox .reply-message {
    background-color: #efefef;
    border-left: 6px solid #c2c2c2;
}
@media (max-width: 768px){
	#chat-window .element{
		position: relative;
	}
	#chat-window .element .foto {
		width: 40px;
		height: 40px;
		position: absolute;
		
		top: 0;
		margin: -15px 0px 0px 0px;
		transform: translateX(-20px);
	}
	#chat-window .element.inbox .foto {
		width: 40px;
		height: 40px;
		position: absolute;
		
		top: 0;
		margin: -15px 0px 0px 0px;
		transform: translateX(20px);
	}
	#chat-window .message {
		margin-bottom: 20px;
		padding-top: 27px;
	}
	#chat-window .element .bukva {
		opacity: 1;
		font-size: 16px;
	}
	#chat-window {
		padding-top: 20px;
	}
	#chat-window .text {
		font-size: 14px;
		margin: 7px 0;
	}
	#chat-window .controls {
		font-size: 12px;
	}
}