#mx-la-root {
	--mx-brand: #E8622C;
	--mx-accent: #2E8B57;
	--mx-bg: #ffffff;
	--mx-text: #222222;
	--mx-bubble-user: #fef1ea;
	--mx-radius: 14px;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mx-la-bubble {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--mx-brand);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0,0,0,0.2);
	font-size: 26px;
	border: none;
	transition: transform .15s ease;
}
.mx-la-bubble:hover { transform: scale(1.06); }

.mx-la-window {
	display: none;
	flex-direction: column;
	width: 360px;
	max-width: 92vw;
	height: 560px;
	max-height: 78vh;
	background: var(--mx-bg);
	border-radius: var(--mx-radius);
	box-shadow: 0 12px 40px rgba(0,0,0,0.25);
	position: absolute;
	bottom: 76px;
	right: 0;
	overflow: hidden;
}
.mx-la-window.mx-open { display: flex; }

.mx-la-header {
	background: linear-gradient(135deg, var(--mx-brand), var(--mx-accent));
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.mx-la-header h3 { margin: 0; font-size: 16px; }
.mx-la-header .mx-la-sub { font-size: 11px; opacity: .9; }
.mx-la-header-actions { display: flex; gap: 10px; align-items: center; }
.mx-la-lang-toggle, .mx-la-close {
	background: rgba(255,255,255,0.18);
	border: none;
	color: #fff;
	border-radius: 6px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 12px;
}

.mx-la-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f7f7f8;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mx-la-msg {
	max-width: 85%;
	padding: 10px 12px;
	border-radius: var(--mx-radius);
	font-size: 13.5px;
	line-height: 1.45;
	white-space: pre-wrap;
}
.mx-la-msg.bot {
	background: #fff;
	border: 1px solid #ececec;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}
.mx-la-msg.user {
	background: var(--mx-bubble-user);
	align-self: flex-end;
	border-bottom-right-radius: 4px;
	color: #7a3312;
}

.mx-la-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-self: flex-start;
	max-width: 100%;
}
.mx-la-opt-btn {
	background: #fff;
	border: 1.5px solid var(--mx-brand);
	color: var(--mx-brand);
	border-radius: 20px;
	padding: 7px 14px;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.mx-la-opt-btn:hover { background: var(--mx-brand); color: #fff; }

.mx-la-inputrow {
	display: flex;
	gap: 8px;
	align-self: stretch;
}
.mx-la-inputrow input {
	flex: 1;
	padding: 9px 10px;
	border-radius: 10px;
	border: 1px solid #ddd;
	font-size: 13.5px;
}
.mx-la-inputrow button {
	background: var(--mx-accent);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 9px 14px;
	cursor: pointer;
	font-size: 13px;
}

.mx-la-footer {
	padding: 8px 12px;
	border-top: 1px solid #eee;
	display: flex;
	gap: 8px;
	background: #fff;
}
.mx-la-footer input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 13.5px;
}
.mx-la-footer button {
	background: var(--mx-brand);
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 9px 16px;
	cursor: pointer;
}

.mx-la-typing { font-size: 12px; color: #999; align-self: flex-start; padding-left: 4px; }

@media (max-width: 480px) {
	.mx-la-window { width: 94vw; height: 80vh; right: -6px; }
}
