/* CSS Variables */
:root {
  --amntxr-zxpq: #4f46e5;
  --wjspc-ye: #ffffff;
  --svki-dr: #f9fafb;
  --ckg8-d3: #0f172a;
  --eqc-jys: #6b7280;
  --kigj8h-o3ze: #e5e7eb;
  --l1f-vq: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --pxbty-q9r: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --qv1d-c3: 16px;
  --ra2946-s0e: 56px;
  --feq09-ff5: 12px;
  --ams-qsf: 999999;
}

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

/* Main Container */
.rt2kju_hx {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ams-qsf);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ckg8-d3);
}
.rt2kju_hx.t_dd26 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.aqsq990x { display: flex; flex-direction: column-reverse; gap: var(--feq09-ff5); align-items: center; }
.e7zx4hc {
  width: var(--ra2946-s0e); height: var(--ra2946-s0e); min-width: var(--ra2946-s0e); min-height: var(--ra2946-s0e);
  border-radius: 50%; border: none; background: var(--amntxr-zxpq); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--l1f-vq);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.e7zx4hc:hover { transform: scale(1.05); box-shadow: var(--pxbty-q9r); }
.e7zx4hc:active { transform: scale(0.95); }
.e7zx4hc:focus { outline: 2px solid var(--amntxr-zxpq); outline-offset: 2px; }
.e7zx4hc svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .e7zx4hc.awbsw2{ animation:none; }
  .e7zx4hc,.fn5ar50c,.e_f8qo7tjg{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.fn5ar50c{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--wjspc-ye); border-radius: var(--qv1d-c3); box-shadow: var(--pxbty-q9r);
  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;
}
.rt2kju_hx.t_dd26 .fn5ar50c{ right:auto; left:24px; }
.fn5ar50c.wwncp6l4{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ga4ki91i1u{
  padding:16px 20px; background:var(--wjspc-ye); border-bottom:1px solid var(--kigj8h-o3ze);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.advnkcv19i{ width:10px; height:10px; border-radius:50%; background:var(--amntxr-zxpq); flex-shrink:0; }
.ny8pcr9wd{ flex:1; min-width:0; }
.kfay4g5y{ font-size:16px; font-weight:600; color:var(--ckg8-d3); margin:0 0 2px 0; }
.bmrb71j{ font-size:13px; color:var(--eqc-jys); margin:0; }
.vmmspl_7{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--eqc-jys);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.vmmspl_7:hover{ background:var(--svki-dr); color:var(--ckg8-d3); }
.vmmspl_7:focus{ outline:2px solid var(--amntxr-zxpq); outline-offset:2px; }
.vmmspl_7 svg{ width:20px; height:20px; }

/* Body */
.z94kw_23{
  flex:1; overflow-y:auto; padding:16px; background:var(--svki-dr);
  display:flex; flex-direction:column; gap:12px;
}
.z94kw_23::-webkit-scrollbar{ width:6px; }
.z94kw_23::-webkit-scrollbar-track{ background:transparent; }
.z94kw_23::-webkit-scrollbar-thumb{ background:var(--kigj8h-o3ze); border-radius:3px; }
.z94kw_23::-webkit-scrollbar-thumb:hover{ background:var(--eqc-jys); }

/* Messages */
.e_f8qo7tjg{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.e_f8qo7tjg.lzi_jq95q{ flex-direction:row-reverse; }
.axxsu_m{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.axxsu_m a{ color:inherit; }
.e_f8qo7tjg.rmoxbh4c .axxsu_m{ background:var(--wjspc-ye); color:var(--ckg8-d3); border-bottom-left-radius:4px; }
.e_f8qo7tjg.lzi_jq95q .axxsu_m{ background:var(--amntxr-zxpq); color:#fff; border-bottom-right-radius:4px; }
.ho_sli2jwh{ font-size:11px; color:var(--eqc-jys); margin-top:4px; display:block; }

/* Typing Indicator */
.skgh88sz{
  display:flex; gap:8px; padding:10px 14px; background:var(--wjspc-ye);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.f54mn5d{ width:8px; height:8px; border-radius:50%; background:var(--eqc-jys); animation:typingDot 1.4s infinite; }
.f54mn5d:nth-child(2){ animation-delay:.2s; }
.f54mn5d: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) */
.urra9h20qu{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.kp9cc06l5{
  border:0; border-radius:999px; padding:8px 12px; background:var(--amntxr-zxpq); 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(--l1f-vq);
}
.kp9cc06l5:is(:hover,:focus){ transform:translateY(-1px); }
a.kp9cc06l5{ text-decoration:none; display:inline-block; }
a.kp9cc06l5:link, a.kp9cc06l5:visited{ color:#fff; }
a.kp9cc06l5:hover, a.kp9cc06l5:focus{ color:#fff; }

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

/* Footer */
.ly2a907b{
  padding:16px; background:var(--wjspc-ye); border-top:1px solid var(--kigj8h-o3ze);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.sia3t19{
  flex:1; padding:10px 14px; border:1px solid var(--kigj8h-o3ze); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ckg8-d3);
  background:var(--svki-dr); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.sia3t19:focus{ border-color:var(--amntxr-zxpq); }
.sia3t19::placeholder{ color:var(--eqc-jys); }
.sia3t19.iot7gvh{ border-color:#c00; }
.t26idcwg{
  width:40px; height:40px; min-width:40px; border:none; background:var(--amntxr-zxpq); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.t26idcwg:disabled{ opacity:.5; cursor:not-allowed; }
.t26idcwg:not(:disabled):hover{ transform:scale(1.05); }
.t26idcwg:not(:disabled):active{ transform:scale(0.95); }
.t26idcwg:focus{ outline:2px solid var(--amntxr-zxpq); outline-offset:2px; }
.t26idcwg svg{ width:20px; height:20px; }

/* Character Counter */
.gkyb6tfyi{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--eqc-jys); }
.gkyb6tfyi.i7mu26zcm{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.dmiswkmlvy{
  align-self:flex-start;
  max-width:75%;
  background: var(--wjspc-ye);
  color: var(--ckg8-d3);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--l1f-vq);
}
.pp2l7uus{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.txyn3bjdnq.jwywax49m{
  background: transparent; color: var(--ckg8-d3); border-color: var(--kigj8h-o3ze);
}
.txyn3bjdnq.jwywax49m:hover{
  background: var(--amntxr-zxpq); color:#fff; border-color: var(--amntxr-zxpq);
}

/* Mobile */
@media (max-width: 768px){
  .rt2kju_hx{ bottom:16px; right:16px; }
  .rt2kju_hx.t_dd26{ left:16px; }
  .e7zx4hc{ --ra2946-s0e:60px; }
  .fn5ar50c{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--qv1d-c3) var(--qv1d-c3) 0 0; transform: translateY(100%);
  }
  .fn5ar50c.wwncp6l4{ transform: translateY(0); }
  .ga4ki91i1u{ padding:20px; }
  .ly2a907b{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.rt2kju_hx :focus-visible{ outline:2px solid var(--amntxr-zxpq); outline-offset:2px; }

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