/* CSS Variables */
:root {
  --f70rb-ws: #4f46e5;
  --q8z19g-lgr: #ffffff;
  --yxvk-ke5: #f9fafb;
  --yvf-ee: #0f172a;
  --bche-lvnp: #6b7280;
  --vb48-z25: #e5e7eb;
  --qk40z-pzbj: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --v755a-w0: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --cucadr-ju9: 16px;
  --r8ve-aqel: 56px;
  --dc0-hfd: 12px;
  --bax9l-gz: 999999;
}

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

/* Main Container */
.mif2Smd3 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--bax9l-gz);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--yvf-ee);
}
.mif2Smd3.v1bqBm5g { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.lvfVmaf { display: flex; flex-direction: column-reverse; gap: var(--dc0-hfd); align-items: center; }
.m6Et0 {
  width: var(--r8ve-aqel); height: var(--r8ve-aqel); min-width: var(--r8ve-aqel); min-height: var(--r8ve-aqel);
  border-radius: 50%; border: none; background: var(--f70rb-ws); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--qk40z-pzbj);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.m6Et0:hover { transform: scale(1.05); box-shadow: var(--v755a-w0); }
.m6Et0:active { transform: scale(0.95); }
.m6Et0:focus { outline: 2px solid var(--f70rb-ws); outline-offset: 2px; }
.m6Et0 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .m6Et0.u5Fk3{ animation:none; }
  .m6Et0,.f0vsPnyc,.fhbjVnlq{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.f0vsPnyc{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--q8z19g-lgr); border-radius: var(--cucadr-ju9); box-shadow: var(--v755a-w0);
  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;
}
.mif2Smd3.v1bqBm5g .f0vsPnyc{ right:auto; left:24px; }
.f0vsPnyc.mpxKi9z{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.m5cGy3t{
  padding:16px 20px; background:var(--q8z19g-lgr); border-bottom:1px solid var(--vb48-z25);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.a0xvCs9a{ width:10px; height:10px; border-radius:50%; background:var(--f70rb-ws); flex-shrink:0; }
.x1ruN82j{ flex:1; min-width:0; }
.zlrOc4{ font-size:16px; font-weight:600; color:var(--yvf-ee); margin:0 0 2px 0; }
.w6Ndl{ font-size:13px; color:var(--bche-lvnp); margin:0; }
.nlbQ668{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--bche-lvnp);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.nlbQ668:hover{ background:var(--yxvk-ke5); color:var(--yvf-ee); }
.nlbQ668:focus{ outline:2px solid var(--f70rb-ws); outline-offset:2px; }
.nlbQ668 svg{ width:20px; height:20px; }

/* Body */
.pk7hSkg8{
  flex:1; overflow-y:auto; padding:16px; background:var(--yxvk-ke5);
  display:flex; flex-direction:column; gap:12px;
}
.pk7hSkg8::-webkit-scrollbar{ width:6px; }
.pk7hSkg8::-webkit-scrollbar-track{ background:transparent; }
.pk7hSkg8::-webkit-scrollbar-thumb{ background:var(--vb48-z25); border-radius:3px; }
.pk7hSkg8::-webkit-scrollbar-thumb:hover{ background:var(--bche-lvnp); }

/* Messages */
.fhbjVnlq{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.fhbjVnlq.t9fF8s0{ flex-direction:row-reverse; }
.clE5v{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.clE5v a{ color:inherit; }
.fhbjVnlq.icaQxp .clE5v{ background:var(--q8z19g-lgr); color:var(--yvf-ee); border-bottom-left-radius:4px; }
.fhbjVnlq.t9fF8s0 .clE5v{ background:var(--f70rb-ws); color:#fff; border-bottom-right-radius:4px; }
.xcIgf{ font-size:11px; color:var(--bche-lvnp); margin-top:4px; display:block; }

/* Typing Indicator */
.hcGke{
  display:flex; gap:8px; padding:10px 14px; background:var(--q8z19g-lgr);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.f7f9Q1ye{ width:8px; height:8px; border-radius:50%; background:var(--bche-lvnp); animation:typingDot 1.4s infinite; }
.f7f9Q1ye:nth-child(2){ animation-delay:.2s; }
.f7f9Q1ye: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) */
.f00Jkb5{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.n0twQvsc{
  border:0; border-radius:999px; padding:8px 12px; background:var(--f70rb-ws); 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(--qk40z-pzbj);
}
.n0twQvsc:is(:hover,:focus){ transform:translateY(-1px); }
a.n0twQvsc{ text-decoration:none; display:inline-block; }
a.n0twQvsc:link, a.n0twQvsc:visited{ color:#fff; }
a.n0twQvsc:hover, a.n0twQvsc:focus{ color:#fff; }

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

/* Footer */
.s7Lm0{
  padding:16px; background:var(--q8z19g-lgr); border-top:1px solid var(--vb48-z25);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.l7qoTlks{
  flex:1; padding:10px 14px; border:1px solid var(--vb48-z25); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--yvf-ee);
  background:var(--yxvk-ke5); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.l7qoTlks:focus{ border-color:var(--f70rb-ws); }
.l7qoTlks::placeholder{ color:var(--bche-lvnp); }
.l7qoTlks.k7lNnv{ border-color:#c00; }
.e1gnB13d{
  width:40px; height:40px; min-width:40px; border:none; background:var(--f70rb-ws); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.e1gnB13d:disabled{ opacity:.5; cursor:not-allowed; }
.e1gnB13d:not(:disabled):hover{ transform:scale(1.05); }
.e1gnB13d:not(:disabled):active{ transform:scale(0.95); }
.e1gnB13d:focus{ outline:2px solid var(--f70rb-ws); outline-offset:2px; }
.e1gnB13d svg{ width:20px; height:20px; }

/* Character Counter */
.ucypV9uq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--bche-lvnp); }
.ucypV9uq.lebWni{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.w1vAzq{
  align-self:flex-start;
  max-width:75%;
  background: var(--q8z19g-lgr);
  color: var(--yvf-ee);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--qk40z-pzbj);
}
.q2sQx6{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.umVff.y5m5Bptb{
  background: transparent; color: var(--yvf-ee); border-color: var(--vb48-z25);
}
.umVff.y5m5Bptb:hover{
  background: var(--f70rb-ws); color:#fff; border-color: var(--f70rb-ws);
}

/* Mobile */
@media (max-width: 768px){
  .mif2Smd3{ bottom:16px; right:16px; }
  .mif2Smd3.v1bqBm5g{ left:16px; }
  .m6Et0{ --r8ve-aqel:60px; }
  .f0vsPnyc{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--cucadr-ju9) var(--cucadr-ju9) 0 0; transform: translateY(100%);
  }
  .f0vsPnyc.mpxKi9z{ transform: translateY(0); }
  .m5cGy3t{ padding:20px; }
  .s7Lm0{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.mif2Smd3 :focus-visible{ outline:2px solid var(--f70rb-ws); outline-offset:2px; }

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