/* CSS Variables */
:root {
  --ntrgdb-n0: #4f46e5;
  --qsf7-wqp: #ffffff;
  --ftkw1-wa: #f9fafb;
  --ijdp-gb: #0f172a;
  --oh14c-b9: #6b7280;
  --f28ch-wh4: #e5e7eb;
  --n5b13-o2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ih0o-bgzw: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --k3vn08-si: 16px;
  --rvk1-j0: 56px;
  --ifv-gv9b: 12px;
  --o05k-n7mj: 999999;
}

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

/* Main Container */
.g9902_6d6l {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--o05k-n7mj);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ijdp-gb);
}
.g9902_6d6l.dlasl6 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.oxmyfj86ci { display: flex; flex-direction: column-reverse; gap: var(--ifv-gv9b); align-items: center; }
.tw3lcrj4 {
  width: var(--rvk1-j0); height: var(--rvk1-j0); min-width: var(--rvk1-j0); min-height: var(--rvk1-j0);
  border-radius: 50%; border: none; background: var(--ntrgdb-n0); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--n5b13-o2);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.tw3lcrj4:hover { transform: scale(1.05); box-shadow: var(--ih0o-bgzw); }
.tw3lcrj4:active { transform: scale(0.95); }
.tw3lcrj4:focus { outline: 2px solid var(--ntrgdb-n0); outline-offset: 2px; }
.tw3lcrj4 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .tw3lcrj4.tjl4lopsm1{ animation:none; }
  .tw3lcrj4,.loql6qje6g,.hgneky{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.loql6qje6g{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--qsf7-wqp); border-radius: var(--k3vn08-si); box-shadow: var(--ih0o-bgzw);
  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;
}
.g9902_6d6l.dlasl6 .loql6qje6g{ right:auto; left:24px; }
.loql6qje6g.c7ny_yaw1o{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.mqqfwo{
  padding:16px 20px; background:var(--qsf7-wqp); border-bottom:1px solid var(--f28ch-wh4);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.j7stno1xc1{ width:10px; height:10px; border-radius:50%; background:var(--ntrgdb-n0); flex-shrink:0; }
.h40b79sl3d{ flex:1; min-width:0; }
.jot7bo3{ font-size:16px; font-weight:600; color:var(--ijdp-gb); margin:0 0 2px 0; }
.teoz0rq{ font-size:13px; color:var(--oh14c-b9); margin:0; }
.r__dnmfhp{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--oh14c-b9);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.r__dnmfhp:hover{ background:var(--ftkw1-wa); color:var(--ijdp-gb); }
.r__dnmfhp:focus{ outline:2px solid var(--ntrgdb-n0); outline-offset:2px; }
.r__dnmfhp svg{ width:20px; height:20px; }

/* Body */
.mpmc1z{
  flex:1; overflow-y:auto; padding:16px; background:var(--ftkw1-wa);
  display:flex; flex-direction:column; gap:12px;
}
.mpmc1z::-webkit-scrollbar{ width:6px; }
.mpmc1z::-webkit-scrollbar-track{ background:transparent; }
.mpmc1z::-webkit-scrollbar-thumb{ background:var(--f28ch-wh4); border-radius:3px; }
.mpmc1z::-webkit-scrollbar-thumb:hover{ background:var(--oh14c-b9); }

/* Messages */
.hgneky{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.hgneky.fr58xp{ flex-direction:row-reverse; }
.j5l2e2{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.j5l2e2 a{ color:inherit; }
.hgneky.d796lwfou .j5l2e2{ background:var(--qsf7-wqp); color:var(--ijdp-gb); border-bottom-left-radius:4px; }
.hgneky.fr58xp .j5l2e2{ background:var(--ntrgdb-n0); color:#fff; border-bottom-right-radius:4px; }
.k7094y{ font-size:11px; color:var(--oh14c-b9); margin-top:4px; display:block; }

/* Typing Indicator */
.rg9jx903{
  display:flex; gap:8px; padding:10px 14px; background:var(--qsf7-wqp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.gr2mk0h4{ width:8px; height:8px; border-radius:50%; background:var(--oh14c-b9); animation:typingDot 1.4s infinite; }
.gr2mk0h4:nth-child(2){ animation-delay:.2s; }
.gr2mk0h4: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) */
.tsaxy7ajo{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.cgg9it{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ntrgdb-n0); 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(--n5b13-o2);
}
.cgg9it:is(:hover,:focus){ transform:translateY(-1px); }
a.cgg9it{ text-decoration:none; display:inline-block; }
a.cgg9it:link, a.cgg9it:visited{ color:#fff; }
a.cgg9it:hover, a.cgg9it:focus{ color:#fff; }

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

/* Footer */
.wi3uvy{
  padding:16px; background:var(--qsf7-wqp); border-top:1px solid var(--f28ch-wh4);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.qslg_emq{
  flex:1; padding:10px 14px; border:1px solid var(--f28ch-wh4); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ijdp-gb);
  background:var(--ftkw1-wa); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.qslg_emq:focus{ border-color:var(--ntrgdb-n0); }
.qslg_emq::placeholder{ color:var(--oh14c-b9); }
.qslg_emq.ksppfzagb0{ border-color:#c00; }
.bq3uu6y{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ntrgdb-n0); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.bq3uu6y:disabled{ opacity:.5; cursor:not-allowed; }
.bq3uu6y:not(:disabled):hover{ transform:scale(1.05); }
.bq3uu6y:not(:disabled):active{ transform:scale(0.95); }
.bq3uu6y:focus{ outline:2px solid var(--ntrgdb-n0); outline-offset:2px; }
.bq3uu6y svg{ width:20px; height:20px; }

/* Character Counter */
.ibi3rxk{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--oh14c-b9); }
.ibi3rxk.nip2_s{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.zcbk18{
  align-self:flex-start;
  max-width:75%;
  background: var(--qsf7-wqp);
  color: var(--ijdp-gb);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--n5b13-o2);
}
.ztfrzj{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.cyi4fdi.li4xrefm_5{
  background: transparent; color: var(--ijdp-gb); border-color: var(--f28ch-wh4);
}
.cyi4fdi.li4xrefm_5:hover{
  background: var(--ntrgdb-n0); color:#fff; border-color: var(--ntrgdb-n0);
}

/* Mobile */
@media (max-width: 768px){
  .g9902_6d6l{ bottom:16px; right:16px; }
  .g9902_6d6l.dlasl6{ left:16px; }
  .tw3lcrj4{ --rvk1-j0:60px; }
  .loql6qje6g{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--k3vn08-si) var(--k3vn08-si) 0 0; transform: translateY(100%);
  }
  .loql6qje6g.c7ny_yaw1o{ transform: translateY(0); }
  .mqqfwo{ padding:20px; }
  .wi3uvy{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.g9902_6d6l :focus-visible{ outline:2px solid var(--ntrgdb-n0); outline-offset:2px; }

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