﻿/* chrome  css 滚动条样式 */

/* 改变滚动条的宽度和形状 */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

/* 用于设置滚动条轨道的样式，即滑块移动的轨道背景 */
::-webkit-scrollbar-track {
	background-color: var(--scrollbar-track);
}

/* 用于设置滚动条滑块的样式，如颜色、形状等。 */
::-webkit-scrollbar-thumb {
	background-color: var(--scrollbar-thumb);
	/* border-radius: 5px; */
}

/* 滚动条悬停效果 */
::-webkit-scrollbar-thumb:hover {
	background-color: var(--scrollbar-thumb-hover);
	opacity: 0.8;
}

/* 用于设置滚动条上的按钮样式。 */
::-webkit-scrollbar-button {
	display: none;
}

/* 用于设置滚动条的角落，即垂直滚动条和水平滚动条相交的地方。 */
::-webkit-scrollbar-corner {
	background-color: var(--scrollbar-track);
}

/* chrome  css 滚动条样式 结束 */

/* Firefox  css 滚动条样式 */

/* 整个滚动条 */
::-moz-scrollbar {
	width: 12px;
	background-color: var(--scrollbar-track);
}

/* 滚动条滑块 */
::-moz-scrollbar-thumb {
	background-color: var(--scrollbar-thumb);
	/* border-radius: 5px; */
}

/* 滚动条轨道 */
::-moz-scrollbar-track {
	background-color: var(--scrollbar-track);
	/* border-radius: 5px; */
}

/* Firefox  css 滚动条样式 结束 */

* {
	box-sizing: border-box;
}


html {
	touch-action: manipulation;
	height: 100%;
}

body {
	touch-action: manipulation;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	padding-top: 0px;
	padding-bottom: 0px;
	height: 100%;
	background-color: var(--main-bg-color);
	color: var(--main-color);
	word-break: normal;
	overflow-wrap: break-word;
	/* 兼容旧浏览器 */
	overflow-wrap: anywhere;
}


/* 遮罩层样式 */
#overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 999;
}

#overlay_loading {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	display: flex;
	flex-direction: column;
}

.loading {
	width: 50px;
	height: 50px;
	border: 5px solid rgba(0, 0, 0, 0.1);
	border-top-color: #3498db;
	border-radius: 50%;
	animation: loadingAnimation 1s linear infinite;
}

#overlay_loading_text{
	margin-top: 10px;
}

@keyframes loadingAnimation {
	to {
		transform: rotate(360deg);
	}
}

a {
	font-size: 16px;
	text-decoration: none;
	color: var(--hyperLink-color);
}

a:hover {
	font-size: 16px;
	text-decoration: none;
	color: var(--hyperLink-hover-color);
}

.inputAreaTextButton {
	font-size: 17px;
	border: none;
	background-color: transparent;
	color: var(--inputareabutton-svg-color);
}

.inputAreaTextButton:hover {
	color: var(--inputareabutton-svg-hover-color);
}

.svgButton {
	border: none;
	background-color: transparent;
}

.headerButtonSvg {
	fill: var(--headerbutton-svg-color);
}

.headerButtonSvg:hover {
	fill: var(--headerbutton-svg-hover-color);
}

.inputAreaButtonSvg {
	fill: var(--inputareabutton-svg-color);
}

.inputAreaButtonSvg:hover {
	fill: var(--inputareabutton-svg-hover-color);
}

#container {
	box-sizing: border-box;
	position: fixed;
	background-color: var(--message-bg-color);
	flex-direction: column;
	font-size: 16px;
	display: flex;
}

@media screen and (min-width: 900px),
screen and (min-height: 700px) {

	#container {
		height: 700px;
		width: 900px;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		box-shadow: 0px 0px 5px 5px var(--container-shadow);
	}

	.staffBubbleArea {
		margin-right: 100px;
	}
}


@media screen and (max-width: 899px),
screen and (max-height: 699px) {

	#container {
		height: 100%;
		width: 100%;
		top: 0;
		left: 0;
		transform: none;
		box-shadow: none;
	}

	.staffBubbleArea {
		margin-right: 50px;
	}
}


#header {
	box-sizing: border-box;
	color: white;
	height: 60px;
	width: 100%;
	background-color: var(--header-bg-color);
	display: flex;
	padding-left: 20px;
}

#headerLeft {
	box-sizing: border-box;
	height: 100%;
	display: flex;
	align-items: center;
	flex: 1;
}

#headerRight {
	box-sizing: border-box;
	width: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#spanTitle {
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

