.mhc-floating-chat {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.mhc-floating-chat.mhc-pos-left {
	right: auto;
	left: 24px;
}

.mhc-bubble-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--mhc-accent, #1a7f37);
	color: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	overflow: hidden;
	transition: transform 0.15s ease;
}
.mhc-bubble-btn:hover { transform: scale(1.06); }
.mhc-bubble-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.mhc-panel {
	width: 340px;
	max-width: 90vw;
	height: 480px;
	max-height: 75vh;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.22);
	display: none;
	flex-direction: column;
	overflow: hidden;
	position: absolute;
	bottom: 74px;
	right: 0;
}
.mhc-panel.mhc-open { display: flex; }
.mhc-panel.mhc-pos-left { right: auto; left: 0; }

.mhc-inline-chat .mhc-panel {
	position: static;
	display: flex;
	width: 100%;
	max-width: 560px;
	height: 520px;
	margin: 0 auto;
}
.mhc-inline-chat .mhc-bubble-btn { display: none; }

.mhc-header {
	background: var(--mhc-accent, #1a7f37);
	color: #fff;
	padding: 12px 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}
.mhc-header span { flex: 1; }
.mhc-header .mhc-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255,255,255,0.6);
}
.mhc-header button {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}

.mhc-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f7f8f7;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mhc-msg-row {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	max-width: 100%;
}
.mhc-row-user { justify-content: flex-end; }
.mhc-row-bot, .mhc-row-error { justify-content: flex-start; }

.mhc-msg-avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.mhc-msg {
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
}
.mhc-msg.mhc-bot {
	background: #eef1ee;
	color: #222;
	align-self: flex-start;
	border-bottom-left-radius: 2px;
}
.mhc-msg.mhc-user {
	background: var(--mhc-accent, #1a7f37);
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 2px;
}
.mhc-msg.mhc-error {
	background: #fdecea;
	color: #611a15;
	align-self: flex-start;
}
.mhc-sources {
	font-size: 11px;
	margin-top: 6px;
	opacity: 0.75;
}
.mhc-sources a { color: inherit; }

.mhc-typing {
	font-size: 13px;
	color: #777;
	align-self: flex-start;
	padding: 4px 10px;
}

.mhc-input-row {
	display: flex;
	border-top: 1px solid #e5e5e5;
	padding: 10px;
	gap: 8px;
}
.mhc-input-row input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 14px;
}
.mhc-input-row button {
	background: var(--mhc-accent, #1a7f37);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 16px;
	cursor: pointer;
	font-size: 14px;
}
.mhc-input-row button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
