/* CSS Variables */
:root {
  --axukp-xuv6: #4f46e5;
  --euct5-dfp: #ffffff;
  --l1t-gk: #f9fafb;
  --yluq-vxck: #0f172a;
  --juuq-g7i: #6b7280;
  --bgi3-t5: #e5e7eb;
  --d53uw4-h2v: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --k5o6eq-dxe0: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --b8wfp-fqym: 16px;
  --kfy1j-ro: 56px;
  --cb84-et: 12px;
  --lbgpz6-qd: 999999;
}

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

/* Main Container */
.a4Sti {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--lbgpz6-qd);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--yluq-vxck);
}
.a4Sti.jpplZvj8 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.kb0D37 { display: flex; flex-direction: column-reverse; gap: var(--cb84-et); align-items: center; }
.f6J8x {
  width: var(--kfy1j-ro); height: var(--kfy1j-ro); min-width: var(--kfy1j-ro); min-height: var(--kfy1j-ro);
  border-radius: 50%; border: none; background: var(--axukp-xuv6); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--d53uw4-h2v);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.f6J8x:hover { transform: scale(1.05); box-shadow: var(--k5o6eq-dxe0); }
.f6J8x:active { transform: scale(0.95); }
.f6J8x:focus { outline: 2px solid var(--axukp-xuv6); outline-offset: 2px; }
.f6J8x svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .f6J8x.kbJaw{ animation:none; }
  .f6J8x,.spnD791,.xadNl9{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.spnD791{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--euct5-dfp); border-radius: var(--b8wfp-fqym); box-shadow: var(--k5o6eq-dxe0);
  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;
}
.a4Sti.jpplZvj8 .spnD791{ right:auto; left:24px; }
.spnD791.r3gNdl{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.boWw2{
  padding:16px 20px; background:var(--euct5-dfp); border-bottom:1px solid var(--bgi3-t5);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.udaMs7h{ width:10px; height:10px; border-radius:50%; background:var(--axukp-xuv6); flex-shrink:0; }
.x5xB8p{ flex:1; min-width:0; }
.w8Wth{ font-size:16px; font-weight:600; color:var(--yluq-vxck); margin:0 0 2px 0; }
.xxaJaxg{ font-size:13px; color:var(--juuq-g7i); margin:0; }
.xygL3i{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--juuq-g7i);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.xygL3i:hover{ background:var(--l1t-gk); color:var(--yluq-vxck); }
.xygL3i:focus{ outline:2px solid var(--axukp-xuv6); outline-offset:2px; }
.xygL3i svg{ width:20px; height:20px; }

/* Body */
.p2d8Diwv{
  flex:1; overflow-y:auto; padding:16px; background:var(--l1t-gk);
  display:flex; flex-direction:column; gap:12px;
}
.p2d8Diwv::-webkit-scrollbar{ width:6px; }
.p2d8Diwv::-webkit-scrollbar-track{ background:transparent; }
.p2d8Diwv::-webkit-scrollbar-thumb{ background:var(--bgi3-t5); border-radius:3px; }
.p2d8Diwv::-webkit-scrollbar-thumb:hover{ background:var(--juuq-g7i); }

/* Messages */
.xadNl9{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.xadNl9.zvrFr9e{ flex-direction:row-reverse; }
.s4iL0m{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.s4iL0m a{ color:inherit; }
.xadNl9.fuhU19w .s4iL0m{ background:var(--euct5-dfp); color:var(--yluq-vxck); border-bottom-left-radius:4px; }
.xadNl9.zvrFr9e .s4iL0m{ background:var(--axukp-xuv6); color:#fff; border-bottom-right-radius:4px; }
.jbbMfu2{ font-size:11px; color:var(--juuq-g7i); margin-top:4px; display:block; }

/* Typing Indicator */
.c011Qoy5{
  display:flex; gap:8px; padding:10px 14px; background:var(--euct5-dfp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.bmNmr{ width:8px; height:8px; border-radius:50%; background:var(--juuq-g7i); animation:typingDot 1.4s infinite; }
.bmNmr:nth-child(2){ animation-delay:.2s; }
.bmNmr: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) */
.rn1Ty3r{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.a6cKmc{
  border:0; border-radius:999px; padding:8px 12px; background:var(--axukp-xuv6); 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(--d53uw4-h2v);
}
.a6cKmc:is(:hover,:focus){ transform:translateY(-1px); }
a.a6cKmc{ text-decoration:none; display:inline-block; }
a.a6cKmc:link, a.a6cKmc:visited{ color:#fff; }
a.a6cKmc:hover, a.a6cKmc:focus{ color:#fff; }

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

/* Footer */
.bgQff{
  padding:16px; background:var(--euct5-dfp); border-top:1px solid var(--bgi3-t5);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pbdQu4b{
  flex:1; padding:10px 14px; border:1px solid var(--bgi3-t5); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--yluq-vxck);
  background:var(--l1t-gk); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pbdQu4b:focus{ border-color:var(--axukp-xuv6); }
.pbdQu4b::placeholder{ color:var(--juuq-g7i); }
.pbdQu4b.z41N7up{ border-color:#c00; }
.mx4Var1{
  width:40px; height:40px; min-width:40px; border:none; background:var(--axukp-xuv6); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.mx4Var1:disabled{ opacity:.5; cursor:not-allowed; }
.mx4Var1:not(:disabled):hover{ transform:scale(1.05); }
.mx4Var1:not(:disabled):active{ transform:scale(0.95); }
.mx4Var1:focus{ outline:2px solid var(--axukp-xuv6); outline-offset:2px; }
.mx4Var1 svg{ width:20px; height:20px; }

/* Character Counter */
.jw3Unpm{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--juuq-g7i); }
.jw3Unpm.f3zR2f{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.vq3Vr88{
  align-self:flex-start;
  max-width:75%;
  background: var(--euct5-dfp);
  color: var(--yluq-vxck);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--d53uw4-h2v);
}
.thHje{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ppPyz.lddN4l5{
  background: transparent; color: var(--yluq-vxck); border-color: var(--bgi3-t5);
}
.ppPyz.lddN4l5:hover{
  background: var(--axukp-xuv6); color:#fff; border-color: var(--axukp-xuv6);
}

/* Mobile */
@media (max-width: 768px){
  .a4Sti{ bottom:16px; right:16px; }
  .a4Sti.jpplZvj8{ left:16px; }
  .f6J8x{ --kfy1j-ro:60px; }
  .spnD791{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--b8wfp-fqym) var(--b8wfp-fqym) 0 0; transform: translateY(100%);
  }
  .spnD791.r3gNdl{ transform: translateY(0); }
  .boWw2{ padding:20px; }
  .bgQff{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.a4Sti :focus-visible{ outline:2px solid var(--axukp-xuv6); outline-offset:2px; }

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