#heat-chat-root{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* =========================
   FIX: center icon perfectly
========================= */

.hc-fab{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* FontAwesome icons sometimes shift – force block & reset */
.hc-fab i{
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* Extra nudge correction (FontAwesome optical centering) */
.hc-fab i{
  transform: translateX(0.5px) translateY(0.5px);
}


/* Floating Button */
.hc-fab{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #ff8a00, #e63946);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hc-fab:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
}

/* FORCE icon visibility */
.hc-fab svg,
.hc-logo svg,
.hc-close svg,
.hc-contact svg{
  width: 22px;
  height: 22px;
  stroke: #fff !important;
  fill: none !important;
  display: block;
}

/* Panel */
.hc-panel{
  width: 360px;
  height: 574px;
  position: absolute;
  right: 0;
  bottom: 72px;

  background: #0f172a;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  display: none;
}
.hc-panel.open{
  display: flex;
  flex-direction: column;
}

/* Header */
.hc-header{
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #111827;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hc-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}
.hc-logo{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a00, #e63946);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-logo svg{ width: 18px; height: 18px; }

.hc-title{ font-weight: 700; font-size: 14px; }
.hc-subtitle{ font-size: 12px; opacity: .7; }

/* Close button */
.hc-close{
  width: 36px !important;
  height: 36px !important;
  border-radius: 6% !important;
  border: none;
  background: rgba(255,255,255,.10);
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.hc-close:hover{ background: rgba(255,255,255,.16); }
.hc-close svg{ width: 18px; height: 18px; }

/* FAQ area */
.hc-faq{
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hc-faq-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.hc-faq-title{
  font-size: 12px;
  opacity: .8;
  font-weight: 700;
}
.hc-faq-chip{
  display:none;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
  white-space: nowrap;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hc-faq-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hc-faq-btn{
  border: none;
  cursor: pointer;
  padding: 7px 13px !important;
  border-radius: 999px;
  background: #f5c15b;
  color: #111827;
  font-weight: 800;
  font-size: 13px;
}
.hc-faq-btn:hover{ filter: brightness(1.02); }
.hc-faq.is-collapsed .hc-faq-row{ display:none; }
.hc-faq.is-collapsed .hc-faq-chip{ display:inline-flex; }

/* Messages */
.hc-body{
  flex: 1;
  padding: 14px;
  overflow-y: auto;
}
.hc-msg{
  margin-bottom: 10px;
  display: flex;
}
.hc-msg .b{
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.hc-msg.bot .b{ background: rgba(255,255,255,.08); }
.hc-msg.agent .b{ background: rgba(255,255,255,.12); }
.hc-msg.visitor{ justify-content: flex-end; }
.hc-msg.visitor .b{ background: #2563eb; }

/* Footer */
.hc-footer{
  padding: 12px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hc-input{
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: none;
  outline: none;
  background: #fff;
  color: #000;
}
.hc-send{
  padding: 0 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
}

/* === Contact buttons === */
.hc-contacts{
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hc-contacts-title{
  font-size: 12px;
  opacity: .7;
  margin-bottom: 8px;
  font-weight: 600;
}
.hc-contacts-row{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hc-contact{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.hc-contact i{
  font-size: 14px;
}
.hc-contact:hover{
  background: rgba(255,255,255,.15);
}


/* Mobile */
@media (max-width: 420px){
  .hc-panel{
    width: calc(100vw - 24px);
    height: 75vh;
  }
}

/* =========================
   FIX: footer cut-off + bigger circle button
   (ADD AT END OF FILE)
========================= */

/* Make sure chat stays above Elementor / other overlays */
#heat-chat-root{
  z-index: 9999999 !important;
}

/* Bigger circular floating button */
.hc-fab{
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;

  background: radial-gradient(circle at top left,
    #ffcc6b 0%,
    #ff8a00 45%,
    #e63946 100%) !important;

  box-shadow:
    0 18px 40px rgba(0,0,0,.45),
    inset 0 0 0 2px rgba(255,255,255,.25) !important;
}

/* If you are using FontAwesome <i> icon */
.hc-fab i{
  font-size: 30px !important;
  color: #fff !important;
  line-height: 1 !important;
}

/* If you are using SVG icon, make it bigger too */
.hc-fab svg{
  width: 26px !important;
  height: 26px !important;
}

/* Panel: flex column always (prevents bottom cut-off) */
.hc-panel{
  display: none;                 /* keep default closed */
  flex-direction: column !important;
  height: 568px !important;      /* a bit taller */
  bottom: 84px !important;       /* give space above the big button */
}

/* When open, show it */
.hc-panel.open{
  display: flex !important;
}

/* Make sure message area scrolls, footer never gets clipped */
.hc-body{
  flex: 1 1 auto !important;
  min-height: 0 !important;      /* IMPORTANT for flex scroll area */
  overflow-y: auto !important;
}

/* Footer anchored and safe-area padding */
.hc-footer{
  flex: 0 0 auto !important;
  background: #0b1224 !important;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Mobile tweak */
@media (max-width: 420px){
  .hc-panel{
    height: 78vh !important;
    bottom: 92px !important;
  }
  .hc-fab{
    width: 60px !important;
    height: 60px !important;
  }
}

