/* CSS Variables */
:root {
  --vzs-bklg: #4f46e5;
  --bi1-onr: #ffffff;
  --j19m-nz: #f9fafb;
  --p8pgp-vxe: #0f172a;
  --ut6b5-lp: #6b7280;
  --ho8r-qq: #e5e7eb;
  --kf9-fuoa: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --x9dgf-aj2b: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --d7yh-tin: 16px;
  --wxkg-oxo6: 56px;
  --r4hx01-r5r: 12px;
  --bsyo-l99: 999999;
}

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

/* Main Container */
.ani-x6254uwsi {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--bsyo-l99);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--p8pgp-vxe);
}
.ani-x6254uwsi.ani-ywyugwnqjt { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ani-wo8yy9mi2y4 { display: flex; flex-direction: column-reverse; gap: var(--r4hx01-r5r); align-items: center; }
.ani-ve1gve66zsys {
  width: var(--wxkg-oxo6); height: var(--wxkg-oxo6); min-width: var(--wxkg-oxo6); min-height: var(--wxkg-oxo6);
  border-radius: 50%; border: none; background: var(--vzs-bklg); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--kf9-fuoa);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ani-ve1gve66zsys:hover { transform: scale(1.05); box-shadow: var(--x9dgf-aj2b); }
.ani-ve1gve66zsys:active { transform: scale(0.95); }
.ani-ve1gve66zsys:focus { outline: 2px solid var(--vzs-bklg); outline-offset: 2px; }
.ani-ve1gve66zsys svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ani-ve1gve66zsys.ani-gcadgp9ec{ animation:none; }
  .ani-ve1gve66zsys,.ani-j4r9xurk,.ani-t3kji2up{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.ani-j4r9xurk{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--bi1-onr); border-radius: var(--d7yh-tin); box-shadow: var(--x9dgf-aj2b);
  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;
}
.ani-x6254uwsi.ani-ywyugwnqjt .ani-j4r9xurk{ right:auto; left:24px; }
.ani-j4r9xurk.ani-p9d4uo9a{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ani-tkpxmu35{
  padding:16px 20px; background:var(--bi1-onr); border-bottom:1px solid var(--ho8r-qq);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ani-tbaqm6fr1o{ width:10px; height:10px; border-radius:50%; background:var(--vzs-bklg); flex-shrink:0; }
.ani-q0psmtyw{ flex:1; min-width:0; }
.ani-d24gbmru8nbn{ font-size:16px; font-weight:600; color:var(--p8pgp-vxe); margin:0 0 2px 0; }
.ani-f0d93vkmn{ font-size:13px; color:var(--ut6b5-lp); margin:0; }
.ani-b1xxwe01t2qg{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ut6b5-lp);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ani-b1xxwe01t2qg:hover{ background:var(--j19m-nz); color:var(--p8pgp-vxe); }
.ani-b1xxwe01t2qg:focus{ outline:2px solid var(--vzs-bklg); outline-offset:2px; }
.ani-b1xxwe01t2qg svg{ width:20px; height:20px; }

/* Body */
.ani-yi42tf4t{
  flex:1; overflow-y:auto; padding:16px; background:var(--j19m-nz);
  display:flex; flex-direction:column; gap:12px;
}
.ani-yi42tf4t::-webkit-scrollbar{ width:6px; }
.ani-yi42tf4t::-webkit-scrollbar-track{ background:transparent; }
.ani-yi42tf4t::-webkit-scrollbar-thumb{ background:var(--ho8r-qq); border-radius:3px; }
.ani-yi42tf4t::-webkit-scrollbar-thumb:hover{ background:var(--ut6b5-lp); }

/* Messages */
.ani-t3kji2up{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ani-t3kji2up.ani-bo1awlnw7dv{ flex-direction:row-reverse; }
.ani-uo2hg62avv{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ani-uo2hg62avv a{ color:inherit; }
.ani-t3kji2up.ani-jv1r7tg2n .ani-uo2hg62avv{ background:var(--bi1-onr); color:var(--p8pgp-vxe); border-bottom-left-radius:4px; }
.ani-t3kji2up.ani-bo1awlnw7dv .ani-uo2hg62avv{ background:var(--vzs-bklg); color:#fff; border-bottom-right-radius:4px; }
.ani-y3csg34rpoe{ font-size:11px; color:var(--ut6b5-lp); margin-top:4px; display:block; }

/* Typing Indicator */
.ani-s42a86orb8qp{
  display:flex; gap:8px; padding:10px 14px; background:var(--bi1-onr);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ani-hqjju2bcy{ width:8px; height:8px; border-radius:50%; background:var(--ut6b5-lp); animation:typingDot 1.4s infinite; }
.ani-hqjju2bcy:nth-child(2){ animation-delay:.2s; }
.ani-hqjju2bcy: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) */
.ani-s18zuh0x{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ani-tijreunocoj{
  border:0; border-radius:999px; padding:8px 12px; background:var(--vzs-bklg); 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(--kf9-fuoa);
}
.ani-tijreunocoj:is(:hover,:focus){ transform:translateY(-1px); }
a.ani-tijreunocoj{ text-decoration:none; display:inline-block; }
a.ani-tijreunocoj:link, a.ani-tijreunocoj:visited{ color:#fff; }
a.ani-tijreunocoj:hover, a.ani-tijreunocoj:focus{ color:#fff; }

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

/* Footer */
.ani-jp2k2px44m4{
  padding:16px; background:var(--bi1-onr); border-top:1px solid var(--ho8r-qq);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ani-sxaajjzw{
  flex:1; padding:10px 14px; border:1px solid var(--ho8r-qq); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--p8pgp-vxe);
  background:var(--j19m-nz); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ani-sxaajjzw:focus{ border-color:var(--vzs-bklg); }
.ani-sxaajjzw::placeholder{ color:var(--ut6b5-lp); }
.ani-sxaajjzw.ani-aq5lotc0ftij{ border-color:#c00; }
.ani-tslfmrr1{
  width:40px; height:40px; min-width:40px; border:none; background:var(--vzs-bklg); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ani-tslfmrr1:disabled{ opacity:.5; cursor:not-allowed; }
.ani-tslfmrr1:not(:disabled):hover{ transform:scale(1.05); }
.ani-tslfmrr1:not(:disabled):active{ transform:scale(0.95); }
.ani-tslfmrr1:focus{ outline:2px solid var(--vzs-bklg); outline-offset:2px; }
.ani-tslfmrr1 svg{ width:20px; height:20px; }

/* Character Counter */
.ani-xcwebhh2mtla{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ut6b5-lp); }
.ani-xcwebhh2mtla.ani-c60bfrdupw{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ani-emqr365od2y5{
  align-self:flex-start;
  max-width:75%;
  background: var(--bi1-onr);
  color: var(--p8pgp-vxe);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--kf9-fuoa);
}
.ani-udlbm2t972{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ani-h1cjsgdmdi.ani-w8kqghix{
  background: transparent; color: var(--p8pgp-vxe); border-color: var(--ho8r-qq);
}
.ani-h1cjsgdmdi.ani-w8kqghix:hover{
  background: var(--vzs-bklg); color:#fff; border-color: var(--vzs-bklg);
}

/* Mobile */
@media (max-width: 768px){
  .ani-x6254uwsi{ bottom:16px; right:16px; }
  .ani-x6254uwsi.ani-ywyugwnqjt{ left:16px; }
  .ani-ve1gve66zsys{ --wxkg-oxo6:60px; }
  .ani-j4r9xurk{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--d7yh-tin) var(--d7yh-tin) 0 0; transform: translateY(100%);
  }
  .ani-j4r9xurk.ani-p9d4uo9a{ transform: translateY(0); }
  .ani-tkpxmu35{ padding:20px; }
  .ani-jp2k2px44m4{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ani-x6254uwsi :focus-visible{ outline:2px solid var(--vzs-bklg); outline-offset:2px; }

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