@charset "utf-8";

/*
 * footer나 본문 레이아웃의 overflow, transform, z-index 영향을 받지 않도록
 * 최상위 고정 레이어로 동작합니다.
 */
#bpnGuideChat.bpn-guide-chat {
	position: fixed !important;
	z-index: 2147483000 !important;
	right: 14px !important;
	bottom: 30px !important;
	top: auto !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: translateZ(0);
	isolation: isolate;
	pointer-events: none;
	font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
}

#bpnGuideChat .bpn-guide-chat-toggle,
#bpnGuideChat .bpn-guide-chat-window,
#bpnGuideChat .bpn-guide-chat-window * {
	pointer-events: auto;
}

#bpnGuideChat .bpn-guide-chat-toggle {
	position: relative !important;
	z-index: 2 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 116px;
	height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: 24px;
	background: #397a31;
	color: #fff;
	font-size: 15px;
	font-weight: bold;
	box-shadow: 0 7px 20px rgba(0,0,0,.24);
	cursor: pointer;
}

#bpnGuideChat .bpn-guide-chat-toggle:hover,
#bpnGuideChat .bpn-guide-chat-toggle:focus {
	background: #2d6727;
}

#bpnGuideChat .bpn-guide-chat-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: rgba(255,255,255,.22);
	font-size: 16px;
}

#bpnGuideChat .bpn-guide-chat-window {
	display: none;
	position: absolute !important;
	z-index: 3 !important;
	right: 0 !important;
	bottom: 60px !important;
	left: auto !important;
	top: auto !important;
	width: 390px !important;
	height: 570px !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: 1px solid #ccd5dc;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 14px 42px rgba(0,0,0,.32);
	box-sizing: border-box;
}

#bpnGuideChat .bpn-guide-chat-window.on {
	display: flex !important;
	flex-direction: column;
}

#bpnGuideChat .bpn-guide-chat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	padding: 12px 14px;
	background: #397a31;
	color: #fff;
	box-sizing: border-box;
}

#bpnGuideChat .bpn-guide-chat-header strong {
	display: block;
	margin-bottom: 4px;
	font-size: 18px;
}

#bpnGuideChat .bpn-guide-chat-header span {
	display: block;
	font-size: 12px;
	opacity: .9;
}

#bpnGuideChat .bpn-guide-chat-close {
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 29px;
	line-height: 32px;
	cursor: pointer;
}

#bpnGuideChat .bpn-guide-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px 12px;
	background: #f3f6f8;
	-webkit-overflow-scrolling: touch;
}

#bpnGuideChat .bpn-guide-message {
	display: flex;
	margin-bottom: 10px;
}

#bpnGuideChat .bpn-guide-message.user {
	justify-content: flex-end;
}

#bpnGuideChat .bpn-guide-bubble {
	max-width: 82%;
	padding: 10px 12px;
	border-radius: 13px;
	background: #fff;
	color: #26323c;
	font-size: 14px;
	line-height: 1.6;
	word-break: keep-all;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

#bpnGuideChat .bpn-guide-message.user .bpn-guide-bubble {
	background: #397a31;
	color: #fff;
	border-bottom-right-radius: 4px;
}

#bpnGuideChat .bpn-guide-message.bot .bpn-guide-bubble {
	border-bottom-left-radius: 4px;
}

#bpnGuideChat .bpn-guide-bubble a {
	color: #1769aa;
	font-weight: bold;
	text-decoration: underline;
}

#bpnGuideChat .bpn-guide-chat-quick {
	display: flex;
	gap: 5px;
	padding: 8px 9px;
	overflow-x: auto;
	border-top: 1px solid #e1e6ea;
	background: #fff;
}

#bpnGuideChat .bpn-guide-chat-quick button {
	flex: 0 0 auto;
	padding: 7px 9px;
	border: 1px solid #b9c5cd;
	border-radius: 14px;
	background: #fff;
	color: #3b4853;
	font-size: 12px;
	cursor: pointer;
}

#bpnGuideChat .bpn-guide-chat-form {
	display: flex;
	gap: 6px;
	padding: 9px;
	border-top: 1px solid #e1e6ea;
	background: #fff;
}

#bpnGuideChat .bpn-guide-chat-form input {
	flex: 1;
	min-width: 0;
	height: 42px;
	padding: 0 11px;
	border: 1px solid #aebbc4;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

#bpnGuideChat .bpn-guide-chat-form button {
	width: 70px;
	height: 42px;
	border: 0;
	border-radius: 6px;
	background: #397a31;
	color: #fff;
	font-weight: bold;
	cursor: pointer;
}

#bpnGuideChat .bpn-guide-chat-note {
	padding: 6px 10px 8px;
	background: #fff;
	color: #7a858e;
	font-size: 11px;
	text-align: center;
}

#bpnGuideChat .bpn-guide-typing .bpn-guide-bubble {
	color: #6d7780;
}

@media screen and (max-width: 767px) {
	#bpnGuideChat.bpn-guide-chat {
		right: 10px !important;
		bottom: 16px !important;
		transform: none !important;
	}

	#bpnGuideChat .bpn-guide-chat-toggle {
		min-width: 102px;
		height: 44px;
		font-size: 14px;
	}

	#bpnGuideChat .bpn-guide-chat-window {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: 0 !important;
		width: auto !important;
		height: auto !important;
		max-height: none !important;
		margin: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	#bpnGuideChat .bpn-guide-chat-header {
		min-height: 62px;
	}

	#bpnGuideChat .bpn-guide-chat-form input {
		font-size: 16px;
	}
}
