/* CSS Variables */
:root {
  --ickdwq-a1rg: #4f46e5;
  --u2m-vj2: #ffffff;
  --bg01qb-r5mh: #f9fafb;
  --bxa2-qjk: #0f172a;
  --j9nx-xvb: #6b7280;
  --a0c9ns-h7: #e5e7eb;
  --gxtl-b8: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --uhuo-j69: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --uwy8-jib: 16px;
  --sna-f3q2: 56px;
  --tjfbur-y5: 12px;
  --w0d-jb: 999999;
}

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

/* Main Container */
.o73q {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--w0d-jb);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--bxa2-qjk);
}
.o73q.jr2ql { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.w59d3 { display: flex; flex-direction: column-reverse; gap: var(--tjfbur-y5); align-items: center; }
.gppu {
  width: var(--sna-f3q2); height: var(--sna-f3q2); min-width: var(--sna-f3q2); min-height: var(--sna-f3q2);
  border-radius: 50%; border: none; background: var(--ickdwq-a1rg); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--gxtl-b8);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.gppu:hover { transform: scale(1.05); box-shadow: var(--uhuo-j69); }
.gppu:active { transform: scale(0.95); }
.gppu:focus { outline: 2px solid var(--ickdwq-a1rg); outline-offset: 2px; }
.gppu svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .gppu.xmbnk2{ animation:none; }
  .gppu,.ziw33,.xf581{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.ziw33{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--u2m-vj2); border-radius: var(--uwy8-jib); box-shadow: var(--uhuo-j69);
  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;
}
.o73q.jr2ql .ziw33{ right:auto; left:24px; }
.ziw33.mv75h{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.vmo63i{
  padding:16px 20px; background:var(--u2m-vj2); border-bottom:1px solid var(--a0c9ns-h7);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ekb1{ width:10px; height:10px; border-radius:50%; background:var(--ickdwq-a1rg); flex-shrink:0; }
.bjs8l{ flex:1; min-width:0; }
.hpmpbt{ font-size:16px; font-weight:600; color:var(--bxa2-qjk); margin:0 0 2px 0; }
.bqeyj0{ font-size:13px; color:var(--j9nx-xvb); margin:0; }
.tm92f{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--j9nx-xvb);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.tm92f:hover{ background:var(--bg01qb-r5mh); color:var(--bxa2-qjk); }
.tm92f:focus{ outline:2px solid var(--ickdwq-a1rg); outline-offset:2px; }
.tm92f svg{ width:20px; height:20px; }

/* Body */
.r4pm{
  flex:1; overflow-y:auto; padding:16px; background:var(--bg01qb-r5mh);
  display:flex; flex-direction:column; gap:12px;
}
.r4pm::-webkit-scrollbar{ width:6px; }
.r4pm::-webkit-scrollbar-track{ background:transparent; }
.r4pm::-webkit-scrollbar-thumb{ background:var(--a0c9ns-h7); border-radius:3px; }
.r4pm::-webkit-scrollbar-thumb:hover{ background:var(--j9nx-xvb); }

/* Messages */
.xf581{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.xf581.wm0k8{ flex-direction:row-reverse; }
.smy8{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.smy8 a{ color:inherit; }
.xf581.ttlwo .smy8{ background:var(--u2m-vj2); color:var(--bxa2-qjk); border-bottom-left-radius:4px; }
.xf581.wm0k8 .smy8{ background:var(--ickdwq-a1rg); color:#fff; border-bottom-right-radius:4px; }
.w6e1{ font-size:11px; color:var(--j9nx-xvb); margin-top:4px; display:block; }

/* Typing Indicator */
.oa7g3{
  display:flex; gap:8px; padding:10px 14px; background:var(--u2m-vj2);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.bqry{ width:8px; height:8px; border-radius:50%; background:var(--j9nx-xvb); animation:typingDot 1.4s infinite; }
.bqry:nth-child(2){ animation-delay:.2s; }
.bqry: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) */
.x7737{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.o15gj{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ickdwq-a1rg); 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(--gxtl-b8);
}
.o15gj:is(:hover,:focus){ transform:translateY(-1px); }
a.o15gj{ text-decoration:none; display:inline-block; }
a.o15gj:link, a.o15gj:visited{ color:#fff; }
a.o15gj:hover, a.o15gj:focus{ color:#fff; }

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

/* Footer */
.fxe1{
  padding:16px; background:var(--u2m-vj2); border-top:1px solid var(--a0c9ns-h7);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.si6q{
  flex:1; padding:10px 14px; border:1px solid var(--a0c9ns-h7); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--bxa2-qjk);
  background:var(--bg01qb-r5mh); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.si6q:focus{ border-color:var(--ickdwq-a1rg); }
.si6q::placeholder{ color:var(--j9nx-xvb); }
.si6q.pjazxd{ border-color:#c00; }
.hzi6sg{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ickdwq-a1rg); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.hzi6sg:disabled{ opacity:.5; cursor:not-allowed; }
.hzi6sg:not(:disabled):hover{ transform:scale(1.05); }
.hzi6sg:not(:disabled):active{ transform:scale(0.95); }
.hzi6sg:focus{ outline:2px solid var(--ickdwq-a1rg); outline-offset:2px; }
.hzi6sg svg{ width:20px; height:20px; }

/* Character Counter */
.wcs65{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--j9nx-xvb); }
.wcs65.qjxz{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.wlf7z{
  align-self:flex-start;
  max-width:75%;
  background: var(--u2m-vj2);
  color: var(--bxa2-qjk);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--gxtl-b8);
}
.aexa6z{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.xk8bz.e7y5d6{
  background: transparent; color: var(--bxa2-qjk); border-color: var(--a0c9ns-h7);
}
.xk8bz.e7y5d6:hover{
  background: var(--ickdwq-a1rg); color:#fff; border-color: var(--ickdwq-a1rg);
}

/* Mobile */
@media (max-width: 768px){
  .o73q{ bottom:16px; right:16px; }
  .o73q.jr2ql{ left:16px; }
  .gppu{ --sna-f3q2:60px; }
  .ziw33{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--uwy8-jib) var(--uwy8-jib) 0 0; transform: translateY(100%);
  }
  .ziw33.mv75h{ transform: translateY(0); }
  .vmo63i{ padding:20px; }
  .fxe1{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.o73q :focus-visible{ outline:2px solid var(--ickdwq-a1rg); outline-offset:2px; }

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