/* CSS Variables */
:root {
  --yy1a-jm: #4f46e5;
  --ma460-z3r0: #ffffff;
  --wae7au-zp: #f9fafb;
  --xokd-fs4: #0f172a;
  --v6z92-aauc: #6b7280;
  --it2h5z-ia: #e5e7eb;
  --mg1wb-wj: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --bsbeo-xam: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --wgrak-h22k: 16px;
  --s2k-hzt: 56px;
  --dp0t01-s20a: 12px;
  --aozl-i2: 999999;
}

/* Base Reset */
.bac3beuf-ms2a-8t,
.bac3beuf-ms2a-8t * { box-sizing: border-box; margin: 0; padding: 0; }

/* Main Container */
.bac3beuf-ms2a-8t {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--aozl-i2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--xokd-fs4);
}
.bac3beuf-ms2a-8t.cxay55n9216i46yz { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.t4osrn-bvs49p2d1 { display: flex; flex-direction: column-reverse; gap: var(--dp0t01-s20a); align-items: center; }
.pzoxalaa8tj3akr {
  width: var(--s2k-hzt); height: var(--s2k-hzt); min-width: var(--s2k-hzt); min-height: var(--s2k-hzt);
  border-radius: 50%; border: none; background: var(--yy1a-jm); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--mg1wb-wj);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.pzoxalaa8tj3akr:hover { transform: scale(1.05); box-shadow: var(--bsbeo-xam); }
.pzoxalaa8tj3akr:active { transform: scale(0.95); }
.pzoxalaa8tj3akr:focus { outline: 2px solid var(--yy1a-jm); outline-offset: 2px; }
.pzoxalaa8tj3akr svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pzoxalaa8tj3akr.abxenv1yz0qybp{ animation:none; }
  .pzoxalaa8tj3akr,.w0036liebd3z62,.pyd4nfqg8g5wlusy1{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.w0036liebd3z62{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ma460-z3r0); border-radius: var(--wgrak-h22k); box-shadow: var(--bsbeo-xam);
  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;
}
.bac3beuf-ms2a-8t.cxay55n9216i46yz .w0036liebd3z62{ right:auto; left:24px; }
.w0036liebd3z62.iymb2isb8oe8drocr{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.xbalgqe-e3cu8l-yo{
  padding:16px 20px; background:var(--ma460-z3r0); border-bottom:1px solid var(--it2h5z-ia);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.vt-4isaam-fvwedum0{ width:10px; height:10px; border-radius:50%; background:var(--yy1a-jm); flex-shrink:0; }
.lq58ynwibr5fx9n{ flex:1; min-width:0; }
.q7qc-sn4cn9rz72{ font-size:16px; font-weight:600; color:var(--xokd-fs4); margin:0 0 2px 0; }
.b4x451i5dnroc483oy{ font-size:13px; color:var(--v6z92-aauc); margin:0; }
.okzu3ozvwpc7ee6{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--v6z92-aauc);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.okzu3ozvwpc7ee6:hover{ background:var(--wae7au-zp); color:var(--xokd-fs4); }
.okzu3ozvwpc7ee6:focus{ outline:2px solid var(--yy1a-jm); outline-offset:2px; }
.okzu3ozvwpc7ee6 svg{ width:20px; height:20px; }

/* Body */
.ocruw869qfwpcw2nu{
  flex:1; overflow-y:auto; padding:16px; background:var(--wae7au-zp);
  display:flex; flex-direction:column; gap:12px;
}
.ocruw869qfwpcw2nu::-webkit-scrollbar{ width:6px; }
.ocruw869qfwpcw2nu::-webkit-scrollbar-track{ background:transparent; }
.ocruw869qfwpcw2nu::-webkit-scrollbar-thumb{ background:var(--it2h5z-ia); border-radius:3px; }
.ocruw869qfwpcw2nu::-webkit-scrollbar-thumb:hover{ background:var(--v6z92-aauc); }

/* Messages */
.pyd4nfqg8g5wlusy1{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pyd4nfqg8g5wlusy1.eepci3s5v0j9ed2p{ flex-direction:row-reverse; }
.q7i21ihbpexf53s0u{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.q7i21ihbpexf53s0u a{ color:inherit; }
.pyd4nfqg8g5wlusy1.rs7a8d9m1vcrvi .q7i21ihbpexf53s0u{ background:var(--ma460-z3r0); color:var(--xokd-fs4); border-bottom-left-radius:4px; }
.pyd4nfqg8g5wlusy1.eepci3s5v0j9ed2p .q7i21ihbpexf53s0u{ background:var(--yy1a-jm); color:#fff; border-bottom-right-radius:4px; }
.zmj1rhkgyg-tres{ font-size:11px; color:var(--v6z92-aauc); margin-top:4px; display:block; }

/* Typing Indicator */
.q4xvjcd14l8uigkow{
  display:flex; gap:8px; padding:10px 14px; background:var(--ma460-z3r0);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.i-8hkr9w3h-4sl{ width:8px; height:8px; border-radius:50%; background:var(--v6z92-aauc); animation:typingDot 1.4s infinite; }
.i-8hkr9w3h-4sl:nth-child(2){ animation-delay:.2s; }
.i-8hkr9w3h-4sl: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) */
.ixowsj3kn5jb3l3zoa{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.bgezqd7-6sxupued9{
  border:0; border-radius:999px; padding:8px 12px; background:var(--yy1a-jm); 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(--mg1wb-wj);
}
.bgezqd7-6sxupued9:is(:hover,:focus){ transform:translateY(-1px); }
a.bgezqd7-6sxupued9{ text-decoration:none; display:inline-block; }
a.bgezqd7-6sxupued9:link, a.bgezqd7-6sxupued9:visited{ color:#fff; }
a.bgezqd7-6sxupued9:hover, a.bgezqd7-6sxupued9:focus{ color:#fff; }

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

/* Footer */
.kike3fygk7il0c{
  padding:16px; background:var(--ma460-z3r0); border-top:1px solid var(--it2h5z-ia);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.wwqds7q-wlv6n4{
  flex:1; padding:10px 14px; border:1px solid var(--it2h5z-ia); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--xokd-fs4);
  background:var(--wae7au-zp); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.wwqds7q-wlv6n4:focus{ border-color:var(--yy1a-jm); }
.wwqds7q-wlv6n4::placeholder{ color:var(--v6z92-aauc); }
.wwqds7q-wlv6n4.vvf0mxejk4a0db4j3g{ border-color:#c00; }
.vgu6zs2x6pkwker{
  width:40px; height:40px; min-width:40px; border:none; background:var(--yy1a-jm); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vgu6zs2x6pkwker:disabled{ opacity:.5; cursor:not-allowed; }
.vgu6zs2x6pkwker:not(:disabled):hover{ transform:scale(1.05); }
.vgu6zs2x6pkwker:not(:disabled):active{ transform:scale(0.95); }
.vgu6zs2x6pkwker:focus{ outline:2px solid var(--yy1a-jm); outline-offset:2px; }
.vgu6zs2x6pkwker svg{ width:20px; height:20px; }

/* Character Counter */
.amdht7frc-91jo{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--v6z92-aauc); }
.amdht7frc-91jo.kaa2n47p6-6ded4o1{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.e7wadirbk90saypeym{
  align-self:flex-start;
  max-width:75%;
  background: var(--ma460-z3r0);
  color: var(--xokd-fs4);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--mg1wb-wj);
}
.namqgc172ffufqlgl7{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.wlp0jtyfsnbop49bbe.kxf7ppc2t75tr3bjs{
  background: transparent; color: var(--xokd-fs4); border-color: var(--it2h5z-ia);
}
.wlp0jtyfsnbop49bbe.kxf7ppc2t75tr3bjs:hover{
  background: var(--yy1a-jm); color:#fff; border-color: var(--yy1a-jm);
}

/* Mobile */
@media (max-width: 768px){
  .bac3beuf-ms2a-8t{ bottom:16px; right:16px; }
  .bac3beuf-ms2a-8t.cxay55n9216i46yz{ left:16px; }
  .pzoxalaa8tj3akr{ --s2k-hzt:60px; }
  .w0036liebd3z62{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--wgrak-h22k) var(--wgrak-h22k) 0 0; transform: translateY(100%);
  }
  .w0036liebd3z62.iymb2isb8oe8drocr{ transform: translateY(0); }
  .xbalgqe-e3cu8l-yo{ padding:20px; }
  .kike3fygk7il0c{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.bac3beuf-ms2a-8t :focus-visible{ outline:2px solid var(--yy1a-jm); outline-offset:2px; }

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