.vmont-chatbot {
	--vmont-chat-color: #111827;
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	font-family: Inter, system-ui, sans-serif;
}
.vmont-chatbot--right { right: 20px; }
.vmont-chatbot--left { left: 20px; }

.vmont-chatbot__fab {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	background: #111827 !important;
	color: #fff !important;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0,0,0,.2);
	transition: transform .2s ease, background .2s ease;
}
.vmont-chatbot__fab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	line-height: 0;
}
.vmont-chatbot__fab-icon svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}
.vmont-chatbot__fab:hover {
	transform: scale(1.05);
	background: #000 !important;
}
.vmont-chatbot__fab.is-open {
	transform: scale(1);
}

.vmont-chatbot__panel {
	position: absolute;
	bottom: 72px;
	width: min(360px, calc(100vw - 40px));
	height: 480px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(15,23,42,.18);
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}
.vmont-chatbot__panel:not([hidden]) {
	display: flex;
}
.vmont-chatbot__panel[hidden] {
	display: none !important;
}
.vmont-chatbot--right .vmont-chatbot__panel { right: 0; }
.vmont-chatbot--left .vmont-chatbot__panel { left: 0; }

.vmont-chatbot__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	color: #fff;
	background: #111827 !important;
}
.vmont-chatbot__header strong { display: block; font-size: 15px; }
.vmont-chatbot__header > div span { font-size: 12px; opacity: .85; color: #e2e8f0; }
.vmont-chatbot__close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	border: 1px solid #d1d5db !important;
	border-radius: 4px !important;
	color: #000 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
}
.vmont-chatbot__close:hover {
	background: #f3f4f6 !important;
	border-color: #9ca3af !important;
	color: #000 !important;
}
.vmont-chatbot__close span {
	display: block;
	line-height: 1;
	color: #000 !important;
}
.vmont-chatbot__close svg {
	display: block;
	width: 12px;
	height: 12px;
	stroke: #000;
}

.vmont-chatbot__messages {
	flex: 1;
	overflow: auto;
	padding: 14px;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vmont-chatbot__msg { max-width: 88%; }
.vmont-chatbot__msg--user { align-self: flex-end; }
.vmont-chatbot__msg--assistant { align-self: flex-start; }

.vmont-chatbot__bubble {
	padding: 10px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
}
.vmont-chatbot__msg--user .vmont-chatbot__bubble {
	background: var(--vmont-chat-color, #111827);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.vmont-chatbot__msg--assistant .vmont-chatbot__bubble {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-bottom-left-radius: 4px;
}

.vmont-chatbot__products {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}
.vmont-chatbot__product {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	font-size: 12px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.vmont-chatbot__product:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.vmont-chatbot__product-thumb {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.vmont-chatbot__product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.vmont-chatbot__product-thumb.is-empty {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
}
.vmont-chatbot__product-meta {
	min-width: 0;
}
.vmont-chatbot__product strong {
	color: #0f172a;
	margin-bottom: 2px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}
.vmont-chatbot__product span { color: #64748b; }

.vmont-chatbot__form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #e2e8f0;
	background: #fff;
}
.vmont-chatbot__form input {
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
}
.vmont-chatbot__form button {
	border: 0;
	border-radius: 10px;
	color: #fff;
	width: 42px;
	cursor: pointer;
}
.vmont-chatbot__form.is-loading { opacity: .7; pointer-events: none; }

.vmont-chatbot__typing .vmont-chatbot__bubble { color: #64748b; font-style: italic; }

@media (max-width: 480px) {
	.vmont-chatbot__panel {
		width: calc(100vw - 24px);
		height: min(70vh, 520px);
		bottom: 68px;
	}
	.vmont-chatbot--right { right: 12px; }
	.vmont-chatbot--left { left: 12px; }
}
