/* CSS Variables */
:root {
  --vxq2-a2s0: #4f46e5;
  --ad1xv-l3j2: #ffffff;
  --ts5-cn: #f9fafb;
  --mfteoy-kx2: #0f172a;
  --tvj5-wvn: #6b7280;
  --pdphj-y55m: #e5e7eb;
  --q0qfdk-ds: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --gwh-xqnj: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --qs3-ncvw: 16px;
  --q8id-g1d0: 56px;
  --ptyv-apb: 12px;
  --d9b-uxxh: 999999;
}

/* Base Reset */
.jac-ixhvbqrbs,
.jac-ixhvbqrbs * { box-sizing: border-box; margin: 0; padding: 0; }

/* Main Container */
.jac-ixhvbqrbs {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--d9b-uxxh);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--mfteoy-kx2);
}
.jac-ixhvbqrbs.jac-meiq69cw { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.jac-wpc54zf98z8b { display: flex; flex-direction: column-reverse; gap: var(--ptyv-apb); align-items: center; }
.jac-psy9gwi69 {
  width: var(--q8id-g1d0); height: var(--q8id-g1d0); min-width: var(--q8id-g1d0); min-height: var(--q8id-g1d0);
  border-radius: 50%; border: none; background: var(--vxq2-a2s0); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--q0qfdk-ds);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.jac-psy9gwi69:hover { transform: scale(1.05); box-shadow: var(--gwh-xqnj); }
.jac-psy9gwi69:active { transform: scale(0.95); }
.jac-psy9gwi69:focus { outline: 2px solid var(--vxq2-a2s0); outline-offset: 2px; }
.jac-psy9gwi69 svg { width: 24px; height: 24px; fill: currentColor; }

/* Messenger Buttons - Specific Colors */
.jac-psy9gwi69[data-u5d2j="telegram"]{ background:#0088cc; }
.jac-psy9gwi69[data-u5d2j="whatsapp"]{ background:#25d366; }
.jac-psy9gwi69[data-u5d2j="viber"]{ background:#7360f2; }
.jac-psy9gwi69[data-u5d2j="messenger"]{ background:#0084ff; }

/* Pulse Animation */
@keyframes pulse { 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.05); opacity:.9;} }
.jac-psy9gwi69.jac-pz7ljuvdbzy{ animation:pulse 2s ease-in-out infinite; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jac-psy9gwi69.jac-pz7ljuvdbzy{ animation:none; }
  .jac-psy9gwi69,.jac-x5cgxvwa98jz,.jac-fu13swi7rjbc{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.jac-x5cgxvwa98jz{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ad1xv-l3j2); border-radius: var(--qs3-ncvw); box-shadow: var(--gwh-xqnj);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.95); transition: opacity .2s ease, transform .2s ease;
  visibility: hidden; pointer-events: none;
}
.jac-ixhvbqrbs.jac-meiq69cw .jac-x5cgxvwa98jz{ right:auto; left:24px; }
.jac-x5cgxvwa98jz.jac-zw042msuhh{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.jac-y1dletwd88nr{
  padding:16px 20px; background:var(--ad1xv-l3j2); border-bottom:1px solid var(--pdphj-y55m);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.jac-qjc0rgwx1p{ width:10px; height:10px; border-radius:50%; background:var(--vxq2-a2s0); flex-shrink:0; }
.jac-l6crwe5n{ flex:1; min-width:0; }
.jac-cfhq6sj51{ font-size:16px; font-weight:600; color:var(--mfteoy-kx2); margin:0 0 2px 0; }
.jac-aex4w62qp{ font-size:13px; color:var(--tvj5-wvn); margin:0; }
.jac-ur1ccsr7f0i{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--tvj5-wvn);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jac-ur1ccsr7f0i:hover{ background:var(--ts5-cn); color:var(--mfteoy-kx2); }
.jac-ur1ccsr7f0i:focus{ outline:2px solid var(--vxq2-a2s0); outline-offset:2px; }
.jac-ur1ccsr7f0i svg{ width:20px; height:20px; }

/* Body */
.jac-wenqu4d5{
  flex:1; overflow-y:auto; padding:16px; background:var(--ts5-cn);
  display:flex; flex-direction:column; gap:12px;
}
.jac-wenqu4d5::-webkit-scrollbar{ width:6px; }
.jac-wenqu4d5::-webkit-scrollbar-track{ background:transparent; }
.jac-wenqu4d5::-webkit-scrollbar-thumb{ background:var(--pdphj-y55m); border-radius:3px; }
.jac-wenqu4d5::-webkit-scrollbar-thumb:hover{ background:var(--tvj5-wvn); }

/* Messages */
.jac-fu13swi7rjbc{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.jac-fu13swi7rjbc.jac-xooshkw7{ flex-direction:row-reverse; }
.jac-hzgw8otqj{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.jac-hzgw8otqj a{ color:inherit; }
.jac-fu13swi7rjbc.jac-ktuy5miyft .jac-hzgw8otqj{ background:var(--ad1xv-l3j2); color:var(--mfteoy-kx2); border-bottom-left-radius:4px; }
.jac-fu13swi7rjbc.jac-xooshkw7 .jac-hzgw8otqj{ background:var(--vxq2-a2s0); color:#fff; border-bottom-right-radius:4px; }
.jac-rmqergvmxhyi{ font-size:11px; color:var(--tvj5-wvn); margin-top:4px; display:block; }

/* Typing Indicator */
.jac-giq4yzqnw1n{
  display:flex; gap:8px; padding:10px 14px; background:var(--ad1xv-l3j2);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.jac-qotngpn2{ width:8px; height:8px; border-radius:50%; background:var(--tvj5-wvn); animation:typingDot 1.4s infinite; }
.jac-qotngpn2:nth-child(2){ animation-delay:.2s; }
.jac-qotngpn2:nth-child(3){ animation-delay:.4s; }
@keyframes typingDot{ 0%,60%,100%{ transform:translateY(0); opacity:.5;} 30%{ transform:translateY(-8px); opacity:1;} }

/* Quick Replies (chips) */
.jac-p97l7j2pc{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.jac-m6k1zep9ym{
  border:0; border-radius:999px; padding:8px 12px; background:var(--vxq2-a2s0); color:#fff; cursor:pointer;
  font:inherit; line-height:1; transition:transform .08s ease, background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: var(--q0qfdk-ds);
}
.jac-m6k1zep9ym:is(:hover,:focus){ transform:translateY(-1px); }
a.jac-m6k1zep9ym{ text-decoration:none; display:inline-block; }
a.jac-m6k1zep9ym:link, a.jac-m6k1zep9ym:visited{ color:#fff; }
a.jac-m6k1zep9ym:hover, a.jac-m6k1zep9ym:focus{ color:#fff; }

/* Error Banner */
.jac-lfn0mixewet1{
  padding:12px 16px; background:#fee; color:#c00; border-radius:8px; font-size:13px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.jac-ivemia5t{
  padding:6px 12px; background:#c00; color:#fff; border:none; border-radius:6px; font-size:12px; cursor:pointer; white-space:nowrap;
}

/* Footer */
.jac-ph2ekloo59{
  padding:16px; background:var(--ad1xv-l3j2); border-top:1px solid var(--pdphj-y55m);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.jac-vlb199si{
  flex:1; padding:10px 14px; border:1px solid var(--pdphj-y55m); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--mfteoy-kx2);
  background:var(--ts5-cn); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.jac-vlb199si:focus{ border-color:var(--vxq2-a2s0); }
.jac-vlb199si::placeholder{ color:var(--tvj5-wvn); }
.jac-vlb199si.jac-c771z5xk{ border-color:#c00; }
.jac-k4u6kp41{
  width:40px; height:40px; min-width:40px; border:none; background:var(--vxq2-a2s0); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.jac-k4u6kp41:disabled{ opacity:.5; cursor:not-allowed; }
.jac-k4u6kp41:not(:disabled):hover{ transform:scale(1.05); }
.jac-k4u6kp41:not(:disabled):active{ transform:scale(0.95); }
.jac-k4u6kp41:focus{ outline:2px solid var(--vxq2-a2s0); outline-offset:2px; }
.jac-k4u6kp41 svg{ width:20px; height:20px; }

/* Character Counter */
.jac-fy78zq1i9uv{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--tvj5-wvn); }
.jac-fy78zq1i9uv.jac-lg259n41t6{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.jac-mcazd8ztwb{
  align-self:flex-start;
  max-width:75%;
  background: var(--ad1xv-l3j2);
  color: var(--mfteoy-kx2);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--q0qfdk-ds);
}
.jac-qjplt7byc{ display:flex; flex-wrap:wrap; gap:8px; }

/* Solid pill buttons */
.jac-ikxdl233s9{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 14px; border-radius:999px;
  background: var(--vxq2-a2s0); color:#fff; border:1px solid transparent;
  font-size:13px; line-height:1; text-decoration:none;
  box-shadow: var(--q0qfdk-ds);
  transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.jac-ikxdl233s9:link, .jac-ikxdl233s9:visited{ color:#fff; }
.jac-ikxdl233s9:hover{ transform:translateY(-1px); box-shadow: var(--gwh-xqnj); }
.jac-ikxdl233s9:active{ transform:translateY(0); }
.jac-ikxdl233s9:focus-visible{ outline:2px solid var(--vxq2-a2s0); outline-offset:2px; }

/* Optional outline variant */
.jac-ikxdl233s9.jac-f4c60v5x{
  background: transparent; color: var(--mfteoy-kx2); border-color: var(--pdphj-y55m);
}
.jac-ikxdl233s9.jac-f4c60v5x:hover{
  background: var(--vxq2-a2s0); color:#fff; border-color: var(--vxq2-a2s0);
}

/* Mobile */
@media (max-width: 768px){
  .jac-ixhvbqrbs{ bottom:16px; right:16px; }
  .jac-ixhvbqrbs.jac-meiq69cw{ left:16px; }
  .jac-psy9gwi69{ --q8id-g1d0:60px; }
  .jac-x5cgxvwa98jz{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--qs3-ncvw) var(--qs3-ncvw) 0 0; transform: translateY(100%);
  }
  .jac-x5cgxvwa98jz.jac-zw042msuhh{ transform: translateY(0); }
  .jac-y1dletwd88nr{ padding:20px; }
  .jac-ph2ekloo59{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .jac-psy9gwi69, .jac-x5cgxvwa98jz{ border:2px solid currentColor; } }

/* Focus Visible */
.jac-ixhvbqrbs :focus-visible{ outline:2px solid var(--vxq2-a2s0); outline-offset:2px; }

/* SR-only */
.jac-jten5wnm4g{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0;
}

/* Hidden */
.jac-kmipq0d5t{ display:none !important; }