#content {
	box-sizing: border-box;
	flex: 1;
	position: relative;
}


#footer {
	box-sizing: border-box;
	height: 30px;
	text-align: center;
	font-size: 12px;
	padding-left: 20px;
	padding-right: 20px;
	display: flex;
	/* align-items: center; */
}

#footer a {
	font-size: 12px;
	color: var(--footer-hyperLink-color);
	text-decoration: none;
}

#footer a:hover {
	font-size: 12px;
	color: var(--footer-hyperLink-hover-color);
	text-decoration: underline;
}


#divChatArea {
	box-sizing: border-box;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	overflow: none;
}

#divCopyright {
	flex: 1;
	box-sizing: border-box;
	text-align: right;
	display: none;
}


#divMessage {
	box-sizing: border-box;
	overflow: auto;
	padding: 10px;
	flex: 1;
	/* border-bottom:1px solid #f5f5f5; */
}

#divInputButtonAreaSeparator {
	box-sizing: border-box;
	height: 2px;
	background-color: var(--input-area-separator);
	margin-left: 10px;
	/* margin-right: 30px; */
	flex: 1;
}

#divInputArea {
	box-sizing: border-box;
	height: 130px;
	display: flex;
	padding-left: 30px;
	padding-right: 30px;
}


#divInput {
	box-sizing: border-box;
	display: flex;
	width: 100%;
	height: 100%;
	margin-left: 0px;
	margin-right: 0px;
	/* margin-top: 20px; */
	border-radius: 0px;
	/* box-shadow: 0px 0px 5px 3px #f7f7f7; */
	box-sizing: border-box;
}

#divInputLeft {
	box-sizing: border-box;
	flex: 1;
	display: flex;
	flex-direction: column;
}

#divInputRight {
	box-sizing: border-box;
	width: 60px;
	display: flex;
	align-items: center;
	justify-content: right;
}

#divInputTextArea {
	box-sizing: border-box;
	flex: 1;
	padding-top: 7px;
}

#txtInput {
	box-sizing: border-box;
	font-size: 17px;
	width: 100%;
	height: 100%;
	border: 0px;
	outline: none;
	resize: none;
	background-color: var(--message-bg-color);
	padding: 0px;
	color: var(--input-font-color);
}

#divInputButtonArea {
	box-sizing: border-box;
	height: 40px;
	display: flex;
	align-items: center;
	/* justify-content: center; */
}


#divSendButtonContainer {
	box-sizing: border-box;
	flex: 1;
	display: flex;
	align-items: flex-end;
}

#btnSend {
	box-sizing: border-box;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background-color: var(--sendbutton-bg-color);
	border: none;
	cursor: pointer;
	margin-left: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0px;

}

#btnSend:hover {
	background-color: var(--sendbutton-bg-hover-color)
}

.sendButtonSvg {
	fill: var(--sendbutton-svg-color);
}

.sendButtonSvg:hover {
	fill: var(--sendbutton-svg-hover-color);
}


#divInputDisabledArea {
	box-sizing: border-box;
	display: flex;
	flex: 1;
	width: 100%;
	height: 100%;
	margin-left: 0px;
	margin-right: 0px;
	/* margin-top: 20px; */
	border-radius: 0px;
	/* box-shadow: 0px 0px 5px 3px #f7f7f7; */
	box-sizing: border-box;
	display: none;
}

#divInputDisabled {
	flex: 1;
	display: flex;
	flex-direction: column;
}

#divInputAreaSeparator {
	box-sizing: border-box;
	height: 2px;
	background-color: var(--input-area-separator);
	margin-left: 10px;
	margin-right: 10px;
}

#divInputDisabledContent {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}


.emojiPopup {
	box-sizing: border-box;
	display: none;
	position: absolute;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	border-radius: 12px;
}

.emojiModal {
	box-sizing: border-box;
	display: none;
	position: fixed;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	border-radius: 12px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

}

.languagesButton {
	font-size: 12px;
	color: var(--footer-hyperLink-color);
	text-decoration: none;
}

.languagesButton:hover {
	font-size: 12px;
	color: var(--footer-hyperLink-hover-color);
	text-decoration: underline;
}

#divRobotRootArea {
	margin-top: 10px;
	margin-bottom: 10px;

}

#divRobotRootArea a {
	color: var(--robot-font-color);
}

#divRobotRootArea a:hover {
	color: var(--robot-font-hover-color);
}

