
* {
    box-sizing: border-box;
}
div.mess {
    background: none repeat scroll 0 0 #fff;
    color: #FFFFFF;
    font-family: "Open Sans";
    line-height: 16px;
    width: 400px;
	margin: 20px auto;
    overflow-X: hidden;
    position: relative;
}
.left {
  position: absolute;
  top: 0;
  left: 25px;
  font-weight: bold;
  font-size: 17px;
  color: black;
}

.left:after {
    border: 3px solid #2095FE;
    border-right: 3px solid transparent;
    border-top: 3px solid transparent;
    content: " ";
    height: 10px;
    left: -15px;
    position: absolute;
    top: 5px;
    -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
    width: 10px;
}
.right {
  position: absolute;
  top: 0;
  right: 15px;
  font-size: 18px
}
header.mess {
  color: #2095FE;
  background: #eee;
  border: 1px solid #ccc;
  border-bottom: 1px solid #bbb;
  box-shadow: 0 1px 2px rgba(1,1,1,0.2);
  height: 28px;
  text-align: center;
  font-size: 20px;
  line-height: 28px;
  white-space: nowrap;
  
}
span.messfrom {

}
.messages-wrapper {
  padding-top: 5px;
  position: relative;
  border: 1px solid #ddd;
  border-top: 0 none;
}
.message {
    border-radius: 10px 10px 10px 10px;
    margin: 0 15px 10px;
    padding: 5px 10px;
    position: relative;
}
.message.to {
    background-color: #feeec8; /* #2095FE */
		text-indent: 0px;
    color: black;
		margin-right: 15px;
		margin-left: auto;
		width: max-content;
		max-width: 350px;
}
.message.from {
    background-color: #ebebeb; /* #E5E4E9 */
		text-indent: 0px;
		color: black;
		margin-left: 15px;
		margin-right: auto;
		width: max-content;
		max-width: 350px;
}
.message.to + .message.to,
.message.from + .message.from {
  margin-top: -7px;
}
.message:before {
    border-color: #2095FE;
    border-radius: 50% 50% 50% 50%;
    border-style: solid;
    border-width: 0 20px;
    bottom: 0;
    clip: rect(20px, 35px, 42px, 0px);
    content: " ";
    height: 40px;
    position: absolute;
    right: -50px;
    width: 30px;
    z-index: -1;
}
.message.from:before {
    border-color: #E5E4E9;
    left: -50px;
    transform: rotateY(180deg);
}