/* CSS Variables */
:root {
  --gzth-wqgo: #4f46e5;
  --jc5-xmik: #ffffff;
  --e4u3-vf6: #f9fafb;
  --tk5-eq: #0f172a;
  --rvni20-sqy: #6b7280;
  --gsohjv-wh: #e5e7eb;
  --nhuma-bckq: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --b447l4-o83u: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ajp-uc: 16px;
  --tuprpa-gb: 56px;
  --lka-dl: 12px;
  --s8p-byg: 999999;
}

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

/* Main Container */
.wwzi1p-9kjn7hcut1e {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--s8p-byg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--tk5-eq);
}
.wwzi1p-9kjn7hcut1e.ai37rrdi817memsa { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.xs0n-hflyk4oxun { display: flex; flex-direction: column-reverse; gap: var(--lka-dl); align-items: center; }
.lcxgw7aadsx-0cssxl {
  width: var(--tuprpa-gb); height: var(--tuprpa-gb); min-width: var(--tuprpa-gb); min-height: var(--tuprpa-gb);
  border-radius: 50%; border: none; background: var(--gzth-wqgo); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nhuma-bckq);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.lcxgw7aadsx-0cssxl:hover { transform: scale(1.05); box-shadow: var(--b447l4-o83u); }
.lcxgw7aadsx-0cssxl:active { transform: scale(0.95); }
.lcxgw7aadsx-0cssxl:focus { outline: 2px solid var(--gzth-wqgo); outline-offset: 2px; }
.lcxgw7aadsx-0cssxl svg { width: 24px; height: 24px; fill: currentColor; }

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

/* Pulse Animation */
@keyframes pulse { 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.05); opacity:.9;} }
.lcxgw7aadsx-0cssxl.qwwo-hnwmc0-7li-gm{ animation:pulse 2s ease-in-out infinite; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .lcxgw7aadsx-0cssxl.qwwo-hnwmc0-7li-gm{ animation:none; }
  .lcxgw7aadsx-0cssxl,.mii6utlgi1js9y5ktj,.qgewt4s0955is3yc{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.mii6utlgi1js9y5ktj{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--jc5-xmik); border-radius: var(--ajp-uc); box-shadow: var(--b447l4-o83u);
  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;
}
.wwzi1p-9kjn7hcut1e.ai37rrdi817memsa .mii6utlgi1js9y5ktj{ right:auto; left:24px; }
.mii6utlgi1js9y5ktj.rdcppf2usovqylx{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.allk8i-px59kr6c{
  padding:16px 20px; background:var(--jc5-xmik); border-bottom:1px solid var(--gsohjv-wh);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.p-jltuy06c36nk0{ width:10px; height:10px; border-radius:50%; background:var(--gzth-wqgo); flex-shrink:0; }
.fzr69trgsnly4k{ flex:1; min-width:0; }
.pvi-ty6j4d3rxu6o3d{ font-size:16px; font-weight:600; color:var(--tk5-eq); margin:0 0 2px 0; }
.d1udfsg1n3lq6q{ font-size:13px; color:var(--rvni20-sqy); margin:0; }
.g5aifi7btvdya32{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--rvni20-sqy);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.g5aifi7btvdya32:hover{ background:var(--e4u3-vf6); color:var(--tk5-eq); }
.g5aifi7btvdya32:focus{ outline:2px solid var(--gzth-wqgo); outline-offset:2px; }
.g5aifi7btvdya32 svg{ width:20px; height:20px; }

/* Body */
.fhq3k6xhxuvm9gp4{
  flex:1; overflow-y:auto; padding:16px; background:var(--e4u3-vf6);
  display:flex; flex-direction:column; gap:12px;
}
.fhq3k6xhxuvm9gp4::-webkit-scrollbar{ width:6px; }
.fhq3k6xhxuvm9gp4::-webkit-scrollbar-track{ background:transparent; }
.fhq3k6xhxuvm9gp4::-webkit-scrollbar-thumb{ background:var(--gsohjv-wh); border-radius:3px; }
.fhq3k6xhxuvm9gp4::-webkit-scrollbar-thumb:hover{ background:var(--rvni20-sqy); }

/* Messages */
.qgewt4s0955is3yc{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.qgewt4s0955is3yc.eff04ewcguyecwn3z{ flex-direction:row-reverse; }
.qypg92tnm1iik4-8{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.qypg92tnm1iik4-8 a{ color:inherit; }
.qgewt4s0955is3yc.zdbkgw2w51nq7bp .qypg92tnm1iik4-8{ background:var(--jc5-xmik); color:var(--tk5-eq); border-bottom-left-radius:4px; }
.qgewt4s0955is3yc.eff04ewcguyecwn3z .qypg92tnm1iik4-8{ background:var(--gzth-wqgo); color:#fff; border-bottom-right-radius:4px; }
.uunvuom4j3f-tauf53{ font-size:11px; color:var(--rvni20-sqy); margin-top:4px; display:block; }

/* Typing Indicator */
.z82d9ua8r-n7zb7{
  display:flex; gap:8px; padding:10px 14px; background:var(--jc5-xmik);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ctvbncztgjaqtlf{ width:8px; height:8px; border-radius:50%; background:var(--rvni20-sqy); animation:typingDot 1.4s infinite; }
.ctvbncztgjaqtlf:nth-child(2){ animation-delay:.2s; }
.ctvbncztgjaqtlf: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) */
.x2-tfu44v7y9q-df8{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ox4n-k574t9ax2{
  border:0; border-radius:999px; padding:8px 12px; background:var(--gzth-wqgo); 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(--nhuma-bckq);
}
.ox4n-k574t9ax2:is(:hover,:focus){ transform:translateY(-1px); }
a.ox4n-k574t9ax2{ text-decoration:none; display:inline-block; }
a.ox4n-k574t9ax2:link, a.ox4n-k574t9ax2:visited{ color:#fff; }
a.ox4n-k574t9ax2:hover, a.ox4n-k574t9ax2:focus{ color:#fff; }

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

/* Footer */
.m3r96ricdcg3ea6nak{
  padding:16px; background:var(--jc5-xmik); border-top:1px solid var(--gsohjv-wh);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.xpzers6i3dyqkpn7{
  flex:1; padding:10px 14px; border:1px solid var(--gsohjv-wh); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--tk5-eq);
  background:var(--e4u3-vf6); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.xpzers6i3dyqkpn7:focus{ border-color:var(--gzth-wqgo); }
.xpzers6i3dyqkpn7::placeholder{ color:var(--rvni20-sqy); }
.xpzers6i3dyqkpn7.njcv9mtkuwoyfwjybp{ border-color:#c00; }
.f9l1wbjvd87pcp6{
  width:40px; height:40px; min-width:40px; border:none; background:var(--gzth-wqgo); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.f9l1wbjvd87pcp6:disabled{ opacity:.5; cursor:not-allowed; }
.f9l1wbjvd87pcp6:not(:disabled):hover{ transform:scale(1.05); }
.f9l1wbjvd87pcp6:not(:disabled):active{ transform:scale(0.95); }
.f9l1wbjvd87pcp6:focus{ outline:2px solid var(--gzth-wqgo); outline-offset:2px; }
.f9l1wbjvd87pcp6 svg{ width:20px; height:20px; }

/* Character Counter */
.fxv7f8qciyvsxwc2f{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--rvni20-sqy); }
.fxv7f8qciyvsxwc2f.qb4oekor5t7dqv5r{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ym4vdo7jl8zfpf{
  align-self:flex-start;
  max-width:75%;
  background: var(--jc5-xmik);
  color: var(--tk5-eq);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--nhuma-bckq);
}
.ya567sfi9ql4dxii2{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.i4wa4ghxvqhtkz.odihacyiz-tmb14m{
  background: transparent; color: var(--tk5-eq); border-color: var(--gsohjv-wh);
}
.i4wa4ghxvqhtkz.odihacyiz-tmb14m:hover{
  background: var(--gzth-wqgo); color:#fff; border-color: var(--gzth-wqgo);
}

/* Mobile */
@media (max-width: 768px){
  .wwzi1p-9kjn7hcut1e{ bottom:16px; right:16px; }
  .wwzi1p-9kjn7hcut1e.ai37rrdi817memsa{ left:16px; }
  .lcxgw7aadsx-0cssxl{ --tuprpa-gb:60px; }
  .mii6utlgi1js9y5ktj{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ajp-uc) var(--ajp-uc) 0 0; transform: translateY(100%);
  }
  .mii6utlgi1js9y5ktj.rdcppf2usovqylx{ transform: translateY(0); }
  .allk8i-px59kr6c{ padding:20px; }
  .m3r96ricdcg3ea6nak{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .lcxgw7aadsx-0cssxl, .mii6utlgi1js9y5ktj{ border:2px solid currentColor; } }

/* Focus Visible */
.wwzi1p-9kjn7hcut1e :focus-visible{ outline:2px solid var(--gzth-wqgo); outline-offset:2px; }

/* SR-only */
.v14mmr-mry04i-b{
  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 */
.jnsal8ryavz0js{ display:none !important; }
