@charset "utf-8";
/*---------------------------------------*/
/*------ NJ-42 : LIVE CHAT [START] ------*/
/*---------------------------------------*/
.chat_area_box.chat_area_box--im {
	position: relative;
}
/* reset */
.live-chat,
.live-chat:before,
.live-chat:after,
.live-chat *,
.live-chat *:before,
.live-chat *:after {
	box-sizing: border-box;
}
.live-chat p {
	font-size: inherit;
	line-height: inherit;
}
.live-chat img {
	display: block;
	width: 100%;
}
.live-chat {
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	width: 100%;
	height: 100%;
	font-size: 1.5rem;
	line-height: 1.6;
	color: #555;
	border-top-left-radius: .5rem;
	border-top-right-radius: .5rem;
	background-color: #fff;
	box-shadow: 0 0 1rem rgba(0,0,0,.15);
	transition: all .2s linear;
	z-index: 30;
}
.live-chat > .live-chat-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	height: 100%;
	overflow: hidden;
}
/* head (open / close) */
.live-chat .live-chat-head {
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
.live-chat .live-chat-head > a {
	display: block;
}
.live-chat .live-chat-head > .head-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 6.4rem;
	color: #2e2e2e;
	text-decoration: none;
	background-color: #fff;
	padding: 0 2rem;
	border-top-left-radius: .5rem;
	border-top-right-radius: .5rem;
	box-shadow: 0 0 1rem rgba(0,0,0,.2);
	transition: all .2s linear;
}
.live-chat .live-chat-head > .head-btn:hover {
	background-color: #f5f5f5;
}
.live-chat .live-chat-head .icon-arrow {
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
	background-image: url(../images/live-chat/arrow-down.svg);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	transition: all .2s linear;
}
/* body */
.live-chat .live-chat-body {
	flex: 1;
	background-color: #fff;
	overflow: hidden;
}
.live-chat .live-chat-body > .body-inner {
	display: block;
	width: 100%;
	height: 100%;
	overflow: auto;
	padding: 3rem 1rem 2rem;
}
.live-chat-msg-list,
.live-chat-msg-list:before,
.live-chat-msg-list:after,
.live-chat-msg-list *,
.live-chat-msg-list *:before,
.live-chat-msg-list *:after {
	box-sizing: border-box;
}
.live-chat-msg-list p {
	font-size: inherit;
	line-height: inherit;
}
.live-chat-msg-list img {
	display: block;
	width: 100%;
}
.live-chat-msg-list {

}
.live-chat-msg-list > li {
	
}
.live-chat-msg-list > li + li {
	margin-top: 10px;
}
.live-chat-msg-list .msg-box {
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
}
.live-chat-msg-list .msg-box.box-left {
	padding-right: 5rem;
}
.live-chat-msg-list .msg-box.box-right {
	flex-direction: row-reverse;
	padding-left: 5rem;
}
.live-chat-msg-list .msg-box .fi-avatar {

}
.live-chat-msg-list .msg-box .avatar-img {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	overflow: hidden;
}
.live-chat-msg-list .msg-box .fi-msg {
	position: relative;
	padding-left: 1rem;
}
.live-chat-msg-list .msg-box.box-right .fi-msg {
	padding-left: 0;
	padding-right: 1rem;
}
.live-chat-msg-list .msg-box .msg-bubble {
	font-family: 'Arial', sans-serif;
	font-size: 1.4rem;
	line-height: 1.6;
	color: #2e2e2e;
	padding: 1.5rem 1rem;
	border-radius: 2rem;
}
.live-chat-msg-list .msg-box .msg-bubble,
.live-chat-msg-list .msg-box .msg-bubble p {
	word-wrap: break-word;
	word-break: break-word;
}
.live-chat-msg-list .msg-box.box-left .msg-bubble {
	border-bottom-left-radius: 0;
}
.live-chat-msg-list .msg-box.box-right .msg-bubble {
	border-bottom-right-radius: 0;
}
.live-chat-msg-list .msg-box.box-bg-blue .msg-bubble {
	background-color: #DAECFF;
}
.live-chat-msg-list .msg-box.box-bg-grey .msg-bubble {
	background-color: #F4F5F8;
}
.live-chat-msg-list .msg-box.box-bg-orange .msg-bubble {
	background-color: #FFEED8;
}
.live-chat-msg-list .msg-box .msg-time-wrap {
	margin-top: 5px
}
.live-chat-msg-list .msg-box.box-right .msg-time-wrap {
	text-align: right;
}
.live-chat-msg-list .msg-box .msg-time {
	font-family: 'Arial', sans-serif;
	font-size: 1.2rem;
	color: #ccc;
}
/* attachment file style */
.live-chat-msg-list .msg-attachment {
	padding: 0;
	max-width: 48%;
}

