/* CSS Variables */
:root {
  --u1s-hbh: #4f46e5;
  --wsvwgr-vqy: #ffffff;
  --eid8qb-lpq3: #f9fafb;
  --abl1l-qpa: #0f172a;
  --l0lox9-krpm: #6b7280;
  --b0cnpi-jpqm: #e5e7eb;
  --wvy-t8y: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --w5hc-hpu: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --cdjp-hn: 16px;
  --lu71y-oyzy: 56px;
  --bfit-ts: 12px;
  --b3e-mhh: 999999;
}

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

/* Main Container */
.aghd3m {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--b3e-mhh);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--abl1l-qpa);
}
.aghd3m.b5sgyn { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.fjiq5 { display: flex; flex-direction: column-reverse; gap: var(--bfit-ts); align-items: center; }
.i7ae {
  width: var(--lu71y-oyzy); height: var(--lu71y-oyzy); min-width: var(--lu71y-oyzy); min-height: var(--lu71y-oyzy);
  border-radius: 50%; border: none; background: var(--u1s-hbh); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--wvy-t8y);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.i7ae:hover { transform: scale(1.05); box-shadow: var(--w5hc-hpu); }
.i7ae:active { transform: scale(0.95); }
.i7ae:focus { outline: 2px solid var(--u1s-hbh); outline-offset: 2px; }
.i7ae svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .i7ae.nd1l{ animation:none; }
  .i7ae,.y92ui,.na28uw{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.y92ui{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--wsvwgr-vqy); border-radius: var(--cdjp-hn); box-shadow: var(--w5hc-hpu);
  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;
}
.aghd3m.b5sgyn .y92ui{ right:auto; left:24px; }
.y92ui.ptmjcq{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.hftwy{
  padding:16px 20px; background:var(--wsvwgr-vqy); border-bottom:1px solid var(--b0cnpi-jpqm);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.mx9x{ width:10px; height:10px; border-radius:50%; background:var(--u1s-hbh); flex-shrink:0; }
.fswy{ flex:1; min-width:0; }
.ll0gm{ font-size:16px; font-weight:600; color:var(--abl1l-qpa); margin:0 0 2px 0; }
.q4zz{ font-size:13px; color:var(--l0lox9-krpm); margin:0; }
.pej9{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--l0lox9-krpm);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.pej9:hover{ background:var(--eid8qb-lpq3); color:var(--abl1l-qpa); }
.pej9:focus{ outline:2px solid var(--u1s-hbh); outline-offset:2px; }
.pej9 svg{ width:20px; height:20px; }

/* Body */
.wjbnf8{
  flex:1; overflow-y:auto; padding:16px; background:var(--eid8qb-lpq3);
  display:flex; flex-direction:column; gap:12px;
}
.wjbnf8::-webkit-scrollbar{ width:6px; }
.wjbnf8::-webkit-scrollbar-track{ background:transparent; }
.wjbnf8::-webkit-scrollbar-thumb{ background:var(--b0cnpi-jpqm); border-radius:3px; }
.wjbnf8::-webkit-scrollbar-thumb:hover{ background:var(--l0lox9-krpm); }

/* Messages */
.na28uw{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.na28uw.nlsftw{ flex-direction:row-reverse; }
.o13b{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.o13b a{ color:inherit; }
.na28uw.pnei .o13b{ background:var(--wsvwgr-vqy); color:var(--abl1l-qpa); border-bottom-left-radius:4px; }
.na28uw.nlsftw .o13b{ background:var(--u1s-hbh); color:#fff; border-bottom-right-radius:4px; }
.gcicra{ font-size:11px; color:var(--l0lox9-krpm); margin-top:4px; display:block; }

/* Typing Indicator */
.om2b{
  display:flex; gap:8px; padding:10px 14px; background:var(--wsvwgr-vqy);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.x2ezm{ width:8px; height:8px; border-radius:50%; background:var(--l0lox9-krpm); animation:typingDot 1.4s infinite; }
.x2ezm:nth-child(2){ animation-delay:.2s; }
.x2ezm: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) */
.tcod0h{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.zdta8{
  border:0; border-radius:999px; padding:8px 12px; background:var(--u1s-hbh); 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(--wvy-t8y);
}
.zdta8:is(:hover,:focus){ transform:translateY(-1px); }
a.zdta8{ text-decoration:none; display:inline-block; }
a.zdta8:link, a.zdta8:visited{ color:#fff; }
a.zdta8:hover, a.zdta8:focus{ color:#fff; }

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

/* Footer */
.b102{
  padding:16px; background:var(--wsvwgr-vqy); border-top:1px solid var(--b0cnpi-jpqm);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.t1jnqv{
  flex:1; padding:10px 14px; border:1px solid var(--b0cnpi-jpqm); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--abl1l-qpa);
  background:var(--eid8qb-lpq3); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.t1jnqv:focus{ border-color:var(--u1s-hbh); }
.t1jnqv::placeholder{ color:var(--l0lox9-krpm); }
.t1jnqv.niid{ border-color:#c00; }
.sgkpg{
  width:40px; height:40px; min-width:40px; border:none; background:var(--u1s-hbh); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.sgkpg:disabled{ opacity:.5; cursor:not-allowed; }
.sgkpg:not(:disabled):hover{ transform:scale(1.05); }
.sgkpg:not(:disabled):active{ transform:scale(0.95); }
.sgkpg:focus{ outline:2px solid var(--u1s-hbh); outline-offset:2px; }
.sgkpg svg{ width:20px; height:20px; }

/* Character Counter */
.m2f5r9{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--l0lox9-krpm); }
.m2f5r9.j27l{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.zql5wm{
  align-self:flex-start;
  max-width:75%;
  background: var(--wsvwgr-vqy);
  color: var(--abl1l-qpa);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--wvy-t8y);
}
.pt86tq{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.j0rq.gv94{
  background: transparent; color: var(--abl1l-qpa); border-color: var(--b0cnpi-jpqm);
}
.j0rq.gv94:hover{
  background: var(--u1s-hbh); color:#fff; border-color: var(--u1s-hbh);
}

/* Mobile */
@media (max-width: 768px){
  .aghd3m{ bottom:16px; right:16px; }
  .aghd3m.b5sgyn{ left:16px; }
  .i7ae{ --lu71y-oyzy:60px; }
  .y92ui{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--cdjp-hn) var(--cdjp-hn) 0 0; transform: translateY(100%);
  }
  .y92ui.ptmjcq{ transform: translateY(0); }
  .hftwy{ padding:20px; }
  .b102{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.aghd3m :focus-visible{ outline:2px solid var(--u1s-hbh); outline-offset:2px; }

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