.lcmp-embed-box{
  width:100%;
  height:100%;
  background:#fff;
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  position:relative; /* để overlay nằm trong */
}

.lcmp-header{ padding:12px; border-bottom:1px solid #eee; }
.lcmp-title{ font-size:16px; font-weight:700; }
.lcmp-sub{ font-size:12px; opacity:.7; margin-top:2px; }

.lcmp-messages{ padding:12px; overflow:auto; flex:1; background:#fafafa; }

.lcmp-bubble{
  max-width:88%;
  padding:10px 12px;
  border-radius:12px;
  margin-bottom:10px;
  line-height:1.45;
  font-size:14px;
  white-space:normal;
}
.lcmp-user{ margin-left:auto; background:#111; color:#fff; white-space:pre-wrap; }
.lcmp-bot{ margin-right:auto; background:#fff; border:1px solid #eee; }

.lcmp-attach-img{
  max-width:100%;
  border-radius:12px;
  margin:6px 0 12px;
  display:block;
}

.lcmp-file{
  display:inline-block;
  margin:4px 0 10px;
  text-decoration:none;
  font-weight:700;
}

.lcmp-locked{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  border:1px dashed #bbb;
  margin:6px 0 10px;
  background:#fff;
  font-size:13px;
}

.lcmp-inputbar{ display:flex; gap:8px; padding:10px; border-top:1px solid #eee; }
.lcmp-input{ flex:1; padding:10px 12px; border:1px solid #ddd; border-radius:10px; }
.lcmp-send{ padding:10px 12px; border-radius:10px; border:0; background:#111; color:#fff; cursor:pointer; }

/* ==== Pretty format (replace ### ** -) ==== */
.lcmp-h1, .lcmp-h2, .lcmp-h3{
  font-weight: 850;
  margin: 6px 0 8px;
}
.lcmp-h1{ font-size: 16px; }
.lcmp-h2{ font-size: 15px; }
.lcmp-h3{ font-size: 14px; }

.lcmp-li{
  display:flex;
  gap:8px;
  margin: 4px 0;
  align-items:flex-start;
}
.lcmp-ico{ width: 18px; display:inline-block; }

/* ==== Lead overlay (popup, không ảnh hưởng khung chat) ==== */
.lcmp-hidden{ display:none !important; }

.lcmp-lead-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
  z-index:50;
}

.lcmp-lead-card{
  width:100%;
  max-width:520px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 15px 40px rgba(0,0,0,.25);
  padding:14px;
}

.lcmp-lead-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.lcmp-lead-title{ font-weight:800; font-size:16px; }

.lcmp-close{
  border:0;
  background:#eee;
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
  font-weight:900;
}

.lcmp-lead-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.lcmp-lead-grid input, .lcmp-lead-grid select{
  padding:10px;
  border:1px solid #ddd;
  border-radius:10px;
}

.lcmp-submit{
  width:100%;
  margin-top:10px;
  padding:10px 12px;
  border:0;
  border-radius:10px;
  background:#0b7;
  color:#fff;
  cursor:pointer;
  font-weight:800;
}
.lcmp-note{ margin-top:8px; font-size:12px; opacity:.75; }

@media (max-width:420px){
  .lcmp-lead-grid{ grid-template-columns:1fr; }
}
.lcmp-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.lcmp-actions{
  display:flex;
  gap:8px;
  align-items:center;
}

.lcmp-btn-consult{
  border:0;
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:800;
  background:#0b7;
  color:#fff;
  white-space:nowrap;
  font-size:13px;
}

.lcmp-btn-call{
  width:38px;
  height:38px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  color:#fff;
  text-decoration:none;
  font-size:16px;
}

@media (max-width:420px){
  .lcmp-btn-consult{ padding:8px; font-size:12px; }
}
