/* iConnect Lead Bot. Everything is scoped under #ilb-root so the theme is untouched. */
.float-wp { display: none !important; } /* WhatsApp button retired wherever the chat is shown */

#ilb-root {
  --ilb-navy: #0a0d31;
  --ilb-navy-2: #14205a;
  --ilb-blue: #255dab;
  --ilb-blue-2: #0f7dc2;
  --ilb-bg: #ffffff;
  --ilb-canvas: #f4f6fb;
  --ilb-line: #e3e7f0;
  --ilb-text: #1a1f2e;
  --ilb-muted: #6b7280;
  position: fixed; right: 22px; bottom: 22px; z-index: 2147483000;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ilb-text);
  -webkit-font-smoothing: antialiased;
}
#ilb-root *, #ilb-root *::before, #ilb-root *::after { box-sizing: border-box; }
/* The site's Elementor kit pads every <button> (13px 22px), which squeezed the icons in the
   round close and send buttons to zero width. Reset theme button styles; .ilb-btn sets its own padding. */
#ilb-root button { font: inherit; padding: 0; margin: 0; min-width: 0; min-height: 0; line-height: 1; letter-spacing: normal; text-transform: none; box-shadow: none; }
#ilb-root button svg { flex: none; display: block; }
#ilb-root :focus-visible { outline: 3px solid var(--ilb-blue-2); outline-offset: 2px; }

/* launcher */
#ilb-root .ilb-launcher {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(140deg, var(--ilb-blue-2) 0%, var(--ilb-blue) 45%, var(--ilb-navy) 100%); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(10, 13, 49, .32), 0 2px 6px rgba(10, 13, 49, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}
#ilb-root .ilb-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10, 13, 49, .38); }
#ilb-root .ilb-launcher::after { /* one soft pulse to draw the eye, then it stops */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ilb-blue-2);
  animation: ilb-pulse 2.2s ease-out 1.5s 2; opacity: 0; pointer-events: none;
}
#ilb-root .ilb-launcher svg { display: block; flex: none; animation: ilb-spin-in .22s ease-out; }
@keyframes ilb-spin-in { from { opacity: 0; transform: rotate(-60deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes ilb-pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }

/* panel */
#ilb-root .ilb-panel {
  position: absolute; right: 0; bottom: 74px; width: 380px; height: 580px; max-height: calc(100vh - 110px);
  background: var(--ilb-bg); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 13, 49, .25), 0 4px 14px rgba(10, 13, 49, .12);
  display: flex; flex-direction: column;
  transform-origin: bottom right; animation: ilb-in .22s ease-out;
}
#ilb-root .ilb-panel[hidden] { display: none; }
@keyframes ilb-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

#ilb-root .ilb-head {
  background: linear-gradient(120deg, var(--ilb-navy) 0%, var(--ilb-navy-2) 70%, var(--ilb-blue) 130%);
  color: #fff; padding: 16px 16px 16px 20px; display: flex; align-items: center; justify-content: space-between;
}
#ilb-root .ilb-brand { display: flex; flex-direction: column; gap: 6px; }
#ilb-root .ilb-logo { height: 24px; width: auto; display: block; }
#ilb-root .ilb-online { font-size: 12.5px; color: rgba(255, 255, 255, .78); display: flex; align-items: center; gap: 6px; }
#ilb-root .ilb-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .22); }
#ilb-root .ilb-close { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
#ilb-root .ilb-close:hover { background: rgba(255, 255, 255, .2); }

