/* CSS Variables */
:root {
  --jzh2-ghtc: #4f46e5;
  --h8op-maei: #ffffff;
  --o6l-eew4: #f9fafb;
  --i8ljv-jb: #0f172a;
  --cpij-jx: #6b7280;
  --iv9-h9: #e5e7eb;
  --zhs-eg9: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --abkij-tcej: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --uh3-drj: 16px;
  --rr32-ho: 56px;
  --odhs0-tv: 12px;
  --iy0-fisy: 999999;
}

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

/* Main Container */
.bcw2vli1ykex4s {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--iy0-fisy);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--i8ljv-jb);
}
.bcw2vli1ykex4s.stp2j5y47cxyu3fi { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ewh7124vbgeq5ey5 { display: flex; flex-direction: column-reverse; gap: var(--odhs0-tv); align-items: center; }
.eewj9ejz-flr7r {
  width: var(--rr32-ho); height: var(--rr32-ho); min-width: var(--rr32-ho); min-height: var(--rr32-ho);
  border-radius: 50%; border: none; background: var(--jzh2-ghtc); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--zhs-eg9);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.eewj9ejz-flr7r:hover { transform: scale(1.05); box-shadow: var(--abkij-tcej); }
.eewj9ejz-flr7r:active { transform: scale(0.95); }
.eewj9ejz-flr7r:focus { outline: 2px solid var(--jzh2-ghtc); outline-offset: 2px; }
.eewj9ejz-flr7r svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .eewj9ejz-flr7r.hi5ck6fy5awyl61pf{ animation:none; }
  .eewj9ejz-flr7r,.t42mo2qsv6hhlshsf,.yy-5f8kwc3f48h{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.t42mo2qsv6hhlshsf{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--h8op-maei); border-radius: var(--uh3-drj); box-shadow: var(--abkij-tcej);
  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;
}
.bcw2vli1ykex4s.stp2j5y47cxyu3fi .t42mo2qsv6hhlshsf{ right:auto; left:24px; }
.t42mo2qsv6hhlshsf.cgxj7c2muj685dzfxh{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.bv1yq8w0xxct5e{
  padding:16px 20px; background:var(--h8op-maei); border-bottom:1px solid var(--iv9-h9);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.bqidlkxt0sguchb-sy{ width:10px; height:10px; border-radius:50%; background:var(--jzh2-ghtc); flex-shrink:0; }
.u7hrujkeh7u34gkkte{ flex:1; min-width:0; }
.jhcgybs6oguhxw{ font-size:16px; font-weight:600; color:var(--i8ljv-jb); margin:0 0 2px 0; }
.k0jtznex-jfuyi9{ font-size:13px; color:var(--cpij-jx); margin:0; }
.tkt66nj4iydlsnr{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--cpij-jx);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.tkt66nj4iydlsnr:hover{ background:var(--o6l-eew4); color:var(--i8ljv-jb); }
.tkt66nj4iydlsnr:focus{ outline:2px solid var(--jzh2-ghtc); outline-offset:2px; }
.tkt66nj4iydlsnr svg{ width:20px; height:20px; }

/* Body */
.td0r-1vt10sodq{
  flex:1; overflow-y:auto; padding:16px; background:var(--o6l-eew4);
  display:flex; flex-direction:column; gap:12px;
}
.td0r-1vt10sodq::-webkit-scrollbar{ width:6px; }
.td0r-1vt10sodq::-webkit-scrollbar-track{ background:transparent; }
.td0r-1vt10sodq::-webkit-scrollbar-thumb{ background:var(--iv9-h9); border-radius:3px; }
.td0r-1vt10sodq::-webkit-scrollbar-thumb:hover{ background:var(--cpij-jx); }

/* Messages */
.yy-5f8kwc3f48h{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.yy-5f8kwc3f48h.bufhehets38ezcf{ flex-direction:row-reverse; }
.n6yti8gaxwedrug{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.n6yti8gaxwedrug a{ color:inherit; }
.yy-5f8kwc3f48h.n2r7vl8-5aelbxup .n6yti8gaxwedrug{ background:var(--h8op-maei); color:var(--i8ljv-jb); border-bottom-left-radius:4px; }
.yy-5f8kwc3f48h.bufhehets38ezcf .n6yti8gaxwedrug{ background:var(--jzh2-ghtc); color:#fff; border-bottom-right-radius:4px; }
.y-s70dlecwja65-2l{ font-size:11px; color:var(--cpij-jx); margin-top:4px; display:block; }

/* Typing Indicator */
.b4svziadjk3p86c7w8{
  display:flex; gap:8px; padding:10px 14px; background:var(--h8op-maei);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.unkogetozvbamqvts4{ width:8px; height:8px; border-radius:50%; background:var(--cpij-jx); animation:typingDot 1.4s infinite; }
.unkogetozvbamqvts4:nth-child(2){ animation-delay:.2s; }
.unkogetozvbamqvts4: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) */
.ya38ccoeo7gzrq09c{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.d-rif8akrzgwb8nq{
  border:0; border-radius:999px; padding:8px 12px; background:var(--jzh2-ghtc); 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(--zhs-eg9);
}
.d-rif8akrzgwb8nq:is(:hover,:focus){ transform:translateY(-1px); }
a.d-rif8akrzgwb8nq{ text-decoration:none; display:inline-block; }
a.d-rif8akrzgwb8nq:link, a.d-rif8akrzgwb8nq:visited{ color:#fff; }
a.d-rif8akrzgwb8nq:hover, a.d-rif8akrzgwb8nq:focus{ color:#fff; }

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

/* Footer */
.jyug747c5ccasm{
  padding:16px; background:var(--h8op-maei); border-top:1px solid var(--iv9-h9);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.utbuotjvw1my258s{
  flex:1; padding:10px 14px; border:1px solid var(--iv9-h9); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--i8ljv-jb);
  background:var(--o6l-eew4); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.utbuotjvw1my258s:focus{ border-color:var(--jzh2-ghtc); }
.utbuotjvw1my258s::placeholder{ color:var(--cpij-jx); }
.utbuotjvw1my258s.xq2xc340ee0pjo0a{ border-color:#c00; }
.fw6czd1-jx392c{
  width:40px; height:40px; min-width:40px; border:none; background:var(--jzh2-ghtc); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.fw6czd1-jx392c:disabled{ opacity:.5; cursor:not-allowed; }
.fw6czd1-jx392c:not(:disabled):hover{ transform:scale(1.05); }
.fw6czd1-jx392c:not(:disabled):active{ transform:scale(0.95); }
.fw6czd1-jx392c:focus{ outline:2px solid var(--jzh2-ghtc); outline-offset:2px; }
.fw6czd1-jx392c svg{ width:20px; height:20px; }

/* Character Counter */
.mtxcb-k9uyp229l1q8{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--cpij-jx); }
.mtxcb-k9uyp229l1q8.cielns4x49ivlk8{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.y2lq-xx78vv27zn{
  align-self:flex-start;
  max-width:75%;
  background: var(--h8op-maei);
  color: var(--i8ljv-jb);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--zhs-eg9);
}
.w4q0os44jk0ibkgl{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.tvdqquxr0ircoh0.qchhf1v8h1ikqwl{
  background: transparent; color: var(--i8ljv-jb); border-color: var(--iv9-h9);
}
.tvdqquxr0ircoh0.qchhf1v8h1ikqwl:hover{
  background: var(--jzh2-ghtc); color:#fff; border-color: var(--jzh2-ghtc);
}

/* Mobile */
@media (max-width: 768px){
  .bcw2vli1ykex4s{ bottom:16px; right:16px; }
  .bcw2vli1ykex4s.stp2j5y47cxyu3fi{ left:16px; }
  .eewj9ejz-flr7r{ --rr32-ho:60px; }
  .t42mo2qsv6hhlshsf{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--uh3-drj) var(--uh3-drj) 0 0; transform: translateY(100%);
  }
  .t42mo2qsv6hhlshsf.cgxj7c2muj685dzfxh{ transform: translateY(0); }
  .bv1yq8w0xxct5e{ padding:20px; }
  .jyug747c5ccasm{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.bcw2vli1ykex4s :focus-visible{ outline:2px solid var(--jzh2-ghtc); outline-offset:2px; }

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