.cb_wrap{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:999999;
  font-family:Heebo,system-ui,sans-serif;
  direction:ltr;
}

.cb_fab{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:0;
  cursor:pointer;
  padding:12px 14px;
  border-radius:999px;
  background:linear-gradient(90deg,#8e44ad,#9b59b6);
  color:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}

.cb_fab_icon{
  width:42px;
  height:42px;
  min-width:42px;
  min-height:42px;
  border-radius:50%;
  overflow:hidden;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.cb_fab_icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.cb_fab_text{
  font-weight:900;
}

.cb_panel{
  width:360px;
  max-width:calc(100vw - 36px);
  height:520px;
  max-height:calc(100vh - 120px);
  background:#fff;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.22);
  overflow:hidden;
  position:absolute;
  left:0;
  bottom:64px;
  opacity:0;
  transform:translateX(-10px) translateY(6px);
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  border:1px solid rgba(0,0,0,.08);
  direction:rtl;
  text-align:right;
}

.cb_wrap.is_open .cb_panel{
  opacity:1;
  transform:translateX(0) translateY(0);
  pointer-events:auto;
}

.cb_head{
  padding:12px 14px;
  background:linear-gradient(90deg,#2d0e5b,#3f1443);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.cb_head_title{
  text-align:right;
}

.cb_head_title strong{
  display:block;
  font-size:15px;
  font-weight:900;
}

.cb_head_title span{
  display:block;
  font-size:12px;
  opacity:.9;
}

.cb_close{
  border:0;
  background:rgba(255,255,255,.12);
  color:#fff;
  width:36px;
  height:36px;
  border-radius:12px;
  cursor:pointer;
  font-size:16px;
}

.cb_body{
  height:calc(100% - 116px);
  overflow:auto;
  padding:14px;
  background:
    radial-gradient(900px 320px at 90% 0%, rgba(241,156,18,.10), transparent 70%),
    radial-gradient(900px 320px at 10% 10%, rgba(142,68,173,.10), transparent 70%),
    #fbfbff;
  text-align:right;
  direction:ltr;
}

.cb_form{
  display:flex;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(0,0,0,.08);
  background:#fff;
  direction:ltr;
  align-items:center;
}

.cb_send{
  order:1;
  border:0;
  cursor:pointer;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  background:#f39c12;
  color:#2c3e50;
  white-space:nowrap;
}

.cb_send:disabled{
  opacity:.65;
  cursor:default;
}

.cb_input{
  order:2;
  flex:1;
  border:2px solid #eee;
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  text-align:right;
  direction:ltr;
  background:#fff;
}

.cb_input:focus{
  border-color:rgba(142,68,173,.65);
  box-shadow:0 0 0 4px rgba(142,68,173,.12);
}

.cb_msg{
  display:flex;
  margin-bottom:10px;
  justify-content:flex-end;
  direction:ltr;
}

.cb_bubble{
  max-width:88%;
  padding:12px 12px;
  border-radius:16px;
  line-height:1.75;
  white-space:pre-line;
  font-size:14px;
  border:1px solid rgba(0,0,0,.06);
  text-align:right;
  direction:ltr;
}

.cb_msg.user .cb_bubble{
  background:#fff;
  color:#2c3e50;
  font-weight:700;
}

.cb_msg.bot .cb_bubble{
  background:rgba(142,68,173,.10);
  border-color:rgba(142,68,173,.18);
  color:#2d0e5b;
  font-weight:800;
}

.cb_btns{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
  justify-content:flex-end;
  direction:ltr;
}

.cb_btn{
  border:1px solid rgba(142,68,173,.22);
  background:#fff;
  color:#2d0e5b;
  font-weight:900;
  border-radius:999px;
  padding:10px 12px;
  cursor:pointer;
}

.cb_btn:disabled{
  opacity:.6;
  cursor:default;
}

.cb_typing{
  display:inline-flex;
  gap:6px;
  align-items:center;
  justify-content:center;
  padding:4px 2px;
}

.cb_dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(45,14,91,.65);
  animation:cbBounce 1s infinite ease-in-out;
}

.cb_dot:nth-child(2){ animation-delay:.15s; }
.cb_dot:nth-child(3){ animation-delay:.30s; }

@keyframes cbBounce{
  0%,80%,100%{ transform:translateY(0); opacity:.55; }
  40%{ transform:translateY(-5px); opacity:1; }
}

/* טופס איסוף פרטים בתוך הצאט */
/* תופס גם את השמות החדשים וגם את הישנים מה JS שלך */
.cb_inline_form_wrap,
.cb_lead{
  margin-top:10px;
  padding:12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(142,68,173,.14);
  box-shadow:0 10px 22px rgba(45,14,91,.08);
  direction:ltr;
  text-align:right;
}

.cb_inline_form{
  display:block;
}

.cb_field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}

.cb_field label{
  font-size:12px;
  font-weight:900;
  color:rgba(45,14,91,.85);
  text-align:right;
  direction:ltr;
}

/* inputs של הטופס */
/* תופס גם cb_lead_input וגם cb_if_input */
.cb_lead_input,
.cb_if_input{
  width:100%;
  border:2px solid #eee;
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  text-align:right;
  direction:ltr;
  background:linear-gradient(180deg,#ffffff,#fbf7ff);
  transition:border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.cb_lead_input:focus,
.cb_if_input:focus{
  border-color:rgba(142,68,173,.70);
  box-shadow:0 0 0 4px rgba(142,68,173,.12);
  transform:translateY(-1px);
}

.cb_lead_actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  margin-top:10px;
  direction:ltr;
}

/* כפתור שליחה של הטופס */
/* תופס גם cb_lead_btn וגם cb_if_submit */
.cb_lead_btn,
.cb_if_submit{
  border:0;
  cursor:pointer;
  padding:12px 14px;
  border-radius:14px;
  font-weight:900;
  background:#f39c12;
  color:#2c3e50;
  box-shadow:0 12px 24px rgba(243,156,18,.22);
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease;
  white-space:nowrap;
}

.cb_lead_btn:hover,
.cb_if_submit:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(243,156,18,.28);
  filter:brightness(1.02);
}

.cb_lead_btn:disabled,
.cb_if_submit:disabled{
  opacity:.65;
  cursor:default;
  transform:none;
  box-shadow:none;
}

@media (max-width:768px){
  .cb_panel{
    position:fixed;
    left:50%;
    top:50%;
    bottom:auto;
    transform:translate(-50%, -50%) scale(.98);
    width:min(360px, calc(100vw - 30px));
    height:460px;
    max-height:calc(100vh - 40px);
  }

  .cb_wrap.is_open .cb_panel{
    transform:translate(-50%, -50%) scale(1);
  }

  .cb_wrap{
    left:14px;
    bottom:14px;
  }

  .cb_inline_form_wrap,
  .cb_lead{
    padding:10px;
    border-radius:14px;
  }

  .cb_lead_actions{
    flex-direction:column;
    align-items:stretch;
  }

  .cb_lead_btn,
  .cb_if_submit{
    width:100%;
  }
}

/* מובייל צאט בוט וכפתורי קשר לא מסתירים אחד את השני */
@media (max-width: 768px){

  /* הצאט יושב מעל הכפתורים הצפים */
  .cb_panel{
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;

    top: auto !important;

    /* מרווח לכפתורי וואטסאפ ושיחה */
    bottom: calc(140px + env(safe-area-inset-bottom)) !important;

    width: auto !important;

    /* גובה נוח במובייל */
    height: min(560px, calc(100dvh - 190px)) !important;
    max-height: calc(100dvh - 190px) !important;

    border-radius: 18px !important;

    /* שיהיה מעל כל התוכן אבל מתחת לכפתורי קשר */
    z-index: 1000000 !important;
  }

  .cb_wrap{
    z-index: 1000000 !important;
  }

  /* הכפתורים הצפים תמיד מעל */
  .floating-contact{
    z-index: 1000001 !important;
  }

  /* כשהצאט פתוח נרים את הכפתורים מעט למעלה כדי שלא יגעו בשורת ההקלדה */
  body.cb-open .floating-contact{ display:none !important; }

}

.cb_panel .cb_input{
  background: #fff;
  box-shadow: 0 -6px 14px rgba(0,0,0,.06);
}

.cb_panel .cb_input{
  background: #fff;
  box-shadow: 0 -6px 14px rgba(0,0,0,.06);
}
.cb_panel .cb_input{
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
/* מצב רגיל */
.cb_btn {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

/* מעבר עכבר */
.cb_btn:hover {
  background-color: #8e44ad;   /* סגול המותג */
  color: #ffffff;
  transform: translateY(-1px);
}

/* לחיצה */
.cb_btn:active {
  transform: translateY(0);
}

/* כפתור התחלה מחדש – הדגשה עדינה */
.cb_btn_restart {
  background: #f5f5f5;
  border: 1px dashed #8e44ad;
}

.cb_btn_restart:hover {
  background-color: #f39c12;  /* כתום המותג */
  color: #2c3e50;
}
/* אפקט רק לכפתורים פעילים */
.cb_btn:not(:disabled){
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, border-color 0.25s ease;
}

/* hover רק במכשירים שתומכים בזה */
@media (hover: hover) and (pointer: fine){
  .cb_btn:not(:disabled):hover{
    background-color: #8e44ad !important;
    color: #ffffff !important;
    border-color: rgba(142,68,173,.55) !important;
    transform: translateY(-1px);
  }
}

/* במובייל ובטאצ, אפקט בלחיצה */
.cb_btn:not(:disabled):active{
  background-color: #8e44ad !important;
  color: #ffffff !important;
  transform: translateY(0);
}

/* פוקוס מקלדת */
.cb_btn:not(:disabled):focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(142,68,173,.18);
}

/* כפתור התחלה מחדש */
.cb_btn_restart{
  background: #f5f5f5 !important;
  border: 1px dashed #8e44ad !important;
}

@media (hover: hover) and (pointer: fine){
  .cb_btn_restart:not(:disabled):hover{
    background-color: #f39c12 !important;
    color: #2c3e50 !important;
    border-color: rgba(243,156,18,.55) !important;
  }
}

.cb_btn_restart:not(:disabled):active{
  background-color: #f39c12 !important;
  color: #2c3e50 !important;
}
.cb_fab_avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  overflow:hidden;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}

.cb_fab_avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.cb_fab_avatar{
  box-shadow:0 4px 10px rgba(0,0,0,.25);
}
.cb_head_title{
  display:flex;
  align-items:center;
  gap:12px;
}

.cb_head_avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
}
@media (max-width:480px){
  .cb_fab_icon{
    width:38px;
    height:38px;
    min-width:38px;
    min-height:38px;
  }
}
/* Icon fix hard override */
#cbWrap .cb_fab_icon.cb_fab_avatar{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  border-radius:999px !important;
  overflow:hidden !important;
  background:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
  line-height:0 !important;
}

