@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700&family=DM+Sans:wght@300;400;500&display=swap');

#lmc-bubble {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 99999;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform .2s;
}
#lmc-bubble:hover { transform: scale(1.08); }
#lmc-bubble svg { width: 26px; height: 26px; fill: #fff; }

#lmc-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 500; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

#lmc-window {
  position: fixed; bottom: 92px; right: 24px;
  width: 350px; height: 520px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display: none; flex-direction: column;
  z-index: 99998;
  font-family: 'DM Sans', sans-serif;
  background: #f4f5f7;
}
#lmc-window.lmc-open { display: flex; }

/* Position left */
#lmc-window.lmc-left { right: auto; left: 24px; }
#lmc-bubble.lmc-left  { right: auto; left: 24px; }

#lmc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; flex-shrink: 0;
}
.lmc-w-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #f5a623, #e8530a);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 13px; color: #fff;
}
.lmc-w-info { flex: 1; }
.lmc-w-name { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; color: #fff; }
.lmc-w-status { font-size: 10px; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 4px; }
.lmc-w-dot { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; }
#lmc-close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,.6); font-size: 16px; line-height: 1; padding: 0; }
#lmc-close:hover { color: #fff; }

#lmc-messages {
  flex: 1; overflow-y: auto;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 10px;
}
#lmc-messages::-webkit-scrollbar { width: 3px; }
#lmc-messages::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.lmc-msg { display: flex; gap: 6px; align-items: flex-end; max-width: 88%; }
.lmc-msg-bot  { align-self: flex-start; }
.lmc-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.lmc-bubble {
  padding: 9px 13px; border-radius: 16px;
  font-size: 13px; line-height: 1.5;
}
.lmc-msg-bot  .lmc-bubble { background: #fff; color: #1a1a2e; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.lmc-msg-user .lmc-bubble { color: #fff; border-bottom-right-radius: 4px; }

.lmc-mini-av {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #f5a623, #e8530a);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 8px; color: #fff;
}

.lmc-qr-wrap { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 30px; margin-top: 5px; }
.lmc-qr {
  font-family: 'DM Sans', sans-serif; font-size: 11.5px;
  padding: 5px 11px; border-radius: 20px;
  border: 1px solid; background: transparent;
  cursor: pointer; transition: all .15s;
}
.lmc-qr:hover { color: #fff !important; }

.lmc-typing { display: flex; gap: 4px; padding: 9px 13px; }
.lmc-typing span { width: 5px; height: 5px; border-radius: 50%; background: #9ca3af; animation: lmcBlink 1.2s infinite; }
.lmc-typing span:nth-child(2) { animation-delay: .2s; }
.lmc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes lmcBlink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

.lmc-lead-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.lmc-lead-form input, .lmc-lead-form select {
  font-family: 'DM Sans', sans-serif; font-size: 12.5px;
  padding: 7px 11px; border-radius: 8px;
  border: 1px solid #d1d5db; background: #f9fafb; color: #1a1a2e; outline: none;
}
.lmc-lead-form input:focus, .lmc-lead-form select:focus { border-color: currentColor; background: #fff; }
.lmc-lead-submit {
  font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; color: #fff;
  border: none; cursor: pointer; transition: opacity .15s;
}
.lmc-lead-submit:hover { opacity: .85; }
.lmc-lead-submit:disabled { opacity: .5; cursor: not-allowed; }
.lmc-lead-error { font-size: 11px; color: #e8530a; }

#lmc-input-area {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid #e5e7eb; background: #fff; flex-shrink: 0;
}
#lmc-input {
  flex: 1; font-family: 'DM Sans', sans-serif; font-size: 13px;
  padding: 9px 13px; border-radius: 22px;
  border: 1px solid #d1d5db; background: #f9fafb; color: #1a1a2e; outline: none;
}
#lmc-input:focus { border-color: #0a1628; background: #fff; }
#lmc-send {
  width: 36px; height: 36px; border-radius: 50%; color: #fff;
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
#lmc-send:hover { opacity: .85; }
#lmc-send svg { width: 15px; height: 15px; }

#lmc-footer { text-align: center; font-size: 10px; color: #9ca3af; padding: 5px 0 8px; background: #fff; flex-shrink: 0; }
#lmc-footer a { color: inherit; text-decoration: none; }
