/* CSS Variables */
:root {
  --krc8d-qy: #4f46e5;
  --ufw0-rlh0: #ffffff;
  --jr52t-q61: #f9fafb;
  --th5-r1: #0f172a;
  --m634-cvl7: #6b7280;
  --tnhap-er47: #e5e7eb;
  --gour6-m8ay: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --go86c-v4nv: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --xr33x-a5tn: 16px;
  --d2e5-h8vp: 56px;
  --u68q-aao3: 12px;
  --cjht-lvhi: 999999;
}

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

/* Main Container */
.cuvqs5jg1y {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--cjht-lvhi);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--th5-r1);
}
.cuvqs5jg1y.alm4mb1go { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.u0qu8g { display: flex; flex-direction: column-reverse; gap: var(--u68q-aao3); align-items: center; }
.w9qzbg5tik {
  width: var(--d2e5-h8vp); height: var(--d2e5-h8vp); min-width: var(--d2e5-h8vp); min-height: var(--d2e5-h8vp);
  border-radius: 50%; border: none; background: var(--krc8d-qy); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--gour6-m8ay);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.w9qzbg5tik:hover { transform: scale(1.05); box-shadow: var(--go86c-v4nv); }
.w9qzbg5tik:active { transform: scale(0.95); }
.w9qzbg5tik:focus { outline: 2px solid var(--krc8d-qy); outline-offset: 2px; }
.w9qzbg5tik svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .w9qzbg5tik.ki321n1pk5{ animation:none; }
  .w9qzbg5tik,.hmt30f0,.o6mu5n{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.hmt30f0{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ufw0-rlh0); border-radius: var(--xr33x-a5tn); box-shadow: var(--go86c-v4nv);
  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;
}
.cuvqs5jg1y.alm4mb1go .hmt30f0{ right:auto; left:24px; }
.hmt30f0.nv6byyb5h{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.lnyegxg{
  padding:16px 20px; background:var(--ufw0-rlh0); border-bottom:1px solid var(--tnhap-er47);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.tuplkzbv{ width:10px; height:10px; border-radius:50%; background:var(--krc8d-qy); flex-shrink:0; }
.n1vs9cda5v{ flex:1; min-width:0; }
.yxdtoba{ font-size:16px; font-weight:600; color:var(--th5-r1); margin:0 0 2px 0; }
.oe3xwdosw{ font-size:13px; color:var(--m634-cvl7); margin:0; }
.e3szqfxpw{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--m634-cvl7);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.e3szqfxpw:hover{ background:var(--jr52t-q61); color:var(--th5-r1); }
.e3szqfxpw:focus{ outline:2px solid var(--krc8d-qy); outline-offset:2px; }
.e3szqfxpw svg{ width:20px; height:20px; }

/* Body */
.f3ulgsxgdj{
  flex:1; overflow-y:auto; padding:16px; background:var(--jr52t-q61);
  display:flex; flex-direction:column; gap:12px;
}
.f3ulgsxgdj::-webkit-scrollbar{ width:6px; }
.f3ulgsxgdj::-webkit-scrollbar-track{ background:transparent; }
.f3ulgsxgdj::-webkit-scrollbar-thumb{ background:var(--tnhap-er47); border-radius:3px; }
.f3ulgsxgdj::-webkit-scrollbar-thumb:hover{ background:var(--m634-cvl7); }

/* Messages */
.o6mu5n{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.o6mu5n.q69opb{ flex-direction:row-reverse; }
.ls31u754x0{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ls31u754x0 a{ color:inherit; }
.o6mu5n.hbd7mp .ls31u754x0{ background:var(--ufw0-rlh0); color:var(--th5-r1); border-bottom-left-radius:4px; }
.o6mu5n.q69opb .ls31u754x0{ background:var(--krc8d-qy); color:#fff; border-bottom-right-radius:4px; }
.p0nhhpfz{ font-size:11px; color:var(--m634-cvl7); margin-top:4px; display:block; }

/* Typing Indicator */
.ata3ly{
  display:flex; gap:8px; padding:10px 14px; background:var(--ufw0-rlh0);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.l0r3a89kx{ width:8px; height:8px; border-radius:50%; background:var(--m634-cvl7); animation:typingDot 1.4s infinite; }
.l0r3a89kx:nth-child(2){ animation-delay:.2s; }
.l0r3a89kx: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) */
.dlcbj62ox{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.h5chdu{
  border:0; border-radius:999px; padding:8px 12px; background:var(--krc8d-qy); 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(--gour6-m8ay);
}
.h5chdu:is(:hover,:focus){ transform:translateY(-1px); }
a.h5chdu{ text-decoration:none; display:inline-block; }
a.h5chdu:link, a.h5chdu:visited{ color:#fff; }
a.h5chdu:hover, a.h5chdu:focus{ color:#fff; }

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

/* Footer */
.wv7yvh{
  padding:16px; background:var(--ufw0-rlh0); border-top:1px solid var(--tnhap-er47);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.j5nbzmv{
  flex:1; padding:10px 14px; border:1px solid var(--tnhap-er47); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--th5-r1);
  background:var(--jr52t-q61); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.j5nbzmv:focus{ border-color:var(--krc8d-qy); }
.j5nbzmv::placeholder{ color:var(--m634-cvl7); }
.j5nbzmv.k04913{ border-color:#c00; }
.a578n2iw{
  width:40px; height:40px; min-width:40px; border:none; background:var(--krc8d-qy); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.a578n2iw:disabled{ opacity:.5; cursor:not-allowed; }
.a578n2iw:not(:disabled):hover{ transform:scale(1.05); }
.a578n2iw:not(:disabled):active{ transform:scale(0.95); }
.a578n2iw:focus{ outline:2px solid var(--krc8d-qy); outline-offset:2px; }
.a578n2iw svg{ width:20px; height:20px; }

/* Character Counter */
.qgl3plcik{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--m634-cvl7); }
.qgl3plcik.ibwqdp3iuq{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.a7ff6g{
  align-self:flex-start;
  max-width:75%;
  background: var(--ufw0-rlh0);
  color: var(--th5-r1);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--gour6-m8ay);
}
.k1afjz8uv{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.i7der97x.mh0al2i76{
  background: transparent; color: var(--th5-r1); border-color: var(--tnhap-er47);
}
.i7der97x.mh0al2i76:hover{
  background: var(--krc8d-qy); color:#fff; border-color: var(--krc8d-qy);
}

/* Mobile */
@media (max-width: 768px){
  .cuvqs5jg1y{ bottom:16px; right:16px; }
  .cuvqs5jg1y.alm4mb1go{ left:16px; }
  .w9qzbg5tik{ --d2e5-h8vp:60px; }
  .hmt30f0{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--xr33x-a5tn) var(--xr33x-a5tn) 0 0; transform: translateY(100%);
  }
  .hmt30f0.nv6byyb5h{ transform: translateY(0); }
  .lnyegxg{ padding:20px; }
  .wv7yvh{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.cuvqs5jg1y :focus-visible{ outline:2px solid var(--krc8d-qy); outline-offset:2px; }

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