#cbWrap .cb_fab_icon.cb_fab_avatar img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  max-width:none !important;
  max-height:none !important;
}
/* Panel layout fix */
#cbWrap .cb_panel{
  position:fixed;
  left:18px;
  bottom:78px;
  width:360px;
  max-width:calc(100vw - 36px);
  height:520px;
  max-height:calc(100vh - 140px);
  background:#fff;
  border-radius:18px;
  box-shadow:0 16px 44px rgba(0,0,0,.22);
  overflow:hidden;
  display:none;
  flex-direction:column;
  z-index:999999;
}

#cbWrap.cb_open .cb_panel{
  display:flex;
}

#cbWrap .cb_head{
  padding:14px 14px;
  border-bottom:1px solid #eee;
  flex:0 0 auto;
}

#cbWrap .cb_body{
  padding:12px 12px;
  overflow:auto;
  flex:1 1 auto;
  min-height:0;
}

#cbWrap .cb_form{
  display:flex;
  gap:10px;
  padding:12px 12px;
  border-top:1px solid #eee;
  background:#fff;
  flex:0 0 auto;
}

#cbWrap .cb_input{
  flex:1;
  min-width:0;
}

#cbWrap .cb_send{
  flex:0 0 auto;
  white-space:nowrap;
}

@media (max-width:520px){
  #cbWrap .cb_panel{
    left:12px;
    bottom:72px;
    width:calc(100vw - 24px);
    height:min(560px, calc(100vh - 120px));
  }
}
/* Chatbot panel hard layout fix RTL */
#cbWrap, #cbWrap *{ box-sizing:border-box; }

