/* CSS Variables */
:root {
  --shs-qtqu: #4f46e5;
  --hdnyij-zwi: #ffffff;
  --qvlfm8-ujxn: #f9fafb;
  --xnj6o-ub: #0f172a;
  --xyt8-w4xo: #6b7280;
  --gc6uo5-iz: #e5e7eb;
  --mom-kx: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --i8n9-hf4x: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ai84j9-bk4s: 16px;
  --q4a-jw: 56px;
  --wtcyqu-hoj: 12px;
  --zk50-kpr: 999999;
}

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

/* Main Container */
.esc-bzekq6nb {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--zk50-kpr);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--xnj6o-ub);
}
.esc-bzekq6nb.esc-f7h8d6q1ts9 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.esc-y287wcn30 { display: flex; flex-direction: column-reverse; gap: var(--wtcyqu-hoj); align-items: center; }
.esc-zfm8b7mhe1 {
  width: var(--q4a-jw); height: var(--q4a-jw); min-width: var(--q4a-jw); min-height: var(--q4a-jw);
  border-radius: 50%; border: none; background: var(--shs-qtqu); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--mom-kx);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.esc-zfm8b7mhe1:hover { transform: scale(1.05); box-shadow: var(--i8n9-hf4x); }
.esc-zfm8b7mhe1:active { transform: scale(0.95); }
.esc-zfm8b7mhe1:focus { outline: 2px solid var(--shs-qtqu); outline-offset: 2px; }
.esc-zfm8b7mhe1 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .esc-zfm8b7mhe1.esc-h9fse3a7k{ animation:none; }
  .esc-zfm8b7mhe1,.esc-vb3x3kpq,.esc-sx0oc40ung{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.esc-vb3x3kpq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--hdnyij-zwi); border-radius: var(--ai84j9-bk4s); box-shadow: var(--i8n9-hf4x);
  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;
}
.esc-bzekq6nb.esc-f7h8d6q1ts9 .esc-vb3x3kpq{ right:auto; left:24px; }
.esc-vb3x3kpq.esc-k9ujt2vvm4g{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.esc-saoalxic{
  padding:16px 20px; background:var(--hdnyij-zwi); border-bottom:1px solid var(--gc6uo5-iz);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.esc-xtk0eb28{ width:10px; height:10px; border-radius:50%; background:var(--shs-qtqu); flex-shrink:0; }
.esc-vf5v7pmz7{ flex:1; min-width:0; }
.esc-r9wrvx0d6h{ font-size:16px; font-weight:600; color:var(--xnj6o-ub); margin:0 0 2px 0; }
.esc-fbq6avoxv8{ font-size:13px; color:var(--xyt8-w4xo); margin:0; }
.esc-ow4yaaiugj{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--xyt8-w4xo);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.esc-ow4yaaiugj:hover{ background:var(--qvlfm8-ujxn); color:var(--xnj6o-ub); }
.esc-ow4yaaiugj:focus{ outline:2px solid var(--shs-qtqu); outline-offset:2px; }
.esc-ow4yaaiugj svg{ width:20px; height:20px; }

/* Body */
.esc-mxer2r0p{
  flex:1; overflow-y:auto; padding:16px; background:var(--qvlfm8-ujxn);
  display:flex; flex-direction:column; gap:12px;
}
.esc-mxer2r0p::-webkit-scrollbar{ width:6px; }
.esc-mxer2r0p::-webkit-scrollbar-track{ background:transparent; }
.esc-mxer2r0p::-webkit-scrollbar-thumb{ background:var(--gc6uo5-iz); border-radius:3px; }
.esc-mxer2r0p::-webkit-scrollbar-thumb:hover{ background:var(--xyt8-w4xo); }

/* Messages */
.esc-sx0oc40ung{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.esc-sx0oc40ung.esc-dwuvosoc6x{ flex-direction:row-reverse; }
.esc-tqslihsef{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.esc-tqslihsef a{ color:inherit; }
.esc-sx0oc40ung.esc-t0vyvqip .esc-tqslihsef{ background:var(--hdnyij-zwi); color:var(--xnj6o-ub); border-bottom-left-radius:4px; }
.esc-sx0oc40ung.esc-dwuvosoc6x .esc-tqslihsef{ background:var(--shs-qtqu); color:#fff; border-bottom-right-radius:4px; }
.esc-tu3qxgmatmp{ font-size:11px; color:var(--xyt8-w4xo); margin-top:4px; display:block; }

/* Typing Indicator */
.esc-c4eq28zu{
  display:flex; gap:8px; padding:10px 14px; background:var(--hdnyij-zwi);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.esc-rq8f947etgm8{ width:8px; height:8px; border-radius:50%; background:var(--xyt8-w4xo); animation:typingDot 1.4s infinite; }
.esc-rq8f947etgm8:nth-child(2){ animation-delay:.2s; }
.esc-rq8f947etgm8: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) */
.esc-j6tww149vvgs{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.esc-on144vsu9{
  border:0; border-radius:999px; padding:8px 12px; background:var(--shs-qtqu); 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(--mom-kx);
}
.esc-on144vsu9:is(:hover,:focus){ transform:translateY(-1px); }
a.esc-on144vsu9{ text-decoration:none; display:inline-block; }
a.esc-on144vsu9:link, a.esc-on144vsu9:visited{ color:#fff; }
a.esc-on144vsu9:hover, a.esc-on144vsu9:focus{ color:#fff; }

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

/* Footer */
.esc-f6nv4mvl0{
  padding:16px; background:var(--hdnyij-zwi); border-top:1px solid var(--gc6uo5-iz);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.esc-hq0tgdmh4t05{
  flex:1; padding:10px 14px; border:1px solid var(--gc6uo5-iz); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--xnj6o-ub);
  background:var(--qvlfm8-ujxn); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.esc-hq0tgdmh4t05:focus{ border-color:var(--shs-qtqu); }
.esc-hq0tgdmh4t05::placeholder{ color:var(--xyt8-w4xo); }
.esc-hq0tgdmh4t05.esc-n0h4bxizn5d{ border-color:#c00; }
.esc-kmqi7sj193e6{
  width:40px; height:40px; min-width:40px; border:none; background:var(--shs-qtqu); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.esc-kmqi7sj193e6:disabled{ opacity:.5; cursor:not-allowed; }
.esc-kmqi7sj193e6:not(:disabled):hover{ transform:scale(1.05); }
.esc-kmqi7sj193e6:not(:disabled):active{ transform:scale(0.95); }
.esc-kmqi7sj193e6:focus{ outline:2px solid var(--shs-qtqu); outline-offset:2px; }
.esc-kmqi7sj193e6 svg{ width:20px; height:20px; }

/* Character Counter */
.esc-wci92rj4rv8e{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--xyt8-w4xo); }
.esc-wci92rj4rv8e.esc-clct58s6jr{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.esc-kcy5yxa1p{
  align-self:flex-start;
  max-width:75%;
  background: var(--hdnyij-zwi);
  color: var(--xnj6o-ub);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--mom-kx);
}
.esc-peqi8twdvhl7{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.esc-xn95x9mw7w77.esc-vaaw87ykl2{
  background: transparent; color: var(--xnj6o-ub); border-color: var(--gc6uo5-iz);
}
.esc-xn95x9mw7w77.esc-vaaw87ykl2:hover{
  background: var(--shs-qtqu); color:#fff; border-color: var(--shs-qtqu);
}

/* Mobile */
@media (max-width: 768px){
  .esc-bzekq6nb{ bottom:16px; right:16px; }
  .esc-bzekq6nb.esc-f7h8d6q1ts9{ left:16px; }
  .esc-zfm8b7mhe1{ --q4a-jw:60px; }
  .esc-vb3x3kpq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ai84j9-bk4s) var(--ai84j9-bk4s) 0 0; transform: translateY(100%);
  }
  .esc-vb3x3kpq.esc-k9ujt2vvm4g{ transform: translateY(0); }
  .esc-saoalxic{ padding:20px; }
  .esc-f6nv4mvl0{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.esc-bzekq6nb :focus-visible{ outline:2px solid var(--shs-qtqu); outline-offset:2px; }

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