/* Scoped styles only */
#hcta.hcta__widget_container{
  font-family: var(--hcta-font);
  font-size: var(--hcta-font-size);
  position: relative;
  z-index: 2147483000;
}
#hcta .hcta__btn_popup{
  position: fixed;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2147483001;
}
#hcta .hcta__btn_popup_txt{
  background: var(--hcta-panel-bg);
  color: var(--hcta-panel-text);
  border-radius: 999px;
  padding: 10px 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  cursor: pointer;
  user-select: none;
  line-height: 1.1;
  border: 1px solid rgba(15,23,42,.08);
}
#hcta .hcta__btn_popup_txt strong{ font-weight: 800; }
#hcta .hcta__btn_popup_icon{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--hcta-fab-bg);
  color: var(--hcta-fab-ico);
  border: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  cursor: pointer;
}
#hcta .hcta__btn_popup_icon:hover{ transform: translateY(-1px); }
#hcta .hcta__popup_chat_box{
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 20px);
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 2147483002;
}
#hcta.hcta--open .hcta__popup_chat_box{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#hcta .hcta__popup_heading{
  background: var(--hcta-accent);
  color: #fff;
  padding: 14px 14px 12px;
  border-top-left-radius: var(--hcta-radius);
  border-top-right-radius: var(--hcta-radius);
  position: relative;
}
#hcta .hcta__popup_title{
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
#hcta .hcta__popup_intro{
  font-size: 12px;
  color: rgba(255,255,255,.85);
  line-height: 1.25;
}
#hcta .hcta__close{
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  background: rgba(0,0,0,.14);
  color: #fff;
  cursor: pointer;
}
#hcta .hcta__popup_content{
  background: var(--hcta-panel-bg);
  color: var(--hcta-panel-text);
  border: 1px solid rgba(15,23,42,.08);
  border-top: 0;
  border-bottom-left-radius: var(--hcta-radius);
  border-bottom-right-radius: var(--hcta-radius);
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
  overflow: hidden;
}
#hcta .hcta__popup_notice{
  font-size: 11px;
  padding: 10px 14px;
  color: var(--hcta-muted);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
#hcta .hcta__popup_content_list{
  display: grid;
}
#hcta .hcta__item{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(15,23,42,.06);
  background: transparent;
}
#hcta .hcta__item:last-child{ border-bottom: 0; }
#hcta .hcta__item:hover{ background: rgba(15,23,42,.03); }
#hcta .hcta__avatar{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--hcta-action-ico);
  background: rgba(15,23,42,.06);
}
#hcta .hcta__avatar--wa{ background: rgba(37,211,102,.12); }
#hcta .hcta__avatar--call{ background: rgba(59,130,246,.12); }
#hcta .hcta__avatar--sms{ background: rgba(245,158,11,.14); }
#hcta .hcta__avatar--email{ background: rgba(168,85,247,.14); }

#hcta .hcta__txt{ line-height: 1.1; }
#hcta .hcta__name{ font-weight: 800; }
#hcta .hcta__duty{ font-size: 12px; color: var(--hcta-muted); margin-top: 2px; }

/* Optional bounce */
@keyframes hcta-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }
#hcta .hcta__btn_popup_icon{ animation: hcta-bounce 2.2s ease-in-out infinite; }

/* Ensure nothing blocks clicks */
#hcta, #hcta *{ box-sizing: border-box; }
