#apcx-root{font-family:Tahoma,Arial,sans-serif;position:relative;z-index:999999}#apcx-launch{position:fixed;left:24px;right:auto;bottom:24px;width:62px;height:62px;border:0;border-radius:50%;background:linear-gradient(145deg,#13c98a,#00a76a);color:white;box-shadow:0 8px 26px #00a96b55;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}#apcx-launch>img{display:block;width:42px;height:42px;object-fit:contain}#apcx-badge{position:absolute;top:-3px;left:-3px;background:#e11d48;border-radius:20px;padding:3px 7px;font-size:12px}#apcx-panel{position:fixed;left:24px;right:auto;bottom:98px;width:370px;max-width:calc(100vw - 24px);height:520px;max-height:calc(100vh - 120px);display:flex;flex-direction:column;background:rgba(255,255,255,.97);border:1px solid #e5eaf0;border-radius:23px;overflow:hidden;box-shadow:0 18px 60px #172e4a30;backdrop-filter:blur(16px)}#apcx-panel[hidden],#apcx-badge[hidden]{display:none!important}#apcx-panel header.apcx-brand-header{height:100px;flex-shrink:0;background:linear-gradient(120deg,#003b9e,#0758df 58%,#0878e8);display:flex;align-items:center;justify-content:center;position:relative;padding:8px 48px 8px 18px;border-bottom:1px solid #dce8ff}#apcx-close{position:absolute;right:12px;top:12px;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.96);color:#17345e;font-size:25px;line-height:1;cursor:pointer}.apcx-branding{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%}.apcx-branding img{display:block;max-width:230px;width:100%;max-height:56px;object-fit:contain}.apcx-branding small{font-size:12px;color:#fff!important;line-height:1.6}#apcx-intro{text-align:center;padding:18px;overflow:auto}#apcx-intro h3{font-size:16px;color:#24374c}#apcx-intro p{font-size:12px;color:#778392;line-height:1.9;margin-bottom:18px}#apcx-start{display:flex;flex-direction:column;gap:10px}#apcx-start input,#apcx-send input{box-sizing:border-box;width:100%;min-width:0;border:1px solid #e0e5ea;border-radius:12px;padding:14px;font:13px Tahoma;background:white}#apcx-start button{border:0;border-radius:12px;padding:14px;background:#08b97a;color:white;font:14px Tahoma;cursor:pointer}#apcx-error{color:#d33;font-size:12px}#apcx-convo{flex:1;min-height:0;display:flex;flex-direction:column}#apcx-messages{padding:14px;flex:1;overflow:auto;display:flex;flex-direction:column;gap:9px}.apcx-msg{max-width:84%;padding:10px 12px;border-radius:13px;font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.apcx-msg.user{align-self:flex-start;background:#e8f0ff;color:#203b68}.apcx-msg.admin{align-self:flex-end;background:#d9f8eb;color:#174c3a}.apcx-msg.system{align-self:center;background:#f1f3f6;color:#7b8592;font-size:11px}.apcx-msg time{display:block;font-size:10px;color:#7c8795;margin-top:3px}#apcx-send{display:flex;gap:8px;padding:11px;border-top:1px solid #edf0f3}#apcx-send input{flex:1}#apcx-send button{width:48px;min-width:48px;border:0;border-radius:12px;background:transparent;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}#apcx-send button img{display:block;width:44px;height:44px;object-fit:contain}@media(max-width:480px){#apcx-launch{left:16px;right:auto;bottom:82px;width:58px;height:58px}#apcx-panel{left:10px;right:auto;bottom:148px;width:calc(100vw - 20px);height:min(590px,calc(100vh - 100px))}}
/* v1.0.3: organic chat icon and greeting bubble */
#apcx-launch {
  left: 24px !important; right: auto !important; bottom: 24px !important;
  width: 76px !important; height: 76px !important;
  padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
  overflow: visible !important;
}
#apcx-launch>img {
  width: 72px !important; height: 72px !important;
  max-width: none !important; object-fit: contain !important;
  border-radius: 0 !important; display: block !important;
}
#apcx-panel { left: 24px !important; right: auto !important; }
#apcx-launch #apcx-badge { top: -3px; left: -3px; }
#apcx-root #apcx-greeting {
  position: fixed; left: 24px; bottom: 108px;
  z-index: 1000000; width: 280px; max-width: calc(100vw - 40px);
  box-sizing: border-box; padding: 13px 16px;
  border-radius: 16px; background: #fff; color: #333;
  box-shadow: 0 5px 24px rgba(24,44,74,.18);
  font: 13px/1.9 Tahoma,Arial,sans-serif; text-align: right;
  cursor: pointer;
}
#apcx-root #apcx-greeting:after {
  content: ""; position: absolute; bottom: -9px; left: 26px;
  border-width: 10px 10px 0; border-style: solid;
  border-color: #fff transparent transparent;
}
#apcx-root #apcx-greeting strong { display:block; font-weight:400; }
#apcx-root #apcx-greeting span { display:block; color:#68717d; }
@media(max-width:480px) {
  #apcx-launch { left: 12px !important; right:auto !important; bottom: 82px !important; width:68px !important; height:68px !important; }
  #apcx-launch>img { width:66px !important; height:66px !important; }
  #apcx-panel { left:10px !important; right:auto !important; bottom:148px !important; }
  #apcx-root #apcx-greeting { left:12px; bottom:160px; width:260px; }
}

/* v1.0.4: hide greeting while chat is open; white circular close control */
#apcx-root.apcx-is-open #apcx-greeting { display:none !important; }
#apcx-close {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #25364d !important;
  border: 1px solid rgba(10,35,70,.08) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.14) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 23px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  padding: 0 !important;
}

/* v1.0.5 robust greeting hide rule */
#apcx-greeting[hidden], #apcx-root.apcx-is-open #apcx-greeting { display:none !important; visibility:hidden !important; opacity:0 !important; pointer-events:none !important; }


/* v1.0.6: hide the greeting bubble on mobile only */
@media (max-width: 767px) {
  #apcx-root #apcx-greeting {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