.live-chat-msg-list .msg-attachment .msg-time-wrap {
	margin-top: 5px;
}

.live-chat-msg-list .msg-attachment.user-file {
	margin: 0 0 0 auto;
	text-align: right;
	padding-right: 1rem;
}

.live-chat-msg-list .msg-attachment.teacher-file {
	padding-left: 1rem;
}

.live-chat-msg-list .msg-attachment > .msg-attachment-inner {
	position: relative;
	padding: 1rem;
	background-color: #F4F5F8;
	border-radius: 1rem;
}
.live-chat-msg-list .msg-attachment .file-wrap {

}
.live-chat-msg-list .msg-attachment .file-wrap .file-icon {
	position: relative;
	margin: 0 auto;
}
/* image preview */
.live-chat-msg-list .msg-attachment .file-wrap .file-icon.type-image {
	max-width: 20rem;
	border-radius: .5rem;
	overflow: hidden;
}
.live-chat-msg-list .msg-attachment .file-wrap .file-icon.type-image .icon-img > img {
	max-height: 25rem;
	object-fit: cover;
}
.live-chat-msg-list .msg-attachment .file-wrap .file-icon .file-download {
	position: absolute;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity .2s linear;
}
.live-chat-msg-list .msg-attachment .file-wrap .file-icon:hover .file-download {
	display: block;
	opacity: 1;
}
/* format icon */
.live-chat-msg-list .msg-attachment .file-wrap .file-icon.type-format-icon {
	width: 8rem;
}
.live-chat-msg-list .msg-attachment .file-wrap .file-icon .file-download > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background-color: #fff;
	overflow: hidden;

	box-shadow: 0 0 .5rem rgba(0,0,0,.15);
	transition: all .2s linear;
}
.live-chat-msg-list .msg-attachment .file-wrap .file-icon .file-download > a:hover {
	box-shadow: .0 0 .8rem rgba(0,0,0,.3);
}
.live-chat-msg-list .msg-attachment .file-wrap .file-icon .file-download > a > .icon-download {
	width: 2rem;
}
.live-chat-msg-list .msg-attachment .file-wrap .file-icon .file-download > a:hover img {
	opacity: 1;
}
.live-chat-msg-list .msg-attachment .file-wrap audio {
	display: block;
	width: 100%;
	filter: drop-shadow(0 0 1rem rgba(0,0,0,.15));
}
.live-chat-msg-list .msg-attachment .note-wrap {
	text-align: center;
	margin-top: 1rem;
}
/* foot */
.live-chat .live-chat-foot {
	flex-shrink: 0;
}
.live-chat .live-chat-foot > .foot-inner {
	background-color: #43464b;
	padding: 1rem;
}
.live-chat .live-chat-input-group {
	display: flex;
	align-items: stretch;
	margin: 0 -.5rem;
}
.live-chat .live-chat-input-group > li {
	padding: 0 .5rem;
}
.live-chat .live-chat-input-group .li-textarea {
	flex: 1;
}
.live-chat .live-chat-input-group > li > textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-height: auto;
	max-height: 26vh;
	font-size: 1.4rem;
	color: #2e2e2e;
	box-shadow: none;
	border: none;
	border-radius: 4px;
}
.live-chat .live-chat-input-group .live-chat-send-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 6rem;
	height: 4rem;
	background-color: #16a9b2;
	border-radius: 4px;
	color: #fff;
	font-size: 1.6rem;
	text-align: center;
	padding: 0 .5rem;
	border: none;
	-webkit-transition: all 0.2s linear;
	transition: all 0.2s linear;
}
.live-chat .live-chat-input-group > li {
	display: flex;
    flex-direction: row;
    align-items: center;
}
.live-chat .live-chat-input-group .live-chat-send-btn:hover{
	background: #18c3cc;
}
.live-chat .live-chat-input-group .live-chat-send-btn.disable,
.live-chat .live-chat-input-group .live-chat-send-btn.disabled,
.live-chat .live-chat-input-group .live-chat-send-btn:disabled {
	color: #ccc !important;
	background-color: #f4f4f4 !important;
	box-shadow: none;
	cursor: default;
	pointer-events: none;
}
.live-chat .live-chat-foot .live-chat-input-help {
	text-align: center;
	color: #fff;
	margin-top: 1rem;
}
/* open / close */
.live-chat.closed {
	top: calc(100% - 6.4rem);
}
.live-chat.closed .live-chat-head .icon-arrow {
	transform: rotateZ(180deg);
}
.live-chat-msg-list .msg-block {
	margin: 5rem;
}
.live-chat-msg-list .msg-box .msg-bubble-speech {
	display:flex;
	padding: 6px;
	border-radius: 8px;
	background-color:#94969F;
}
.live-chat-msg-list .msg-box .msg-bubble-speech  div {
	display:flex;
}
.live-chat-msg-list .msg-box .msg-bubble-speech button {
	min-width: 30px; height: 30px; border: 1px solid black; border-radius: 100%; cursor: pointer;
}
.live-chat-msg-list .msg-box .msg-bubble-speech i {
	color: #65A6E2;
}
.live-chat-msg-list .msg-box .msg-bubble-speech p {
	margin: 0px 4px ;padding:4px;background-color: #DDDEDE
}
/*-------------------------------------*/
/*------ NJ-42 : LIVE CHAT [END] ------*/
/*-------------------------------------*/

