/* CSS Variables */
:root {
  --umtdve-qx: #4f46e5;
  --c3jmhv-eo7: #ffffff;
  --da4b-rl2u: #f9fafb;
  --lk0-da: #0f172a;
  --g35-jd: #6b7280;
  --rwsh-k93x: #e5e7eb;
  --lcqe-nds: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --i1bg-v3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ejx31-r0: 16px;
  --vd13-zsug: 56px;
  --awb-xq: 12px;
  --wci7yt-e9dd: 999999;
}

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

/* Main Container */
.nu8zjn {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--wci7yt-e9dd);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--lk0-da);
}
.nu8zjn.okuz { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.d5ygi0 { display: flex; flex-direction: column-reverse; gap: var(--awb-xq); align-items: center; }
.e95v {
  width: var(--vd13-zsug); height: var(--vd13-zsug); min-width: var(--vd13-zsug); min-height: var(--vd13-zsug);
  border-radius: 50%; border: none; background: var(--umtdve-qx); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--lcqe-nds);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.e95v:hover { transform: scale(1.05); box-shadow: var(--i1bg-v3); }
.e95v:active { transform: scale(0.95); }
.e95v:focus { outline: 2px solid var(--umtdve-qx); outline-offset: 2px; }
.e95v svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .e95v.c33f{ animation:none; }
  .e95v,.yneq,.w1uzil{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.yneq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--c3jmhv-eo7); border-radius: var(--ejx31-r0); box-shadow: var(--i1bg-v3);
  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;
}
.nu8zjn.okuz .yneq{ right:auto; left:24px; }
.yneq.d2wzn{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.h0anvb{
  padding:16px 20px; background:var(--c3jmhv-eo7); border-bottom:1px solid var(--rwsh-k93x);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ull2j{ width:10px; height:10px; border-radius:50%; background:var(--umtdve-qx); flex-shrink:0; }
.uzdzn{ flex:1; min-width:0; }
.ll2x{ font-size:16px; font-weight:600; color:var(--lk0-da); margin:0 0 2px 0; }
.oloel2{ font-size:13px; color:var(--g35-jd); margin:0; }
.fn27{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--g35-jd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.fn27:hover{ background:var(--da4b-rl2u); color:var(--lk0-da); }
.fn27:focus{ outline:2px solid var(--umtdve-qx); outline-offset:2px; }
.fn27 svg{ width:20px; height:20px; }

/* Body */
.dodomq{
  flex:1; overflow-y:auto; padding:16px; background:var(--da4b-rl2u);
  display:flex; flex-direction:column; gap:12px;
}
.dodomq::-webkit-scrollbar{ width:6px; }
.dodomq::-webkit-scrollbar-track{ background:transparent; }
.dodomq::-webkit-scrollbar-thumb{ background:var(--rwsh-k93x); border-radius:3px; }
.dodomq::-webkit-scrollbar-thumb:hover{ background:var(--g35-jd); }

/* Messages */
.w1uzil{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.w1uzil.sq2w{ flex-direction:row-reverse; }
.tj28p{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.tj28p a{ color:inherit; }
.w1uzil.u1sc .tj28p{ background:var(--c3jmhv-eo7); color:var(--lk0-da); border-bottom-left-radius:4px; }
.w1uzil.sq2w .tj28p{ background:var(--umtdve-qx); color:#fff; border-bottom-right-radius:4px; }
.nizfa{ font-size:11px; color:var(--g35-jd); margin-top:4px; display:block; }

/* Typing Indicator */
.zahzd{
  display:flex; gap:8px; padding:10px 14px; background:var(--c3jmhv-eo7);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.h5jgaq{ width:8px; height:8px; border-radius:50%; background:var(--g35-jd); animation:typingDot 1.4s infinite; }
.h5jgaq:nth-child(2){ animation-delay:.2s; }
.h5jgaq: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) */
.nw6u3{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.h0vq1l{
  border:0; border-radius:999px; padding:8px 12px; background:var(--umtdve-qx); 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(--lcqe-nds);
}
.h0vq1l:is(:hover,:focus){ transform:translateY(-1px); }
a.h0vq1l{ text-decoration:none; display:inline-block; }
a.h0vq1l:link, a.h0vq1l:visited{ color:#fff; }
a.h0vq1l:hover, a.h0vq1l:focus{ color:#fff; }

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

/* Footer */
.khm25{
  padding:16px; background:var(--c3jmhv-eo7); border-top:1px solid var(--rwsh-k93x);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.uldf5z{
  flex:1; padding:10px 14px; border:1px solid var(--rwsh-k93x); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--lk0-da);
  background:var(--da4b-rl2u); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.uldf5z:focus{ border-color:var(--umtdve-qx); }
.uldf5z::placeholder{ color:var(--g35-jd); }
.uldf5z.quiwih{ border-color:#c00; }
.vtukb{
  width:40px; height:40px; min-width:40px; border:none; background:var(--umtdve-qx); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vtukb:disabled{ opacity:.5; cursor:not-allowed; }
.vtukb:not(:disabled):hover{ transform:scale(1.05); }
.vtukb:not(:disabled):active{ transform:scale(0.95); }
.vtukb:focus{ outline:2px solid var(--umtdve-qx); outline-offset:2px; }
.vtukb svg{ width:20px; height:20px; }

/* Character Counter */
.zgcl{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--g35-jd); }
.zgcl.jvykc{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.x1sk1k{
  align-self:flex-start;
  max-width:75%;
  background: var(--c3jmhv-eo7);
  color: var(--lk0-da);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--lcqe-nds);
}
.xmia{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ir2zst.xrglgu{
  background: transparent; color: var(--lk0-da); border-color: var(--rwsh-k93x);
}
.ir2zst.xrglgu:hover{
  background: var(--umtdve-qx); color:#fff; border-color: var(--umtdve-qx);
}

/* Mobile */
@media (max-width: 768px){
  .nu8zjn{ bottom:16px; right:16px; }
  .nu8zjn.okuz{ left:16px; }
  .e95v{ --vd13-zsug:60px; }
  .yneq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ejx31-r0) var(--ejx31-r0) 0 0; transform: translateY(100%);
  }
  .yneq.d2wzn{ transform: translateY(0); }
  .h0anvb{ padding:20px; }
  .khm25{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.nu8zjn :focus-visible{ outline:2px solid var(--umtdve-qx); outline-offset:2px; }

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