@charset "utf-8";
/* CHAT MSG */

[order-messages-container] {
	display: block;
	min-height: 200px;
	background: #fcfcfc;
	background-image: url(../img/chat-bg/ep_naturalwhite.png);
	width: calc(100% + 20px);
	margin-left: -15px;
	border-top: 1px solid #efefef;
	margin-bottom: -25px!important;
	border-bottom: 2px solid #efefef;
	max-height: calc( 100vh - 370px);
	overflow: auto;
	border: 5px solid #fff;
	position: relative;
	visibility: hidden;
	opacity: 0;
	transition-duration: .36s; 
	transition-delay: .06s;
}

[order-messages-container].front {
	display: block;
	min-height: 200px;
	background: #fcfcfc;
	background-image: url(../img/chat-bg/ep_naturalwhite.png);
	width: 100%;
	margin: 0!important;
	padding: 0!important;
	border: 0!important;
	margin-bottom: 0!important;
	max-height: calc( 100vh - 370px);
	overflow: auto;
	position: relative;
	visibility: hidden;
	opacity: 0;
	transition-duration: .36s;
	transition-delay: .06s;
	font-family: Roboto, Arial;
    font-size: 20px!important;
	font-weight: 500;
}

[order-messages-container].actived {
	visibility: visible!important;
	opacity: 1!important;
}
[order-messages-container]:before,
[order-messages-container]:after {
	content: ' ';
	position: sticky;
	left: 0;
	right: 0;
	height: 1px;
	display: block;
	z-index: 9999;
}
[order-messages-container]:after {
	display: none;
}
[order-messages-container]:before {
	top: -1px;
	margin-top: -1px;
	box-shadow: 0 2px 4px rgba(0,0,0,.16);
}
[order-messages-container]:after {
	bottom: -1px;
	box-shadow: 0 -2px 4px rgba(0,0,0,.16);
}

[order-messages-container] [no-messages]{
    display: inline-block;
    background: rgba(0,0,0,.06);
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff!important;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 5rem;
    transform: translate(-50%,-50%);
    box-shadow: 0 1px 0 rgba(0,0,0,.16);
    text-shadow: 0 1px 0 rgba(0,0,0,.16);
    line-height: 1;
}
/* width */
[order-messages-container]::-webkit-scrollbar {
  width: 6px;
}

/* Track */
[order-messages-container]::-webkit-scrollbar-track {
  background: #f1f1f1; 
}

/* Handle */
[order-messages-container]::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
[order-messages-container]::-webkit-scrollbar-thumb:hover {
  background: #555; 
}


[order-messages-input-container], 
[order-messages-input-container].opened + div {
	display: none;
}
[order-messages-input-container].opened,
[order-messages-input-container] + div {
	display: block;
}

[order-messages-container] > .msg {
	display: block;
	position: relative;
}
[order-messages-container] > .msg:first-child,
[order-messages-container] > .msg.msg-new {
	margin-top: 15px;
}
[order-messages-container] > .msg:last-child {
	margin-bottom: 15px;
}
[order-messages-container] > .msg > div {
	display: inline-block;
    max-width: 70%;
    padding: 6px 15px;
	padding-bottom: 8px;
    padding-right: 75px;
    background: #fff;
    margin-bottom: 2px;
    margin-left: 18px;
	margin-right: 18px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.16);
	position: relative;
}
[order-messages-container] > .msg.msg-left > div { 
	padding-right: 25px;
}

[order-messages-container] > .msg.msg-left > div {
	margin-left: 18px;
}
[order-messages-container] > .msg.msg-right > div {
	margin-right: 18px;
}
[order-messages-container] > .msg.msg-right {
	text-align: right;
}

[order-messages-container] > .msg.msg-right > div {
	background: #DCF8C6;
}

[order-messages-container] > .msg.msg-left.msg-new > div {
	border-top-left-radius: 0px;
}
[order-messages-container] > .msg.msg-right.msg-new > div {
	border-top-right-radius: 0px;
}
	
