#lac-chatbot-root{
	position:fixed;bottom:20px;right:20px;z-index:99999;
	font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,Roboto,Arial,sans-serif;
	--lac-color:#1560d1;
	--lac-color-dark:#0a1e46;
	--lac-accent:#22d3ee;
}

/* ---------- Launcher ---------- */
.lac-launcher{
	width:66px;height:66px;border-radius:50%;border:none;cursor:pointer;padding:0;
	background:linear-gradient(135deg,var(--lac-color) 0%,var(--lac-color-dark) 100%);
	display:flex;align-items:center;justify-content:center;
	box-shadow:0 8px 26px rgba(10,30,70,.35);
	position:relative;transition:transform .2s ease, box-shadow .2s ease;
	overflow:visible;
}
.lac-launcher img{width:100%;height:100%;border-radius:50%;object-fit:cover;}
.lac-launcher:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 12px 30px rgba(10,30,70,.42);}
.lac-launcher::after{
	content:'';position:absolute;inset:-6px;border-radius:50%;
	border:2px solid var(--lac-accent);opacity:.5;
	animation:lac-pulse 2.4s ease-out infinite;
}
.lac-launcher .lac-dot{
	position:absolute;top:2px;right:2px;width:15px;height:15px;border-radius:50%;
	background:#22c55e;border:2px solid #fff;z-index:2;
}
@keyframes lac-pulse{
	0%{transform:scale(1);opacity:.5;}
	80%{transform:scale(1.35);opacity:0;}
	100%{opacity:0;}
}

/* ---------- Window ---------- */
.lac-window{
	position:fixed;bottom:98px;right:20px;width:368px;max-width:92vw;height:540px;max-height:78vh;
	background:#fff;border-radius:20px;
	box-shadow:0 20px 60px rgba(10,30,70,.32),0 2px 10px rgba(0,0,0,.08);
	display:none;flex-direction:column;overflow:hidden;
	border:1px solid rgba(0,0,0,.04);
	opacity:0;transform:translateY(16px) scale(.97);
	transition:opacity .22s ease, transform .22s ease;
}
.lac-window.lac-open{display:flex;opacity:1;transform:translateY(0) scale(1);}

