#lw-chatbot-root {
	position: relative;
	z-index: 9000;
}

#lw-chatbot-callout {
	position: fixed;
	right: 96px;
	bottom: 38px;
	z-index: 9002;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid rgba(10, 99, 199, .12);
	border-radius: 999px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 18px 44px rgba(7, 31, 67, .16);
	color: #151922;
	font: 800 13px/1.35 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	white-space: nowrap;
	animation: lw-chatbot-callout-in .35s ease both;
}

#lw-chatbot-callout::after {
	position: absolute;
	right: -8px;
	top: 50%;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-left-color: rgba(255, 255, 255, .96);
	border-right-width: 0;
	content: "";
	transform: translateY(-50%);
}

#lw-chatbot-callout.is-hidden {
	pointer-events: none;
	opacity: 0;
	transform: translateX(8px);
	transition: opacity .2s ease, transform .2s ease;
}

#lw-chatbot-callout-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 99, 199, .08);
	color: #606a78;
	font: inherit;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

#lw-chatbot-bubble {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 9001;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #0a63c7, #06b6d4);
	box-shadow: 0 18px 46px rgba(10, 99, 199, .36);
	color: #fff;
	cursor: pointer;
}

#lw-chatbot-bubble::before {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(10, 99, 199, .28);
	content: "";
	animation: lw-chatbot-pulse 2.4s ease-out infinite;
}

#lw-chatbot-bubble.is-open::before {
	display: none;
}

.lw-chatbot-bubble-icon {
	position: relative;
	font-size: 24px;
	line-height: 1;
}

#lw-chatbot-window {
	position: fixed;
	right: 28px;
	bottom: 98px;
	z-index: 9000;
	display: flex;
	flex-direction: column;
	width: 420px;
	max-width: calc(100vw - 40px);
	height: 610px;
	max-height: calc(100vh - 124px);
	overflow: hidden;
	border: 1px solid rgba(10, 99, 199, .14);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 28px 80px rgba(7, 31, 67, .22);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	opacity: 0;
	pointer-events: none;
	transform: translateY(14px);
	transition: opacity .2s ease, transform .2s ease;
}

#lw-chatbot-window.is-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.lw-chatbot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px;
	background: linear-gradient(135deg, rgba(10, 99, 199, .1), rgba(6, 182, 212, .08));
	border-bottom: 1px solid rgba(10, 99, 199, .1);
}

.lw-chatbot-header-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.lw-chatbot-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #151922;
	color: #fff;
	font-size: 18px;
	flex: 0 0 auto;
}

.lw-chatbot-title {
	color: #151922;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.25;
}

.lw-chatbot-subtitle {
	margin-top: 2px;
	color: #606a78;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
}

.lw-chatbot-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .7);
	color: #606a78;
	font: inherit;
	cursor: pointer;
}

.lw-chatbot-messages {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	overflow-y: auto;
	padding: 16px 12px;
	background: linear-gradient(180deg, #f8fbfe, #fff);
	scroll-behavior: smooth;
}

.lw-chatbot-message {
	display: flex;
}

.lw-chatbot-message.is-user {
	justify-content: flex-end;
}

.lw-chatbot-message.is-bot {
	justify-content: flex-start;
}

.lw-chatbot-message-bubble {
	max-width: 88%;
	padding: 10px 13px;
	border-radius: 14px;
	color: #263244;
	background: #eef7ff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}

.lw-chatbot-message.is-user .lw-chatbot-message-bubble {
	border-bottom-right-radius: 4px;
	background: #0a63c7;
	color: #fff;
}

.lw-chatbot-message.is-bot .lw-chatbot-message-bubble {
	border-bottom-left-radius: 4px;
}

.lw-chatbot-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: #606a78;
	font-size: 11px;
	font-weight: 800;
}

.lw-chatbot-rating button {
	border: 1px solid rgba(10, 99, 199, .16);
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	padding: 5px 8px;
}

.lw-chatbot-notice {
	margin: 0;
	padding: 8px 12px 0;
	border-top: 1px solid rgba(10, 99, 199, .08);
	background: #fff;
	color: #606a78;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.45;
}

.lw-chatbot-input-area {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid rgba(10, 99, 199, .1);
	background: #fff;
}

#lw-chatbot-input {
	flex: 1;
	min-height: 42px;
	max-height: 110px;
	padding: 10px 12px;
	border: 1px solid rgba(10, 99, 199, .16);
	border-radius: 12px;
	background: #f8fbfe;
	color: #151922;
	font: 800 13px/1.5 inherit;
	outline: 0;
	resize: none;
}

#lw-chatbot-input:focus {
	border-color: rgba(10, 99, 199, .48);
	box-shadow: 0 0 0 3px rgba(10, 99, 199, .09);
}

#lw-chatbot-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 12px;
	background: #0a63c7;
	color: #fff;
	font: 900 16px/1 inherit;
	cursor: pointer;
}

#lw-chatbot-send:disabled {
	cursor: not-allowed;
	opacity: .5;
}

@keyframes lw-chatbot-pulse {
	0% {
		opacity: .7;
		transform: scale(1);
	}
	70%,
	100% {
		opacity: 0;
		transform: scale(1.65);
	}
}

@keyframes lw-chatbot-callout-in {
	from {
		opacity: 0;
		transform: translateX(8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 700px) {
	#lw-chatbot-callout {
		right: 86px;
		bottom: 30px;
		max-width: calc(100vw - 116px);
		white-space: normal;
	}

	#lw-chatbot-bubble {
		right: 20px;
		bottom: 20px;
	}

	#lw-chatbot-window {
		right: 16px;
		bottom: 88px;
		width: calc(100vw - 32px);
		height: min(620px, calc(100vh - 112px));
		border-radius: 22px;
	}
}
