.nana-ai-chat {
	--nana-ai-main: #1f4e8c;
	--nana-ai-main-text: #fff;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #222;
}
.nana-ai-chat *,
.nana-ai-chat *::before,
.nana-ai-chat *::after {
	box-sizing: border-box;
}
.nana-ai-launcher {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--nana-ai-main);
	color: var(--nana-ai-main-text);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.nana-ai-launcher:hover {
	filter: brightness(1.1);
}
.nana-ai-panel {
	display: flex;
	flex-direction: column;
	width: 340px;
	max-width: calc(100vw - 24px);
	height: 480px;
	max-height: calc(100vh - 110px);
	margin-bottom: 12px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}
.nana-ai-panel[hidden] {
	display: none;
}
.nana-ai-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	background: var(--nana-ai-main);
	color: var(--nana-ai-main-text);
	font-weight: 700;
}
.nana-ai-close {
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.nana-ai-messages {
	flex: 1;
	padding: 12px;
	overflow-y: auto;
	background: #f5f7fa;
}
.nana-ai-row {
	display: flex;
	margin-bottom: 10px;
}
.nana-ai-row.nana-ai-user {
	justify-content: flex-end;
}
.nana-ai-bubble {
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 12px;
	white-space: pre-wrap;
	word-break: break-word;
}
.nana-ai-bot .nana-ai-bubble {
	background: #fff;
	border: 1px solid #dde3ea;
}
.nana-ai-user .nana-ai-bubble {
	background: var(--nana-ai-main);
	color: var(--nana-ai-main-text);
}
.nana-ai-pending {
	opacity: 0.6;
}
.nana-ai-contact {
	margin-top: 8px;
}
.nana-ai-contact a {
	color: var(--nana-ai-main);
	font-weight: 700;
	text-decoration: underline;
}
.nana-ai-form {
	margin: 0;
	padding: 8px;
	border-top: 1px solid #dde3ea;
	background: #fff;
}
.nana-ai-input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px;
	border: 1px solid #c9d1da;
	border-radius: 8px;
	font: inherit;
	resize: none;
}
.nana-ai-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
}
.nana-ai-counter {
	font-size: 12px;
	color: #777;
}
.nana-ai-send {
	margin: 0;
	padding: 6px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--nana-ai-main);
	color: var(--nana-ai-main-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.nana-ai-send:disabled {
	opacity: 0.5;
	cursor: default;
}
@media (max-width: 480px) {
	.nana-ai-chat {
		right: 12px;
		bottom: 12px;
	}
	.nana-ai-panel {
		width: calc(100vw - 24px);
		height: calc(100vh - 90px);
	}
	.nana-ai-hidden-mobile {
		display: none;
	}
}
