/* CSS Variables */
:root {
  --i3e90e-ogw: #4f46e5;
  --hog6o-qr3: #ffffff;
  --mgoi3-ljmu: #f9fafb;
  --rr6-tp: #0f172a;
  --w0t2-dhkd: #6b7280;
  --izdk84-ob: #e5e7eb;
  --lkpu-x1i: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --vlw-enpm: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --krr-ko: 16px;
  --cu9-gk9: 56px;
  --mnb1-np8: 12px;
  --a2yw04-mj: 999999;
}

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

/* Main Container */
.rsq4g0 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--a2yw04-mj);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--rr6-tp);
}
.rsq4g0.y8bm { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.l0snks { display: flex; flex-direction: column-reverse; gap: var(--mnb1-np8); align-items: center; }
.dc8fpg {
  width: var(--cu9-gk9); height: var(--cu9-gk9); min-width: var(--cu9-gk9); min-height: var(--cu9-gk9);
  border-radius: 50%; border: none; background: var(--i3e90e-ogw); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--lkpu-x1i);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.dc8fpg:hover { transform: scale(1.05); box-shadow: var(--vlw-enpm); }
.dc8fpg:active { transform: scale(0.95); }
.dc8fpg:focus { outline: 2px solid var(--i3e90e-ogw); outline-offset: 2px; }
.dc8fpg svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .dc8fpg.w6khwt{ animation:none; }
  .dc8fpg,.oud3lr,.zg013{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.oud3lr{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--hog6o-qr3); border-radius: var(--krr-ko); box-shadow: var(--vlw-enpm);
  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;
}
.rsq4g0.y8bm .oud3lr{ right:auto; left:24px; }
.oud3lr.mebt{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.dg82ll{
  padding:16px 20px; background:var(--hog6o-qr3); border-bottom:1px solid var(--izdk84-ob);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.mv37nj{ width:10px; height:10px; border-radius:50%; background:var(--i3e90e-ogw); flex-shrink:0; }
.g6k9lu{ flex:1; min-width:0; }
.c9ze{ font-size:16px; font-weight:600; color:var(--rr6-tp); margin:0 0 2px 0; }
.syzaqo{ font-size:13px; color:var(--w0t2-dhkd); margin:0; }
.w4s4{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--w0t2-dhkd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.w4s4:hover{ background:var(--mgoi3-ljmu); color:var(--rr6-tp); }
.w4s4:focus{ outline:2px solid var(--i3e90e-ogw); outline-offset:2px; }
.w4s4 svg{ width:20px; height:20px; }

/* Body */
.bnxla{
  flex:1; overflow-y:auto; padding:16px; background:var(--mgoi3-ljmu);
  display:flex; flex-direction:column; gap:12px;
}
.bnxla::-webkit-scrollbar{ width:6px; }
.bnxla::-webkit-scrollbar-track{ background:transparent; }
.bnxla::-webkit-scrollbar-thumb{ background:var(--izdk84-ob); border-radius:3px; }
.bnxla::-webkit-scrollbar-thumb:hover{ background:var(--w0t2-dhkd); }

/* Messages */
.zg013{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.zg013.twnfyg{ flex-direction:row-reverse; }
.qq47z{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.qq47z a{ color:inherit; }
.zg013.f7z5 .qq47z{ background:var(--hog6o-qr3); color:var(--rr6-tp); border-bottom-left-radius:4px; }
.zg013.twnfyg .qq47z{ background:var(--i3e90e-ogw); color:#fff; border-bottom-right-radius:4px; }
.kfbe7z{ font-size:11px; color:var(--w0t2-dhkd); margin-top:4px; display:block; }

/* Typing Indicator */
.m39c{
  display:flex; gap:8px; padding:10px 14px; background:var(--hog6o-qr3);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.jolth7{ width:8px; height:8px; border-radius:50%; background:var(--w0t2-dhkd); animation:typingDot 1.4s infinite; }
.jolth7:nth-child(2){ animation-delay:.2s; }
.jolth7: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) */
.bvoyr{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.xjzdli{
  border:0; border-radius:999px; padding:8px 12px; background:var(--i3e90e-ogw); 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(--lkpu-x1i);
}
.xjzdli:is(:hover,:focus){ transform:translateY(-1px); }
a.xjzdli{ text-decoration:none; display:inline-block; }
a.xjzdli:link, a.xjzdli:visited{ color:#fff; }
a.xjzdli:hover, a.xjzdli:focus{ color:#fff; }

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

/* Footer */
.g0j88{
  padding:16px; background:var(--hog6o-qr3); border-top:1px solid var(--izdk84-ob);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.fmvknt{
  flex:1; padding:10px 14px; border:1px solid var(--izdk84-ob); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--rr6-tp);
  background:var(--mgoi3-ljmu); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.fmvknt:focus{ border-color:var(--i3e90e-ogw); }
.fmvknt::placeholder{ color:var(--w0t2-dhkd); }
.fmvknt.r0qx{ border-color:#c00; }
.l4po{
  width:40px; height:40px; min-width:40px; border:none; background:var(--i3e90e-ogw); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.l4po:disabled{ opacity:.5; cursor:not-allowed; }
.l4po:not(:disabled):hover{ transform:scale(1.05); }
.l4po:not(:disabled):active{ transform:scale(0.95); }
.l4po:focus{ outline:2px solid var(--i3e90e-ogw); outline-offset:2px; }
.l4po svg{ width:20px; height:20px; }

/* Character Counter */
.omeii{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--w0t2-dhkd); }
.omeii.nijjwh{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.rdl6i{
  align-self:flex-start;
  max-width:75%;
  background: var(--hog6o-qr3);
  color: var(--rr6-tp);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--lkpu-x1i);
}
.v5y1j0{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.htfno.yt9gb6{
  background: transparent; color: var(--rr6-tp); border-color: var(--izdk84-ob);
}
.htfno.yt9gb6:hover{
  background: var(--i3e90e-ogw); color:#fff; border-color: var(--i3e90e-ogw);
}

/* Mobile */
@media (max-width: 768px){
  .rsq4g0{ bottom:16px; right:16px; }
  .rsq4g0.y8bm{ left:16px; }
  .dc8fpg{ --cu9-gk9:60px; }
  .oud3lr{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--krr-ko) var(--krr-ko) 0 0; transform: translateY(100%);
  }
  .oud3lr.mebt{ transform: translateY(0); }
  .dg82ll{ padding:20px; }
  .g0j88{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.rsq4g0 :focus-visible{ outline:2px solid var(--i3e90e-ogw); outline-offset:2px; }

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