/* CSS Variables */
:root {
  --do0z9-clr: #4f46e5;
  --vk2tr-wk: #ffffff;
  --aqet-eu0: #f9fafb;
  --ipn-eshs: #0f172a;
  --vz3zx-lc: #6b7280;
  --k2br9-quc: #e5e7eb;
  --go3a-xykz: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --jrb-z0: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --x4z46-zer: 16px;
  --azwcno-dc: 56px;
  --y5nsbd-nf: 12px;
  --w3wmwm-hz: 999999;
}

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

/* Main Container */
.s1rAigc {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--w3wmwm-hz);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ipn-eshs);
}
.s1rAigc.bp4Vmqg { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.hfUgi { display: flex; flex-direction: column-reverse; gap: var(--y5nsbd-nf); align-items: center; }
.mjcD0hm {
  width: var(--azwcno-dc); height: var(--azwcno-dc); min-width: var(--azwcno-dc); min-height: var(--azwcno-dc);
  border-radius: 50%; border: none; background: var(--do0z9-clr); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--go3a-xykz);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.mjcD0hm:hover { transform: scale(1.05); box-shadow: var(--jrb-z0); }
.mjcD0hm:active { transform: scale(0.95); }
.mjcD0hm:focus { outline: 2px solid var(--do0z9-clr); outline-offset: 2px; }
.mjcD0hm svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .mjcD0hm.riN5o{ animation:none; }
  .mjcD0hm,.rm2jB9od,.gluHeej{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.rm2jB9od{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--vk2tr-wk); border-radius: var(--x4z46-zer); box-shadow: var(--jrb-z0);
  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;
}
.s1rAigc.bp4Vmqg .rm2jB9od{ right:auto; left:24px; }
.rm2jB9od.pg9oH9m6{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.eiQd7{
  padding:16px 20px; background:var(--vk2tr-wk); border-bottom:1px solid var(--k2br9-quc);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.sr2oN8re{ width:10px; height:10px; border-radius:50%; background:var(--do0z9-clr); flex-shrink:0; }
.gf5Xdz{ flex:1; min-width:0; }
.vzrNnc{ font-size:16px; font-weight:600; color:var(--ipn-eshs); margin:0 0 2px 0; }
.afhiFh74{ font-size:13px; color:var(--vz3zx-lc); margin:0; }
.ycT51{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--vz3zx-lc);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ycT51:hover{ background:var(--aqet-eu0); color:var(--ipn-eshs); }
.ycT51:focus{ outline:2px solid var(--do0z9-clr); outline-offset:2px; }
.ycT51 svg{ width:20px; height:20px; }

/* Body */
.kdtZp22{
  flex:1; overflow-y:auto; padding:16px; background:var(--aqet-eu0);
  display:flex; flex-direction:column; gap:12px;
}
.kdtZp22::-webkit-scrollbar{ width:6px; }
.kdtZp22::-webkit-scrollbar-track{ background:transparent; }
.kdtZp22::-webkit-scrollbar-thumb{ background:var(--k2br9-quc); border-radius:3px; }
.kdtZp22::-webkit-scrollbar-thumb:hover{ background:var(--vz3zx-lc); }

/* Messages */
.gluHeej{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.gluHeej.s1hSv6i{ flex-direction:row-reverse; }
.tvr3Swl6{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.tvr3Swl6 a{ color:inherit; }
.gluHeej.ceuZ3uv .tvr3Swl6{ background:var(--vk2tr-wk); color:var(--ipn-eshs); border-bottom-left-radius:4px; }
.gluHeej.s1hSv6i .tvr3Swl6{ background:var(--do0z9-clr); color:#fff; border-bottom-right-radius:4px; }
.jl8Ozw{ font-size:11px; color:var(--vz3zx-lc); margin-top:4px; display:block; }

/* Typing Indicator */
.i8acRz5s{
  display:flex; gap:8px; padding:10px 14px; background:var(--vk2tr-wk);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.zvQ7h{ width:8px; height:8px; border-radius:50%; background:var(--vz3zx-lc); animation:typingDot 1.4s infinite; }
.zvQ7h:nth-child(2){ animation-delay:.2s; }
.zvQ7h: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) */
.rrCa8{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.w4aYvoe{
  border:0; border-radius:999px; padding:8px 12px; background:var(--do0z9-clr); 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(--go3a-xykz);
}
.w4aYvoe:is(:hover,:focus){ transform:translateY(-1px); }
a.w4aYvoe{ text-decoration:none; display:inline-block; }
a.w4aYvoe:link, a.w4aYvoe:visited{ color:#fff; }
a.w4aYvoe:hover, a.w4aYvoe:focus{ color:#fff; }

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

/* Footer */
.vugUpf{
  padding:16px; background:var(--vk2tr-wk); border-top:1px solid var(--k2br9-quc);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ujUgy{
  flex:1; padding:10px 14px; border:1px solid var(--k2br9-quc); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ipn-eshs);
  background:var(--aqet-eu0); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ujUgy:focus{ border-color:var(--do0z9-clr); }
.ujUgy::placeholder{ color:var(--vz3zx-lc); }
.ujUgy.uzdGru{ border-color:#c00; }
.x4phDakl{
  width:40px; height:40px; min-width:40px; border:none; background:var(--do0z9-clr); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.x4phDakl:disabled{ opacity:.5; cursor:not-allowed; }
.x4phDakl:not(:disabled):hover{ transform:scale(1.05); }
.x4phDakl:not(:disabled):active{ transform:scale(0.95); }
.x4phDakl:focus{ outline:2px solid var(--do0z9-clr); outline-offset:2px; }
.x4phDakl svg{ width:20px; height:20px; }

/* Character Counter */
.s5mH9x{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--vz3zx-lc); }
.s5mH9x.xqT9i{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ogvNzv{
  align-self:flex-start;
  max-width:75%;
  background: var(--vk2tr-wk);
  color: var(--ipn-eshs);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--go3a-xykz);
}
.vpxxYv0v{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.szKr0.hz5Ud5{
  background: transparent; color: var(--ipn-eshs); border-color: var(--k2br9-quc);
}
.szKr0.hz5Ud5:hover{
  background: var(--do0z9-clr); color:#fff; border-color: var(--do0z9-clr);
}

/* Mobile */
@media (max-width: 768px){
  .s1rAigc{ bottom:16px; right:16px; }
  .s1rAigc.bp4Vmqg{ left:16px; }
  .mjcD0hm{ --azwcno-dc:60px; }
  .rm2jB9od{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--x4z46-zer) var(--x4z46-zer) 0 0; transform: translateY(100%);
  }
  .rm2jB9od.pg9oH9m6{ transform: translateY(0); }
  .eiQd7{ padding:20px; }
  .vugUpf{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.s1rAigc :focus-visible{ outline:2px solid var(--do0z9-clr); outline-offset:2px; }

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