#lc-chat-root{position:fixed;bottom:22px;right:22px;z-index:99999;font-family:'Poppins',sans-serif;}
#lc-chat-root.lc-pos-left{right:auto;left:22px;}
#lc-chat-root.lc-pos-left #lc-chat-panel{right:auto;left:0;}
#lc-chat-root *{box-sizing:border-box;}
#lc-chat-root input,#lc-chat-root button,#lc-chat-root textarea{
  font-family:'Poppins',sans-serif !important;-webkit-appearance:none;appearance:none;
}

#lc-chat-bubble{
  position:relative;width:58px;height:58px;border-radius:50%;border:none;cursor:pointer;
  display:flex !important;align-items:center;justify-content:center;color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.24);transition:transform .15s ease;
  background:linear-gradient(135deg, var(--lc-grad-start,#0B0B0C), var(--lc-grad-end,#2B2D33), var(--lc-grad-start,#0B0B0C));
  background-size:220% 220%;padding:0;
}
#lc-chat-bubble.lc-animate{animation:lc-gradient-shift 6s ease infinite;}
@keyframes lc-gradient-shift{0%{background-position:0% 50%;}50%{background-position:100% 50%;}100%{background-position:0% 50%;}}
#lc-chat-bubble:hover{transform:scale(1.06);}
#lc-chat-bubble svg{
  width:26px !important;height:26px !important;min-width:26px;min-height:26px;max-width:26px;max-height:26px;
  flex-shrink:0;display:block !important;overflow:visible;pointer-events:none;
}
#lc-chat-bubble svg path{stroke:#fff !important;}
#lc-chat-dot{position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:50%;background:#3EDC81;border:2px solid #fff;display:none;}
#lc-chat-dot.show{display:block;}

#lc-chat-panel{
  position:absolute;bottom:74px;right:0;width:370px;max-width:calc(100vw - 40px);
  height:520px;max-height:74vh;background:#fff;border:1px solid #E7E7E9;border-radius:18px;
  box-shadow:0 20px 50px rgba(0,0,0,.18);display:none;flex-direction:column;overflow:hidden;
}
#lc-chat-panel.open{display:flex;}
#lc-chat-header{color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;background:linear-gradient(135deg, var(--lc-grad-start,#0B0B0C), var(--lc-grad-end,#2B2D33));}
#lc-chat-title{font-size:14.5px;font-weight:600;letter-spacing:-.01em;display:block;}
#lc-chat-status{font-size:10.5px;opacity:.75;display:block;margin-top:1px;}
#lc-chat-close{background:none !important;border:none;color:#fff;cursor:pointer;padding:4px;display:flex !important;opacity:.8;}
#lc-chat-close:hover{opacity:1;}
#lc-chat-close svg{width:18px !important;height:18px !important;min-width:18px;min-height:18px;display:block !important;flex-shrink:0;}
#lc-chat-close svg line{stroke:#fff !important;}

#lc-chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#FAFAFA;}
#lc-chat-messages::-webkit-scrollbar{width:4px;}
#lc-chat-messages::-webkit-scrollbar-thumb{background:#dcdcdf;border-radius:8px;}

