/* CSS Variables */
:root {
  --mq5-l0: #4f46e5;
  --hdkd-er: #ffffff;
  --o5w-fubr: #f9fafb;
  --j0g5-he: #0f172a;
  --tdxr-lzb: #6b7280;
  --csnjir-ae9h: #e5e7eb;
  --mjmd2-n4b: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --tk41b-ykj: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --rdyd-vr5: 16px;
  --r6q-gd: 56px;
  --edve-e70l: 12px;
  --n78zc-jqi: 999999;
}

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

/* Main Container */
.q9qB20 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--n78zc-jqi);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--j0g5-he);
}
.q9qB20.futXor { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.zo9W08 { display: flex; flex-direction: column-reverse; gap: var(--edve-e70l); align-items: center; }
.gc6Wnq {
  width: var(--r6q-gd); height: var(--r6q-gd); min-width: var(--r6q-gd); min-height: var(--r6q-gd);
  border-radius: 50%; border: none; background: var(--mq5-l0); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--mjmd2-n4b);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.gc6Wnq:hover { transform: scale(1.05); box-shadow: var(--tk41b-ykj); }
.gc6Wnq:active { transform: scale(0.95); }
.gc6Wnq:focus { outline: 2px solid var(--mq5-l0); outline-offset: 2px; }
.gc6Wnq svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .gc6Wnq.t0hZfk{ animation:none; }
  .gc6Wnq,.zbnE2hk,.wl0Ab40{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.zbnE2hk{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--hdkd-er); border-radius: var(--rdyd-vr5); box-shadow: var(--tk41b-ykj);
  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;
}
.q9qB20.futXor .zbnE2hk{ right:auto; left:24px; }
.zbnE2hk.bleY1tq{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.r5Ybp{
  padding:16px 20px; background:var(--hdkd-er); border-bottom:1px solid var(--csnjir-ae9h);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.zq1Cc00{ width:10px; height:10px; border-radius:50%; background:var(--mq5-l0); flex-shrink:0; }
.yyBy4{ flex:1; min-width:0; }
.xuA07{ font-size:16px; font-weight:600; color:var(--j0g5-he); margin:0 0 2px 0; }
.g4d3Lsew{ font-size:13px; color:var(--tdxr-lzb); margin:0; }
.s1tXu9y{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--tdxr-lzb);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.s1tXu9y:hover{ background:var(--o5w-fubr); color:var(--j0g5-he); }
.s1tXu9y:focus{ outline:2px solid var(--mq5-l0); outline-offset:2px; }
.s1tXu9y svg{ width:20px; height:20px; }

/* Body */
.fmxsG65g{
  flex:1; overflow-y:auto; padding:16px; background:var(--o5w-fubr);
  display:flex; flex-direction:column; gap:12px;
}
.fmxsG65g::-webkit-scrollbar{ width:6px; }
.fmxsG65g::-webkit-scrollbar-track{ background:transparent; }
.fmxsG65g::-webkit-scrollbar-thumb{ background:var(--csnjir-ae9h); border-radius:3px; }
.fmxsG65g::-webkit-scrollbar-thumb:hover{ background:var(--tdxr-lzb); }

/* Messages */
.wl0Ab40{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.wl0Ab40.soG7j{ flex-direction:row-reverse; }
.d48Lnb{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.d48Lnb a{ color:inherit; }
.wl0Ab40.j1Pn5 .d48Lnb{ background:var(--hdkd-er); color:var(--j0g5-he); border-bottom-left-radius:4px; }
.wl0Ab40.soG7j .d48Lnb{ background:var(--mq5-l0); color:#fff; border-bottom-right-radius:4px; }
.corJpkh{ font-size:11px; color:var(--tdxr-lzb); margin-top:4px; display:block; }

/* Typing Indicator */
.t5gSfn{
  display:flex; gap:8px; padding:10px 14px; background:var(--hdkd-er);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ui4rIw5c{ width:8px; height:8px; border-radius:50%; background:var(--tdxr-lzb); animation:typingDot 1.4s infinite; }
.ui4rIw5c:nth-child(2){ animation-delay:.2s; }
.ui4rIw5c: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) */
.vf6X98{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.c7lqLlty{
  border:0; border-radius:999px; padding:8px 12px; background:var(--mq5-l0); 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(--mjmd2-n4b);
}
.c7lqLlty:is(:hover,:focus){ transform:translateY(-1px); }
a.c7lqLlty{ text-decoration:none; display:inline-block; }
a.c7lqLlty:link, a.c7lqLlty:visited{ color:#fff; }
a.c7lqLlty:hover, a.c7lqLlty:focus{ color:#fff; }

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

/* Footer */
.wp3Ya65{
  padding:16px; background:var(--hdkd-er); border-top:1px solid var(--csnjir-ae9h);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.vxvcBjz1{
  flex:1; padding:10px 14px; border:1px solid var(--csnjir-ae9h); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--j0g5-he);
  background:var(--o5w-fubr); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.vxvcBjz1:focus{ border-color:var(--mq5-l0); }
.vxvcBjz1::placeholder{ color:var(--tdxr-lzb); }
.vxvcBjz1.tf9zKrjj{ border-color:#c00; }
.vq6Wj6{
  width:40px; height:40px; min-width:40px; border:none; background:var(--mq5-l0); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vq6Wj6:disabled{ opacity:.5; cursor:not-allowed; }
.vq6Wj6:not(:disabled):hover{ transform:scale(1.05); }
.vq6Wj6:not(:disabled):active{ transform:scale(0.95); }
.vq6Wj6:focus{ outline:2px solid var(--mq5-l0); outline-offset:2px; }
.vq6Wj6 svg{ width:20px; height:20px; }

/* Character Counter */
.gtcCqwo{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--tdxr-lzb); }
.gtcCqwo.i8dRx8{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.agdtRkaa{
  align-self:flex-start;
  max-width:75%;
  background: var(--hdkd-er);
  color: var(--j0g5-he);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--mjmd2-n4b);
}
.p42qPn4w{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.hzzKi6c.nivY28{
  background: transparent; color: var(--j0g5-he); border-color: var(--csnjir-ae9h);
}
.hzzKi6c.nivY28:hover{
  background: var(--mq5-l0); color:#fff; border-color: var(--mq5-l0);
}

/* Mobile */
@media (max-width: 768px){
  .q9qB20{ bottom:16px; right:16px; }
  .q9qB20.futXor{ left:16px; }
  .gc6Wnq{ --r6q-gd:60px; }
  .zbnE2hk{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--rdyd-vr5) var(--rdyd-vr5) 0 0; transform: translateY(100%);
  }
  .zbnE2hk.bleY1tq{ transform: translateY(0); }
  .r5Ybp{ padding:20px; }
  .wp3Ya65{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.q9qB20 :focus-visible{ outline:2px solid var(--mq5-l0); outline-offset:2px; }

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