/* CSS Variables */
:root {
  --g009-pw0e: #4f46e5;
  --mufy-w3: #ffffff;
  --bqfsh6-t7w: #f9fafb;
  --nbu-ss39: #0f172a;
  --r8q584-m4: #6b7280;
  --u1d9-uh7: #e5e7eb;
  --hvm1h-holn: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --f8v5a1-c9x: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --i2e-ra4: 16px;
  --lhm-uhv0: 56px;
  --wa7pse-r7: 12px;
  --hafcan-mwz: 999999;
}

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

/* Main Container */
.ewrwjym5vr5znvzuf6 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--hafcan-mwz);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--nbu-ss39);
}
.ewrwjym5vr5znvzuf6.igtczqhxu3cnp8cc { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.w0egn5n22xeiygxpux { display: flex; flex-direction: column-reverse; gap: var(--wa7pse-r7); align-items: center; }
.mdub8h42ygsbg4w {
  width: var(--lhm-uhv0); height: var(--lhm-uhv0); min-width: var(--lhm-uhv0); min-height: var(--lhm-uhv0);
  border-radius: 50%; border: none; background: var(--g009-pw0e); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--hvm1h-holn);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.mdub8h42ygsbg4w:hover { transform: scale(1.05); box-shadow: var(--f8v5a1-c9x); }
.mdub8h42ygsbg4w:active { transform: scale(0.95); }
.mdub8h42ygsbg4w:focus { outline: 2px solid var(--g009-pw0e); outline-offset: 2px; }
.mdub8h42ygsbg4w svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .mdub8h42ygsbg4w.q4kusauuo6r-2rbh{ animation:none; }
  .mdub8h42ygsbg4w,.hg-q6k01pb-469xe2d,.b49flrb7nrir0nsrq{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.hg-q6k01pb-469xe2d{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--mufy-w3); border-radius: var(--i2e-ra4); box-shadow: var(--f8v5a1-c9x);
  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;
}
.ewrwjym5vr5znvzuf6.igtczqhxu3cnp8cc .hg-q6k01pb-469xe2d{ right:auto; left:24px; }
.hg-q6k01pb-469xe2d.bjbko-723y8rs708l5{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.dd4resxot1nr2e{
  padding:16px 20px; background:var(--mufy-w3); border-bottom:1px solid var(--u1d9-uh7);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.n60w208t261b0mulev{ width:10px; height:10px; border-radius:50%; background:var(--g009-pw0e); flex-shrink:0; }
.l815kfunxg71-a1{ flex:1; min-width:0; }
.jaulfi468ljmd77b{ font-size:16px; font-weight:600; color:var(--nbu-ss39); margin:0 0 2px 0; }
.u6wl73yj-yo9rdg{ font-size:13px; color:var(--r8q584-m4); margin:0; }
.vymja101jeiq5v{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--r8q584-m4);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.vymja101jeiq5v:hover{ background:var(--bqfsh6-t7w); color:var(--nbu-ss39); }
.vymja101jeiq5v:focus{ outline:2px solid var(--g009-pw0e); outline-offset:2px; }
.vymja101jeiq5v svg{ width:20px; height:20px; }

/* Body */
.aytzbl688vb6tupk{
  flex:1; overflow-y:auto; padding:16px; background:var(--bqfsh6-t7w);
  display:flex; flex-direction:column; gap:12px;
}
.aytzbl688vb6tupk::-webkit-scrollbar{ width:6px; }
.aytzbl688vb6tupk::-webkit-scrollbar-track{ background:transparent; }
.aytzbl688vb6tupk::-webkit-scrollbar-thumb{ background:var(--u1d9-uh7); border-radius:3px; }
.aytzbl688vb6tupk::-webkit-scrollbar-thumb:hover{ background:var(--r8q584-m4); }

/* Messages */
.b49flrb7nrir0nsrq{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.b49flrb7nrir0nsrq.asy573r8urn6dh-5ct{ flex-direction:row-reverse; }
.zc3ekayywka2uxtu6{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.zc3ekayywka2uxtu6 a{ color:inherit; }
.b49flrb7nrir0nsrq.p82aitkdskfhix .zc3ekayywka2uxtu6{ background:var(--mufy-w3); color:var(--nbu-ss39); border-bottom-left-radius:4px; }
.b49flrb7nrir0nsrq.asy573r8urn6dh-5ct .zc3ekayywka2uxtu6{ background:var(--g009-pw0e); color:#fff; border-bottom-right-radius:4px; }
.vf6v4q9debld8tgm{ font-size:11px; color:var(--r8q584-m4); margin-top:4px; display:block; }

/* Typing Indicator */
.mcjwxb5g4wmft5r{
  display:flex; gap:8px; padding:10px 14px; background:var(--mufy-w3);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.l0im4k0w7i5n6btfb{ width:8px; height:8px; border-radius:50%; background:var(--r8q584-m4); animation:typingDot 1.4s infinite; }
.l0im4k0w7i5n6btfb:nth-child(2){ animation-delay:.2s; }
.l0im4k0w7i5n6btfb: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) */
.s5m8foce-qmuat{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.aahux-mvwnzn0iza{
  border:0; border-radius:999px; padding:8px 12px; background:var(--g009-pw0e); 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(--hvm1h-holn);
}
.aahux-mvwnzn0iza:is(:hover,:focus){ transform:translateY(-1px); }
a.aahux-mvwnzn0iza{ text-decoration:none; display:inline-block; }
a.aahux-mvwnzn0iza:link, a.aahux-mvwnzn0iza:visited{ color:#fff; }
a.aahux-mvwnzn0iza:hover, a.aahux-mvwnzn0iza:focus{ color:#fff; }

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

/* Footer */
.u2souqri7xmlciiqt{
  padding:16px; background:var(--mufy-w3); border-top:1px solid var(--u1d9-uh7);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.h9rxdatxnxc0cq{
  flex:1; padding:10px 14px; border:1px solid var(--u1d9-uh7); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--nbu-ss39);
  background:var(--bqfsh6-t7w); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.h9rxdatxnxc0cq:focus{ border-color:var(--g009-pw0e); }
.h9rxdatxnxc0cq::placeholder{ color:var(--r8q584-m4); }
.h9rxdatxnxc0cq.jwzhd3kdqa0ivr6z{ border-color:#c00; }
.dtq449n3y71oc0j7p{
  width:40px; height:40px; min-width:40px; border:none; background:var(--g009-pw0e); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.dtq449n3y71oc0j7p:disabled{ opacity:.5; cursor:not-allowed; }
.dtq449n3y71oc0j7p:not(:disabled):hover{ transform:scale(1.05); }
.dtq449n3y71oc0j7p:not(:disabled):active{ transform:scale(0.95); }
.dtq449n3y71oc0j7p:focus{ outline:2px solid var(--g009-pw0e); outline-offset:2px; }
.dtq449n3y71oc0j7p svg{ width:20px; height:20px; }

/* Character Counter */
.yssgiz4yhftn8w{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--r8q584-m4); }
.yssgiz4yhftn8w.opnuiaehiigde424{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.trrwkr-lz1-feza0{
  align-self:flex-start;
  max-width:75%;
  background: var(--mufy-w3);
  color: var(--nbu-ss39);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--hvm1h-holn);
}
.qenp67j6qmc87ws{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.c4fkyrxvqt1a7dq46.j23i9iejm6rsf8{
  background: transparent; color: var(--nbu-ss39); border-color: var(--u1d9-uh7);
}
.c4fkyrxvqt1a7dq46.j23i9iejm6rsf8:hover{
  background: var(--g009-pw0e); color:#fff; border-color: var(--g009-pw0e);
}

/* Mobile */
@media (max-width: 768px){
  .ewrwjym5vr5znvzuf6{ bottom:16px; right:16px; }
  .ewrwjym5vr5znvzuf6.igtczqhxu3cnp8cc{ left:16px; }
  .mdub8h42ygsbg4w{ --lhm-uhv0:60px; }
  .hg-q6k01pb-469xe2d{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--i2e-ra4) var(--i2e-ra4) 0 0; transform: translateY(100%);
  }
  .hg-q6k01pb-469xe2d.bjbko-723y8rs708l5{ transform: translateY(0); }
  .dd4resxot1nr2e{ padding:20px; }
  .u2souqri7xmlciiqt{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .mdub8h42ygsbg4w, .hg-q6k01pb-469xe2d{ border:2px solid currentColor; } }

/* Focus Visible */
.ewrwjym5vr5znvzuf6 :focus-visible{ outline:2px solid var(--g009-pw0e); outline-offset:2px; }

/* SR-only */
.daq6-hy5fbj7vv{
  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 */
.w8kzceif-pckodi{ display:none !important; }