[order-messages-container] > .msg h5 {
	display: block;
	margin: 0;
	font-weight: 600;
    font-size: 13px;
}
[order-messages-container] > .msg span {
	display: inline-block;
	text-align: left;
	white-space: pre-wrap;
	word-break: break-word;
	/*word-break: break-all;*/
}
[order-messages-container] > .msg:not(.msg-day):not(.msg-attachment) span {
	line-height: 1.2;
    margin-top: 3px;
}
[order-messages-container] > .msg:not(.msg-day):not(.msg-right):not(.msg-attachment) span:after {
	display: inline-block;
	content: ' ';
	width: 50px;
	height: 1px;
    vertical-align: bottom;
}
[order-messages-container] > .msg:not(.msg-day):not(.msg-attachment).msg-right span:after {
	display: inline-block;
	content: ' ';
	width: 5px;
	height: 1px;
    vertical-align: bottom;
}
[order-messages-container] > .msg.msg-attachment:not(.msg-uploading) > div {
	padding: 4px!important;
}
[order-messages-container] > .msg.msg-attachment:not(.msg-uploading) h5 {
    margin: 6px 11px;
}

[order-messages-container] > .msg.msg-attachment.msg-new:not(.msg-right):not(.msg-uploading) span {
	margin-top: 3px;
}
[order-messages-container] > .msg.msg-attachment:not(.msg-uploading) span {
	line-height: 1;
}
[order-messages-container] > .msg.msg-attachment:not(.msg-uploading) span img {
    border-radius: 6px;
    margin: 0;
	cursor: pointer;
}

[order-messages-container] > .msg.msg-day {
	/*background: rgba(0,0,0,.06);*/
    margin-top: 15px;
    text-align: center;
    padding-top: 8px;
	display: inline-block;
	left: 50%;
	transform: translate(-50%,0);
	position: sticky;
	top: 0;
	z-index: 999;
}
[order-messages-container] > .msg.msg-day > span {
	background: #E1F3FB;
	padding: 4px 10px;
    border-radius: 8rem;
    box-shadow: 0 1px 0 rgba(0,0,0,.16);
	min-width: 80px;
    text-align: center;
}
[order-messages-container] > .msg:not(.msg-new) h5,
[order-messages-container] > .msg.msg-right h5 {
	display: none;
}
[order-messages-container] > .msg small[time] {
    opacity: .5;
    display: inline-block;
    font-size: 11px;
    line-height: 1;
	position: absolute;
    bottom: 5px;
    right: 8px;
}

[order-messages-container] > .msg.msg-right small[time] {
	right: 26px;
}

[order-messages-container] > .msg.msg-left small[time] + i {
	display: none;
}
[order-messages-container] > .msg small[time] + i {
    opacity: .5;
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    position: absolute;
    right: 6px;
    bottom: 3px;
	
}

[order-messages-container] > .msg.msg-attachment:not(.msg-uploading) span a {
    display: block;
    margin: 12px 15px;
	line-height: 1.2;
}
[order-messages-container] > .msg.msg-attachment:not(.msg-uploading).msg-right span a {
    margin-right: 75px;
}
[order-messages-container] > .msg.msg-attachment:not(.msg-uploading).msg-left span a {
	margin-left: 12px;
    margin-right: 48px;
}
[order-messages-container] > .msg.msg-attachment:not(.msg-uploading).msg-new span a {
    /*margin-top: 0;*/
}

