/* CSS Variables */
:root {
  --u8k-jkb: #4f46e5;
  --yb4h6-cq: #ffffff;
  --ngrb1c-qj: #f9fafb;
  --ya5-vj8v: #0f172a;
  --qpxa84-fj9q: #6b7280;
  --qrn1-ers5: #e5e7eb;
  --xbe-k9p: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --rdl-cvt: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --npfw-zov3: 16px;
  --mu4-fa: 56px;
  --dk052-klm2: 12px;
  --u5w4-eeb: 999999;
}

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

/* Main Container */
.ca9c {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--u5w4-eeb);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ya5-vj8v);
}
.ca9c.r5yilf { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.i3ihnr9 { display: flex; flex-direction: column-reverse; gap: var(--dk052-klm2); align-items: center; }
.vtn0 {
  width: var(--mu4-fa); height: var(--mu4-fa); min-width: var(--mu4-fa); min-height: var(--mu4-fa);
  border-radius: 50%; border: none; background: var(--u8k-jkb); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--xbe-k9p);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.vtn0:hover { transform: scale(1.05); box-shadow: var(--rdl-cvt); }
.vtn0:active { transform: scale(0.95); }
.vtn0:focus { outline: 2px solid var(--u8k-jkb); outline-offset: 2px; }
.vtn0 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .vtn0.jqehd{ animation:none; }
  .vtn0,.a5g9d,.s9jky6c{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.a5g9d{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--yb4h6-cq); border-radius: var(--npfw-zov3); box-shadow: var(--rdl-cvt);
  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;
}
.ca9c.r5yilf .a5g9d{ right:auto; left:24px; }
.a5g9d.ypjo7o68{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ses6nd4{
  padding:16px 20px; background:var(--yb4h6-cq); border-bottom:1px solid var(--qrn1-ers5);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.y6w7nb{ width:10px; height:10px; border-radius:50%; background:var(--u8k-jkb); flex-shrink:0; }
.yl9jkh61{ flex:1; min-width:0; }
.nylf8wwa{ font-size:16px; font-weight:600; color:var(--ya5-vj8v); margin:0 0 2px 0; }
.bqfdc5{ font-size:13px; color:var(--qpxa84-fj9q); margin:0; }
.bpjfc21{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--qpxa84-fj9q);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.bpjfc21:hover{ background:var(--ngrb1c-qj); color:var(--ya5-vj8v); }
.bpjfc21:focus{ outline:2px solid var(--u8k-jkb); outline-offset:2px; }
.bpjfc21 svg{ width:20px; height:20px; }

/* Body */
.c03nq{
  flex:1; overflow-y:auto; padding:16px; background:var(--ngrb1c-qj);
  display:flex; flex-direction:column; gap:12px;
}
.c03nq::-webkit-scrollbar{ width:6px; }
.c03nq::-webkit-scrollbar-track{ background:transparent; }
.c03nq::-webkit-scrollbar-thumb{ background:var(--qrn1-ers5); border-radius:3px; }
.c03nq::-webkit-scrollbar-thumb:hover{ background:var(--qpxa84-fj9q); }

/* Messages */
.s9jky6c{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.s9jky6c.cpb8{ flex-direction:row-reverse; }
.ov8dm4{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ov8dm4 a{ color:inherit; }
.s9jky6c.u848nnf .ov8dm4{ background:var(--yb4h6-cq); color:var(--ya5-vj8v); border-bottom-left-radius:4px; }
.s9jky6c.cpb8 .ov8dm4{ background:var(--u8k-jkb); color:#fff; border-bottom-right-radius:4px; }
.fqutacu{ font-size:11px; color:var(--qpxa84-fj9q); margin-top:4px; display:block; }

/* Typing Indicator */
.a5469h{
  display:flex; gap:8px; padding:10px 14px; background:var(--yb4h6-cq);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.u0skw2{ width:8px; height:8px; border-radius:50%; background:var(--qpxa84-fj9q); animation:typingDot 1.4s infinite; }
.u0skw2:nth-child(2){ animation-delay:.2s; }
.u0skw2: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) */
.hym4go36{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.vsx2wo0{
  border:0; border-radius:999px; padding:8px 12px; background:var(--u8k-jkb); 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(--xbe-k9p);
}
.vsx2wo0:is(:hover,:focus){ transform:translateY(-1px); }
a.vsx2wo0{ text-decoration:none; display:inline-block; }
a.vsx2wo0:link, a.vsx2wo0:visited{ color:#fff; }
a.vsx2wo0:hover, a.vsx2wo0:focus{ color:#fff; }

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

/* Footer */
.vvrzg8{
  padding:16px; background:var(--yb4h6-cq); border-top:1px solid var(--qrn1-ers5);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.m7p49fp2{
  flex:1; padding:10px 14px; border:1px solid var(--qrn1-ers5); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ya5-vj8v);
  background:var(--ngrb1c-qj); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.m7p49fp2:focus{ border-color:var(--u8k-jkb); }
.m7p49fp2::placeholder{ color:var(--qpxa84-fj9q); }
.m7p49fp2.wa8eae{ border-color:#c00; }
.q2et{
  width:40px; height:40px; min-width:40px; border:none; background:var(--u8k-jkb); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.q2et:disabled{ opacity:.5; cursor:not-allowed; }
.q2et:not(:disabled):hover{ transform:scale(1.05); }
.q2et:not(:disabled):active{ transform:scale(0.95); }
.q2et:focus{ outline:2px solid var(--u8k-jkb); outline-offset:2px; }
.q2et svg{ width:20px; height:20px; }

/* Character Counter */
.sfxfwv5x{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--qpxa84-fj9q); }
.sfxfwv5x.mbz8t{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.s6eg{
  align-self:flex-start;
  max-width:75%;
  background: var(--yb4h6-cq);
  color: var(--ya5-vj8v);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--xbe-k9p);
}
.ot8us{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.nvl3ue5.kg2q0s{
  background: transparent; color: var(--ya5-vj8v); border-color: var(--qrn1-ers5);
}
.nvl3ue5.kg2q0s:hover{
  background: var(--u8k-jkb); color:#fff; border-color: var(--u8k-jkb);
}

/* Mobile */
@media (max-width: 768px){
  .ca9c{ bottom:16px; right:16px; }
  .ca9c.r5yilf{ left:16px; }
  .vtn0{ --mu4-fa:60px; }
  .a5g9d{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--npfw-zov3) var(--npfw-zov3) 0 0; transform: translateY(100%);
  }
  .a5g9d.ypjo7o68{ transform: translateY(0); }
  .ses6nd4{ padding:20px; }
  .vvrzg8{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ca9c :focus-visible{ outline:2px solid var(--u8k-jkb); outline-offset:2px; }

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