/* NJ-26716 start */

.teacher_msg .msg-time-wrap {
	position: unset !important;
	display: inline-block;
	float: left;
	clear: both;
}

.student_msg .msg-time-wrap {
	position: unset !important;
	display: inline-block;
	float: right;
	clear: both;
}

.live-chat-msg-list p {
	line-height: 1.5;
	overflow-wrap: break-word;
}

.live-chat-msg-list .msg-bubble p {
	color: #555556;
	vertical-align: inherit;
}

.teacher_msg .comment {
	text-align: left;
	padding: 12px;
	position: relative;
	clear: both;
	background-color: rgb(237, 171, 86);
	margin-top: -25px;
	z-index: 20;
	display: inline-block;
	color: rgb(255, 255, 255);
	border-radius: 22px 24px 20px 20px;
	float: left;
}

.teacher_msg .has-comment {
	text-align: left;
	padding: 12px 12px 25px !important;
	position: relative;
	clear: both;
	border-radius: 22px 24px 20px 0px !important;
	background-color: rgb(255, 237, 216) !important;
	display: inline-block;
	margin-bottom: 8px;
	float: left;
}

.student_msg .has-comment {
	text-align: left;
	padding: 12px 12px 25px !important;
	position: relative;
	clear: both;
	border-radius: 22px 24px 0px 20px !important;
	background-color: rgb(218, 237, 255) !important;
	display: inline-block;
	margin-bottom: 8px;
	float: right;
}

.student_msg .comment {
	text-align: left;
	padding: 12px;
	position: relative;
	clear: both;
	background-color: rgb(69, 160, 246);
	margin-top: -25px;
	z-index: 20;
	display: inline-block;
	color: rgb(255, 255, 255);
	border-radius: 22px 24px 20px 20px;
	float: right;
}

.comment .title {
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.7);
	text-align: left;
}

.teacher_msg .msg-bubble .correct::after {
	content: url(../images/chat/ic-check-grn.svg);
}

.teacher_msg .msg-bubble .mistake::after {
	content: url(../images/chat/ic-mistake.svg);
}

.live-chat-msg-list .msg-bubble .focus {
	text-decoration: underline;
}

.live-chat-msg-list .msg-bubble .mistake .focus {
	color: rgb(255, 0, 0);
}

.live-chat-msg-list .msg-bubble .correct .focus {
	color: rgb(0, 128, 0);
}

/* NJ-26716 end */