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

.mmb-bubble {
	display: flex;
	align-items: center;
	gap: 8px;
	border: none;
	border-radius: 999px;
	padding: 14px 20px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0,0,0,.18);
	transition: transform .15s ease;
}
.mmb-bubble:hover { transform: translateY(-2px); }
.mmb-bubble svg { width: 20px; height: 20px; flex-shrink: 0; }

.mmb-window {
	display: none;
	flex-direction: column;
	position: absolute;
	bottom: 70px;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 480px;
	max-height: 70vh;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0,0,0,.22);
	overflow: hidden;
}
.mmb-position-bottom-right .mmb-window { right: 0; }
.mmb-position-bottom-left .mmb-window { left: 0; }
.mmb-window.mmb-open { display: flex; }

.mmb-header {
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	font-size: 15px;
}
.mmb-header button {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

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

.mmb-msg {
	max-width: 85%;
	padding: 9px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.mmb-msg.mmb-bot {
	background: #fff;
	border: 1px solid #e5e7eb;
	color: #1f2937;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}
.mmb-msg.mmb-user {
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}
.mmb-msg.mmb-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	align-self: flex-start;
}

.mmb-form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e5e7eb;
	background: #fff;
}
.mmb-form input {
	flex: 1;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	padding: 9px 14px;
	font-size: 14px;
	outline: none;
}
.mmb-form input:focus { border-color: #9ca3af; }
.mmb-form button {
	border: none;
	color: #fff;
	border-radius: 999px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.mmb-form button:disabled { opacity: .6; cursor: default; }

@media (max-width: 420px) {
	.mmb-window { width: calc(100vw - 24px); }
	#mmb-chatbot-root.mmb-position-bottom-right,
	#mmb-chatbot-root.mmb-position-bottom-left { right: 12px; left: 12px; }
	.mmb-position-bottom-right .mmb-window,
	.mmb-position-bottom-left .mmb-window { right: 0; left: 0; margin: 0 auto; }
}
