/* CSS Variables */
:root {
  --qjk-qfgu: #4f46e5;
  --lncg-lczi: #ffffff;
  --a7rv7s-f0: #f9fafb;
  --ei5-rs: #0f172a;
  --vb40zp-kw: #6b7280;
  --n9col2-pf5: #e5e7eb;
  --vt98-fdgk: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wrv9mk-xr: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gug-ly: 16px;
  --q6hkg-k9: 56px;
  --ajysw-v94g: 12px;
  --s2g03-a2a: 999999;
}

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

/* Main Container */
.jwmfda72 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--s2g03-a2a);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ei5-rs);
}
.jwmfda72.mtip2g { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.t2p1alwp7 { display: flex; flex-direction: column-reverse; gap: var(--ajysw-v94g); align-items: center; }
.zukg2551c {
  width: var(--q6hkg-k9); height: var(--q6hkg-k9); min-width: var(--q6hkg-k9); min-height: var(--q6hkg-k9);
  border-radius: 50%; border: none; background: var(--qjk-qfgu); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--vt98-fdgk);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.zukg2551c:hover { transform: scale(1.05); box-shadow: var(--wrv9mk-xr); }
.zukg2551c:active { transform: scale(0.95); }
.zukg2551c:focus { outline: 2px solid var(--qjk-qfgu); outline-offset: 2px; }
.zukg2551c svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .zukg2551c.sreq6w1{ animation:none; }
  .zukg2551c,.js2296fhiq,.xn8hq1ne7x{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.js2296fhiq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--lncg-lczi); border-radius: var(--gug-ly); box-shadow: var(--wrv9mk-xr);
  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;
}
.jwmfda72.mtip2g .js2296fhiq{ right:auto; left:24px; }
.js2296fhiq.gzxje63a{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.deu56rmgfb{
  padding:16px 20px; background:var(--lncg-lczi); border-bottom:1px solid var(--n9col2-pf5);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.tib7y_sl5{ width:10px; height:10px; border-radius:50%; background:var(--qjk-qfgu); flex-shrink:0; }
.x4ab7_56mr{ flex:1; min-width:0; }
.m513q8rn{ font-size:16px; font-weight:600; color:var(--ei5-rs); margin:0 0 2px 0; }
.vbzxcvse9l{ font-size:13px; color:var(--vb40zp-kw); margin:0; }
.bkq074xe{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--vb40zp-kw);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.bkq074xe:hover{ background:var(--a7rv7s-f0); color:var(--ei5-rs); }
.bkq074xe:focus{ outline:2px solid var(--qjk-qfgu); outline-offset:2px; }
.bkq074xe svg{ width:20px; height:20px; }

/* Body */
.dpffx98{
  flex:1; overflow-y:auto; padding:16px; background:var(--a7rv7s-f0);
  display:flex; flex-direction:column; gap:12px;
}
.dpffx98::-webkit-scrollbar{ width:6px; }
.dpffx98::-webkit-scrollbar-track{ background:transparent; }
.dpffx98::-webkit-scrollbar-thumb{ background:var(--n9col2-pf5); border-radius:3px; }
.dpffx98::-webkit-scrollbar-thumb:hover{ background:var(--vb40zp-kw); }

/* Messages */
.xn8hq1ne7x{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.xn8hq1ne7x.y58wme{ flex-direction:row-reverse; }
.htuami{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.htuami a{ color:inherit; }
.xn8hq1ne7x.aepsar .htuami{ background:var(--lncg-lczi); color:var(--ei5-rs); border-bottom-left-radius:4px; }
.xn8hq1ne7x.y58wme .htuami{ background:var(--qjk-qfgu); color:#fff; border-bottom-right-radius:4px; }
.mrjeo_in3{ font-size:11px; color:var(--vb40zp-kw); margin-top:4px; display:block; }

/* Typing Indicator */
.vmcxz41me0{
  display:flex; gap:8px; padding:10px 14px; background:var(--lncg-lczi);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ja3b69{ width:8px; height:8px; border-radius:50%; background:var(--vb40zp-kw); animation:typingDot 1.4s infinite; }
.ja3b69:nth-child(2){ animation-delay:.2s; }
.ja3b69: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) */
.y0o1vz{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.l4hhu6ojos{
  border:0; border-radius:999px; padding:8px 12px; background:var(--qjk-qfgu); 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(--vt98-fdgk);
}
.l4hhu6ojos:is(:hover,:focus){ transform:translateY(-1px); }
a.l4hhu6ojos{ text-decoration:none; display:inline-block; }
a.l4hhu6ojos:link, a.l4hhu6ojos:visited{ color:#fff; }
a.l4hhu6ojos:hover, a.l4hhu6ojos:focus{ color:#fff; }

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

/* Footer */
.w3kcw3{
  padding:16px; background:var(--lncg-lczi); border-top:1px solid var(--n9col2-pf5);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.t3jxbm{
  flex:1; padding:10px 14px; border:1px solid var(--n9col2-pf5); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ei5-rs);
  background:var(--a7rv7s-f0); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.t3jxbm:focus{ border-color:var(--qjk-qfgu); }
.t3jxbm::placeholder{ color:var(--vb40zp-kw); }
.t3jxbm.vn407lu0{ border-color:#c00; }
.xe68alpwdf{
  width:40px; height:40px; min-width:40px; border:none; background:var(--qjk-qfgu); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.xe68alpwdf:disabled{ opacity:.5; cursor:not-allowed; }
.xe68alpwdf:not(:disabled):hover{ transform:scale(1.05); }
.xe68alpwdf:not(:disabled):active{ transform:scale(0.95); }
.xe68alpwdf:focus{ outline:2px solid var(--qjk-qfgu); outline-offset:2px; }
.xe68alpwdf svg{ width:20px; height:20px; }

/* Character Counter */
.n4dy3g38{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--vb40zp-kw); }
.n4dy3g38.i0yxraa{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.kzr2d_64{
  align-self:flex-start;
  max-width:75%;
  background: var(--lncg-lczi);
  color: var(--ei5-rs);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--vt98-fdgk);
}
.w3qir3{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.pclfah.m60j3a{
  background: transparent; color: var(--ei5-rs); border-color: var(--n9col2-pf5);
}
.pclfah.m60j3a:hover{
  background: var(--qjk-qfgu); color:#fff; border-color: var(--qjk-qfgu);
}

/* Mobile */
@media (max-width: 768px){
  .jwmfda72{ bottom:16px; right:16px; }
  .jwmfda72.mtip2g{ left:16px; }
  .zukg2551c{ --q6hkg-k9:60px; }
  .js2296fhiq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--gug-ly) var(--gug-ly) 0 0; transform: translateY(100%);
  }
  .js2296fhiq.gzxje63a{ transform: translateY(0); }
  .deu56rmgfb{ padding:20px; }
  .w3kcw3{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.jwmfda72 :focus-visible{ outline:2px solid var(--qjk-qfgu); outline-offset:2px; }

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