/* CSS Variables */
:root {
  --jtpwq5-xfb: #4f46e5;
  --z078l-bh2: #ffffff;
  --dsekk-eq: #f9fafb;
  --b1cv-v9f: #0f172a;
  --kuqb5l-n72: #6b7280;
  --b4mp-emy: #e5e7eb;
  --lf6-y1m2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --go0-g4: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --yr2ek-nu: 16px;
  --gz42h4-gyy: 56px;
  --xnu-nbsx: 12px;
  --qq89-zyn: 999999;
}

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

/* Main Container */
.pjg5Xpbf {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--qq89-zyn);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--b1cv-v9f);
}
.pjg5Xpbf.u20K7up { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.fkQjq { display: flex; flex-direction: column-reverse; gap: var(--xnu-nbsx); align-items: center; }
.i27Knk {
  width: var(--gz42h4-gyy); height: var(--gz42h4-gyy); min-width: var(--gz42h4-gyy); min-height: var(--gz42h4-gyy);
  border-radius: 50%; border: none; background: var(--jtpwq5-xfb); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--lf6-y1m2);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.i27Knk:hover { transform: scale(1.05); box-shadow: var(--go0-g4); }
.i27Knk:active { transform: scale(0.95); }
.i27Knk:focus { outline: 2px solid var(--jtpwq5-xfb); outline-offset: 2px; }
.i27Knk svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .i27Knk.cyApq{ animation:none; }
  .i27Knk,.iqMj5,.pog9T1ss{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.iqMj5{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--z078l-bh2); border-radius: var(--yr2ek-nu); box-shadow: var(--go0-g4);
  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;
}
.pjg5Xpbf.u20K7up .iqMj5{ right:auto; left:24px; }
.iqMj5.jtcrMywq{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ooiFiy{
  padding:16px 20px; background:var(--z078l-bh2); border-bottom:1px solid var(--b4mp-emy);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.g7iBfcy{ width:10px; height:10px; border-radius:50%; background:var(--jtpwq5-xfb); flex-shrink:0; }
.hf4Gtza{ flex:1; min-width:0; }
.syB36{ font-size:16px; font-weight:600; color:var(--b1cv-v9f); margin:0 0 2px 0; }
.xxxjQy9q{ font-size:13px; color:var(--kuqb5l-n72); margin:0; }
.ptuJdr{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--kuqb5l-n72);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ptuJdr:hover{ background:var(--dsekk-eq); color:var(--b1cv-v9f); }
.ptuJdr:focus{ outline:2px solid var(--jtpwq5-xfb); outline-offset:2px; }
.ptuJdr svg{ width:20px; height:20px; }

/* Body */
.eiVi0{
  flex:1; overflow-y:auto; padding:16px; background:var(--dsekk-eq);
  display:flex; flex-direction:column; gap:12px;
}
.eiVi0::-webkit-scrollbar{ width:6px; }
.eiVi0::-webkit-scrollbar-track{ background:transparent; }
.eiVi0::-webkit-scrollbar-thumb{ background:var(--b4mp-emy); border-radius:3px; }
.eiVi0::-webkit-scrollbar-thumb:hover{ background:var(--kuqb5l-n72); }

/* Messages */
.pog9T1ss{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pog9T1ss.t1vIt56{ flex-direction:row-reverse; }
.jueIpwz{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.jueIpwz a{ color:inherit; }
.pog9T1ss.pvApv .jueIpwz{ background:var(--z078l-bh2); color:var(--b1cv-v9f); border-bottom-left-radius:4px; }
.pog9T1ss.t1vIt56 .jueIpwz{ background:var(--jtpwq5-xfb); color:#fff; border-bottom-right-radius:4px; }
.ljgWsi3{ font-size:11px; color:var(--kuqb5l-n72); margin-top:4px; display:block; }

/* Typing Indicator */
.h4dGo9e{
  display:flex; gap:8px; padding:10px 14px; background:var(--z078l-bh2);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.gx7R51{ width:8px; height:8px; border-radius:50%; background:var(--kuqb5l-n72); animation:typingDot 1.4s infinite; }
.gx7R51:nth-child(2){ animation-delay:.2s; }
.gx7R51: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) */
.l3Q37{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.cu6nHepj{
  border:0; border-radius:999px; padding:8px 12px; background:var(--jtpwq5-xfb); 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(--lf6-y1m2);
}
.cu6nHepj:is(:hover,:focus){ transform:translateY(-1px); }
a.cu6nHepj{ text-decoration:none; display:inline-block; }
a.cu6nHepj:link, a.cu6nHepj:visited{ color:#fff; }
a.cu6nHepj:hover, a.cu6nHepj:focus{ color:#fff; }

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

/* Footer */
.om4hBnmo{
  padding:16px; background:var(--z078l-bh2); border-top:1px solid var(--b4mp-emy);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pvesXkzu{
  flex:1; padding:10px 14px; border:1px solid var(--b4mp-emy); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--b1cv-v9f);
  background:var(--dsekk-eq); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pvesXkzu:focus{ border-color:var(--jtpwq5-xfb); }
.pvesXkzu::placeholder{ color:var(--kuqb5l-n72); }
.pvesXkzu.syQau{ border-color:#c00; }
.y8Gno{
  width:40px; height:40px; min-width:40px; border:none; background:var(--jtpwq5-xfb); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.y8Gno:disabled{ opacity:.5; cursor:not-allowed; }
.y8Gno:not(:disabled):hover{ transform:scale(1.05); }
.y8Gno:not(:disabled):active{ transform:scale(0.95); }
.y8Gno:focus{ outline:2px solid var(--jtpwq5-xfb); outline-offset:2px; }
.y8Gno svg{ width:20px; height:20px; }

/* Character Counter */
.xbm0Bkfe{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--kuqb5l-n72); }
.xbm0Bkfe.mnpSjv{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.wi88Li0b{
  align-self:flex-start;
  max-width:75%;
  background: var(--z078l-bh2);
  color: var(--b1cv-v9f);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--lf6-y1m2);
}
.o7dLfh{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.a2cNx4.al7xE4lk{
  background: transparent; color: var(--b1cv-v9f); border-color: var(--b4mp-emy);
}
.a2cNx4.al7xE4lk:hover{
  background: var(--jtpwq5-xfb); color:#fff; border-color: var(--jtpwq5-xfb);
}

/* Mobile */
@media (max-width: 768px){
  .pjg5Xpbf{ bottom:16px; right:16px; }
  .pjg5Xpbf.u20K7up{ left:16px; }
  .i27Knk{ --gz42h4-gyy:60px; }
  .iqMj5{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--yr2ek-nu) var(--yr2ek-nu) 0 0; transform: translateY(100%);
  }
  .iqMj5.jtcrMywq{ transform: translateY(0); }
  .ooiFiy{ padding:20px; }
  .om4hBnmo{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.pjg5Xpbf :focus-visible{ outline:2px solid var(--jtpwq5-xfb); outline-offset:2px; }

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