.chat {
	position: fixed;
	bottom: 0;
	right: 10px;
	background: #fff;
	width: 0;
	height: 0;
	opacity: 0;
	overflow: hidden;
	z-index: 10000000;
	-webkit-box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.3);
	-moz-box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.3);
	box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.3);
	border-top: 1px solid #ff8838;
	border-left: 1px solid #ff8838;
	border-right: 1px solid #ff8838;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}
.chat-message [data-call] {
	cursor: pointer;
}
.chat-message [data-call] svg {
	width: 16px;
	height: 16px;
	fill: #ff8838;
}
.chat-show-loading .chat-loading {
	display: block;
}
.chat-loading {
	display: none;
	text-align: center;
	margin: 50px 0;
}
.chat-loading svg {
	width: 50px;
	height: 50px;
}
.chat-inner {
	position: absolute;
	width: 100%;
	top: 0;
	bottom: 0;
}
.chat-close {
	right: 10px;
	background: #fff;
}

.chat-menu-owner svg,
.chat-video-call svg,
.chat-close svg,
.chat-explode svg,
.chat-implode svg {
	fill: #ff8838;
	width: 14px;
	height: 14px;
	margin: 3px;
}
.chat-video-call svg {
	width: 20px;
	height: 20px;
	margin: 0;
}
.chat-video-call:hover svg,
.chat-menu-owner:hover svg,
.chat-explode:hover svg,
.chat-implode:hover svg,
.chat-close:hover svg {
	fill: #ff8838;
}

.chat-explode {
	right: 10px;
}
.chat-menu-owner {
	display: none;
	right: 70px;
}
.chat-owner .chat-menu-owner {
	display: block;
}
.chat-implode {
	right: 40px;
}
.chat-video-call {
	right: 70px;
}
.chat-video-call,
.chat-menu-owner,
.chat-explode,
.chat-implode,
.chat-close {
	border-radius: 50%;
	position: absolute;
	top: 15px;
	width: 20px;
	height: 20px;
	overflow: hidden;
	cursor: pointer;
}
.chat-icon {
	display: table-cell;
	height: 50px;
	width: 50px;
	text-align: center;
	vertical-align: middle;
	padding-left: 4px;
}
.chat-icon svg {
	width: 12px;
	height: 12px;
	fill: #ff8838;
}
.to-read .chat-title {
	color: #ff8838;
}
.to-read .chat-icon svg {
	fill: #ff8838;
}
.chat-title .image-td-visitatore {
	border-radius: 50%;
}
.chat-title span {
	display: block;
	font-weight: normal;
	color: #777;
	font-size: 11px;
}
.chat-title:hover span,
.chat-title:hover {
	color: #ff8838;
}
.chat-title {
	cursor: pointer;
	display: table-cell;
	height: 50px;
	width: 150px;
	vertical-align: middle;
	text-align: left;
	padding-left: 3px;
	font-size: 13px;
	font-weight: bold;
}
.chat-explode {
	display: none;
}
.chat.implode {
	border-color: transparent;
	-webkit-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.3);
	-moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.3);
	box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.3);
}
.chat-app .chat-invio {
	display: block;
}
.chat-invio {
	display: none;
	cursor: pointer;
	position: absolute;
	top: 5px;
	right: 30px;
	width: 30px;
	height: 30px;
	margin-top: 2.5px;
}
.chat.implode .chat-content,
.chat.implode .chat-toolbar,
.chat.implode .chat-close,
.chat.implode .chat-video-call,
.chat.implode .chat-implode {
	display: none;
}
.chat.implode .chat-header {
	width: 150px;
}

.chat.implode .chat-title {
	width: 95px;
	font-size: 8px;
}
.chat.implode .chat-explode {
	display: block;
}

.chat-toolbar,
.chat-content,
.chat-header {
	position: absolute;
	left: 0;
	right: 0;
	width: 100%;
}
.chat-header {
	top: 0;
	height: 50px;
	overflow: hidden;
	box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.8);
}
.chat-content {
	top: 0;
	bottom: 45px;
	top: 50px;
	overflow: hidden;
	overflow-y: auto;
}
.chat-toolbar {
	bottom: 0;
	height: 45px;
	overflow: hidden;
}

