/* CSS Variables */
:root {
  --h0qp55-pe: #4f46e5;
  --y3v-i2s: #ffffff;
  --l5x-h1q: #f9fafb;
  --yqi-aht: #0f172a;
  --pyf4s-rn98: #6b7280;
  --yxru-wu5c: #e5e7eb;
  --fds6sb-p50: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ratj7s-rp: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --sjc2-f2: 16px;
  --a8ls9-xbyh: 56px;
  --sjr9-dyrx: 12px;
  --ik52q-r1: 999999;
}

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

/* Main Container */
.fncz {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ik52q-r1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--yqi-aht);
}
.fncz.o4l7gn { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.c5ze0f { display: flex; flex-direction: column-reverse; gap: var(--sjr9-dyrx); align-items: center; }
.rjup5 {
  width: var(--a8ls9-xbyh); height: var(--a8ls9-xbyh); min-width: var(--a8ls9-xbyh); min-height: var(--a8ls9-xbyh);
  border-radius: 50%; border: none; background: var(--h0qp55-pe); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--fds6sb-p50);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rjup5:hover { transform: scale(1.05); box-shadow: var(--ratj7s-rp); }
.rjup5:active { transform: scale(0.95); }
.rjup5:focus { outline: 2px solid var(--h0qp55-pe); outline-offset: 2px; }
.rjup5 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rjup5.najv{ animation:none; }
  .rjup5,.awtlk,.zw39{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.awtlk{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--y3v-i2s); border-radius: var(--sjc2-f2); box-shadow: var(--ratj7s-rp);
  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;
}
.fncz.o4l7gn .awtlk{ right:auto; left:24px; }
.awtlk.lo4rn{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.zzltv{
  padding:16px 20px; background:var(--y3v-i2s); border-bottom:1px solid var(--yxru-wu5c);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.trpl{ width:10px; height:10px; border-radius:50%; background:var(--h0qp55-pe); flex-shrink:0; }
.p59g0{ flex:1; min-width:0; }
.quz74{ font-size:16px; font-weight:600; color:var(--yqi-aht); margin:0 0 2px 0; }
.z6ey{ font-size:13px; color:var(--pyf4s-rn98); margin:0; }
.ota9{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--pyf4s-rn98);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ota9:hover{ background:var(--l5x-h1q); color:var(--yqi-aht); }
.ota9:focus{ outline:2px solid var(--h0qp55-pe); outline-offset:2px; }
.ota9 svg{ width:20px; height:20px; }

/* Body */
.zl79{
  flex:1; overflow-y:auto; padding:16px; background:var(--l5x-h1q);
  display:flex; flex-direction:column; gap:12px;
}
.zl79::-webkit-scrollbar{ width:6px; }
.zl79::-webkit-scrollbar-track{ background:transparent; }
.zl79::-webkit-scrollbar-thumb{ background:var(--yxru-wu5c); border-radius:3px; }
.zl79::-webkit-scrollbar-thumb:hover{ background:var(--pyf4s-rn98); }

/* Messages */
.zw39{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.zw39.il8na{ flex-direction:row-reverse; }
.x7nm{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.x7nm a{ color:inherit; }
.zw39.ae3bei .x7nm{ background:var(--y3v-i2s); color:var(--yqi-aht); border-bottom-left-radius:4px; }
.zw39.il8na .x7nm{ background:var(--h0qp55-pe); color:#fff; border-bottom-right-radius:4px; }
.vly0dl{ font-size:11px; color:var(--pyf4s-rn98); margin-top:4px; display:block; }

/* Typing Indicator */
.qv9vm8{
  display:flex; gap:8px; padding:10px 14px; background:var(--y3v-i2s);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.fgmz{ width:8px; height:8px; border-radius:50%; background:var(--pyf4s-rn98); animation:typingDot 1.4s infinite; }
.fgmz:nth-child(2){ animation-delay:.2s; }
.fgmz: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) */
.k5i0g{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.u4xhg{
  border:0; border-radius:999px; padding:8px 12px; background:var(--h0qp55-pe); 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(--fds6sb-p50);
}
.u4xhg:is(:hover,:focus){ transform:translateY(-1px); }
a.u4xhg{ text-decoration:none; display:inline-block; }
a.u4xhg:link, a.u4xhg:visited{ color:#fff; }
a.u4xhg:hover, a.u4xhg:focus{ color:#fff; }

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

/* Footer */
.k96h{
  padding:16px; background:var(--y3v-i2s); border-top:1px solid var(--yxru-wu5c);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.uq54{
  flex:1; padding:10px 14px; border:1px solid var(--yxru-wu5c); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--yqi-aht);
  background:var(--l5x-h1q); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.uq54:focus{ border-color:var(--h0qp55-pe); }
.uq54::placeholder{ color:var(--pyf4s-rn98); }
.uq54.qr7hm{ border-color:#c00; }
.o2oy{
  width:40px; height:40px; min-width:40px; border:none; background:var(--h0qp55-pe); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.o2oy:disabled{ opacity:.5; cursor:not-allowed; }
.o2oy:not(:disabled):hover{ transform:scale(1.05); }
.o2oy:not(:disabled):active{ transform:scale(0.95); }
.o2oy:focus{ outline:2px solid var(--h0qp55-pe); outline-offset:2px; }
.o2oy svg{ width:20px; height:20px; }

/* Character Counter */
.d1rpat{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--pyf4s-rn98); }
.d1rpat.loabff{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.cwq7{
  align-self:flex-start;
  max-width:75%;
  background: var(--y3v-i2s);
  color: var(--yqi-aht);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--fds6sb-p50);
}
.a5wcr{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.db047.vk9d{
  background: transparent; color: var(--yqi-aht); border-color: var(--yxru-wu5c);
}
.db047.vk9d:hover{
  background: var(--h0qp55-pe); color:#fff; border-color: var(--h0qp55-pe);
}

/* Mobile */
@media (max-width: 768px){
  .fncz{ bottom:16px; right:16px; }
  .fncz.o4l7gn{ left:16px; }
  .rjup5{ --a8ls9-xbyh:60px; }
  .awtlk{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--sjc2-f2) var(--sjc2-f2) 0 0; transform: translateY(100%);
  }
  .awtlk.lo4rn{ transform: translateY(0); }
  .zzltv{ padding:20px; }
  .k96h{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.fncz :focus-visible{ outline:2px solid var(--h0qp55-pe); outline-offset:2px; }

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