#divOpeningGreetings {
	margin-top: 10px;
	margin-bottom: 10px;
}

.ratyContainer {
	border: 1px solid var(--raty-border-color);
	background-color: var(--raty-bg-color);
	margin: 10px;
	padding: 20px;
	border-radius: 7px;
	text-align: center;
}


/* ChatBubble */


.systemMessageArea {
	margin-top: 10px;
	margin-bottom: 10px;
	margin-left: 10px;
	/* word-wrap: break-word;
	word-break: break-all; */
	font-size: 15px;
	color: var(--message-system-color);
}

.systemMessage {
	font-size: 15px;
	color: var(--message-system-color);
	margin-left: 5px;
}

.systemMessageTime {
	font-size: 13px;
	color: var(--message-system-time-color);
}

#divAutoGreetings {
	margin-left: 10px;
}

.staffMessageRow {
	display: flex;
	margin-top: 10px;
}

.staffNameAndMessageContainer {
	margin-left: 10px;
}

.staffProfileImageContainer img {
	width: 40px;
	/* 设置宽度 */
	height: 40px;
	/* 设置高度，确保是正方形 */
	border-radius: 50%;
	/* 设置圆角为50%，变成圆形 */
	object-fit: cover;
	/* 保证图片的显示不变形 */
}

.staffNameArea {
	margin-top: 0px;
}

.staffNameContainer {
	font-weight: bold;
	color: var(--message-staff-name-color);
	font-size: 15px;
}

.staffMessageTime {
	font-size: 13px;
	color: var(--message-staff-time-color);
	margin-left: 15px;
}

.staffMessageArea {
	margin-top: 5px;
	display: flex;
}


.staffBubbleArea {
	float: left;
	position: relative;
	/* left: 10px; */
	/* word-wrap: break-word;
	word-break: break-all; */
}

.staffBubbleAreaWithOutProfileImage {
	left: 10px;
}

.staffMessageContainer {
	padding: 10px;
	background-color: var(--message-staff-bg-color);
	border-radius: 7px;
}

.staffMessage {
	font-size: 15px;
	color: var(--message-staff-color);
}

.staffMessage a {
	font-size: 15px;
	text-decoration: underline;
	color: var(--message-staff-hyperlink-color);
}

.staffMessage a:hover {
	font-size: 15px;
	text-decoration: underline;
	color: var(--message-staff-hyperlink-hover-color);
}

.staffImageMessageContainer {
	padding: 0px;
}

