/* CSS Variables */
:root {
  --w250-yx: #4f46e5;
  --doldx-v2: #ffffff;
  --py7cx-xxmo: #f9fafb;
  --ldu-apv: #0f172a;
  --uuj0-ct: #6b7280;
  --ewtv8h-r4: #e5e7eb;
  --whpq-yqn: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --irzj1-bawe: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ifv-ti8f: 16px;
  --naa-pt7i: 56px;
  --xth4dx-sn: 12px;
  --gtyo-wlaq: 999999;
}

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

/* Main Container */
.clo-c3lhlid5 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--gtyo-wlaq);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ldu-apv);
}
.clo-c3lhlid5.clo-qu8r3cmpynx { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.clo-f3ogt1gsj { display: flex; flex-direction: column-reverse; gap: var(--xth4dx-sn); align-items: center; }
.clo-u20frfdb5qrt {
  width: var(--naa-pt7i); height: var(--naa-pt7i); min-width: var(--naa-pt7i); min-height: var(--naa-pt7i);
  border-radius: 50%; border: none; background: var(--w250-yx); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--whpq-yqn);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.clo-u20frfdb5qrt:hover { transform: scale(1.05); box-shadow: var(--irzj1-bawe); }
.clo-u20frfdb5qrt:active { transform: scale(0.95); }
.clo-u20frfdb5qrt:focus { outline: 2px solid var(--w250-yx); outline-offset: 2px; }
.clo-u20frfdb5qrt svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .clo-u20frfdb5qrt.clo-fideq8kd{ animation:none; }
  .clo-u20frfdb5qrt,.clo-fv5gwyuwgy,.clo-tw2v1pgt{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.clo-fv5gwyuwgy{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--doldx-v2); border-radius: var(--ifv-ti8f); box-shadow: var(--irzj1-bawe);
  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;
}
.clo-c3lhlid5.clo-qu8r3cmpynx .clo-fv5gwyuwgy{ right:auto; left:24px; }
.clo-fv5gwyuwgy.clo-pmmltpsc{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.clo-khm0l5m5ukz8{
  padding:16px 20px; background:var(--doldx-v2); border-bottom:1px solid var(--ewtv8h-r4);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.clo-sxo9rr6b4{ width:10px; height:10px; border-radius:50%; background:var(--w250-yx); flex-shrink:0; }
.clo-xwim5ondxy8{ flex:1; min-width:0; }
.clo-bxtp5y0wvms{ font-size:16px; font-weight:600; color:var(--ldu-apv); margin:0 0 2px 0; }
.clo-dxt9l6db3l6{ font-size:13px; color:var(--uuj0-ct); margin:0; }
.clo-cj3dyvqlj2c{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--uuj0-ct);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.clo-cj3dyvqlj2c:hover{ background:var(--py7cx-xxmo); color:var(--ldu-apv); }
.clo-cj3dyvqlj2c:focus{ outline:2px solid var(--w250-yx); outline-offset:2px; }
.clo-cj3dyvqlj2c svg{ width:20px; height:20px; }

/* Body */
.clo-bzmcfalneyt4{
  flex:1; overflow-y:auto; padding:16px; background:var(--py7cx-xxmo);
  display:flex; flex-direction:column; gap:12px;
}
.clo-bzmcfalneyt4::-webkit-scrollbar{ width:6px; }
.clo-bzmcfalneyt4::-webkit-scrollbar-track{ background:transparent; }
.clo-bzmcfalneyt4::-webkit-scrollbar-thumb{ background:var(--ewtv8h-r4); border-radius:3px; }
.clo-bzmcfalneyt4::-webkit-scrollbar-thumb:hover{ background:var(--uuj0-ct); }

/* Messages */
.clo-tw2v1pgt{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.clo-tw2v1pgt.clo-ix1s9z8vxz0i{ flex-direction:row-reverse; }
.clo-d086okfoarh3{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.clo-d086okfoarh3 a{ color:inherit; }
.clo-tw2v1pgt.clo-ymu0l9xojg .clo-d086okfoarh3{ background:var(--doldx-v2); color:var(--ldu-apv); border-bottom-left-radius:4px; }
.clo-tw2v1pgt.clo-ix1s9z8vxz0i .clo-d086okfoarh3{ background:var(--w250-yx); color:#fff; border-bottom-right-radius:4px; }
.clo-zcxlay8xwh{ font-size:11px; color:var(--uuj0-ct); margin-top:4px; display:block; }

/* Typing Indicator */
.clo-ogpcqbgs4{
  display:flex; gap:8px; padding:10px 14px; background:var(--doldx-v2);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.clo-q2uu4ex7cktq{ width:8px; height:8px; border-radius:50%; background:var(--uuj0-ct); animation:typingDot 1.4s infinite; }
.clo-q2uu4ex7cktq:nth-child(2){ animation-delay:.2s; }
.clo-q2uu4ex7cktq: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) */
.clo-am4bu9fp{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.clo-qea3m29ye5{
  border:0; border-radius:999px; padding:8px 12px; background:var(--w250-yx); 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(--whpq-yqn);
}
.clo-qea3m29ye5:is(:hover,:focus){ transform:translateY(-1px); }
a.clo-qea3m29ye5{ text-decoration:none; display:inline-block; }
a.clo-qea3m29ye5:link, a.clo-qea3m29ye5:visited{ color:#fff; }
a.clo-qea3m29ye5:hover, a.clo-qea3m29ye5:focus{ color:#fff; }

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

/* Footer */
.clo-n9dzu990lk{
  padding:16px; background:var(--doldx-v2); border-top:1px solid var(--ewtv8h-r4);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.clo-dgyxk9udgx{
  flex:1; padding:10px 14px; border:1px solid var(--ewtv8h-r4); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ldu-apv);
  background:var(--py7cx-xxmo); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.clo-dgyxk9udgx:focus{ border-color:var(--w250-yx); }
.clo-dgyxk9udgx::placeholder{ color:var(--uuj0-ct); }
.clo-dgyxk9udgx.clo-y9eb513qc{ border-color:#c00; }
.clo-ce8l9px5mf{
  width:40px; height:40px; min-width:40px; border:none; background:var(--w250-yx); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.clo-ce8l9px5mf:disabled{ opacity:.5; cursor:not-allowed; }
.clo-ce8l9px5mf:not(:disabled):hover{ transform:scale(1.05); }
.clo-ce8l9px5mf:not(:disabled):active{ transform:scale(0.95); }
.clo-ce8l9px5mf:focus{ outline:2px solid var(--w250-yx); outline-offset:2px; }
.clo-ce8l9px5mf svg{ width:20px; height:20px; }

/* Character Counter */
.clo-mrt8g886{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--uuj0-ct); }
.clo-mrt8g886.clo-j1g0chu61hc{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.clo-gaf138wa{
  align-self:flex-start;
  max-width:75%;
  background: var(--doldx-v2);
  color: var(--ldu-apv);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--whpq-yqn);
}
.clo-x1tjrgub80vw{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.clo-qr0idasgks.clo-jov9wbevh{
  background: transparent; color: var(--ldu-apv); border-color: var(--ewtv8h-r4);
}
.clo-qr0idasgks.clo-jov9wbevh:hover{
  background: var(--w250-yx); color:#fff; border-color: var(--w250-yx);
}

/* Mobile */
@media (max-width: 768px){
  .clo-c3lhlid5{ bottom:16px; right:16px; }
  .clo-c3lhlid5.clo-qu8r3cmpynx{ left:16px; }
  .clo-u20frfdb5qrt{ --naa-pt7i:60px; }
  .clo-fv5gwyuwgy{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ifv-ti8f) var(--ifv-ti8f) 0 0; transform: translateY(100%);
  }
  .clo-fv5gwyuwgy.clo-pmmltpsc{ transform: translateY(0); }
  .clo-khm0l5m5ukz8{ padding:20px; }
  .clo-n9dzu990lk{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.clo-c3lhlid5 :focus-visible{ outline:2px solid var(--w250-yx); outline-offset:2px; }

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