.lac-header{
	background:linear-gradient(120deg,var(--lac-color) 0%,var(--lac-color-dark) 100%);
	color:#fff;padding:16px 18px;display:flex;align-items:center;gap:12px;
	position:relative;
}
.lac-avatar{
	width:40px;height:40px;border-radius:50%;flex-shrink:0;overflow:hidden;
	background:rgba(255,255,255,.15);box-shadow:0 0 0 2px rgba(255,255,255,.25);
}
.lac-avatar img{width:100%;height:100%;object-fit:cover;}
.lac-header-text{flex:1;min-width:0;}
.lac-header strong{font-size:15px;display:block;letter-spacing:.2px;}
.lac-header .lac-status{display:flex;align-items:center;gap:5px;font-size:11px;opacity:.9;margin-top:2px;}
.lac-header .lac-status i{width:7px;height:7px;border-radius:50%;background:var(--lac-accent);display:inline-block;box-shadow:0 0 0 2px rgba(255,255,255,.25);}
.lac-close{background:rgba(255,255,255,.15);border:none;color:#fff;font-size:18px;cursor:pointer;line-height:1;width:28px;height:28px;border-radius:50%;flex-shrink:0;transition:background .15s;}
.lac-close:hover{background:rgba(255,255,255,.3);}

.lac-body{
	flex:1;overflow-y:auto;padding:16px;background:#f5f8fc;
	display:flex;flex-direction:column;gap:12px;
	scrollbar-width:thin;scrollbar-color:#cdd8ea transparent;
}
.lac-body::-webkit-scrollbar{width:6px;}
.lac-body::-webkit-scrollbar-thumb{background:#d3ddee;border-radius:10px;}

.lac-row{display:flex;align-items:flex-end;gap:8px;max-width:92%;}
.lac-row.lac-row-user{align-self:flex-end;flex-direction:row-reverse;}
.lac-row-avatar{width:24px;height:24px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--lac-color);}
.lac-row-avatar img{width:100%;height:100%;object-fit:cover;}
.lac-row-avatar.agent-av{display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700;background:linear-gradient(135deg,var(--lac-color),var(--lac-color-dark));}

.lac-msg{
	padding:10px 14px;border-radius:16px;font-size:13.5px;line-height:1.48;
	white-space:pre-wrap;word-wrap:break-word;
	animation:lac-fade-in .22s ease both;
}
.lac-msg-bot{background:#fff;color:#1c2333;border:1px solid #e7edf6;border-bottom-left-radius:4px;box-shadow:0 1px 2px rgba(10,30,70,.04);}
.lac-msg-agent{background:#fff;color:#1c2333;border:1px solid var(--lac-accent);border-bottom-left-radius:4px;}
.lac-msg-user{background:linear-gradient(135deg,var(--lac-color) 0%,var(--lac-color-dark) 100%);color:#fff;border-bottom-right-radius:4px;}
@keyframes lac-fade-in{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}

.lac-products{display:flex;flex-direction:column;gap:8px;margin:2px 0 2px 32px;max-width:88%;}
.lac-product-card{
	display:flex;gap:10px;align-items:center;
	border:1px solid #e7edf6;border-radius:12px;padding:8px 10px;background:#fff;font-size:12.5px;
	box-shadow:0 1px 3px rgba(10,30,70,.05);transition:box-shadow .15s, transform .15s;
}
.lac-product-card:hover{box-shadow:0 4px 14px rgba(10,30,70,.1);transform:translateY(-1px);}
.lac-product-card img{width:42px;height:42px;border-radius:8px;object-fit:cover;background:#f2f5fa;flex-shrink:0;}
.lac-product-card .lac-p-info a{color:var(--lac-color-dark);text-decoration:none;font-weight:600;display:block;}
.lac-product-card .lac-p-meta{color:#7a879c;margin-top:2px;font-size:11.5px;}

.lac-actions{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 2px 32px;}
.lac-action-btn{
	background:#fff;border:1.5px solid var(--lac-color);color:var(--lac-color-dark);
	border-radius:18px;padding:7px 13px;font-size:12px;font-weight:600;cursor:pointer;
	text-decoration:none;display:inline-block;transition:all .15s;
}
.lac-action-btn:hover{background:var(--lac-color);color:#fff;box-shadow:0 4px 10px rgba(21,96,209,.25);}

/* ---------- Lead capture mini-form ---------- */
.lac-lead-form{margin:2px 0 2px 32px;background:#fff;border:1px solid #e7edf6;border-radius:12px;padding:12px;max-width:88%;display:flex;flex-direction:column;gap:8px;}
.lac-lead-form input{border:1px solid #dce3ee;border-radius:8px;padding:8px 10px;font-size:12.5px;outline:none;}
.lac-lead-form input:focus{border-color:var(--lac-color);}
.lac-lead-form button{background:var(--lac-color);color:#fff;border:none;border-radius:8px;padding:9px;font-size:12.5px;font-weight:700;cursor:pointer;}

.lac-quick{display:flex;flex-wrap:wrap;gap:7px;padding:10px 16px;background:#fff;border-top:1px solid #f0f0f0;}
.lac-quick button{
	background:#eef3fb;border:1px solid transparent;border-radius:16px;padding:7px 12px;font-size:11.5px;
	cursor:pointer;color:#2c3a52;font-weight:500;transition:all .15s;
}
.lac-quick button:hover{background:#fff;border-color:var(--lac-color);color:var(--lac-color-dark);}

.lac-input-row{display:flex;border-top:1px solid #f0f0f0;padding:10px;gap:8px;background:#fff;align-items:center;}
.lac-input-row input{
	flex:1;border:1.5px solid #e2e8f2;border-radius:22px;padding:10px 16px;font-size:13px;outline:none;
	transition:border-color .15s, box-shadow .15s;
}
.lac-input-row input:focus{border-color:var(--lac-color);box-shadow:0 0 0 3px rgba(21,96,209,.12);}
.lac-input-row button{
	background:linear-gradient(135deg,var(--lac-color) 0%,var(--lac-color-dark) 100%);
	border:none;color:#fff;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:15px;
	flex-shrink:0;transition:transform .15s;
}
.lac-input-row button:hover{transform:scale(1.06);}

.lac-typing-row{display:flex;align-items:center;gap:8px;}
.lac-typing{
	display:flex;gap:4px;padding:11px 14px;background:#fff;border:1px solid #e7edf6;border-radius:16px;
	border-bottom-left-radius:4px;width:fit-content;
}
.lac-typing span{width:6px;height:6px;border-radius:50%;background:#aebde0;animation:lac-bounce 1.1s infinite ease-in-out;}
.lac-typing span:nth-child(2){animation-delay:.15s;}
.lac-typing span:nth-child(3){animation-delay:.3s;}
@keyframes lac-bounce{0%,60%,100%{transform:translateY(0);opacity:.5;}30%{transform:translateY(-4px);opacity:1;}}

.lac-live-banner{background:#eaf6ee;color:#12793a;font-size:11.5px;text-align:center;padding:6px;border-bottom:1px solid #dbeee0;}

@media (max-width:480px){
	.lac-window{right:8px;bottom:86px;width:94vw;}
	#lac-chatbot-root{right:14px;bottom:14px;}
}
