/* CSS Variables */
:root {
  --wi9xq-fdv: #4f46e5;
  --qza9-vk: #ffffff;
  --anexdd-oia: #f9fafb;
  --vjjxt-rc: #0f172a;
  --zck-stu: #6b7280;
  --f5wp7n-rhm: #e5e7eb;
  --i0asvn-pev: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --awc-ujq: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hujrsq-rl9: 16px;
  --f9446-ppw: 56px;
  --hi5a-ay: 12px;
  --zwpx7-tlmz: 999999;
}

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

/* Main Container */
.esm4Z0lu {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--zwpx7-tlmz);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--vjjxt-rc);
}
.esm4Z0lu.c37Zvj { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.r78Ysrl { display: flex; flex-direction: column-reverse; gap: var(--hi5a-ay); align-items: center; }
.lkI0t {
  width: var(--f9446-ppw); height: var(--f9446-ppw); min-width: var(--f9446-ppw); min-height: var(--f9446-ppw);
  border-radius: 50%; border: none; background: var(--wi9xq-fdv); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--i0asvn-pev);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.lkI0t:hover { transform: scale(1.05); box-shadow: var(--awc-ujq); }
.lkI0t:active { transform: scale(0.95); }
.lkI0t:focus { outline: 2px solid var(--wi9xq-fdv); outline-offset: 2px; }
.lkI0t svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .lkI0t.lkbMwx{ animation:none; }
  .lkI0t,.cxLso,.ldgNdso{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.cxLso{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--qza9-vk); border-radius: var(--hujrsq-rl9); box-shadow: var(--awc-ujq);
  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;
}
.esm4Z0lu.c37Zvj .cxLso{ right:auto; left:24px; }
.cxLso.deQsw{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.il1dAqtl{
  padding:16px 20px; background:var(--qza9-vk); border-bottom:1px solid var(--f5wp7n-rhm);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.o03Uf1{ width:10px; height:10px; border-radius:50%; background:var(--wi9xq-fdv); flex-shrink:0; }
.bi39Di1a{ flex:1; min-width:0; }
.aeh3H4a2{ font-size:16px; font-weight:600; color:var(--vjjxt-rc); margin:0 0 2px 0; }
.bztZupk{ font-size:13px; color:var(--zck-stu); margin:0; }
.qv6cU6oq{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--zck-stu);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.qv6cU6oq:hover{ background:var(--anexdd-oia); color:var(--vjjxt-rc); }
.qv6cU6oq:focus{ outline:2px solid var(--wi9xq-fdv); outline-offset:2px; }
.qv6cU6oq svg{ width:20px; height:20px; }

/* Body */
.ep7vU6q8{
  flex:1; overflow-y:auto; padding:16px; background:var(--anexdd-oia);
  display:flex; flex-direction:column; gap:12px;
}
.ep7vU6q8::-webkit-scrollbar{ width:6px; }
.ep7vU6q8::-webkit-scrollbar-track{ background:transparent; }
.ep7vU6q8::-webkit-scrollbar-thumb{ background:var(--f5wp7n-rhm); border-radius:3px; }
.ep7vU6q8::-webkit-scrollbar-thumb:hover{ background:var(--zck-stu); }

/* Messages */
.ldgNdso{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ldgNdso.olYn3{ flex-direction:row-reverse; }
.cyqhAihb{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.cyqhAihb a{ color:inherit; }
.ldgNdso.a8wCn1 .cyqhAihb{ background:var(--qza9-vk); color:var(--vjjxt-rc); border-bottom-left-radius:4px; }
.ldgNdso.olYn3 .cyqhAihb{ background:var(--wi9xq-fdv); color:#fff; border-bottom-right-radius:4px; }
.efjAune{ font-size:11px; color:var(--zck-stu); margin-top:4px; display:block; }

/* Typing Indicator */
.ksfUk5{
  display:flex; gap:8px; padding:10px 14px; background:var(--qza9-vk);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.k20zV8vd{ width:8px; height:8px; border-radius:50%; background:var(--zck-stu); animation:typingDot 1.4s infinite; }
.k20zV8vd:nth-child(2){ animation-delay:.2s; }
.k20zV8vd: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) */
.fqgUzsc{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.fegbUf8o{
  border:0; border-radius:999px; padding:8px 12px; background:var(--wi9xq-fdv); 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(--i0asvn-pev);
}
.fegbUf8o:is(:hover,:focus){ transform:translateY(-1px); }
a.fegbUf8o{ text-decoration:none; display:inline-block; }
a.fegbUf8o:link, a.fegbUf8o:visited{ color:#fff; }
a.fegbUf8o:hover, a.fegbUf8o:focus{ color:#fff; }

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

/* Footer */
.y83Vcsf{
  padding:16px; background:var(--qza9-vk); border-top:1px solid var(--f5wp7n-rhm);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.fxzbG2f0{
  flex:1; padding:10px 14px; border:1px solid var(--f5wp7n-rhm); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--vjjxt-rc);
  background:var(--anexdd-oia); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.fxzbG2f0:focus{ border-color:var(--wi9xq-fdv); }
.fxzbG2f0::placeholder{ color:var(--zck-stu); }
.fxzbG2f0.eqj3Ns0s{ border-color:#c00; }
.dte7B7sv{
  width:40px; height:40px; min-width:40px; border:none; background:var(--wi9xq-fdv); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.dte7B7sv:disabled{ opacity:.5; cursor:not-allowed; }
.dte7B7sv:not(:disabled):hover{ transform:scale(1.05); }
.dte7B7sv:not(:disabled):active{ transform:scale(0.95); }
.dte7B7sv:focus{ outline:2px solid var(--wi9xq-fdv); outline-offset:2px; }
.dte7B7sv svg{ width:20px; height:20px; }

/* Character Counter */
.ucfkM3te{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--zck-stu); }
.ucfkM3te.qi8qN93u{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.g6hWt5{
  align-self:flex-start;
  max-width:75%;
  background: var(--qza9-vk);
  color: var(--vjjxt-rc);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--i0asvn-pev);
}
.rab3Gjpt{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.jnSbd.i4K4r{
  background: transparent; color: var(--vjjxt-rc); border-color: var(--f5wp7n-rhm);
}
.jnSbd.i4K4r:hover{
  background: var(--wi9xq-fdv); color:#fff; border-color: var(--wi9xq-fdv);
}

/* Mobile */
@media (max-width: 768px){
  .esm4Z0lu{ bottom:16px; right:16px; }
  .esm4Z0lu.c37Zvj{ left:16px; }
  .lkI0t{ --f9446-ppw:60px; }
  .cxLso{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--hujrsq-rl9) var(--hujrsq-rl9) 0 0; transform: translateY(100%);
  }
  .cxLso.deQsw{ transform: translateY(0); }
  .il1dAqtl{ padding:20px; }
  .y83Vcsf{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.esm4Z0lu :focus-visible{ outline:2px solid var(--wi9xq-fdv); outline-offset:2px; }

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