/* CSS Variables */
:root {
  --g8x65n-d2eb: #4f46e5;
  --mgykl-u2k: #ffffff;
  --y3pdb-si: #f9fafb;
  --d4d-jn: #0f172a;
  --iu31hr-hv: #6b7280;
  --t9d-x2: #e5e7eb;
  --cdtj-at6t: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ea56-h3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --s2o09-bogq: 16px;
  --urin4-d8i: 56px;
  --thj-a9: 12px;
  --azyc9t-j7x: 999999;
}

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

/* Main Container */
.hp85eujw6rd90av {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--azyc9t-j7x);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--d4d-jn);
}
.hp85eujw6rd90av.lhdie3oekskz32nk { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.kl958z2cj45fbc65 { display: flex; flex-direction: column-reverse; gap: var(--thj-a9); align-items: center; }
.kungj9iqvgv9cflb {
  width: var(--urin4-d8i); height: var(--urin4-d8i); min-width: var(--urin4-d8i); min-height: var(--urin4-d8i);
  border-radius: 50%; border: none; background: var(--g8x65n-d2eb); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--cdtj-at6t);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.kungj9iqvgv9cflb:hover { transform: scale(1.05); box-shadow: var(--ea56-h3); }
.kungj9iqvgv9cflb:active { transform: scale(0.95); }
.kungj9iqvgv9cflb:focus { outline: 2px solid var(--g8x65n-d2eb); outline-offset: 2px; }
.kungj9iqvgv9cflb svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .kungj9iqvgv9cflb.p9732lm8wj4c7p3j{ animation:none; }
  .kungj9iqvgv9cflb,.q-hc-fnhgaguph,.zlrbug338zx7j0{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.q-hc-fnhgaguph{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--mgykl-u2k); border-radius: var(--s2o09-bogq); box-shadow: var(--ea56-h3);
  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;
}
.hp85eujw6rd90av.lhdie3oekskz32nk .q-hc-fnhgaguph{ right:auto; left:24px; }
.q-hc-fnhgaguph.r72fls767ao93h50{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.bhqkh5lxn35syo{
  padding:16px 20px; background:var(--mgykl-u2k); border-bottom:1px solid var(--t9d-x2);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.q1fufp-45-ie3g{ width:10px; height:10px; border-radius:50%; background:var(--g8x65n-d2eb); flex-shrink:0; }
.ey2e8m012fftvcfq{ flex:1; min-width:0; }
.y008s-27l7v7s3sv{ font-size:16px; font-weight:600; color:var(--d4d-jn); margin:0 0 2px 0; }
.j8xamcwz-z7hk8n{ font-size:13px; color:var(--iu31hr-hv); margin:0; }
.a6e4efd0qhy5kjy{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--iu31hr-hv);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.a6e4efd0qhy5kjy:hover{ background:var(--y3pdb-si); color:var(--d4d-jn); }
.a6e4efd0qhy5kjy:focus{ outline:2px solid var(--g8x65n-d2eb); outline-offset:2px; }
.a6e4efd0qhy5kjy svg{ width:20px; height:20px; }

/* Body */
.b61y0jomvn4tzjaw{
  flex:1; overflow-y:auto; padding:16px; background:var(--y3pdb-si);
  display:flex; flex-direction:column; gap:12px;
}
.b61y0jomvn4tzjaw::-webkit-scrollbar{ width:6px; }
.b61y0jomvn4tzjaw::-webkit-scrollbar-track{ background:transparent; }
.b61y0jomvn4tzjaw::-webkit-scrollbar-thumb{ background:var(--t9d-x2); border-radius:3px; }
.b61y0jomvn4tzjaw::-webkit-scrollbar-thumb:hover{ background:var(--iu31hr-hv); }

/* Messages */
.zlrbug338zx7j0{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.zlrbug338zx7j0.o8p5ls2w4v9073k{ flex-direction:row-reverse; }
.vfja4ndjgevkaz9tut{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.vfja4ndjgevkaz9tut a{ color:inherit; }
.zlrbug338zx7j0.o0xyn91gj77uy80vb .vfja4ndjgevkaz9tut{ background:var(--mgykl-u2k); color:var(--d4d-jn); border-bottom-left-radius:4px; }
.zlrbug338zx7j0.o8p5ls2w4v9073k .vfja4ndjgevkaz9tut{ background:var(--g8x65n-d2eb); color:#fff; border-bottom-right-radius:4px; }
.myntx8pvmr82f0{ font-size:11px; color:var(--iu31hr-hv); margin-top:4px; display:block; }

/* Typing Indicator */
.r4e3s1wbln3nb0{
  display:flex; gap:8px; padding:10px 14px; background:var(--mgykl-u2k);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.z015l48e5d48jheklu{ width:8px; height:8px; border-radius:50%; background:var(--iu31hr-hv); animation:typingDot 1.4s infinite; }
.z015l48e5d48jheklu:nth-child(2){ animation-delay:.2s; }
.z015l48e5d48jheklu: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) */
.v0kyamp-dzkfbx{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.limuuitv8hh3qr2wpo{
  border:0; border-radius:999px; padding:8px 12px; background:var(--g8x65n-d2eb); 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(--cdtj-at6t);
}
.limuuitv8hh3qr2wpo:is(:hover,:focus){ transform:translateY(-1px); }
a.limuuitv8hh3qr2wpo{ text-decoration:none; display:inline-block; }
a.limuuitv8hh3qr2wpo:link, a.limuuitv8hh3qr2wpo:visited{ color:#fff; }
a.limuuitv8hh3qr2wpo:hover, a.limuuitv8hh3qr2wpo:focus{ color:#fff; }

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

/* Footer */
.wpbzz5zzbrakoyr{
  padding:16px; background:var(--mgykl-u2k); border-top:1px solid var(--t9d-x2);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.xi56bp-5pytueb{
  flex:1; padding:10px 14px; border:1px solid var(--t9d-x2); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--d4d-jn);
  background:var(--y3pdb-si); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.xi56bp-5pytueb:focus{ border-color:var(--g8x65n-d2eb); }
.xi56bp-5pytueb::placeholder{ color:var(--iu31hr-hv); }
.xi56bp-5pytueb.dtslvuj286onpw{ border-color:#c00; }
.cifbhyz0y6qemhk{
  width:40px; height:40px; min-width:40px; border:none; background:var(--g8x65n-d2eb); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.cifbhyz0y6qemhk:disabled{ opacity:.5; cursor:not-allowed; }
.cifbhyz0y6qemhk:not(:disabled):hover{ transform:scale(1.05); }
.cifbhyz0y6qemhk:not(:disabled):active{ transform:scale(0.95); }
.cifbhyz0y6qemhk:focus{ outline:2px solid var(--g8x65n-d2eb); outline-offset:2px; }
.cifbhyz0y6qemhk svg{ width:20px; height:20px; }

/* Character Counter */
.fe04ijvz5r11jlzdyy{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--iu31hr-hv); }
.fe04ijvz5r11jlzdyy.ztljgbbrjwqyo2{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.d-7gmwlrzpn42343c{
  align-self:flex-start;
  max-width:75%;
  background: var(--mgykl-u2k);
  color: var(--d4d-jn);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--cdtj-at6t);
}
.fd-82ws8hy9cnh{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.uk3uu3jjgpc6vdh.b-s8oo6mnzh5rhwx{
  background: transparent; color: var(--d4d-jn); border-color: var(--t9d-x2);
}
.uk3uu3jjgpc6vdh.b-s8oo6mnzh5rhwx:hover{
  background: var(--g8x65n-d2eb); color:#fff; border-color: var(--g8x65n-d2eb);
}

/* Mobile */
@media (max-width: 768px){
  .hp85eujw6rd90av{ bottom:16px; right:16px; }
  .hp85eujw6rd90av.lhdie3oekskz32nk{ left:16px; }
  .kungj9iqvgv9cflb{ --urin4-d8i:60px; }
  .q-hc-fnhgaguph{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--s2o09-bogq) var(--s2o09-bogq) 0 0; transform: translateY(100%);
  }
  .q-hc-fnhgaguph.r72fls767ao93h50{ transform: translateY(0); }
  .bhqkh5lxn35syo{ padding:20px; }
  .wpbzz5zzbrakoyr{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .kungj9iqvgv9cflb, .q-hc-fnhgaguph{ border:2px solid currentColor; } }

/* Focus Visible */
.hp85eujw6rd90av :focus-visible{ outline:2px solid var(--g8x65n-d2eb); outline-offset:2px; }

/* SR-only */
.xfpo1c8-eaksht27g{
  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 */
.csuq6c-27w9xltnybi{ display:none !important; }
