/* CSS Variables */
:root {
  --ztl-n63: #4f46e5;
  --xmll-wq: #ffffff;
  --j8nw9a-g2a: #f9fafb;
  --j3v9wb-b6o: #0f172a;
  --hzlc-n8: #6b7280;
  --uq2c1s-ts: #e5e7eb;
  --oig-u9w: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --a75hau-bps0: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --s9hw-kj1: 16px;
  --xyf-xzn: 56px;
  --pcpse-fka6: 12px;
  --vfy-ei: 999999;
}

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

/* Main Container */
.v228l2e {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--vfy-ei);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--j3v9wb-b6o);
}
.v228l2e.bd7c968nfw { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.q1nype { display: flex; flex-direction: column-reverse; gap: var(--pcpse-fka6); align-items: center; }
.zxx6m_3l {
  width: var(--xyf-xzn); height: var(--xyf-xzn); min-width: var(--xyf-xzn); min-height: var(--xyf-xzn);
  border-radius: 50%; border: none; background: var(--ztl-n63); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--oig-u9w);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.zxx6m_3l:hover { transform: scale(1.05); box-shadow: var(--a75hau-bps0); }
.zxx6m_3l:active { transform: scale(0.95); }
.zxx6m_3l:focus { outline: 2px solid var(--ztl-n63); outline-offset: 2px; }
.zxx6m_3l svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .zxx6m_3l.iiv5qd0t{ animation:none; }
  .zxx6m_3l,.gb29en3s7,.rjw93l{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.gb29en3s7{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--xmll-wq); border-radius: var(--s9hw-kj1); box-shadow: var(--a75hau-bps0);
  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;
}
.v228l2e.bd7c968nfw .gb29en3s7{ right:auto; left:24px; }
.gb29en3s7.lsec_5y{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.v5cn_xbg{
  padding:16px 20px; background:var(--xmll-wq); border-bottom:1px solid var(--uq2c1s-ts);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.axo0nz6xf0{ width:10px; height:10px; border-radius:50%; background:var(--ztl-n63); flex-shrink:0; }
.uu_2s6{ flex:1; min-width:0; }
.klt4_o5j{ font-size:16px; font-weight:600; color:var(--j3v9wb-b6o); margin:0 0 2px 0; }
.plae65{ font-size:13px; color:var(--hzlc-n8); margin:0; }
.a1zmrg{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--hzlc-n8);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.a1zmrg:hover{ background:var(--j8nw9a-g2a); color:var(--j3v9wb-b6o); }
.a1zmrg:focus{ outline:2px solid var(--ztl-n63); outline-offset:2px; }
.a1zmrg svg{ width:20px; height:20px; }

/* Body */
.wer_p38l{
  flex:1; overflow-y:auto; padding:16px; background:var(--j8nw9a-g2a);
  display:flex; flex-direction:column; gap:12px;
}
.wer_p38l::-webkit-scrollbar{ width:6px; }
.wer_p38l::-webkit-scrollbar-track{ background:transparent; }
.wer_p38l::-webkit-scrollbar-thumb{ background:var(--uq2c1s-ts); border-radius:3px; }
.wer_p38l::-webkit-scrollbar-thumb:hover{ background:var(--hzlc-n8); }

/* Messages */
.rjw93l{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.rjw93l.a3k10905{ flex-direction:row-reverse; }
.ap4rpcztaj{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ap4rpcztaj a{ color:inherit; }
.rjw93l.uyvmyrxya .ap4rpcztaj{ background:var(--xmll-wq); color:var(--j3v9wb-b6o); border-bottom-left-radius:4px; }
.rjw93l.a3k10905 .ap4rpcztaj{ background:var(--ztl-n63); color:#fff; border-bottom-right-radius:4px; }
.n_xeamh{ font-size:11px; color:var(--hzlc-n8); margin-top:4px; display:block; }

/* Typing Indicator */
.a3csoi1{
  display:flex; gap:8px; padding:10px 14px; background:var(--xmll-wq);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.bs8j8j{ width:8px; height:8px; border-radius:50%; background:var(--hzlc-n8); animation:typingDot 1.4s infinite; }
.bs8j8j:nth-child(2){ animation-delay:.2s; }
.bs8j8j: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) */
.bgznsity{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ctdit75d{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ztl-n63); 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(--oig-u9w);
}
.ctdit75d:is(:hover,:focus){ transform:translateY(-1px); }
a.ctdit75d{ text-decoration:none; display:inline-block; }
a.ctdit75d:link, a.ctdit75d:visited{ color:#fff; }
a.ctdit75d:hover, a.ctdit75d:focus{ color:#fff; }

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

/* Footer */
.a2i7h0pl{
  padding:16px; background:var(--xmll-wq); border-top:1px solid var(--uq2c1s-ts);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.xwzcagsnqw{
  flex:1; padding:10px 14px; border:1px solid var(--uq2c1s-ts); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--j3v9wb-b6o);
  background:var(--j8nw9a-g2a); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.xwzcagsnqw:focus{ border-color:var(--ztl-n63); }
.xwzcagsnqw::placeholder{ color:var(--hzlc-n8); }
.xwzcagsnqw.atyyjf560{ border-color:#c00; }
.zh74qkn{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ztl-n63); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.zh74qkn:disabled{ opacity:.5; cursor:not-allowed; }
.zh74qkn:not(:disabled):hover{ transform:scale(1.05); }
.zh74qkn:not(:disabled):active{ transform:scale(0.95); }
.zh74qkn:focus{ outline:2px solid var(--ztl-n63); outline-offset:2px; }
.zh74qkn svg{ width:20px; height:20px; }

/* Character Counter */
.ob9m1m3w4{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--hzlc-n8); }
.ob9m1m3w4.wzcu431es{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.h4idhp0um{
  align-self:flex-start;
  max-width:75%;
  background: var(--xmll-wq);
  color: var(--j3v9wb-b6o);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--oig-u9w);
}
.f3hm0cmf4{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.h9w2zg7o.sb7uzat{
  background: transparent; color: var(--j3v9wb-b6o); border-color: var(--uq2c1s-ts);
}
.h9w2zg7o.sb7uzat:hover{
  background: var(--ztl-n63); color:#fff; border-color: var(--ztl-n63);
}

/* Mobile */
@media (max-width: 768px){
  .v228l2e{ bottom:16px; right:16px; }
  .v228l2e.bd7c968nfw{ left:16px; }
  .zxx6m_3l{ --xyf-xzn:60px; }
  .gb29en3s7{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--s9hw-kj1) var(--s9hw-kj1) 0 0; transform: translateY(100%);
  }
  .gb29en3s7.lsec_5y{ transform: translateY(0); }
  .v5cn_xbg{ padding:20px; }
  .a2i7h0pl{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.v228l2e :focus-visible{ outline:2px solid var(--ztl-n63); outline-offset:2px; }

/* SR-only */
.hx4vi9m3l{
  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 */
.iuzkg5yk{ display:none !important; }
