/* CSS Variables */
:root {
  --i2u-n4: #4f46e5;
  --fubg-nzam: #ffffff;
  --a5zn-mqyt: #f9fafb;
  --lnzv-w9: #0f172a;
  --z2ksp2-nf7k: #6b7280;
  --i7p-f5j7: #e5e7eb;
  --m4r-ltdq: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --y9n29-ct: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --kv6-vna: 16px;
  --os5sjm-ny9b: 56px;
  --ynplli-xj: 12px;
  --dzx0-xmj: 999999;
}

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

/* Main Container */
.fyyJ8qe {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--dzx0-xmj);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--lnzv-w9);
}
.fyyJ8qe.y0kfQrec { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.zjiHei { display: flex; flex-direction: column-reverse; gap: var(--ynplli-xj); align-items: center; }
.hy99No98 {
  width: var(--os5sjm-ny9b); height: var(--os5sjm-ny9b); min-width: var(--os5sjm-ny9b); min-height: var(--os5sjm-ny9b);
  border-radius: 50%; border: none; background: var(--i2u-n4); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--m4r-ltdq);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.hy99No98:hover { transform: scale(1.05); box-shadow: var(--y9n29-ct); }
.hy99No98:active { transform: scale(0.95); }
.hy99No98:focus { outline: 2px solid var(--i2u-n4); outline-offset: 2px; }
.hy99No98 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hy99No98.be9Fe5j{ animation:none; }
  .hy99No98,.uguV50k,.ioeN9x{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.uguV50k{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fubg-nzam); border-radius: var(--kv6-vna); box-shadow: var(--y9n29-ct);
  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;
}
.fyyJ8qe.y0kfQrec .uguV50k{ right:auto; left:24px; }
.uguV50k.i0aGkzi{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.mv8tL1oq{
  padding:16px 20px; background:var(--fubg-nzam); border-bottom:1px solid var(--i7p-f5j7);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.j12Nffp{ width:10px; height:10px; border-radius:50%; background:var(--i2u-n4); flex-shrink:0; }
.jfvItm{ flex:1; min-width:0; }
.f19vKp2b{ font-size:16px; font-weight:600; color:var(--lnzv-w9); margin:0 0 2px 0; }
.x2ovQtuj{ font-size:13px; color:var(--z2ksp2-nf7k); margin:0; }
.t3dIkb{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--z2ksp2-nf7k);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.t3dIkb:hover{ background:var(--a5zn-mqyt); color:var(--lnzv-w9); }
.t3dIkb:focus{ outline:2px solid var(--i2u-n4); outline-offset:2px; }
.t3dIkb svg{ width:20px; height:20px; }

/* Body */
.lysBhfj{
  flex:1; overflow-y:auto; padding:16px; background:var(--a5zn-mqyt);
  display:flex; flex-direction:column; gap:12px;
}
.lysBhfj::-webkit-scrollbar{ width:6px; }
.lysBhfj::-webkit-scrollbar-track{ background:transparent; }
.lysBhfj::-webkit-scrollbar-thumb{ background:var(--i7p-f5j7); border-radius:3px; }
.lysBhfj::-webkit-scrollbar-thumb:hover{ background:var(--z2ksp2-nf7k); }

/* Messages */
.ioeN9x{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ioeN9x.oz4zHsk6{ flex-direction:row-reverse; }
.j9l2Ovtt{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.j9l2Ovtt a{ color:inherit; }
.ioeN9x.qqbyGrtk .j9l2Ovtt{ background:var(--fubg-nzam); color:var(--lnzv-w9); border-bottom-left-radius:4px; }
.ioeN9x.oz4zHsk6 .j9l2Ovtt{ background:var(--i2u-n4); color:#fff; border-bottom-right-radius:4px; }
.ftzMyu{ font-size:11px; color:var(--z2ksp2-nf7k); margin-top:4px; display:block; }

/* Typing Indicator */
.cxGd4{
  display:flex; gap:8px; padding:10px 14px; background:var(--fubg-nzam);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.itSsj{ width:8px; height:8px; border-radius:50%; background:var(--z2ksp2-nf7k); animation:typingDot 1.4s infinite; }
.itSsj:nth-child(2){ animation-delay:.2s; }
.itSsj: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) */
.r7wQbz{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.v7dBqzn{
  border:0; border-radius:999px; padding:8px 12px; background:var(--i2u-n4); 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(--m4r-ltdq);
}
.v7dBqzn:is(:hover,:focus){ transform:translateY(-1px); }
a.v7dBqzn{ text-decoration:none; display:inline-block; }
a.v7dBqzn:link, a.v7dBqzn:visited{ color:#fff; }
a.v7dBqzn:hover, a.v7dBqzn:focus{ color:#fff; }

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

/* Footer */
.t4oE9z{
  padding:16px; background:var(--fubg-nzam); border-top:1px solid var(--i7p-f5j7);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.xx2X7o5{
  flex:1; padding:10px 14px; border:1px solid var(--i7p-f5j7); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--lnzv-w9);
  background:var(--a5zn-mqyt); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.xx2X7o5:focus{ border-color:var(--i2u-n4); }
.xx2X7o5::placeholder{ color:var(--z2ksp2-nf7k); }
.xx2X7o5.p28V10{ border-color:#c00; }
.zcn8Wybi{
  width:40px; height:40px; min-width:40px; border:none; background:var(--i2u-n4); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.zcn8Wybi:disabled{ opacity:.5; cursor:not-allowed; }
.zcn8Wybi:not(:disabled):hover{ transform:scale(1.05); }
.zcn8Wybi:not(:disabled):active{ transform:scale(0.95); }
.zcn8Wybi:focus{ outline:2px solid var(--i2u-n4); outline-offset:2px; }
.zcn8Wybi svg{ width:20px; height:20px; }

/* Character Counter */
.ib52Zq5t{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--z2ksp2-nf7k); }
.ib52Zq5t.vm7wHg1o{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.asjCn0{
  align-self:flex-start;
  max-width:75%;
  background: var(--fubg-nzam);
  color: var(--lnzv-w9);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--m4r-ltdq);
}
.julJcj{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.atYya.q39Zi3y{
  background: transparent; color: var(--lnzv-w9); border-color: var(--i7p-f5j7);
}
.atYya.q39Zi3y:hover{
  background: var(--i2u-n4); color:#fff; border-color: var(--i2u-n4);
}

/* Mobile */
@media (max-width: 768px){
  .fyyJ8qe{ bottom:16px; right:16px; }
  .fyyJ8qe.y0kfQrec{ left:16px; }
  .hy99No98{ --os5sjm-ny9b:60px; }
  .uguV50k{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--kv6-vna) var(--kv6-vna) 0 0; transform: translateY(100%);
  }
  .uguV50k.i0aGkzi{ transform: translateY(0); }
  .mv8tL1oq{ padding:20px; }
  .t4oE9z{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.fyyJ8qe :focus-visible{ outline:2px solid var(--i2u-n4); outline-offset:2px; }

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