.lc-msg{max-width:88%;padding:10px 13px;border-radius:14px;font-size:13px;line-height:1.55;word-wrap:break-word;}
.lc-msg.bot{background:#fff;border:1px solid #E7E7E9;color:#0B0B0C;align-self:flex-start;border-bottom-left-radius:4px;}
.lc-msg.bot p{margin:0 0 8px;}
.lc-msg.bot p:last-child{margin-bottom:0;}
.lc-msg.bot ul{margin:0 0 8px;padding-left:18px;}
.lc-msg.bot ul:last-child{margin-bottom:0;}
.lc-msg.bot strong{font-weight:600;}
.lc-msg.user{background:#0B0B0C;color:#fff;align-self:flex-end;border-bottom-right-radius:4px;}
.lc-msg.typing{background:#fff;border:1px solid #E7E7E9;align-self:flex-start;border-bottom-left-radius:4px;display:flex;gap:4px;padding:12px 14px;}
.lc-dot{width:6px;height:6px;border-radius:50%;background:#9AA4B2;animation:lc-bounce 1.2s infinite ease-in-out;}
.lc-dot:nth-child(2){animation-delay:.15s;}
.lc-dot:nth-child(3){animation-delay:.3s;}
@keyframes lc-bounce{0%,60%,100%{transform:translateY(0);opacity:.5;}30%{transform:translateY(-4px);opacity:1;}}

/* Quick actions */
#lc-chat-quickactions{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;flex-shrink:0;}
.lc-qa-btn{background:#fff;border:1px solid #E7E7E9;border-radius:999px;padding:6px 12px;font:400 11.5px 'Poppins',sans-serif;color:#0B0B0C;cursor:pointer;}
.lc-qa-btn:hover{border-color:#0B0B0C;}

/* Product cards */
.lc-products{display:flex;flex-direction:column;gap:8px;align-self:stretch;}
.lc-product-card{display:flex;gap:10px;background:#fff;border:1px solid #E7E7E9;border-radius:12px;padding:10px;align-self:stretch;}
.lc-product-card img{width:54px;height:54px;object-fit:cover;border-radius:8px;flex-shrink:0;background:#FAFAFA;}
.lc-product-info{flex:1;min-width:0;}
.lc-product-info .lc-p-name{font-size:12.5px;font-weight:600;margin-bottom:2px;}
.lc-product-info .lc-p-desc{font-size:11px;color:#6B7078;margin-bottom:4px;line-height:1.4;}
.lc-product-info .lc-p-price{font-size:12.5px;font-weight:700;}
.lc-product-actions{display:flex;gap:6px;margin-top:6px;}
.lc-p-btn{font-size:10.5px;padding:5px 10px;border-radius:999px;border:1px solid #E7E7E9;background:#fff;color:#0B0B0C;cursor:pointer;text-decoration:none;display:inline-block;}
.lc-p-btn.primary{background:#0B0B0C;color:#fff;border-color:#0B0B0C;}
.lc-p-btn:hover{opacity:.85;}

/* Comparison table */
.lc-compare{background:#fff;border:1px solid #E7E7E9;border-radius:12px;overflow:hidden;align-self:stretch;font-size:11.5px;}
.lc-compare table{width:100%;border-collapse:collapse;}
.lc-compare th,.lc-compare td{padding:8px 10px;border-bottom:1px solid #E7E7E9;text-align:left;vertical-align:top;}
.lc-compare th{background:#FAFAFA;font-weight:600;font-size:11px;}
.lc-compare tr:last-child td{border-bottom:none;}

/* Escalation CTA */
.lc-escalate-btn{align-self:flex-start;background:#0B0B0C;color:#fff;border:none;border-radius:999px;padding:8px 16px;font-size:11.5px;cursor:pointer;text-decoration:none;display:inline-block;}

#lc-chat-inputrow{display:flex;gap:8px;padding:12px;border-top:1px solid #E7E7E9;background:#fff;flex-shrink:0;}
#lc-chat-input{
  flex:1;border:1px solid #E7E7E9 !important;border-radius:999px;padding:10px 14px;
  font:400 13.5px 'Poppins',sans-serif !important;outline:none;
  color:#0B0B0C !important;background:#fff !important;
  -webkit-text-fill-color:#0B0B0C !important;box-shadow:none !important;
}
#lc-chat-input::placeholder{color:#9AA4B2 !important;opacity:1 !important;}
#lc-chat-input:focus{border-color:#0B0B0C !important;}
#lc-chat-send{
  width:38px;height:38px;border-radius:50%;background:#0B0B0C !important;border:none;color:#fff;cursor:pointer;
  display:flex !important;align-items:center;justify-content:center;flex-shrink:0;padding:0;
}
#lc-chat-send svg{
  width:16px !important;height:16px !important;min-width:16px;min-height:16px;
  display:block !important;flex-shrink:0;overflow:visible;pointer-events:none;
}
#lc-chat-send svg line,#lc-chat-send svg polygon{stroke:#fff !important;}
#lc-chat-send:disabled{opacity:.4;cursor:not-allowed;}

@media(max-width:480px){
  #lc-chat-root{bottom:14px;right:14px;}
  #lc-chat-root.lc-pos-left{left:14px;right:auto;}
  #lc-chat-panel{width:calc(100vw - 28px);height:70vh;}
}

#lc-chat-footer{
  text-align:center;padding:7px 12px;font-size:10px;color:#9AA4B2;background:#fff;
  border-top:1px solid #F0F0F1;flex-shrink:0;
}
#lc-chat-footer a{color:#6B7078;text-decoration:none;font-weight:500;}
#lc-chat-footer a:hover{color:#0B0B0C;text-decoration:underline;}
