#lchat-root {
	--lchat-color: #c8102e;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: #1f2328;
}
#lchat-root *, #lchat-root *::before, #lchat-root *::after { box-sizing: border-box; }

.lchat-launcher {
	width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--lchat-color); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
	transition: transform .15s ease;
	margin-left: auto;
}
.lchat-launcher:hover { transform: scale(1.06); }
.lchat-launcher.lchat-has-label {
	width: auto; height: 56px; border-radius: 999px; padding: 0 20px 0 16px; gap: 8px;
	font-family: inherit; font-size: 16px; font-weight: 600; white-space: nowrap;
	transition: transform .15s ease, padding .25s ease;
}
.lchat-launcher.lchat-has-label:hover { transform: scale(1.03); }
.lchat-label { display: inline-block; max-width: 260px; overflow: hidden; transition: max-width .25s ease, opacity .2s ease; }
.lchat-launcher.lchat-collapsed { width: 60px; height: 60px; padding: 0; gap: 0; }
.lchat-launcher.lchat-collapsed .lchat-label { max-width: 0; opacity: 0; }
.lchat-open .lchat-launcher { display: none; }

.lchat-panel {
	display: none; flex-direction: column;
	width: 370px; height: min(600px, calc(100vh - 40px));
	background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.lchat-open .lchat-panel { display: flex; }

.lchat-head {
	background: var(--lchat-color); color: #fff;
	padding: 12px 14px; display: flex; align-items: center; justify-content: space-between;
}
.lchat-title { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.lchat-badge { background: #fff; color: var(--lchat-color); font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.lchat-actions { display: flex; gap: 4px; }
.lchat-icon {
	background: transparent; border: 0; color: #fff; cursor: pointer;
	font-size: 22px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; padding: 0;
}
.lchat-icon:hover { background: rgba(255,255,255,.18); }

.lchat-body { flex: 1; overflow-y: auto; padding: 14px; background: #f6f6f7; }
.lchat-msg { display: flex; flex-direction: column; margin-bottom: 10px; }
.lchat-user { align-items: flex-end; }
.lchat-assistant { align-items: flex-start; }
.lchat-bubble {
	max-width: 85%; padding: 9px 13px; border-radius: 14px; white-space: normal; word-wrap: break-word; overflow-wrap: anywhere;
}
.lchat-assistant .lchat-bubble { background: #fff; border: 1px solid #e6e6e9; border-bottom-left-radius: 4px; }
.lchat-user .lchat-bubble { background: var(--lchat-color); color: #fff; border-bottom-right-radius: 4px; }
.lchat-bubble a { color: inherit; text-decoration: underline; }

.lchat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.lchat-chip {
	border: 1px solid var(--lchat-color); color: var(--lchat-color); background: #fff;
	border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.lchat-chip:hover { background: var(--lchat-color); color: #fff; }

.lchat-cards { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 6px 0 4px; scroll-snap-type: x mandatory; }
.lchat-card {
	flex: 0 0 150px; scroll-snap-align: start;
	background: #fff; border: 1px solid #e6e6e9; border-radius: 12px; overflow: hidden;
	text-decoration: none !important; color: #1f2328 !important; display: flex; flex-direction: column;
}
.lchat-card img { width: 100%; height: 100px; object-fit: cover; display: block; background: #eee; }
.lchat-card-name { font-size: 13px; font-weight: 600; padding: 6px 8px 0; }
.lchat-card-price { font-size: 13px; padding: 2px 8px; color: #555; }
.lchat-card-cta { font-size: 13px; padding: 2px 8px 8px; color: var(--lchat-color); font-weight: 600; margin-top: auto; }

.lchat-typing .lchat-bubble { display: flex; gap: 4px; padding: 12px 14px; }
.lchat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #aaa; animation: lchat-dot 1.2s infinite ease-in-out; }
.lchat-typing span:nth-child(2) { animation-delay: .15s; }
.lchat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes lchat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.lchat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid #e6e6e9; background: #fff; }
.lchat-input {
	flex: 1; resize: none; border: 1px solid #d0d0d5; border-radius: 12px; padding: 9px 12px;
	font: inherit; font-size: 16px; line-height: 1.35; max-height: 120px; outline: none; background: #fff; color: #1f2328;
}
.lchat-input:focus { border-color: var(--lchat-color); }
.lchat-send {
	width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; flex: 0 0 auto;
	background: var(--lchat-color); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0;
}
.lchat-send:disabled { opacity: .5; cursor: default; }

@media (max-width: 600px) {
	#lchat-root { right: 14px; bottom: 14px; }
	#lchat-root.lchat-open { inset: 0; right: 0; bottom: 0; }
	.lchat-open .lchat-panel { width: 100%; height: 100%; border-radius: 0; }
}
