#mhnai-chat-root {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#mhnai-toggle {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	border: none;
	background: #2563eb;
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	transition: transform 0.15s ease;
}
#mhnai-toggle:hover {
	transform: scale(1.06);
}

#mhnai-window {
	position: absolute;
	bottom: 72px;
	right: 0;
	width: 340px;
	max-width: 88vw;
	height: 460px;
	max-height: 70vh;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mhnai-hidden {
	display: none !important;
}

#mhnai-header {
	background: #2563eb;
	color: #fff;
	padding: 12px 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
}
#mhnai-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

#mhnai-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #f8fafc;
}

.mhnai-msg {
	max-width: 82%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.mhnai-msg.user {
	align-self: flex-end;
	background: #2563eb;
	color: #fff;
	border-bottom-right-radius: 3px;
}
.mhnai-msg.bot {
	align-self: flex-start;
	background: #e5e7eb;
	color: #111827;
	border-bottom-left-radius: 3px;
}
.mhnai-msg.error {
	align-self: flex-start;
	background: #fee2e2;
	color: #991b1b;
}

#mhnai-typing {
	font-size: 12px;
	color: #6b7280;
	padding: 0 14px 6px;
}

#mhnai-form {
	display: flex;
	border-top: 1px solid #e5e7eb;
	padding: 8px;
	gap: 6px;
}
#mhnai-input {
	flex: 1;
	border: 1px solid #d1d5db;
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 13.5px;
	outline: none;
}
#mhnai-input:focus {
	border-color: #2563eb;
}
#mhnai-send {
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	cursor: pointer;
	font-size: 15px;
}
#mhnai-send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	#mhnai-window {
		width: 92vw;
		right: -4px;
	}
}
