/* CSS Variables */
:root {
  --wnmk2r-h6y: #4f46e5;
  --mewoyk-tg7i: #ffffff;
  --e42-w3: #f9fafb;
  --lglv-yc: #0f172a;
  --roo1-dhd: #6b7280;
  --or5e-r2z8: #e5e7eb;
  --k5v-sz7a: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --xdrx-xoad: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --lu7l-ml: 16px;
  --f20t1z-z7: 56px;
  --pxq-of1: 12px;
  --ddg-t5fl: 999999;
}

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

/* Main Container */
.aa_ht5ifmh {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ddg-t5fl);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--lglv-yc);
}
.aa_ht5ifmh.keoktdz { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.kexuefuyy { display: flex; flex-direction: column-reverse; gap: var(--pxq-of1); align-items: center; }
.f9_fs4u {
  width: var(--f20t1z-z7); height: var(--f20t1z-z7); min-width: var(--f20t1z-z7); min-height: var(--f20t1z-z7);
  border-radius: 50%; border: none; background: var(--wnmk2r-h6y); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--k5v-sz7a);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.f9_fs4u:hover { transform: scale(1.05); box-shadow: var(--xdrx-xoad); }
.f9_fs4u:active { transform: scale(0.95); }
.f9_fs4u:focus { outline: 2px solid var(--wnmk2r-h6y); outline-offset: 2px; }
.f9_fs4u svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .f9_fs4u.hilgzvq{ animation:none; }
  .f9_fs4u,.pf01q4u,.z8kd84{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.pf01q4u{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--mewoyk-tg7i); border-radius: var(--lu7l-ml); box-shadow: var(--xdrx-xoad);
  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;
}
.aa_ht5ifmh.keoktdz .pf01q4u{ right:auto; left:24px; }
.pf01q4u.tc0ttxv2c{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.t0ew4_4tmq{
  padding:16px 20px; background:var(--mewoyk-tg7i); border-bottom:1px solid var(--or5e-r2z8);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.b55cps0{ width:10px; height:10px; border-radius:50%; background:var(--wnmk2r-h6y); flex-shrink:0; }
.qm57hdh37{ flex:1; min-width:0; }
.adnx4wvla4{ font-size:16px; font-weight:600; color:var(--lglv-yc); margin:0 0 2px 0; }
.o5us038f{ font-size:13px; color:var(--roo1-dhd); margin:0; }
.cr0ysf0ev{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--roo1-dhd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.cr0ysf0ev:hover{ background:var(--e42-w3); color:var(--lglv-yc); }
.cr0ysf0ev:focus{ outline:2px solid var(--wnmk2r-h6y); outline-offset:2px; }
.cr0ysf0ev svg{ width:20px; height:20px; }

/* Body */
.hpf24zp{
  flex:1; overflow-y:auto; padding:16px; background:var(--e42-w3);
  display:flex; flex-direction:column; gap:12px;
}
.hpf24zp::-webkit-scrollbar{ width:6px; }
.hpf24zp::-webkit-scrollbar-track{ background:transparent; }
.hpf24zp::-webkit-scrollbar-thumb{ background:var(--or5e-r2z8); border-radius:3px; }
.hpf24zp::-webkit-scrollbar-thumb:hover{ background:var(--roo1-dhd); }

/* Messages */
.z8kd84{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.z8kd84.wjv2yqqk6c{ flex-direction:row-reverse; }
.xdrd5mra{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.xdrd5mra a{ color:inherit; }
.z8kd84.cr43m0i .xdrd5mra{ background:var(--mewoyk-tg7i); color:var(--lglv-yc); border-bottom-left-radius:4px; }
.z8kd84.wjv2yqqk6c .xdrd5mra{ background:var(--wnmk2r-h6y); color:#fff; border-bottom-right-radius:4px; }
.s8xjqsf{ font-size:11px; color:var(--roo1-dhd); margin-top:4px; display:block; }

/* Typing Indicator */
.r8zcad7k{
  display:flex; gap:8px; padding:10px 14px; background:var(--mewoyk-tg7i);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.q304zoeo6{ width:8px; height:8px; border-radius:50%; background:var(--roo1-dhd); animation:typingDot 1.4s infinite; }
.q304zoeo6:nth-child(2){ animation-delay:.2s; }
.q304zoeo6: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) */
.he0do7a{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ww04gx{
  border:0; border-radius:999px; padding:8px 12px; background:var(--wnmk2r-h6y); 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(--k5v-sz7a);
}
.ww04gx:is(:hover,:focus){ transform:translateY(-1px); }
a.ww04gx{ text-decoration:none; display:inline-block; }
a.ww04gx:link, a.ww04gx:visited{ color:#fff; }
a.ww04gx:hover, a.ww04gx:focus{ color:#fff; }

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

/* Footer */
.m3s9394cqh{
  padding:16px; background:var(--mewoyk-tg7i); border-top:1px solid var(--or5e-r2z8);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.siq4p4jl{
  flex:1; padding:10px 14px; border:1px solid var(--or5e-r2z8); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--lglv-yc);
  background:var(--e42-w3); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.siq4p4jl:focus{ border-color:var(--wnmk2r-h6y); }
.siq4p4jl::placeholder{ color:var(--roo1-dhd); }
.siq4p4jl.um3bf3{ border-color:#c00; }
.bcectqy{
  width:40px; height:40px; min-width:40px; border:none; background:var(--wnmk2r-h6y); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.bcectqy:disabled{ opacity:.5; cursor:not-allowed; }
.bcectqy:not(:disabled):hover{ transform:scale(1.05); }
.bcectqy:not(:disabled):active{ transform:scale(0.95); }
.bcectqy:focus{ outline:2px solid var(--wnmk2r-h6y); outline-offset:2px; }
.bcectqy svg{ width:20px; height:20px; }

/* Character Counter */
.yzlm6r1{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--roo1-dhd); }
.yzlm6r1.g5w1f0{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.i37ylb{
  align-self:flex-start;
  max-width:75%;
  background: var(--mewoyk-tg7i);
  color: var(--lglv-yc);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--k5v-sz7a);
}
.hqw7kc{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.sr2iahx.f0qazj1w63{
  background: transparent; color: var(--lglv-yc); border-color: var(--or5e-r2z8);
}
.sr2iahx.f0qazj1w63:hover{
  background: var(--wnmk2r-h6y); color:#fff; border-color: var(--wnmk2r-h6y);
}

/* Mobile */
@media (max-width: 768px){
  .aa_ht5ifmh{ bottom:16px; right:16px; }
  .aa_ht5ifmh.keoktdz{ left:16px; }
  .f9_fs4u{ --f20t1z-z7:60px; }
  .pf01q4u{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--lu7l-ml) var(--lu7l-ml) 0 0; transform: translateY(100%);
  }
  .pf01q4u.tc0ttxv2c{ transform: translateY(0); }
  .t0ew4_4tmq{ padding:20px; }
  .m3s9394cqh{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.aa_ht5ifmh :focus-visible{ outline:2px solid var(--wnmk2r-h6y); outline-offset:2px; }

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