/*/ Polylog SA @ 2023 /*/

/*/ Chat /*/
	
.fwk-chat {
	margin: 10px 0;
	}

.fwk-chat-dash {
	display: block;
	margin: 10px 0;
	border-radius: var(--round2);
	background: var(--gray1);
	padding: 15px;
	}

.fwk-chat-thread {
	text-align: center;
	}

.fwk-chat-thread .fwk-box {
	text-align: left;
	}

.fwk-chat.chat-public,
.fwk-chat.chat-public .fwk-chat-send {
	border-color: var(--gray1);
	}

.fwk-chat.chat-public .fwk-chat-send .fwk-linky.scol-main {
	background: var(--orange) !important;
	}

.fwk-chat-dash-h5 {
	font-size: inherit;
	line-height: 43px;
	font-weight: 600;
	padding: 0 14px;
	margin: -15px -15px 15px;
	display: block;
	min-height: 43px;
	border-radius: var(--round2) var(--round2) 0 0;
	border-bottom: 2px solid var(--white);
}

/*/ Envoyer un message /*/
	
.fwk-chat-send { 
	margin: 0 0 15px;
	padding: 15px;
	border-radius: var(--round2);
	background: var(--gray1);
	}

.fwk-chat-send-privacy {
	padding: 15px 5px 0px;
	}

.fwk-chat-send .fwk-linky { 
	margin: 15px 7px 0 0;
	background-color: var(--white);
	}

.fwk-chat-send .fwk-linky sup {
	box-shadow: 0 0 0 3px var(--gray1);
	}

.fwk-chat-send .fwk-linky.linky-right,
.fwk-chat-send .fwk-right .fwk-linky { 
	margin: 15px 0 0 7px;
	}
	
.fwk-chat-send textarea { 
	min-height: 48px;
	resize: none;
	background: var(--white);
	border-radius: 10px;
	}

.fwk-chat-send textarea:focus {
	background: var(--white);
	}

.fwk-chat-send-h5 {
	margin: -15px -15px 15px;
	font-size: inherit;
	line-height: 43px;
	font-weight: 600;
	padding: 0 14px;
	display: block;
	min-height: 43px;
	border-bottom: 2px solid var(--white);
}

/*/ Date et heure /*/
	
.fwk-chat-time { 
	display: block;
	margin: 15px auto 5px;
	text-align: center;
	font-size: 10px;
	color: var(--mid1);
	font-weight: 400;
	}

.fwk-chat-dash .fwk-chat-time {
	text-align: left;
	color: var(--dark1);
	}

/*/ Message /*/

.fwk-chat-message { 
	position: relative;
	float: left;
	text-align: left;
	line-height: 20px;
	padding: 10px 15px; 
	margin: 5px 0 10px;
	border-radius: var(--round2);
	max-width: 70%;
	background: var(--mid1-light);
	color: var(--fixdark);
	overflow-wrap: break-word;
	}

.fwk-chat.chat-public .fwk-chat-message { 
	background: var(--orange-light);
	color: var(--fixdark);
	}

.fwk-chat-right .fwk-chat-message { 
	float: right;
	background: var(--main-light);
	color: var(--fixdark);
	}

.fwk-chat-cuco .fwk-chat-message {
	background: var(--mid1-light) !important;
	color: var(--fixdark);
}

.fwk-chat-message.message-center {
	float: none;
	display: inline-block;
	text-align: center;
	margin: 5px auto;
	max-width: 280px;
	background: none;
	padding: 5px 10px;
	color: var(--fixdark);
	font-size: 10px;
	background: var(--mid1-light);
}

.fwk-chat-dash .fwk-chat-message.message-center {
	background: var(--col4);
	color: var(--fixlight);
	max-width: 100%;
	float: left;
}

.fwk-chat-dash .fwk-chat-message.message-center i {
	color: var(--fixlight);
}

/*/ Contenu du message /*/

.fwk-chat-message i { 
	width: 15px;
	font-size: 7px;
	color: var(--main);
	text-align: left;
	}
	
.fwk-chat-message b { 
	font-weight: 600;
	color: var(--main);
	}

.fwk-chat-message a { 
	font-weight: 600;
	}
		
.fwk-chat-message strong { 
	border-bottom: 1.5px solid;
	display: block;
	padding-bottom: 5px;
	margin-bottom: 15px;
	}
	
.fwk-chat-message span { 
	position: absolute;
	bottom: 0;
	right: 0;
	border-radius: var(--round1);
	padding: 0 7px 0 4px;
	min-width: 25px;
	height: 20px;
	line-height: 20px;
	font-size: 10px;
	font-weight: 600;
	margin: 0 -8px -8px 0;
	text-align: center;
	background: var(--green);
	color: var(--white);
	}
	