#cbWrap{ direction:rtl; }

#cbWrap .cb_panel{
  position:fixed;
  left:18px;
  bottom:78px;
  width:360px;
  max-width:calc(100vw - 36px);
  height:520px;
  max-height:calc(100vh - 140px);
  background:#ffffff;
  border-radius:18px;
  overflow:hidden;
  display:none;
  flex-direction:column;
  z-index:999999;
}

#cbWrap.cb_open .cb_panel{ display:flex; }

#cbWrap .cb_head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  border-bottom:1px solid rgba(0,0,0,.08);
  background:#ffffff;
  flex:0 0 auto;
}

#cbWrap .cb_head_title{
  min-width:0;
  direction:rtl;
  text-align:right;
}

#cbWrap .cb_head_title strong{
  display:block;
  font-weight:900;
  font-size:16px;
  line-height:1.2;
}

#cbWrap .cb_head_title span{
  display:block;
  margin-top:4px;
  font-size:13px;
  line-height:1.35;
  opacity:.85;
  word-break:break-word;
}

#cbWrap .cb_close{
  flex:0 0 auto;
  width:36px;
  height:36px;
  border:0;
  border-radius:10px;
  background:rgba(0,0,0,.08);
  color:#111;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
}

#cbWrap .cb_body{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  padding:12px 12px;
  overflow:auto;
  direction:rtl;
  text-align:right;
}

