/* CSS Variables */
:root {
  --i1m-xo: #4f46e5;
  --fhqa8u-we: #ffffff;
  --eav7-h9so: #f9fafb;
  --ry1n6-ar: #0f172a;
  --c6ao-hsp3: #6b7280;
  --uo2-l9wl: #e5e7eb;
  --bd88in-x3h: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --quvtp-vo: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --trr-y6v: 16px;
  --qfwd8-ingl: 56px;
  --qh64t-tpg: 12px;
  --g47gbv-tjg: 999999;
}

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

/* Main Container */
.zyquy7 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--g47gbv-tjg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ry1n6-ar);
}
.zyquy7.sxm7nq { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.mk3es7 { display: flex; flex-direction: column-reverse; gap: var(--qh64t-tpg); align-items: center; }
.zwfme {
  width: var(--qfwd8-ingl); height: var(--qfwd8-ingl); min-width: var(--qfwd8-ingl); min-height: var(--qfwd8-ingl);
  border-radius: 50%; border: none; background: var(--i1m-xo); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--bd88in-x3h);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.zwfme:hover { transform: scale(1.05); box-shadow: var(--quvtp-vo); }
.zwfme:active { transform: scale(0.95); }
.zwfme:focus { outline: 2px solid var(--i1m-xo); outline-offset: 2px; }
.zwfme svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .zwfme.tww2{ animation:none; }
  .zwfme,.p7xk,.nw6z{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.p7xk{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fhqa8u-we); border-radius: var(--trr-y6v); box-shadow: var(--quvtp-vo);
  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;
}
.zyquy7.sxm7nq .p7xk{ right:auto; left:24px; }
.p7xk.j2jyf{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.znykxk{
  padding:16px 20px; background:var(--fhqa8u-we); border-bottom:1px solid var(--uo2-l9wl);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.how8{ width:10px; height:10px; border-radius:50%; background:var(--i1m-xo); flex-shrink:0; }
.xqqk{ flex:1; min-width:0; }
.hoab9z{ font-size:16px; font-weight:600; color:var(--ry1n6-ar); margin:0 0 2px 0; }
.g0e6dc{ font-size:13px; color:var(--c6ao-hsp3); margin:0; }
.bkk3e{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--c6ao-hsp3);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.bkk3e:hover{ background:var(--eav7-h9so); color:var(--ry1n6-ar); }
.bkk3e:focus{ outline:2px solid var(--i1m-xo); outline-offset:2px; }
.bkk3e svg{ width:20px; height:20px; }

/* Body */
.p8oe0q{
  flex:1; overflow-y:auto; padding:16px; background:var(--eav7-h9so);
  display:flex; flex-direction:column; gap:12px;
}
.p8oe0q::-webkit-scrollbar{ width:6px; }
.p8oe0q::-webkit-scrollbar-track{ background:transparent; }
.p8oe0q::-webkit-scrollbar-thumb{ background:var(--uo2-l9wl); border-radius:3px; }
.p8oe0q::-webkit-scrollbar-thumb:hover{ background:var(--c6ao-hsp3); }

/* Messages */
.nw6z{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.nw6z.sh5q{ flex-direction:row-reverse; }
.pt6rn{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.pt6rn a{ color:inherit; }
.nw6z.gr2xx .pt6rn{ background:var(--fhqa8u-we); color:var(--ry1n6-ar); border-bottom-left-radius:4px; }
.nw6z.sh5q .pt6rn{ background:var(--i1m-xo); color:#fff; border-bottom-right-radius:4px; }
.qpjnd{ font-size:11px; color:var(--c6ao-hsp3); margin-top:4px; display:block; }

/* Typing Indicator */
.c71mi{
  display:flex; gap:8px; padding:10px 14px; background:var(--fhqa8u-we);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.x0d0b{ width:8px; height:8px; border-radius:50%; background:var(--c6ao-hsp3); animation:typingDot 1.4s infinite; }
.x0d0b:nth-child(2){ animation-delay:.2s; }
.x0d0b: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) */
.ywehrq{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.kuldry{
  border:0; border-radius:999px; padding:8px 12px; background:var(--i1m-xo); 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(--bd88in-x3h);
}
.kuldry:is(:hover,:focus){ transform:translateY(-1px); }
a.kuldry{ text-decoration:none; display:inline-block; }
a.kuldry:link, a.kuldry:visited{ color:#fff; }
a.kuldry:hover, a.kuldry:focus{ color:#fff; }

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

/* Footer */
.i32d{
  padding:16px; background:var(--fhqa8u-we); border-top:1px solid var(--uo2-l9wl);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.aj4syo{
  flex:1; padding:10px 14px; border:1px solid var(--uo2-l9wl); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ry1n6-ar);
  background:var(--eav7-h9so); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.aj4syo:focus{ border-color:var(--i1m-xo); }
.aj4syo::placeholder{ color:var(--c6ao-hsp3); }
.aj4syo.eg5zh{ border-color:#c00; }
.hd6ht{
  width:40px; height:40px; min-width:40px; border:none; background:var(--i1m-xo); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.hd6ht:disabled{ opacity:.5; cursor:not-allowed; }
.hd6ht:not(:disabled):hover{ transform:scale(1.05); }
.hd6ht:not(:disabled):active{ transform:scale(0.95); }
.hd6ht:focus{ outline:2px solid var(--i1m-xo); outline-offset:2px; }
.hd6ht svg{ width:20px; height:20px; }

/* Character Counter */
.exi00{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--c6ao-hsp3); }
.exi00.gtu694{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.cmkajd{
  align-self:flex-start;
  max-width:75%;
  background: var(--fhqa8u-we);
  color: var(--ry1n6-ar);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--bd88in-x3h);
}
.lj7qud{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.evlmh5.qxvc{
  background: transparent; color: var(--ry1n6-ar); border-color: var(--uo2-l9wl);
}
.evlmh5.qxvc:hover{
  background: var(--i1m-xo); color:#fff; border-color: var(--i1m-xo);
}

/* Mobile */
@media (max-width: 768px){
  .zyquy7{ bottom:16px; right:16px; }
  .zyquy7.sxm7nq{ left:16px; }
  .zwfme{ --qfwd8-ingl:60px; }
  .p7xk{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--trr-y6v) var(--trr-y6v) 0 0; transform: translateY(100%);
  }
  .p7xk.j2jyf{ transform: translateY(0); }
  .znykxk{ padding:20px; }
  .i32d{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.zyquy7 :focus-visible{ outline:2px solid var(--i1m-xo); outline-offset:2px; }

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