/**
 * 2023-11-20 chatbot.css
 **/



/*/// 채팅 문의 ///*/


.chatbot-toggler{
	position: fixed;
	display: flex;
	background: linear-gradient(135deg, #42b1ff 0%, #4a83e7 100%);
	width: 60px;
	height: 60px;
	right: 40px;
	bottom: 35px;
	color: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 0px 16px 0 #12263d36;
	align-items: center;
	justify-content: center;
	outline: none;
	cursor: pointer;
	z-index: 1000;
}

.chatbot-toggler i{
	font-size: 30px;
	color: #fff;
	margin: 15px;
}

.chatbot-toggler:hover{
	box-shadow: 0 0px 20px 0 #12263d57;
	transition: transform 250ms cubic-bezier(0.33, 0, 0, 1) 0s;
	transform: scale(1.1);
}

.chatbot{
	position: fixed;
	display: none;
	width: 420px;
	background: #fff;
	right: 40px;
	bottom: 110px;
	border-radius: 15px;
	box-shadow: 0 0 128px 0 rgba(0,0,0,0.1), 0 32px  64px -48px rgba(0,0,0,0.5);
	transform: scale(0.5);
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 1000;
}

.chatbot .logo{
	position: absolute;
	width: 40px;
	top: 10px;
	left: 10px;
	border-radius: 10px;
}

.chatbot .close-button{
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 24px;
	color: #fff;
	padding: 5px;
    cursor: pointer;
}

.show-chatbot .chatbot{
	transform: scale(1);
	opacity: 1;
	pointer-events: auto;
}

.chatbot header{
	background: linear-gradient(135deg, #42b1ff 0%, #4a83e7 100%);
	padding: 16px 0;
	text-align: center;
}

.chatbot header h2{
	color: #fff;
	font-size: 1.4rem;
}

.chatbot .chatbox{
	height: 510px;
	padding: 15px 4% 80px;
	overflow-y: auto;
}

.chatbox .chat{
	display: flex;
}

.chatbox .chat p{
	max-width: 65%;
	background: linear-gradient(135deg, #42b1ff 0%, #4a83e7 100%);
	font-size: 0.94rem;
	color: #fff;
	padding: 10px 14px;
	border-radius: 10px 10px 0 10px;
	line-height: 130%;
	white-space: pre-wrap;
}

.chatbox .chat p.error{
	color: #f27474;
}

.chatbox .incoming p{
	background: #f2f4f6;
	color: #000;
	border-radius: 10px 10px 10px 0;
	animation: moveThinkingMessage 0.5s linear infinite;
	animation-play-state: paused;
}

.chatbox .incoming .sparkle-logo{
	width: 28px;
	height: 28px;
	background: linear-gradient(135deg, #42b1ff 0%, #4a83e7 100%);
	color: #fff;
	margin-right: 8px;
	border-radius: 4px;
	text-align: center;
	line-height: 32px;
	align-self: flex-end;
}

.chatbox .incoming .sparkle{
	font-weight: 500;
	color: #469af3;
}

.chatbox .outgoing{
	margin: 20px 0;
	justify-content: flex-end;
}

.chatbot .chat-input{
	position: absolute;
	display: flex;
	width: 95%;
	background: #fff;
	bottom: 0;
	padding: 8px 10px;
	border-top: 1px solid #e5e5e5;
	gap: 10px;
}

.chat-input textarea{
	display: flex;
	width: 100%;
	min-height: 45px;
	max-height: 180px;
	font-size: 0.94rem;
	font-weight: 500;
	padding: 12px 15px 12px 12px;
	line-height: 140%;
	border: none;
	box-shadow: 0 0px 16px 0 #12263d36;
	outline: none;
	resize: none;
	align-items: center;
}

.chat-input textarea:focus {
/*    border: 1px solid #b5b8bb;*/
	border: none;
}

.chat-input textarea:valid ~span{
	color: #469af3;
	visibility: visible;
}

.chat-input span{
	font-size: 1.35rem;
	color: #8a9096;
	margin: auto 0;
	padding: 2px;
	cursor: pointer;
	align-self: flex-end;
}

@keyframes moveThinkingMessage{
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
}







@media (max-width: 992px){
	.chatbot-toggler{
		width: 50px;
		height: 50px;
		right: 15px;
		bottom: 15px;
	}

	.chatbot-toggler i{
		font-size: 24px;
		margin: 13px;
	}

	.chatbot{
		position: fixed;
		width: 100vw;
		height: 100%;
		max-height: 100vh;
		bottom: 0;
		right: 0;
		border-radius: 0;
	}

	.chatbot header{
		padding: 14px 0;
	}

	.chatbot header h2{
		font-size: 1.25rem;
	}

	.chatbot .close-button{
		top: 9px;
		right: 11px;
	}

	.chatbot .chatbox{
		height: calc(100vh - 145px);
	}

	.chat_content .chatbox p{
		font-size: 14px;
	}
}