#cbWrap .cb_form{
  flex:0 0 auto;
  display:flex;
  gap:10px;
  padding:12px 12px;
  border-top:1px solid rgba(0,0,0,.08);
  background:#ffffff;
}

#cbWrap .cb_input{
  flex:1 1 auto;
  min-width:0;
  height:44px;
  border-radius:14px;
}

#cbWrap .cb_send{
  flex:0 0 auto;
  height:44px;
  border-radius:14px;
  white-space:nowrap;
}

/* Mobile sizing */
@media (max-width:520px){
  #cbWrap .cb_panel{
    left:12px;
    bottom:72px;
    width:calc(100vw - 24px);
    height:min(560px, calc(100vh - 120px));
  }
}
/* ===== FINAL FIX Chatbot RTL and Layout ===== */

/* תמיד לעבוד עם is_open כי זה מה שיש לך למעלה */
#cbWrap.cb_open .cb_panel{ display:none !important; }
#cbWrap.is_open .cb_panel{ display:flex !important; opacity:1 !important; pointer-events:auto !important; transform:none !important; }

#cbWrap, #cbWrap *{ box-sizing:border-box; }

/* מעטפת */
#cbWrap.cb_wrap{
  direction:rtl !important;
}

/* פאנל */
#cbWrap .cb_panel{
  position:fixed !important;
  left:18px !important;
  right:auto !important;
  bottom:78px !important;

  width:360px !important;
  max-width:calc(100vw - 36px) !important;

  height:520px !important;
  max-height:calc(100vh - 140px) !important;

  border-radius:18px !important;
  overflow:hidden !important;

  display:none !important;
  flex-direction:column !important;

  background:#fff !important;
  border:1px solid rgba(0,0,0,.08) !important;
  box-shadow:0 16px 44px rgba(0,0,0,.22) !important;

  z-index:1000000 !important;
}

