/* CSS Variables */
:root {
  --ok6-qi7: #4f46e5;
  --bq75-b55: #ffffff;
  --tuxo-cn: #f9fafb;
  --t4tj-jhba: #0f172a;
  --qwvwn-r86v: #6b7280;
  --dgbq-bv8t: #e5e7eb;
  --pg5-xg2u: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --whixo9-vn: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --yh9vn3-ja: 16px;
  --vq9in-zd: 56px;
  --ftlsq3-bu1: 12px;
  --gijfs-t2cf: 999999;
}

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

/* Main Container */
.ig10Xz8k {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--gijfs-t2cf);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--t4tj-jhba);
}
.ig10Xz8k.z5omBrlw { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.quyTwly { display: flex; flex-direction: column-reverse; gap: var(--ftlsq3-bu1); align-items: center; }
.akuO2q {
  width: var(--vq9in-zd); height: var(--vq9in-zd); min-width: var(--vq9in-zd); min-height: var(--vq9in-zd);
  border-radius: 50%; border: none; background: var(--ok6-qi7); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--pg5-xg2u);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.akuO2q:hover { transform: scale(1.05); box-shadow: var(--whixo9-vn); }
.akuO2q:active { transform: scale(0.95); }
.akuO2q:focus { outline: 2px solid var(--ok6-qi7); outline-offset: 2px; }
.akuO2q svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .akuO2q.ldwHgo{ animation:none; }
  .akuO2q,.z2Bkm,.xpiR6v{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.z2Bkm{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--bq75-b55); border-radius: var(--yh9vn3-ja); box-shadow: var(--whixo9-vn);
  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;
}
.ig10Xz8k.z5omBrlw .z2Bkm{ right:auto; left:24px; }
.z2Bkm.qusAkf{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.nj7T1c{
  padding:16px 20px; background:var(--bq75-b55); border-bottom:1px solid var(--dgbq-bv8t);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ef9yU7x6{ width:10px; height:10px; border-radius:50%; background:var(--ok6-qi7); flex-shrink:0; }
.yjhWtk{ flex:1; min-width:0; }
.wbEou{ font-size:16px; font-weight:600; color:var(--t4tj-jhba); margin:0 0 2px 0; }
.gj5Lhc{ font-size:13px; color:var(--qwvwn-r86v); margin:0; }
.czwaL36e{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--qwvwn-r86v);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.czwaL36e:hover{ background:var(--tuxo-cn); color:var(--t4tj-jhba); }
.czwaL36e:focus{ outline:2px solid var(--ok6-qi7); outline-offset:2px; }
.czwaL36e svg{ width:20px; height:20px; }

/* Body */
.ugrAd5u{
  flex:1; overflow-y:auto; padding:16px; background:var(--tuxo-cn);
  display:flex; flex-direction:column; gap:12px;
}
.ugrAd5u::-webkit-scrollbar{ width:6px; }
.ugrAd5u::-webkit-scrollbar-track{ background:transparent; }
.ugrAd5u::-webkit-scrollbar-thumb{ background:var(--dgbq-bv8t); border-radius:3px; }
.ugrAd5u::-webkit-scrollbar-thumb:hover{ background:var(--qwvwn-r86v); }

/* Messages */
.xpiR6v{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.xpiR6v.cybvM8s2{ flex-direction:row-reverse; }
.arwH651{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.arwH651 a{ color:inherit; }
.xpiR6v.f2zHuok .arwH651{ background:var(--bq75-b55); color:var(--t4tj-jhba); border-bottom-left-radius:4px; }
.xpiR6v.cybvM8s2 .arwH651{ background:var(--ok6-qi7); color:#fff; border-bottom-right-radius:4px; }
.n14Lk69{ font-size:11px; color:var(--qwvwn-r86v); margin-top:4px; display:block; }

/* Typing Indicator */
.y93Xvz{
  display:flex; gap:8px; padding:10px 14px; background:var(--bq75-b55);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.eroJyeq{ width:8px; height:8px; border-radius:50%; background:var(--qwvwn-r86v); animation:typingDot 1.4s infinite; }
.eroJyeq:nth-child(2){ animation-delay:.2s; }
.eroJyeq: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) */
.heiKj2{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ygs4Oiii{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ok6-qi7); 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(--pg5-xg2u);
}
.ygs4Oiii:is(:hover,:focus){ transform:translateY(-1px); }
a.ygs4Oiii{ text-decoration:none; display:inline-block; }
a.ygs4Oiii:link, a.ygs4Oiii:visited{ color:#fff; }
a.ygs4Oiii:hover, a.ygs4Oiii:focus{ color:#fff; }

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

/* Footer */
.zwCz7{
  padding:16px; background:var(--bq75-b55); border-top:1px solid var(--dgbq-bv8t);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.flmVrz{
  flex:1; padding:10px 14px; border:1px solid var(--dgbq-bv8t); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--t4tj-jhba);
  background:var(--tuxo-cn); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.flmVrz:focus{ border-color:var(--ok6-qi7); }
.flmVrz::placeholder{ color:var(--qwvwn-r86v); }
.flmVrz.gjacPgma{ border-color:#c00; }
.ueu7Tnzq{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ok6-qi7); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ueu7Tnzq:disabled{ opacity:.5; cursor:not-allowed; }
.ueu7Tnzq:not(:disabled):hover{ transform:scale(1.05); }
.ueu7Tnzq:not(:disabled):active{ transform:scale(0.95); }
.ueu7Tnzq:focus{ outline:2px solid var(--ok6-qi7); outline-offset:2px; }
.ueu7Tnzq svg{ width:20px; height:20px; }

/* Character Counter */
.ruobKa8k{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--qwvwn-r86v); }
.ruobKa8k.jkvBo86{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.r40Ost{
  align-self:flex-start;
  max-width:75%;
  background: var(--bq75-b55);
  color: var(--t4tj-jhba);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--pg5-xg2u);
}
.ctnAry{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ld1Zkg.mfBdy{
  background: transparent; color: var(--t4tj-jhba); border-color: var(--dgbq-bv8t);
}
.ld1Zkg.mfBdy:hover{
  background: var(--ok6-qi7); color:#fff; border-color: var(--ok6-qi7);
}

/* Mobile */
@media (max-width: 768px){
  .ig10Xz8k{ bottom:16px; right:16px; }
  .ig10Xz8k.z5omBrlw{ left:16px; }
  .akuO2q{ --vq9in-zd:60px; }
  .z2Bkm{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--yh9vn3-ja) var(--yh9vn3-ja) 0 0; transform: translateY(100%);
  }
  .z2Bkm.qusAkf{ transform: translateY(0); }
  .nj7T1c{ padding:20px; }
  .zwCz7{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ig10Xz8k :focus-visible{ outline:2px solid var(--ok6-qi7); outline-offset:2px; }

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