.chat .panel{
	max-width: 500px;
	border: 1px #A0A0A0 solid;
}

.chat .icon{
	height: 70px;
	padding-top: 23px;
	
}
.chat #contact{
	width: 50px;
	height: 50px;
	margin: auto;
	padding: 7px 8px 7px 8px;
	background-color :#A4A4A4;
	border-radius: 25px 25px 25px 25px;
}

.chat .fa-info-circle, .chat .fa-chevron-left{
	font-size: 25px;
	color: #37A7FD;
}

.chat .fa-user{
	font-size: 35px;
	color: #FFFFFF;
}

.chat .panel-body{
	padding-left: 30px;
	/* height: 60vh!important; */
	overflow-x: hidden;
	overflow-y: scroll;
}

.chat .date{
	color: #A4A4A4;
	text-align: center;
	margin-bottom: 5px;
}

.chat .bold{
	font-weight: bold;
}

.chat .message{
	font-size: 1.2em;
	width: auto;
	max-width: 300px;
	border-radius: 15px;
	padding: 10px;
	margin-bottom: 10px;
}

.chat .message-div-left {
	margin-left: -5px !important;
	margin-right: auto !important;
	/*float: left;*/
}

.chat .message-div-right {
	margin-left: auto !important;
	margin-right: -5px !important;
	/*float: right;*/
	display: table;
}

.chat .message-left {
	background-color: #E5E5EA;
	padding-left: .5rem;
	padding-right: .5rem;
	padding-top: .25rem;
	padding-bottom: .25rem;
}

.chat .message-image-left {
	padding-left: .5rem;
	padding-right: .5rem;
	padding-top: .25rem;
	padding-bottom: .25rem;
}
.chat .message-image-left figure {
	margin: 0px !important;
}

.chat .message-right{
	color: #FFFFFF;
	background-color: #1a8ef8;
	padding-left: .5rem;
	padding-right: .5rem;
	padding-top: .25rem;
	padding-bottom: .25rem;
}

.chat .message-image-right{
	padding-left: .5rem;
	padding-right: .5rem;
	padding-top: .25rem;
	padding-bottom: .25rem;
}
.chat .message-image-right figure {
	margin: 0px !important;
}

.chat .fa-send, .chat .fa-camera{
	color: #848484;
}

.chat .message-div {
	transition: all .25s;
	padding-bottom: 15px;
}

.chat .message-div:hover .message-right {
/*	transform: translateY(-130px); */
}

.chat .message-div:hover .message-left {
/*	transform: translateY(130px); */
}

.chat .message-div:hover .message-date {
	opacity: 1;
}

.chat .message-div .message-name {
	background: #eee;
	color: #999;
	position: absolute;
	z-index: 5;
	padding: 6px 0;
	border-radius: 50%;
	bottom: 0;
	height: 35px;
	width: 35px;
	display: inline;
	text-align: center;
}

.chat .message-div-left .message-name {
/*	right: -5px;
	top: -5px;*/
    right: 20px;
    top: -32px;
    position: relative;
    width: 120px;
    padding: 5px;
    font-size: smaller;
}

.chat .message-div-right .message-name {
/*	left: -5px;
	top: -5px;*/
    right: 32px;
    top: -32px;
    position: relative;
    width: 120px;
    padding: 8px;
    font-size: smaller;
}

.chat .message-div .message-date {
	font-size: 14px;
	white-space: nowrap;
	vertical-align: middle;
	color: #8b8b90;
	opacity: 0;
	z-index: 4;
	position: relative;
	max-width: 300px;
	top: -20px;
	left: auto;
	font-size: 12px;
}

.chat .message-div-left .message-date {
	top: 0px;
	text-align: left!important;
}

.chat .message-div-right .message-date {
	top: 0px;
	text-align: right!important;
}

.chat .lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.8);
	img {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		margin: auto;
		max-width: 100%;
		max-height: 100%;
	}
	&:target {
		outline: none;
		display: block;
	}
}


.imessage {
  background-color: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  font-family: "SanFrancisco";
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  max-width: 600px;
  padding: 0.5rem 1.5rem;
}