/* כותרת */
#cbWrap .cb_head{
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;

  padding:14px 14px !important;
  background:linear-gradient(90deg,#2d0e5b,#3f1443) !important;
  color:#fff !important;

  border-bottom:1px solid rgba(255,255,255,.18) !important;
}

#cbWrap .cb_head_title{
  min-width:0 !important;
  text-align:right !important;
  direction:rtl !important;
}

#cbWrap .cb_head_title strong{
  display:block !important;
  font-weight:900 !important;
  font-size:16px !important;
  line-height:1.2 !important;
}

#cbWrap .cb_head_title span{
  display:block !important;
  margin-top:4px !important;
  font-size:13px !important;
  line-height:1.35 !important;
  opacity:.9 !important;
  word-break:break-word !important;
}

#cbWrap .cb_close{
  flex:0 0 auto !important;
  width:36px !important;
  height:36px !important;
  border:0 !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.14) !important;
  color:#fff !important;
  cursor:pointer !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  font-size:18px !important;
  line-height:1 !important;
}

/* גוף הצאט */
#cbWrap .cb_body{
  flex:1 1 auto !important;
  min-height:0 !important;
  width:100% !important;

  overflow:auto !important;
  padding:14px !important;

  direction:rtl !important;
  text-align:right !important;

  background:
    radial-gradient(900px 320px at 90% 0%, rgba(241,156,18,.10), transparent 70%),
    radial-gradient(900px 320px at 10% 10%, rgba(142,68,173,.10), transparent 70%),
    #fbfbff !important;
}

/* שורת כתיבה */
#cbWrap .cb_form{
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;

  padding:12px !important;
  border-top:1px solid rgba(0,0,0,.08) !important;
  background:#fff !important;

  direction:rtl !important;
}

/* סדר נכון RTL */
#cbWrap .cb_input{ order:1 !important; }
#cbWrap .cb_send{ order:2 !important; }

#cbWrap .cb_input{
  flex:1 1 auto !important;
  min-width:0 !important;

  border:2px solid #eee !important;
  border-radius:14px !important;
  padding:12px 12px !important;

  font-size:14px !important;
  outline:none !important;

  direction:rtl !important;
  text-align:right !important;
  background:#fff !important;
}

#cbWrap .cb_send{
  border:0 !important;
  cursor:pointer !important;
  padding:12px 14px !important;
  border-radius:14px !important;
  font-weight:900 !important;
  background:#f39c12 !important;
  color:#2c3e50 !important;
  white-space:nowrap !important;
}

/* בועות הודעה */
#cbWrap .cb_msg,
#cbWrap .cb_bubble{
  direction:ltr !important;
  text-align:right !important;
}

#cbWrap .cb_msg{ justify-content:flex-end !important; }

#cbWrap .cb_bubble{
  max-width:88% !important;
  white-space:pre-line !important;
  line-height:1.75 !important;
}

/* כפתורים בתוך הצאט */
#cbWrap .cb_btns{ direction:ltr !important; justify-content:flex-end !important; }

/* מובייל */
@media (max-width:768px){
  #cbWrap .cb_panel{
    left:14px !important;
    right:14px !important;
    width:auto !important;

    bottom:calc(140px + env(safe-area-inset-bottom)) !important;

    height:min(560px, calc(100dvh - 190px)) !important;
    max-height:calc(100dvh - 190px) !important;
  }
}
@keyframes cbBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

#cbWrap .cb_fab_icon.cb_fab_avatar{
  animation: cbBreath 3.2s ease-in-out infinite;
}

