/* CSS Variables */
:root {
  --m3b6-n1a: #4f46e5;
  --qewh-ntx: #ffffff;
  --mslt6m-cy: #f9fafb;
  --bou2b-vyo: #0f172a;
  --m5132d-jhx: #6b7280;
  --jdcv-iej: #e5e7eb;
  --osmtg-i4h: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --mwkfh-oft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ecxqo-jf: 16px;
  --lg2f4-x1: 56px;
  --b0je-huu: 12px;
  --m8i-zvvp: 999999;
}

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

/* Main Container */
.wyncj {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--m8i-zvvp);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--bou2b-vyo);
}
.wyncj.lmzo { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.c2jj { display: flex; flex-direction: column-reverse; gap: var(--b0je-huu); align-items: center; }
.pozjl {
  width: var(--lg2f4-x1); height: var(--lg2f4-x1); min-width: var(--lg2f4-x1); min-height: var(--lg2f4-x1);
  border-radius: 50%; border: none; background: var(--m3b6-n1a); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--osmtg-i4h);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.pozjl:hover { transform: scale(1.05); box-shadow: var(--mwkfh-oft); }
.pozjl:active { transform: scale(0.95); }
.pozjl:focus { outline: 2px solid var(--m3b6-n1a); outline-offset: 2px; }
.pozjl svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pozjl.gja2{ animation:none; }
  .pozjl,.n00m4,.e1xb59{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.n00m4{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--qewh-ntx); border-radius: var(--ecxqo-jf); box-shadow: var(--mwkfh-oft);
  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;
}
.wyncj.lmzo .n00m4{ right:auto; left:24px; }
.n00m4.hr54sc{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.lyir2{
  padding:16px 20px; background:var(--qewh-ntx); border-bottom:1px solid var(--jdcv-iej);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.k5hz{ width:10px; height:10px; border-radius:50%; background:var(--m3b6-n1a); flex-shrink:0; }
.aipu{ flex:1; min-width:0; }
.wxti7j{ font-size:16px; font-weight:600; color:var(--bou2b-vyo); margin:0 0 2px 0; }
.an1q7{ font-size:13px; color:var(--m5132d-jhx); margin:0; }
.rw9m{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--m5132d-jhx);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.rw9m:hover{ background:var(--mslt6m-cy); color:var(--bou2b-vyo); }
.rw9m:focus{ outline:2px solid var(--m3b6-n1a); outline-offset:2px; }
.rw9m svg{ width:20px; height:20px; }

/* Body */
.frfo{
  flex:1; overflow-y:auto; padding:16px; background:var(--mslt6m-cy);
  display:flex; flex-direction:column; gap:12px;
}
.frfo::-webkit-scrollbar{ width:6px; }
.frfo::-webkit-scrollbar-track{ background:transparent; }
.frfo::-webkit-scrollbar-thumb{ background:var(--jdcv-iej); border-radius:3px; }
.frfo::-webkit-scrollbar-thumb:hover{ background:var(--m5132d-jhx); }

/* Messages */
.e1xb59{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.e1xb59.h5dm{ flex-direction:row-reverse; }
.khx3w{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.khx3w a{ color:inherit; }
.e1xb59.tqcww .khx3w{ background:var(--qewh-ntx); color:var(--bou2b-vyo); border-bottom-left-radius:4px; }
.e1xb59.h5dm .khx3w{ background:var(--m3b6-n1a); color:#fff; border-bottom-right-radius:4px; }
.nbgcnk{ font-size:11px; color:var(--m5132d-jhx); margin-top:4px; display:block; }

/* Typing Indicator */
.sb0cjv{
  display:flex; gap:8px; padding:10px 14px; background:var(--qewh-ntx);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ay52{ width:8px; height:8px; border-radius:50%; background:var(--m5132d-jhx); animation:typingDot 1.4s infinite; }
.ay52:nth-child(2){ animation-delay:.2s; }
.ay52: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) */
.pbg1i{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.uams{
  border:0; border-radius:999px; padding:8px 12px; background:var(--m3b6-n1a); 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(--osmtg-i4h);
}
.uams:is(:hover,:focus){ transform:translateY(-1px); }
a.uams{ text-decoration:none; display:inline-block; }
a.uams:link, a.uams:visited{ color:#fff; }
a.uams:hover, a.uams:focus{ color:#fff; }

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

/* Footer */
.fwqgy{
  padding:16px; background:var(--qewh-ntx); border-top:1px solid var(--jdcv-iej);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.mcqc{
  flex:1; padding:10px 14px; border:1px solid var(--jdcv-iej); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--bou2b-vyo);
  background:var(--mslt6m-cy); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.mcqc:focus{ border-color:var(--m3b6-n1a); }
.mcqc::placeholder{ color:var(--m5132d-jhx); }
.mcqc.xndly{ border-color:#c00; }
.e5vbym{
  width:40px; height:40px; min-width:40px; border:none; background:var(--m3b6-n1a); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.e5vbym:disabled{ opacity:.5; cursor:not-allowed; }
.e5vbym:not(:disabled):hover{ transform:scale(1.05); }
.e5vbym:not(:disabled):active{ transform:scale(0.95); }
.e5vbym:focus{ outline:2px solid var(--m3b6-n1a); outline-offset:2px; }
.e5vbym svg{ width:20px; height:20px; }

/* Character Counter */
.mc93{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--m5132d-jhx); }
.mc93.yxoda8{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.m0ls{
  align-self:flex-start;
  max-width:75%;
  background: var(--qewh-ntx);
  color: var(--bou2b-vyo);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--osmtg-i4h);
}
.x069{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.d5sa4.gcsz5i{
  background: transparent; color: var(--bou2b-vyo); border-color: var(--jdcv-iej);
}
.d5sa4.gcsz5i:hover{
  background: var(--m3b6-n1a); color:#fff; border-color: var(--m3b6-n1a);
}

/* Mobile */
@media (max-width: 768px){
  .wyncj{ bottom:16px; right:16px; }
  .wyncj.lmzo{ left:16px; }
  .pozjl{ --lg2f4-x1:60px; }
  .n00m4{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ecxqo-jf) var(--ecxqo-jf) 0 0; transform: translateY(100%);
  }
  .n00m4.hr54sc{ transform: translateY(0); }
  .lyir2{ padding:20px; }
  .fwqgy{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.wyncj :focus-visible{ outline:2px solid var(--m3b6-n1a); outline-offset:2px; }

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