/* CSS Variables */
:root {
  --sh3yz-ae: #4f46e5;
  --xczz8-gx: #ffffff;
  --bugrfh-nrz: #f9fafb;
  --yy8-q74y: #0f172a;
  --e7c-dxh: #6b7280;
  --iky0mu-ex: #e5e7eb;
  --v423w-exfo: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --y3mpv-sf14: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --sxc-eime: 16px;
  --yuor-giu: 56px;
  --z3dzo-h7: 12px;
  --req4-zw5z: 999999;
}

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

/* Main Container */
.qy8569 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--req4-zw5z);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--yy8-q74y);
}
.qy8569.a491ji5 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.t_6bqi2r55 { display: flex; flex-direction: column-reverse; gap: var(--z3dzo-h7); align-items: center; }
.mcu4y2v {
  width: var(--yuor-giu); height: var(--yuor-giu); min-width: var(--yuor-giu); min-height: var(--yuor-giu);
  border-radius: 50%; border: none; background: var(--sh3yz-ae); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--v423w-exfo);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.mcu4y2v:hover { transform: scale(1.05); box-shadow: var(--y3mpv-sf14); }
.mcu4y2v:active { transform: scale(0.95); }
.mcu4y2v:focus { outline: 2px solid var(--sh3yz-ae); outline-offset: 2px; }
.mcu4y2v svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .mcu4y2v.dr6ydmpb{ animation:none; }
  .mcu4y2v,.m5jiju9tox,.ug1cbsv{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.m5jiju9tox{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--xczz8-gx); border-radius: var(--sxc-eime); box-shadow: var(--y3mpv-sf14);
  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;
}
.qy8569.a491ji5 .m5jiju9tox{ right:auto; left:24px; }
.m5jiju9tox.hkw2em5{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.fd17ugd{
  padding:16px 20px; background:var(--xczz8-gx); border-bottom:1px solid var(--iky0mu-ex);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.jlz7u2i3m{ width:10px; height:10px; border-radius:50%; background:var(--sh3yz-ae); flex-shrink:0; }
.ekrtui{ flex:1; min-width:0; }
.yuvq5jl7{ font-size:16px; font-weight:600; color:var(--yy8-q74y); margin:0 0 2px 0; }
.x4aa9a6p{ font-size:13px; color:var(--e7c-dxh); margin:0; }
.mjdoeq{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--e7c-dxh);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.mjdoeq:hover{ background:var(--bugrfh-nrz); color:var(--yy8-q74y); }
.mjdoeq:focus{ outline:2px solid var(--sh3yz-ae); outline-offset:2px; }
.mjdoeq svg{ width:20px; height:20px; }

/* Body */
.fhz99mto{
  flex:1; overflow-y:auto; padding:16px; background:var(--bugrfh-nrz);
  display:flex; flex-direction:column; gap:12px;
}
.fhz99mto::-webkit-scrollbar{ width:6px; }
.fhz99mto::-webkit-scrollbar-track{ background:transparent; }
.fhz99mto::-webkit-scrollbar-thumb{ background:var(--iky0mu-ex); border-radius:3px; }
.fhz99mto::-webkit-scrollbar-thumb:hover{ background:var(--e7c-dxh); }

/* Messages */
.ug1cbsv{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ug1cbsv.ahh0vjs{ flex-direction:row-reverse; }
.mjjhb5{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.mjjhb5 a{ color:inherit; }
.ug1cbsv.t4dxbjefx .mjjhb5{ background:var(--xczz8-gx); color:var(--yy8-q74y); border-bottom-left-radius:4px; }
.ug1cbsv.ahh0vjs .mjjhb5{ background:var(--sh3yz-ae); color:#fff; border-bottom-right-radius:4px; }
.mbm_94{ font-size:11px; color:var(--e7c-dxh); margin-top:4px; display:block; }

/* Typing Indicator */
.emmuk6v_xm{
  display:flex; gap:8px; padding:10px 14px; background:var(--xczz8-gx);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.vql30k{ width:8px; height:8px; border-radius:50%; background:var(--e7c-dxh); animation:typingDot 1.4s infinite; }
.vql30k:nth-child(2){ animation-delay:.2s; }
.vql30k: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) */
.zllqz3ev7j{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.vqh3qcmy{
  border:0; border-radius:999px; padding:8px 12px; background:var(--sh3yz-ae); 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(--v423w-exfo);
}
.vqh3qcmy:is(:hover,:focus){ transform:translateY(-1px); }
a.vqh3qcmy{ text-decoration:none; display:inline-block; }
a.vqh3qcmy:link, a.vqh3qcmy:visited{ color:#fff; }
a.vqh3qcmy:hover, a.vqh3qcmy:focus{ color:#fff; }

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

/* Footer */
.er1gf4d7h{
  padding:16px; background:var(--xczz8-gx); border-top:1px solid var(--iky0mu-ex);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.of5bjdv{
  flex:1; padding:10px 14px; border:1px solid var(--iky0mu-ex); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--yy8-q74y);
  background:var(--bugrfh-nrz); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.of5bjdv:focus{ border-color:var(--sh3yz-ae); }
.of5bjdv::placeholder{ color:var(--e7c-dxh); }
.of5bjdv.nvg34cohw{ border-color:#c00; }
.h_v3kqr{
  width:40px; height:40px; min-width:40px; border:none; background:var(--sh3yz-ae); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.h_v3kqr:disabled{ opacity:.5; cursor:not-allowed; }
.h_v3kqr:not(:disabled):hover{ transform:scale(1.05); }
.h_v3kqr:not(:disabled):active{ transform:scale(0.95); }
.h_v3kqr:focus{ outline:2px solid var(--sh3yz-ae); outline-offset:2px; }
.h_v3kqr svg{ width:20px; height:20px; }

/* Character Counter */
.hn6p9vr_27{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--e7c-dxh); }
.hn6p9vr_27.f29gj9p{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ce0oucgri{
  align-self:flex-start;
  max-width:75%;
  background: var(--xczz8-gx);
  color: var(--yy8-q74y);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--v423w-exfo);
}
.xkk89c{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.gowp5lu.w3xrddzx9c{
  background: transparent; color: var(--yy8-q74y); border-color: var(--iky0mu-ex);
}
.gowp5lu.w3xrddzx9c:hover{
  background: var(--sh3yz-ae); color:#fff; border-color: var(--sh3yz-ae);
}

/* Mobile */
@media (max-width: 768px){
  .qy8569{ bottom:16px; right:16px; }
  .qy8569.a491ji5{ left:16px; }
  .mcu4y2v{ --yuor-giu:60px; }
  .m5jiju9tox{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--sxc-eime) var(--sxc-eime) 0 0; transform: translateY(100%);
  }
  .m5jiju9tox.hkw2em5{ transform: translateY(0); }
  .fd17ugd{ padding:20px; }
  .er1gf4d7h{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.qy8569 :focus-visible{ outline:2px solid var(--sh3yz-ae); outline-offset:2px; }

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