#cbWrap .cb_fab_icon.cb_fab_avatar{
  box-shadow:
    0 0 0 rgba(142,68,173,0.0),
    0 0 18px rgba(142,68,173,0.45);
  transition: box-shadow .3s ease;
}
@media (hover: hover) and (pointer: fine){
  #cbWrap .cb_fab:hover .cb_fab_icon{
    transform: scale(1.12) rotate(-2deg);
    box-shadow: 0 14px 30px rgba(0,0,0,.28);
  }
}
body.cb-open #cbWrap .cb_fab_icon{
  animation: none !important;
}
/* ===============================
   הגדלת אייקון הצ׳אט – ברור וחד
   =============================== */

/* גודל כללי (דסקטופ) */
#cbWrap .cb_fab_icon.cb_fab_avatar{
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 50% !important;
}

/* התמונה עצמה */
#cbWrap .cb_fab_icon.cb_fab_avatar img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* הכפתור שעוטף את האייקון */
#cbWrap .cb_fab{
  padding: 14px 16px !important;
}

/* מובייל – קצת יותר גדול כדי שיראו ברור */
@media (max-width: 768px){
  #cbWrap .cb_fab_icon.cb_fab_avatar{
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
  }

  #cbWrap .cb_fab{
    padding: 14px !important;
  }
}
/* ===============================
   מובייל – גודל כמו אייקון WhatsApp
   =============================== */
@media (max-width: 768px){

  /* האייקון עצמו */
  #cbWrap .cb_fab_icon.cb_fab_avatar{
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    border-radius: 50% !important;
  }

  #cbWrap .cb_fab_icon.cb_fab_avatar img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* הכפתור העוטף – שלא ירגיש קטן מדי */
  #cbWrap .cb_fab{
    padding: 12px !important;
  }
}
/* Lead Success Modal */
.lead_modal{
  position: fixed;
  inset: 0;
  z-index: 2000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lead_modal.is-open{ display: flex; }

.lead_modal_backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}

.lead_modal_card{
  position: relative;
  width: min(460px, 92vw);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(142,68,173,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.28);
  padding: 18px 16px 16px;
  text-align: center;
}

.lead_modal_icon{
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(142,68,173,.14), rgba(243,156,18,.12));
  border: 1px solid rgba(142,68,173,.16);
}

.lead_modal_icon i{
  font-size: 28px;
  color: #2d0e5b;
}

.lead_modal_title{
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  color: #2d0e5b;
}

.lead_modal_text{
  margin: 0 0 14px;
  font-size: 16px;
  color: rgba(0,0,0,.72);
  line-height: 1.8;
}

.lead_modal_btn{
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  background: #f39c12;
  color: #2c3e50;
  box-shadow: 0 12px 24px rgba(243,156,18,.22);
}

.lead_modal_btn:active{ transform: translateY(1px); }

/* Fix hamburger not clickable because chatbot layer captures clicks */
#cbWrap{
  pointer-events: none !important;
}

/* Only the actual clickable parts of the chatbot get pointer events */
#cbWrap .cb_fab,
#cbWrap .cb_panel{
  pointer-events: auto !important;
}
/* Make sure hamburger stays above everything */
.toggle-sidebar,
.hamburger,
.menu-toggle{
  position: relative;
  z-index: 2000002 !important;
}
#cbWrap .cb_panel{
  top: auto !important;
  bottom: 92px !important;
  height: min(560px, calc(100dvh - 140px)) !important;
  max-height: calc(100dvh - 140px) !important;
}

#cbWrap .cb_head{
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
}

#cbWrap .cb_close{
  z-index: 6 !important;
}

@media (max-width: 768px){
  #cbWrap .cb_panel{
    left: 14px !important;
    right: 14px !important;

    bottom: calc(92px + env(safe-area-inset-bottom)) !important;

    height: min(520px, calc(100dvh - 170px)) !important;
    max-height: calc(100dvh - 170px) !important;
  }
}
