/* CSS Variables */
:root {
  --azto-cm: #4f46e5;
  --r745lx-il4: #ffffff;
  --jafcsu-js: #f9fafb;
  --pj8s-s8a: #0f172a;
  --g385j-gr: #6b7280;
  --jclwn3-ig: #e5e7eb;
  --m6a3mf-gcx: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --iaayhz-r2: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --e8x6i-nci: 16px;
  --lnzq-p7k: 56px;
  --jek39-a2: 12px;
  --lqqe6s-cd: 999999;
}

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

/* Main Container */
.e1jb6a {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--lqqe6s-cd);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--pj8s-s8a);
}
.e1jb6a.owq8a72 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.lmjbwdgo0v { display: flex; flex-direction: column-reverse; gap: var(--jek39-a2); align-items: center; }
.e62njugq {
  width: var(--lnzq-p7k); height: var(--lnzq-p7k); min-width: var(--lnzq-p7k); min-height: var(--lnzq-p7k);
  border-radius: 50%; border: none; background: var(--azto-cm); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--m6a3mf-gcx);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.e62njugq:hover { transform: scale(1.05); box-shadow: var(--iaayhz-r2); }
.e62njugq:active { transform: scale(0.95); }
.e62njugq:focus { outline: 2px solid var(--azto-cm); outline-offset: 2px; }
.e62njugq svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .e62njugq.ff2hlq3i4v{ animation:none; }
  .e62njugq,.qhccqs,.sxy5ae8h91{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.qhccqs{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--r745lx-il4); border-radius: var(--e8x6i-nci); box-shadow: var(--iaayhz-r2);
  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;
}
.e1jb6a.owq8a72 .qhccqs{ right:auto; left:24px; }
.qhccqs.zvr4vt{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ia868wmjny{
  padding:16px 20px; background:var(--r745lx-il4); border-bottom:1px solid var(--jclwn3-ig);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.w3zdm49{ width:10px; height:10px; border-radius:50%; background:var(--azto-cm); flex-shrink:0; }
.h7sz2c485{ flex:1; min-width:0; }
.n6s0504{ font-size:16px; font-weight:600; color:var(--pj8s-s8a); margin:0 0 2px 0; }
.h1ewde{ font-size:13px; color:var(--g385j-gr); margin:0; }
.ey_hnj{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--g385j-gr);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ey_hnj:hover{ background:var(--jafcsu-js); color:var(--pj8s-s8a); }
.ey_hnj:focus{ outline:2px solid var(--azto-cm); outline-offset:2px; }
.ey_hnj svg{ width:20px; height:20px; }

/* Body */
.mqa514{
  flex:1; overflow-y:auto; padding:16px; background:var(--jafcsu-js);
  display:flex; flex-direction:column; gap:12px;
}
.mqa514::-webkit-scrollbar{ width:6px; }
.mqa514::-webkit-scrollbar-track{ background:transparent; }
.mqa514::-webkit-scrollbar-thumb{ background:var(--jclwn3-ig); border-radius:3px; }
.mqa514::-webkit-scrollbar-thumb:hover{ background:var(--g385j-gr); }

/* Messages */
.sxy5ae8h91{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.sxy5ae8h91.ifbs6ado{ flex-direction:row-reverse; }
.b2t67sdqdu{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.b2t67sdqdu a{ color:inherit; }
.sxy5ae8h91.d4vvv4d0 .b2t67sdqdu{ background:var(--r745lx-il4); color:var(--pj8s-s8a); border-bottom-left-radius:4px; }
.sxy5ae8h91.ifbs6ado .b2t67sdqdu{ background:var(--azto-cm); color:#fff; border-bottom-right-radius:4px; }
.wkfgmggu0{ font-size:11px; color:var(--g385j-gr); margin-top:4px; display:block; }

/* Typing Indicator */
.zdbkzw1dq{
  display:flex; gap:8px; padding:10px 14px; background:var(--r745lx-il4);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.qc9g9fov{ width:8px; height:8px; border-radius:50%; background:var(--g385j-gr); animation:typingDot 1.4s infinite; }
.qc9g9fov:nth-child(2){ animation-delay:.2s; }
.qc9g9fov: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) */
.udf4dbe3i{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.mzrwwiv{
  border:0; border-radius:999px; padding:8px 12px; background:var(--azto-cm); 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(--m6a3mf-gcx);
}
.mzrwwiv:is(:hover,:focus){ transform:translateY(-1px); }
a.mzrwwiv{ text-decoration:none; display:inline-block; }
a.mzrwwiv:link, a.mzrwwiv:visited{ color:#fff; }
a.mzrwwiv:hover, a.mzrwwiv:focus{ color:#fff; }

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

/* Footer */
.z849km{
  padding:16px; background:var(--r745lx-il4); border-top:1px solid var(--jclwn3-ig);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.cdycf2gj{
  flex:1; padding:10px 14px; border:1px solid var(--jclwn3-ig); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--pj8s-s8a);
  background:var(--jafcsu-js); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.cdycf2gj:focus{ border-color:var(--azto-cm); }
.cdycf2gj::placeholder{ color:var(--g385j-gr); }
.cdycf2gj.k_iz08{ border-color:#c00; }
.fc48lnj{
  width:40px; height:40px; min-width:40px; border:none; background:var(--azto-cm); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.fc48lnj:disabled{ opacity:.5; cursor:not-allowed; }
.fc48lnj:not(:disabled):hover{ transform:scale(1.05); }
.fc48lnj:not(:disabled):active{ transform:scale(0.95); }
.fc48lnj:focus{ outline:2px solid var(--azto-cm); outline-offset:2px; }
.fc48lnj svg{ width:20px; height:20px; }

/* Character Counter */
.gfwrvo{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--g385j-gr); }
.gfwrvo.dwjyxjjn{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.hw5qbfd{
  align-self:flex-start;
  max-width:75%;
  background: var(--r745lx-il4);
  color: var(--pj8s-s8a);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--m6a3mf-gcx);
}
.owc4egc6{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.o4joufxvd.ctqn1logt{
  background: transparent; color: var(--pj8s-s8a); border-color: var(--jclwn3-ig);
}
.o4joufxvd.ctqn1logt:hover{
  background: var(--azto-cm); color:#fff; border-color: var(--azto-cm);
}

/* Mobile */
@media (max-width: 768px){
  .e1jb6a{ bottom:16px; right:16px; }
  .e1jb6a.owq8a72{ left:16px; }
  .e62njugq{ --lnzq-p7k:60px; }
  .qhccqs{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--e8x6i-nci) var(--e8x6i-nci) 0 0; transform: translateY(100%);
  }
  .qhccqs.zvr4vt{ transform: translateY(0); }
  .ia868wmjny{ padding:20px; }
  .z849km{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.e1jb6a :focus-visible{ outline:2px solid var(--azto-cm); outline-offset:2px; }

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