/* messages */
#ilb-root .ilb-log { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c3cad9 transparent; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--ilb-canvas); scroll-behavior: smooth; }
#ilb-root .ilb-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; animation: ilb-msg .18s ease-out; }
@keyframes ilb-msg { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#ilb-root .ilb-bot { align-self: flex-start; background: var(--ilb-bg); border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(10, 13, 49, .08); }
#ilb-root .ilb-user { align-self: flex-end; background: linear-gradient(135deg, var(--ilb-blue) 0%, var(--ilb-navy-2) 100%); color: #fff; border-bottom-right-radius: 5px; }
#ilb-root .ilb-msg a { color: var(--ilb-blue); text-decoration: underline; text-underline-offset: 2px; }
#ilb-root .ilb-user a { color: #fff; }
#ilb-root .ilb-typing { display: inline-flex; gap: 5px; padding: 13px 15px; }
#ilb-root .ilb-typing span { width: 7px; height: 7px; border-radius: 50%; background: #a3aac0; animation: ilb-bounce 1.2s infinite ease-in-out; }
#ilb-root .ilb-typing span:nth-child(2) { animation-delay: .15s; }
#ilb-root .ilb-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ilb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .6; } 30% { transform: translateY(-5px); opacity: 1; } }

#ilb-root .ilb-log::-webkit-scrollbar { width: 6px; }
#ilb-root .ilb-log::-webkit-scrollbar-thumb { background: #c3cad9; border-radius: 3px; }
#ilb-root .ilb-log::-webkit-scrollbar-track { background: transparent; }

#ilb-root .ilb-human:empty { display: none; }
#ilb-root .ilb-human { padding: 6px 16px; background: var(--ilb-canvas); }

/* input */
#ilb-root .ilb-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--ilb-line); background: var(--ilb-bg); }
#ilb-root .ilb-input textarea {
  flex: 1; resize: none; border: 1px solid var(--ilb-line); background: var(--ilb-canvas); border-radius: 22px;
  padding: 10px 16px; font: inherit; color: var(--ilb-text); min-height: 44px; max-height: 120px; line-height: 1.4; outline: none; overflow-y: hidden; scrollbar-width: thin; transition: border-color .15s, background .15s;
}
#ilb-root .ilb-input textarea:focus { border-color: var(--ilb-blue); background: var(--ilb-bg); }
#ilb-root .ilb-input textarea:disabled { opacity: .7; }
#ilb-root .ilb-send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ilb-blue); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .1s;
}
#ilb-root .ilb-send:hover { background: var(--ilb-navy-2); }
#ilb-root .ilb-send:active { transform: scale(.94); }
#ilb-root .ilb-send:disabled { background: #b8c2d8; cursor: default; }
#ilb-root .ilb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

/* fallback form */
#ilb-root .ilb-formbox { align-self: stretch; background: var(--ilb-bg); border-radius: 14px; padding: 14px; box-shadow: 0 1px 3px rgba(10, 13, 49, .1); margin-top: 4px; animation: ilb-msg .18s ease-out; }
#ilb-root .ilb-formbox[hidden] { display: none; }
#ilb-root .ilb-form { display: flex; flex-direction: column; gap: 10px; }
#ilb-root .ilb-form-title { margin: 0 0 2px; font-weight: 600; color: var(--ilb-navy); }
#ilb-root .ilb-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--ilb-muted); }
#ilb-root .ilb-field input, #ilb-root .ilb-field select, #ilb-root .ilb-field textarea {
  font: inherit; font-size: 14px; color: var(--ilb-text); border: 1px solid var(--ilb-line); background: var(--ilb-canvas); border-radius: 10px; padding: 9px 11px; outline: none;
}
#ilb-root .ilb-field input:focus, #ilb-root .ilb-field select:focus, #ilb-root .ilb-field textarea:focus { border-color: var(--ilb-blue); background: var(--ilb-bg); }
#ilb-root .ilb-consent { font-size: 12.5px; color: var(--ilb-muted); }
#ilb-root .ilb-consent a { color: var(--ilb-blue); }
#ilb-root .ilb-status { font-size: 13px; color: #b3261e; min-height: 1em; }
#ilb-root .ilb-btn { border: 0; border-radius: 22px; background: var(--ilb-blue); color: #fff; padding: 11px 16px; font-weight: 600; cursor: pointer; }
#ilb-root .ilb-btn:hover { background: var(--ilb-navy-2); }
#ilb-root .ilb-btn:disabled { opacity: .6; cursor: default; }
#ilb-root .ilb-thanks { margin: 6px 0; font-weight: 600; color: var(--ilb-navy); }

/* phones: full screen */
@media (max-width: 480px) {
  #ilb-root { right: 16px; bottom: 16px; }
  #ilb-root.ilb-open .ilb-panel { position: fixed; inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; animation: none; }
  #ilb-root.ilb-open .ilb-launcher { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #ilb-root *, #ilb-root *::before, #ilb-root *::after { animation: none !important; transition: none !important; }
}