.imessage p {
  border-radius: 1.15rem;
  line-height: 1.25;
  max-width: 75%;
  width: fit-content;
  padding: 0.5rem .875rem;
  position: relative;
  word-wrap: break-word;
}

.imessage p::before,
.imessage p::after {
  bottom: -0.1rem;
  content: "";
  height: 1rem;
  position: absolute;
}

.entry-right p.imessage-text {
  background-color: #248bf5;
  color: #fff;
  left: 7px;
}

.entry-right p.imessage-text::before {
  border-bottom-left-radius: 0.8rem 0.7rem;
  border-right: 1rem solid #248bf5;
  right: -0.35rem;
  transform: translate(0, -0.1rem);
}

.entry-right p.imessage-text::after {
  background-color: #fff;
  border-bottom-left-radius: 0.5rem;
  right: -40px;
  transform:translate(-30px, -2px);
  width: 10px;
}

.entry p[class^="from-"] {
  margin: 0.5rem 0;
  width: fit-content;
}

.entry-right p.imessage-text ~ p.imessage-right {
  margin: 0.25rem 0 0;
}

.entry-right p.imessage-text ~ p.imessage-right:not(:last-child) {
  margin: 0.25rem 0 0;
}

.entry-right p.imessage-text ~ p.imessage-right:last-child {
  margin-bottom: 0.5rem;
}

.entry-left p.imessage-text {
  align-items: flex-start;
  background-color: #e5e5ea;
  color: #000;
}

.entry-left p.imessage-text:before {
  border-bottom-right-radius: 0.8rem 0.7rem;
  border-left: 1rem solid #e5e5ea;
  left: -0.35rem;
  transform: translate(0, -0.1rem);
}

.entry-left p.imessage-text::after {
  background-color: #fff;
  border-bottom-right-radius: 0.5rem;
  left: 20px;
  transform: translate(-30px, -2px);
  width: 10px;
}

.entry p[class^="from-"].emoji {
  background: none;
  font-size: 2.5rem;
}

.entry p[class^="from-"].emoji::before {
  content: none;
}

.no-tail::before {
  display: none;
}

.margin-b_none {
  margin-bottom: 0 !important;
}

.margin-b_one {
  margin-bottom: 1rem !important;
}

.margin-t_one {
  margin-top: 1rem !important;
}


.chat .entry:hover .message-date {
	opacity: 1;
}

.chat .entry .message-date {
	font-size: 14px;
	white-space: nowrap;
	vertical-align: middle;
	color: #8b8b90;
	opacity: 0;
	z-index: 4;
	position: relative;
	max-width: 300px;
	top: -20px;
	left: auto;
	font-size: 12px;
}

.chat .entry-left {
	align-items: flex-start;
}

.chat .entry-right {
/*	align-self: flex-end;*/
    display: flex;
    justify-content: flex-end;
}

.chat .entry-left .message-date {
	top: 0px;
	text-align: left!important;
}

.chat .entry-right .message-date {
	top: 0px;
	text-align: right!important;
}

.chat .entry .imessage-name {
	background: #eee;
	color: #999;
	position: absolute;
	z-index: 5;
	padding: 6px 0;
	border-radius: 50%;
	bottom: 0;
	height: 35px;
	width: 35px;
	display: inline;
	text-align: center;
}

.chat .entry-left .imessage-name {
/*	right: -5px;
	top: -5px;*/
    right: 27px;
    top: -32px;
    position: relative;
    width: 120px;
    padding: 5px;
    font-size: smaller;
}

.chat .entry-right .imessage-name {
    right: -12px;
    top: 23px;
    position: relative;
    width: 120px;
    padding: 8px;
    font-size: smaller;
    float: right;
    width: fit-content;
}

.chat .entry .imessage-date {
	font-size: 14px;
	white-space: nowrap;
	vertical-align: middle;
	color: #8b8b90;
	opacity: 0;
	z-index: 4;
	position: relative;
	max-width: 300px;
	top: -20px;
	left: auto;
	font-size: 12px;
}

.chat .entry-left .imessage-date {
	top: 0px;
	text-align: left!important;
}

.chat .entry-right .imessage-date {
    left: 110px;
    top: -20px;
	text-align: right!important;
}

.chat .entry:hover .imessage-date {
	opacity: 1;
}