.staffImageWrapper {
	border-radius: 7px;
	max-width: 50%;
	max-height: 300px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.staffImageMessage {
	width: 100%;
	height: 100%;
}


@media screen and (max-width: 899px) {
	.staffImageWrapper {
		max-width: 60%;
		max-height: 250px;
	}
}

@media screen and (max-width: 599px) {
	.staffImageWrapper {
		max-width: 70%;
		max-height: 200px;
	}
}

.customerNameArea {
	margin-top: 10px;

}

.customerNameAreaFloat {
	margin-top: 10px;
	margin-right: 10px;
	display: flex;
	justify-content: right;
}

.customerMessageArea {
	margin-top: 5px;
	margin-bottom: 5px;
	display: flex;
	justify-content: right;
}


.customerBubbleArea {
	float: right;
	position: relative;
	margin-left: 100px;
	margin-right: 10px;
	/* word-wrap: break-word;
	word-break: break-all; */
}

.customerMessageContainer {
	padding: 10px;
	background-color: var(--message-customer-bg-color);
	border-radius: 7px;
}

.customerMessage {
	font-size: 15px;
	color: var(--message-customer-color);
}

.customerMessage a {
	font-size: 15px;
	text-decoration: underline;
	color: var(--message-customer-hyperlink-color);
}

.customerMessage a:hover {
	font-size: 15px;
	text-decoration: underline;
	color: var(--message-customer-hyperlink-hover-color);
}


.customerMessageTime {
	font-size: 13px;
	color: var(--message-customer-time-color);
	margin-left: 15px;
}


.customerImageMessageContainer {
	padding: 0px;

}

.customerImageContainer {
	display: flex;
	text-align: right;
	justify-content: right;
	align-items: flex-end;
	flex-direction: column;
}

.customerImageWrapper {
	border-radius: 7px;
	max-width: 50%;
	max-height: 300px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.customerImageMessage {
	width: 100%;
	height: 100%;
}


@media screen and (max-width: 899px) {
	.customerImageWrapper {
		max-width: 60%;
		max-height: 250px;
	}
}

@media screen and (max-width: 599px) {

	.customerBubbleArea {
		margin-left: 60px;
	}

	.customerImageWrapper {
		max-width: 70%;
		max-height: 200px;
	}
}


.robot-customerMessageArea {
	margin-top: 5px;
	margin-bottom: 5px;
	display: flex;
	justify-content: right;
}


.robot-customerBubbleArea {
	float: right;
	position: relative;
	margin-left: 100px;
	margin-right: 10px;
	/* word-wrap: break-word;
	word-break: break-all; */
}

.robot-customerMessageContainer {
	padding: 10px;
	background-color: var(--message-robot-customer-bg-color);
	border-radius: 7px;
}

.robot-customerMessage {
	font-size: 15px;
	color: var(--message-robot-customer-color);
}

.robot-customerMessage a {
	font-size: 15px;
	text-decoration: underline;
	color: var(--message-robot-customer-hyperlink-color);
}

.robot-customerMessage a:hover {
	font-size: 15px;
	text-decoration: underline;
	color: var(--message-robot-customer-hyperlink-hover-color);
}


.robot-staffMessageArea {
	margin-top: 5px;
	display: flex;
}


.robot-staffBubbleArea {
	float: left;
	position: relative;
	margin-right: 100px;
	left: 10px;
	/* word-wrap: break-word;
	word-break: break-all; */
}

.robot-staffMessageContainer {
	padding: 10px;
	background-color: var(--message-robot-staff-bg-color);
	border-radius: 7px;
}

.robot-staffMessage {
	font-size: 15px;
	color: var(--message-robot-staff-color);

}

.robot-staffMessage a {
	font-size: 15px;
	text-decoration: underline;
	color: var(--message-robot-staff-hyperlink-color);
}

.robot-staffMessage a:hover {
	font-size: 15px;
	text-decoration: underline;
	color: var(--message-robot-staff-hyperlink-hover-color);
}

.extensionalMessageArea {
	margin-top: 20px;
	margin-bottom: 20px;
	/* word-wrap: break-word;
	word-break: break-all; */
}

.extensionalMessage {
	font-size: 15px;
	color: #FF4D4D;
}

.extensionalMessageTime {
	font-size: 13px;
	color: #999;
}



#divOperationArea {
	display: flex;
	padding-top: 5px;
	padding-left: 20px;
	padding-right: 20px;
}

#divOperation {
	flex: 1;
	justify-items: right;
	text-align: right;
}

#divAIGenerating {
	margin-top: 16px;
	margin-right: 20px;
}



.typing-indicator {
	display: flex;
	align-items: center;
	gap: 4px;
}

.typing-indicator span {
	width: 8px;
	height: 8px;
	background-color: #3498db;
	border-radius: 50%;
	animation: typing 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
	animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes typing {
	0% {
		opacity: 0.3;
		transform: translateY(0);
	}

	50% {
		opacity: 1;
		transform: translateY(-5px);
	}

	100% {
		opacity: 0.3;
		transform: translateY(0);
	}
}

#iframeInModal {
	width: 100%;
	height: 300px;
}




/* sweetalert */

/* .swal-overlay {
	background-color: var(--alert-overlay);
} */

.swal-modal {
	background-color: var(--alert-bg-color);
	border: 2px solid var(--alert-border-color);
}

.swal-text {
	color: var(--alert-text-color);
}

.swal-button {
	background-color: var(--button-primary-bg-color);
	border: 1px solid var(--button-primary-border-color);
}

.swal-button:not([disabled]):hover {
	background-color: var(--button-primary-hover-bg-color);
	border: 1px solid var(--button-primary-hover-border-color);
}

/* sweetalert end */


.btn-primary {
	--bs-btn-bg: var(--button-primary-bg-color);
	--bs-btn-border-color: var(--button-primary-bg-color);
	--bs-btn-hover-bg: var(--button-primary-hover-bg-color);
	--bs-btn-hover-border-color: var(--button-primary-hover-border-color);
}

.btn-secondary {
	--bs-btn-bg: var(--button-secondary-bg-color);
	--bs-btn-border-color: var(--button-secondary-bg-color);
	--bs-btn-hover-bg: var(--button-secondary-hover-bg-color);
	--bs-btn-hover-border-color: var(--button-secondary-hover-border-color);
}


/* .modal {
	--bs-modal-padding: 0.5rem;
	--bs-modal-header-padding: 0.5rem 1rem;
	--bs-modal-footer-gap: 1rem;
} */