/* CSS Variables */
:root {
  --cu2q-xwq: #4f46e5;
  --hfo6-yg9: #ffffff;
  --ac8-q7k: #f9fafb;
  --z8xvy4-bfn3: #0f172a;
  --vp5-jddb: #6b7280;
  --f16id6-sn: #e5e7eb;
  --rs0et-b7: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --vn8-gc: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --lzlltz-ss: 16px;
  --pd9-qcr: 56px;
  --c9g3qc-h7bb: 12px;
  --y1z7y8-rzc8: 999999;
}

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

/* Main Container */
.daAv8 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--y1z7y8-rzc8);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--z8xvy4-bfn3);
}
.daAv8.ppoyVcmm { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.l4zXcc { display: flex; flex-direction: column-reverse; gap: var(--c9g3qc-h7bb); align-items: center; }
.bu7wQ7oh {
  width: var(--pd9-qcr); height: var(--pd9-qcr); min-width: var(--pd9-qcr); min-height: var(--pd9-qcr);
  border-radius: 50%; border: none; background: var(--cu2q-xwq); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--rs0et-b7);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.bu7wQ7oh:hover { transform: scale(1.05); box-shadow: var(--vn8-gc); }
.bu7wQ7oh:active { transform: scale(0.95); }
.bu7wQ7oh:focus { outline: 2px solid var(--cu2q-xwq); outline-offset: 2px; }
.bu7wQ7oh svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .bu7wQ7oh.zcMo0{ animation:none; }
  .bu7wQ7oh,.gyrBj4p,.ruqCqc{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.gyrBj4p{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--hfo6-yg9); border-radius: var(--lzlltz-ss); box-shadow: var(--vn8-gc);
  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;
}
.daAv8.ppoyVcmm .gyrBj4p{ right:auto; left:24px; }
.gyrBj4p.cxnBv5{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.duPzd{
  padding:16px 20px; background:var(--hfo6-yg9); border-bottom:1px solid var(--f16id6-sn);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.jrcvL7d2{ width:10px; height:10px; border-radius:50%; background:var(--cu2q-xwq); flex-shrink:0; }
.eh4dLa4w{ flex:1; min-width:0; }
.zdpXblg{ font-size:16px; font-weight:600; color:var(--z8xvy4-bfn3); margin:0 0 2px 0; }
.ucL6r{ font-size:13px; color:var(--vp5-jddb); margin:0; }
.fq6Kyrk{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--vp5-jddb);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.fq6Kyrk:hover{ background:var(--ac8-q7k); color:var(--z8xvy4-bfn3); }
.fq6Kyrk:focus{ outline:2px solid var(--cu2q-xwq); outline-offset:2px; }
.fq6Kyrk svg{ width:20px; height:20px; }

/* Body */
.upkE0bl{
  flex:1; overflow-y:auto; padding:16px; background:var(--ac8-q7k);
  display:flex; flex-direction:column; gap:12px;
}
.upkE0bl::-webkit-scrollbar{ width:6px; }
.upkE0bl::-webkit-scrollbar-track{ background:transparent; }
.upkE0bl::-webkit-scrollbar-thumb{ background:var(--f16id6-sn); border-radius:3px; }
.upkE0bl::-webkit-scrollbar-thumb:hover{ background:var(--vp5-jddb); }

/* Messages */
.ruqCqc{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ruqCqc.bgxC6qt{ flex-direction:row-reverse; }
.vwrTw3{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.vwrTw3 a{ color:inherit; }
.ruqCqc.xp3Nys .vwrTw3{ background:var(--hfo6-yg9); color:var(--z8xvy4-bfn3); border-bottom-left-radius:4px; }
.ruqCqc.bgxC6qt .vwrTw3{ background:var(--cu2q-xwq); color:#fff; border-bottom-right-radius:4px; }
.vnNuh{ font-size:11px; color:var(--vp5-jddb); margin-top:4px; display:block; }

/* Typing Indicator */
.s6xQrkf{
  display:flex; gap:8px; padding:10px 14px; background:var(--hfo6-yg9);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.syzZ1n{ width:8px; height:8px; border-radius:50%; background:var(--vp5-jddb); animation:typingDot 1.4s infinite; }
.syzZ1n:nth-child(2){ animation-delay:.2s; }
.syzZ1n: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) */
.si45K170{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ejgsIs63{
  border:0; border-radius:999px; padding:8px 12px; background:var(--cu2q-xwq); 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(--rs0et-b7);
}
.ejgsIs63:is(:hover,:focus){ transform:translateY(-1px); }
a.ejgsIs63{ text-decoration:none; display:inline-block; }
a.ejgsIs63:link, a.ejgsIs63:visited{ color:#fff; }
a.ejgsIs63:hover, a.ejgsIs63:focus{ color:#fff; }

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

/* Footer */
.v04dXben{
  padding:16px; background:var(--hfo6-yg9); border-top:1px solid var(--f16id6-sn);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.n5hsOndg{
  flex:1; padding:10px 14px; border:1px solid var(--f16id6-sn); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--z8xvy4-bfn3);
  background:var(--ac8-q7k); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.n5hsOndg:focus{ border-color:var(--cu2q-xwq); }
.n5hsOndg::placeholder{ color:var(--vp5-jddb); }
.n5hsOndg.xcsAq2y{ border-color:#c00; }
.is4Zaui{
  width:40px; height:40px; min-width:40px; border:none; background:var(--cu2q-xwq); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.is4Zaui:disabled{ opacity:.5; cursor:not-allowed; }
.is4Zaui:not(:disabled):hover{ transform:scale(1.05); }
.is4Zaui:not(:disabled):active{ transform:scale(0.95); }
.is4Zaui:focus{ outline:2px solid var(--cu2q-xwq); outline-offset:2px; }
.is4Zaui svg{ width:20px; height:20px; }

/* Character Counter */
.wd2Vf9y{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--vp5-jddb); }
.wd2Vf9y.ryrIo1k{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.byDlu{
  align-self:flex-start;
  max-width:75%;
  background: var(--hfo6-yg9);
  color: var(--z8xvy4-bfn3);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--rs0et-b7);
}
.ltkNqpu{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.vuyAqr8.vtFof{
  background: transparent; color: var(--z8xvy4-bfn3); border-color: var(--f16id6-sn);
}
.vuyAqr8.vtFof:hover{
  background: var(--cu2q-xwq); color:#fff; border-color: var(--cu2q-xwq);
}

/* Mobile */
@media (max-width: 768px){
  .daAv8{ bottom:16px; right:16px; }
  .daAv8.ppoyVcmm{ left:16px; }
  .bu7wQ7oh{ --pd9-qcr:60px; }
  .gyrBj4p{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--lzlltz-ss) var(--lzlltz-ss) 0 0; transform: translateY(100%);
  }
  .gyrBj4p.cxnBv5{ transform: translateY(0); }
  .duPzd{ padding:20px; }
  .v04dXben{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.daAv8 :focus-visible{ outline:2px solid var(--cu2q-xwq); outline-offset:2px; }

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