.chat-message {
	position: relative;
	margin: 10px 5px 20px 5px;
}
.chat-message .chat-message-user {
	display: none;
}
.j-tab-content .chat-message .chat-message-user, .pagina-entita-chat .chat-message-user {
	display: block;
	padding-left: 5px;
}
.chat-message-inner {
	position: relative;
}
.chat-message-content {
	padding: 5px 10px;
	font-size: 14px;
	overflow-wrap: break-word;
}
.chat-message-user svg {
	width: 10px;
	height: 10px;
	fill: #888;
	margin-right: 5px;
}
.chat-message-user {
	position: absolute;
	bottom: -11px;
	left: 0;
	color: #888;
	text-transform: uppercase;
	font-size: 8px;
}
.chat-message-time {
	position: absolute;
	font-size: 8px;
	bottom: -11px;
	right: 15px;
	color: #888;
}
.chat-message[data-user="you"] .chat-message-inner {
	background: transparent;
	margin-right: 10px;
	margin-left: 50px;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
	border-top-right-radius: 8px;
	background: #bcdfec;
}
.chat-message[data-user="other"] .chat-message-inner {
	margin-left: 10px;
	margin-right: 50px;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	border-bottom-left-radius: 8px;
	background: #dcdcde;
}
.chat-invio svg {
	fill: #191970;
}
.chat-invio svg,
.chat-allegato svg {
	width: 20px;
	height: 20px;
	margin: 5px;
}
.chat-allegato svg {
	opacity: 0.5;
}
.chat-allegato:hover svg {
	opacity: 1;
}
.chat-allegato {
	cursor: pointer;
	position: absolute;
	top: 5px;
	right: 0px;
	width: 30px;
	height: 30px;
	margin-top: 2.5px;
}
.chat-testo {
	position: absolute;
	height: 35px;
	right: 35px;
	top: 5px;
	left: 5px;
	display: flex;
	min-width: 0;
}
.chat-app .chat-testo {
	right: 65px;
}
.chat-testo textarea {
	height: 30px;
	font-size: 12px;
	min-width: 0;
	background: #fff;
	padding: 2px 5px;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	flex-grow: 1;
	flex-shrink: 1;
	resize: none;
	outline: none;
}
.chat-message-status-send {
	width: 10px;
	height: 10px;
	position: absolute;
	right: 2px;
	bottom: -11px;
}
.chat-message-status-send svg {
	display: none;
	width: 10px;
	height: 10px;
	fill: #888;
}
.chat-message-status-send.send svg {
	display: block;
}
.chat-show-load-old .chat-load-old {
	display: block;
}
.chat-show-load-old.chat-show-loading .chat-load-old {
	display: none;
}
.chat-load-old:hover {
	color: #ff8838;
}
.chat-load-old {
	display: none;
	cursor: pointer;
	margin-top: 10px;
	margin-bottom: 20px;
	text-align: center;
	color: #800080;
	text-transform: uppercase;
	font-size: 9px;
	font-weight: bold;
}
.chat-message-download:hover svg {
	opacity: 1;
}
.chat-message-download svg {
	width: 20px;
	opacity: 0.5;
}

.chat-message-content-file {
	position: relative;
}
.chat-message-file-name {
	padding-left: 26px;
	font-size: 11px;
}
.chat-message-file-image img {
	max-width: 190px;
	max-height: 190px;
}
.chat-message-file-image {
	text-align: center;
}
.chat-message-download {
	cursor: pointer;
	position: absolute;
	left: 0;
	bottom: 2px;
	height: 16px;
	width: 20px;
}
.chat-anteprima-dettaglio {
	font-size: 9px;
	color: #777;
	text-transform: uppercase;
}
.chat-anteprima-testo {
	height: 28px;
	font-size: 11px;
	color: #777;
	overflow: hidden;
	overflow-wrap: break-word;
}
.chat-anteprima-testo.da-leggere {
	font-weight: bold;
	color: #ff8838;
}
.chat-anteprima-data {
	float: right;
	width: 70px;
	font-size: 11px;
	color: #777;
	text-align: right;
}
.chat-anteprima-nome strong {
	margin-right: 80px;
	display: block;
}
.chat-anteprima-nome {
	float: left;
	width: 100%;
	margin-right: -70px;
}
.chat-tipo-utente {
	font-size: 9px;
	text-transform: uppercase;
	text-align: center;
	color: #777;
}

.j-window-application-notification-bar .action-layer {
	padding: 0;
}

.chat-message-delete:hover svg {
	fill: #ff8838;
}
.chat-message-delete svg {
	width: 20px;
	height: 20px;
	fill: #ff8838;
}
.chat-message-delete {
	position: absolute;
	top: 0px;
	right: 10px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.chat.pagina-entita-live .domande {
	margin: 5px;
}

.chat-inner {
  display: flex;
  flex-direction: column;
}
.chat-inner .chat-header {
  position: relative;
  flex-shrink: 0;
}
.chat-inner .chat-content {
  position: relative;
  bottom: unset;
  top: unset;
  flex-grow: 1;
}
.chat-inner .chat-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 7px;
  height: auto;
  min-height: 45px;
}
.chat-inner .chat-toolbar .chat-testo {
  position: relative;
  height: auto;
  width: 100%;
  margin-right: 10px;
  background: #eee;
  border-radius: 15px;
  padding: 7px 10px;
  margin-bottom: 10px;
}
.chat-inner .chat-toolbar .chat-testo textarea {
  height: 106px;
  position: relative;
  min-height: 16px;
  height: 21px;
  max-height: 120px;
  border-right: 10px solid #eeeeee;
  bottom: unset;
  line-height: 17px;
  padding-right: 4px;
  background-color: transparent;
  border: 0px none;
  padding-bottom: 0;
  padding-top: 0;
}
.chat-inner .chat-toolbar .chat-allegato {
  position: relative;
  display: flex !important;
  align-items: flex-end;
  height: auto;
  top: unset;
  margin-right: 5px;
}
.chat-inner .chat-toolbar .chat-allegato svg {
  margin-top: auto;
}
.chat-inner .chat-toolbar .chat-invio {
  position: relative;
  top: unset;
  right: unset;
}