[order-messages-container] > .msg.msg-attachment:not(.msg-uploading) span a:before {
	content: 'Allegato: ';
	font-weight: 600;
	color: #4b4b4b;
}
html[lang="en"] [order-messages-container] > .msg.msg-attachment:not(.msg-uploading) span a:before {
	content: 'Attachment: ';
}
[order-messages-container] > .msg.msg-attachment:not(.msg-uploading) small[time] {
    background: #fff;
    opacity: 1;
    font-weight: 400;
}
[order-messages-container] > .msg.msg-attachment.msg-left:not(.msg-uploading) small[time] {
    right: 4px;
    bottom: 4px;
    padding-top: 4px;
    padding-left: 5px;
    border-top-left-radius: 6px;
}
[order-messages-container] > .msg.msg-attachment.msg-right:not(.msg-uploading) small[time] {
	background: #DCF8C6;
	right: 19px;
    bottom: 4px;
    padding-top: 5px;
    padding-left: 5px;
    border-top-left-radius: 6px;
    padding-right: 5px;
	opacity: .5;
}
[order-messages-container] > .msg.msg-attachment.msg-right:not(.msg-uploading) small[time] + i{
	right: 4px;
	opacity: .5;
	background: #DCF8C6;
	line-height: 1.1
}
.msg.msg-new:before,
.msg.msg-new:after {
    width: 0;
    height: 0;
    border-top: 0px solid transparent;
    border-bottom: 15px solid transparent;
    content: ' ';
    position: absolute; 
    top: 0;
}
.msg span > [attachment] [abort-upload] {
	font-size: 13px;
    color: brown;
    font-variant: all-petite-caps;
    cursor: pointer;
    opacity: .8;
    font-weight: 600;
}
.msg span > [attachment] [abort-upload]:hover {
	opacity: 1;
}
.msg.msg-left.msg-new:before {
	left: 3px;
    z-index: 1;
	border-right: 15px solid #fff;
}
.msg.msg-left.msg-new:after {
    left: 2px;
    z-index: 0;
	border-right: 15px solid #ddd;
}


.msg.msg-right.msg-new:before {
	right: 3px;
    z-index: 1;
}
.msg.msg-right.msg-new:after {
    right: 2px;
    z-index: 0;
}
.msg.msg-right.msg-new:before {
	right: 3px;
    z-index: 1;
	border-left: 15px solid #DCF8C6;
}
.msg.msg-right.msg-new:after {
    right: 2px;
    z-index: 0;
	border-left: 15px solid #ccc;
}

[order-messages-input]{
	border-radius: 20px;
	padding: 0 15px;
	resize: none;
	line-height: 1!important;
	padding-top: 11px;
	padding-bottom: 11px;
	display: block;
	border-top-right-radius: 0; 
	border-bottom-right-radius: 0;
	font-family: Roboto, Arial;
    font-weight: 300;
}
[order-messages-input].front {
    line-height: 16px!important;
    font-size: 18px;
    border-radius: 0;
    border-color: transparent;
    padding: 20px 30px;
    height: 60px;
    max-height: 60px;
	border-left: 1px solid #e5e5e5;
	border-right: 1px solid #e5e5e5;
}
[order-messages-input].front:focus {
	border-bottom-color: deepskyblue;
}
@media screen and (min-width: 1200px){
	[order-messages-input].front {
		padding: 20px;
	}
} 

[order-messages-button] {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	text-align: center;
	color: #4b4b4b;
	cursor: pointer;
	border: none;
	line-height: 40px;
	background: none;
	background: transparent;
}
[order-messages-button].front {
    height: 60px;
    border-radius: 0;
    border-color: transparent;
	background: #fff;
	color: deepskyblue;
}

[order-messages-button]:hover {
	background: #fff;
}
[order-messages-button].front:hover {
	background: #efefef;
}
[order-messages-button]:active {
	background: #fff;
	outline: 2px solid deepskyblue;
	z-index: 9;
	position: relative;
}
[order-messages-button]:focus {
	background: #efefef;
	z-index: 9;
	position: relative;
	outline: 2px solid deepskyblue;
}
[order-messages-button-send] {
	border: 1px solid #ddd;
    line-height: 38px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    text-indent: 2.5px;

	width: 60px;
	font-size: 24px;

}

[order-messages-button-attach] {
	border: 1px solid #ddd;
    line-height: 38px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    color: #4b4b4b!important;

	width: 60px;
	font-size: 24px;
}
[order-messages-input].front {
line-height: 18px !important;
font-size: 22px;
}