.fwk-chat-message span i { 
	display: inline-block;
	margin-right: 0;
	}

.fwk-chat-message-signature {
	font-weight: 600;
	font-size: 9px;
	margin-top: 5px;
	color: var(--main);
	}

/*/ Sticker /*/
	
.fwk-chat-sticker { 
	float: left;
	min-width: 75px;
	height: 75px;
	line-height: 75px;
	font-size: 55px;
	text-align: left;
	}
	
.fwk-chat-right .fwk-chat-sticker { 
	float: right;
	text-align: right;
	}
	
/*/ Photo de profil /*/

.fwk-chat-author {
	position: relative;
	float: left;
	margin: 5px 15px 15px 0;
	border-radius: var(--round2);
	line-height: 40px;
	width: 40px;
	height: 40px;
	text-align: center;
	background-position: center;
	background-size: cover;
	background-color: var(--dark1);
	color: var(--white);
	}

.fwk-chat-author sup { 
	display: block;
	position: absolute;
	top: 0; 
	right: 0;
	border-radius: var(--round1);
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	background: var(--main);
	color: var(--white);
	margin: -5px;
	box-shadow: 0 0 0 2px var(--white);
	}
	
.fwk-chat-author img { 
	display: block; 
	border-radius: inherit; 
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: auto !important;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0; 
	right: 0;
	}
	
.fwk-chat-right .fwk-chat-author {
	float: right;
	margin: 5px 0 5px 15px;
	}

.fwk-chat-author.author-nobgd {
	background: none;
	box-shadow: none;
	}	

/*/ Pièces jointes /*/

.fwk-chat-attachments { 
	margin: 5px 0;
	max-width: calc(100% - 55px);
	}
		
.fwk-chat-right .fwk-chat-attachments {
	float: right;
	}
	
.fwk-chat-attachments-item { 
	float: left;
	margin: 0 15px 5px 0;
	border-radius: var(--round1);
	max-width: 250px;
	max-height: 150px;
	width: auto;
	height: auto;
	}

.fwk-chat-right .fwk-chat-attachments-item {
	margin: 0 0 5px 15px;
	}
	
.fwk-chat-attachments-item b { 
	display: block;
	text-align: center;
	font-size: 30px;
	line-height: 40px;
	min-width: 100px;
	min-height: 100px;
	padding: 20px;
	border-radius: var(--round1);
	background-color: var(--gray1);
	color: var(--dark1);
	}
	
.fwk-chat-attachments-item span { 
	display: block;
	font-size: 9px;
	line-height: 20px;
	white-space: nowrap; 
	overflow: hidden; 
	text-overflow: ellipsis;
	}
		
.fwk-chat-attachments-item img { 
	display: inline-block;
	border-radius: var(--round1);
	max-width: 250px;
	max-height: 150px;
	width: auto;
	height: auto;
	background-color: var(--gray1);
	color: var(--dark1);
	box-shadow: 0 0 0 3px var(--gray1);
	}
	
/*/ Boîte à conversations /*/
	
.fwk-chatbox {
	display: none;
	position: fixed;
	bottom: 0;
	right: 0;
	z-index: 901;
	margin: 20px;
	border-radius: var(--round2);
	background: var(--mid1-light);
	width: 100%;
	max-width: 420px;
	max-height: 640px;
	overflow: auto;
	}
	
.fwk-chatbox-conv {
	display: block;
	padding: 15px;
	}
	
.fwk-chatbox-body td {
	vertical-align: top;
	padding: 15px 20px;
	}

.fwk-chatbox-body-left {
	width: 56px;
	padding-right: 0px !important;
}

.fwk-chatbox-body-right {
	text-align: right;
}

.fwk-chatbox-body-right .fwk-tag {
	margin-right: 0;
}

.fwk-chatbox-body tr:hover td {
	opacity: 0.8;
	cursor: pointer;
	}
	
.fwk-chatbox-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 902;
	border-radius: var(--round2) var(--round2) 0 0;
	background: var(--mid1-light);
	color: var(--white);
	border-bottom: 3px solid var(--white);
	}

.fwk-chatbox-header p {
	display: block;
	margin: 5px 10px;
	font-weight: 600;
}

.fwk-chatbox-header td {
	vertical-align: middle;
	padding: 10px;
	}

.fwk-chatbox-header .fwk-linky {
	background: var(--mid1);
	color: var(--white);
}

.fwk-chatbox-liner {
	padding: 0 20px !important;
}
.fwk-chatbox-liner div {
	height: 2px;
	background: var(--gray1);
}