/* CSS Variables */
:root {
  --x8hh-jn1c: #4f46e5;
  --ux032-yms: #ffffff;
  --vrlp-hw8u: #f9fafb;
  --nv0qi-b7br: #0f172a;
  --mi3p-sx59: #6b7280;
  --bjon4-sk: #e5e7eb;
  --nhx-zd: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --e6ajt5-pf: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --tn2d0r-gsk: 16px;
  --anpnfa-tbc: 56px;
  --qdq-b63j: 12px;
  --jfn7-jo6o: 999999;
}

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

/* Main Container */
.vzeg6 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--jfn7-jo6o);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--nv0qi-b7br);
}
.vzeg6.ankpg { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.mnly { display: flex; flex-direction: column-reverse; gap: var(--qdq-b63j); align-items: center; }
.xim8 {
  width: var(--anpnfa-tbc); height: var(--anpnfa-tbc); min-width: var(--anpnfa-tbc); min-height: var(--anpnfa-tbc);
  border-radius: 50%; border: none; background: var(--x8hh-jn1c); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nhx-zd);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.xim8:hover { transform: scale(1.05); box-shadow: var(--e6ajt5-pf); }
.xim8:active { transform: scale(0.95); }
.xim8:focus { outline: 2px solid var(--x8hh-jn1c); outline-offset: 2px; }
.xim8 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .xim8.li9u{ animation:none; }
  .xim8,.zfm82,.kumiv{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.zfm82{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ux032-yms); border-radius: var(--tn2d0r-gsk); box-shadow: var(--e6ajt5-pf);
  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;
}
.vzeg6.ankpg .zfm82{ right:auto; left:24px; }
.zfm82.vkq40{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.wsoms{
  padding:16px 20px; background:var(--ux032-yms); border-bottom:1px solid var(--bjon4-sk);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.vmqde{ width:10px; height:10px; border-radius:50%; background:var(--x8hh-jn1c); flex-shrink:0; }
.urmm{ flex:1; min-width:0; }
.p7c7r{ font-size:16px; font-weight:600; color:var(--nv0qi-b7br); margin:0 0 2px 0; }
.kp2go6{ font-size:13px; color:var(--mi3p-sx59); margin:0; }
.v5vr5m{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--mi3p-sx59);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.v5vr5m:hover{ background:var(--vrlp-hw8u); color:var(--nv0qi-b7br); }
.v5vr5m:focus{ outline:2px solid var(--x8hh-jn1c); outline-offset:2px; }
.v5vr5m svg{ width:20px; height:20px; }

/* Body */
.ks83{
  flex:1; overflow-y:auto; padding:16px; background:var(--vrlp-hw8u);
  display:flex; flex-direction:column; gap:12px;
}
.ks83::-webkit-scrollbar{ width:6px; }
.ks83::-webkit-scrollbar-track{ background:transparent; }
.ks83::-webkit-scrollbar-thumb{ background:var(--bjon4-sk); border-radius:3px; }
.ks83::-webkit-scrollbar-thumb:hover{ background:var(--mi3p-sx59); }

/* Messages */
.kumiv{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.kumiv.x7m5{ flex-direction:row-reverse; }
.hzoj3h{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.hzoj3h a{ color:inherit; }
.kumiv.d6n4 .hzoj3h{ background:var(--ux032-yms); color:var(--nv0qi-b7br); border-bottom-left-radius:4px; }
.kumiv.x7m5 .hzoj3h{ background:var(--x8hh-jn1c); color:#fff; border-bottom-right-radius:4px; }
.qa9vgm{ font-size:11px; color:var(--mi3p-sx59); margin-top:4px; display:block; }

/* Typing Indicator */
.g12n{
  display:flex; gap:8px; padding:10px 14px; background:var(--ux032-yms);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.nyjjx6{ width:8px; height:8px; border-radius:50%; background:var(--mi3p-sx59); animation:typingDot 1.4s infinite; }
.nyjjx6:nth-child(2){ animation-delay:.2s; }
.nyjjx6: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) */
.eemaxa{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.i45oy2{
  border:0; border-radius:999px; padding:8px 12px; background:var(--x8hh-jn1c); 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(--nhx-zd);
}
.i45oy2:is(:hover,:focus){ transform:translateY(-1px); }
a.i45oy2{ text-decoration:none; display:inline-block; }
a.i45oy2:link, a.i45oy2:visited{ color:#fff; }
a.i45oy2:hover, a.i45oy2:focus{ color:#fff; }

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

/* Footer */
.fkkcm{
  padding:16px; background:var(--ux032-yms); border-top:1px solid var(--bjon4-sk);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.zdok6{
  flex:1; padding:10px 14px; border:1px solid var(--bjon4-sk); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--nv0qi-b7br);
  background:var(--vrlp-hw8u); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.zdok6:focus{ border-color:var(--x8hh-jn1c); }
.zdok6::placeholder{ color:var(--mi3p-sx59); }
.zdok6.p085km{ border-color:#c00; }
.u7c1hg{
  width:40px; height:40px; min-width:40px; border:none; background:var(--x8hh-jn1c); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.u7c1hg:disabled{ opacity:.5; cursor:not-allowed; }
.u7c1hg:not(:disabled):hover{ transform:scale(1.05); }
.u7c1hg:not(:disabled):active{ transform:scale(0.95); }
.u7c1hg:focus{ outline:2px solid var(--x8hh-jn1c); outline-offset:2px; }
.u7c1hg svg{ width:20px; height:20px; }

/* Character Counter */
.wldc{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--mi3p-sx59); }
.wldc.l1dyz{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.xnh74{
  align-self:flex-start;
  max-width:75%;
  background: var(--ux032-yms);
  color: var(--nv0qi-b7br);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--nhx-zd);
}
.swlc{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.grl3et.o8dyw{
  background: transparent; color: var(--nv0qi-b7br); border-color: var(--bjon4-sk);
}
.grl3et.o8dyw:hover{
  background: var(--x8hh-jn1c); color:#fff; border-color: var(--x8hh-jn1c);
}

/* Mobile */
@media (max-width: 768px){
  .vzeg6{ bottom:16px; right:16px; }
  .vzeg6.ankpg{ left:16px; }
  .xim8{ --anpnfa-tbc:60px; }
  .zfm82{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--tn2d0r-gsk) var(--tn2d0r-gsk) 0 0; transform: translateY(100%);
  }
  .zfm82.vkq40{ transform: translateY(0); }
  .wsoms{ padding:20px; }
  .fkkcm{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.vzeg6 :focus-visible{ outline:2px solid var(--x8hh-jn1c); outline-offset:2px; }

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