/* CSS Variables */
:root {
  --qfgv-j2: #4f46e5;
  --u0a-ozy: #ffffff;
  --q2c-ykb: #f9fafb;
  --koz-io: #0f172a;
  --vim79-aie: #6b7280;
  --ionli-w5o: #e5e7eb;
  --pgy-t0: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --vhl-hox: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --xbokuz-uxu: 16px;
  --b01s1j-yhjs: 56px;
  --dmlii-qa: 12px;
  --ucz3yx-an: 999999;
}

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

/* Main Container */
.tl2u {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ucz3yx-an);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--koz-io);
}
.tl2u.ngpr { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.wrsvvd { display: flex; flex-direction: column-reverse; gap: var(--dmlii-qa); align-items: center; }
.cs9f {
  width: var(--b01s1j-yhjs); height: var(--b01s1j-yhjs); min-width: var(--b01s1j-yhjs); min-height: var(--b01s1j-yhjs);
  border-radius: 50%; border: none; background: var(--qfgv-j2); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--pgy-t0);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.cs9f:hover { transform: scale(1.05); box-shadow: var(--vhl-hox); }
.cs9f:active { transform: scale(0.95); }
.cs9f:focus { outline: 2px solid var(--qfgv-j2); outline-offset: 2px; }
.cs9f svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .cs9f.o9edj{ animation:none; }
  .cs9f,.d5erg,.fkjsr{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.d5erg{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--u0a-ozy); border-radius: var(--xbokuz-uxu); box-shadow: var(--vhl-hox);
  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;
}
.tl2u.ngpr .d5erg{ right:auto; left:24px; }
.d5erg.sr0d{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.gpx99{
  padding:16px 20px; background:var(--u0a-ozy); border-bottom:1px solid var(--ionli-w5o);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.f26v{ width:10px; height:10px; border-radius:50%; background:var(--qfgv-j2); flex-shrink:0; }
.zrnl8k{ flex:1; min-width:0; }
.tv6lm{ font-size:16px; font-weight:600; color:var(--koz-io); margin:0 0 2px 0; }
.xcob5{ font-size:13px; color:var(--vim79-aie); margin:0; }
.w8l7ih{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--vim79-aie);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.w8l7ih:hover{ background:var(--q2c-ykb); color:var(--koz-io); }
.w8l7ih:focus{ outline:2px solid var(--qfgv-j2); outline-offset:2px; }
.w8l7ih svg{ width:20px; height:20px; }

/* Body */
.q31zv{
  flex:1; overflow-y:auto; padding:16px; background:var(--q2c-ykb);
  display:flex; flex-direction:column; gap:12px;
}
.q31zv::-webkit-scrollbar{ width:6px; }
.q31zv::-webkit-scrollbar-track{ background:transparent; }
.q31zv::-webkit-scrollbar-thumb{ background:var(--ionli-w5o); border-radius:3px; }
.q31zv::-webkit-scrollbar-thumb:hover{ background:var(--vim79-aie); }

/* Messages */
.fkjsr{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.fkjsr.oqpkf1{ flex-direction:row-reverse; }
.dp5tb{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.dp5tb a{ color:inherit; }
.fkjsr.rjoa .dp5tb{ background:var(--u0a-ozy); color:var(--koz-io); border-bottom-left-radius:4px; }
.fkjsr.oqpkf1 .dp5tb{ background:var(--qfgv-j2); color:#fff; border-bottom-right-radius:4px; }
.vx2op8{ font-size:11px; color:var(--vim79-aie); margin-top:4px; display:block; }

/* Typing Indicator */
.et9ky{
  display:flex; gap:8px; padding:10px 14px; background:var(--u0a-ozy);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.mdf9z{ width:8px; height:8px; border-radius:50%; background:var(--vim79-aie); animation:typingDot 1.4s infinite; }
.mdf9z:nth-child(2){ animation-delay:.2s; }
.mdf9z: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) */
.vp7cq{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.w2jkf{
  border:0; border-radius:999px; padding:8px 12px; background:var(--qfgv-j2); 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(--pgy-t0);
}
.w2jkf:is(:hover,:focus){ transform:translateY(-1px); }
a.w2jkf{ text-decoration:none; display:inline-block; }
a.w2jkf:link, a.w2jkf:visited{ color:#fff; }
a.w2jkf:hover, a.w2jkf:focus{ color:#fff; }

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

/* Footer */
.cwpcdp{
  padding:16px; background:var(--u0a-ozy); border-top:1px solid var(--ionli-w5o);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pjbj{
  flex:1; padding:10px 14px; border:1px solid var(--ionli-w5o); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--koz-io);
  background:var(--q2c-ykb); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pjbj:focus{ border-color:var(--qfgv-j2); }
.pjbj::placeholder{ color:var(--vim79-aie); }
.pjbj.qdkzp{ border-color:#c00; }
.fvekh7{
  width:40px; height:40px; min-width:40px; border:none; background:var(--qfgv-j2); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.fvekh7:disabled{ opacity:.5; cursor:not-allowed; }
.fvekh7:not(:disabled):hover{ transform:scale(1.05); }
.fvekh7:not(:disabled):active{ transform:scale(0.95); }
.fvekh7:focus{ outline:2px solid var(--qfgv-j2); outline-offset:2px; }
.fvekh7 svg{ width:20px; height:20px; }

/* Character Counter */
.ijx5{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--vim79-aie); }
.ijx5.x5gi{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.edrqn{
  align-self:flex-start;
  max-width:75%;
  background: var(--u0a-ozy);
  color: var(--koz-io);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--pgy-t0);
}
.ydvhm6{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.lcgxtw.u7bd{
  background: transparent; color: var(--koz-io); border-color: var(--ionli-w5o);
}
.lcgxtw.u7bd:hover{
  background: var(--qfgv-j2); color:#fff; border-color: var(--qfgv-j2);
}

/* Mobile */
@media (max-width: 768px){
  .tl2u{ bottom:16px; right:16px; }
  .tl2u.ngpr{ left:16px; }
  .cs9f{ --b01s1j-yhjs:60px; }
  .d5erg{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--xbokuz-uxu) var(--xbokuz-uxu) 0 0; transform: translateY(100%);
  }
  .d5erg.sr0d{ transform: translateY(0); }
  .gpx99{ padding:20px; }
  .cwpcdp{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.tl2u :focus-visible{ outline:2px solid var(--qfgv-j2); outline-offset:2px; }

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