/* CSS Variables */
:root {
  --uitp-pdik: #4f46e5;
  --ksg-o5g: #ffffff;
  --lr0jcx-af: #f9fafb;
  --f6jy-w0: #0f172a;
  --q2zj41-ueu: #6b7280;
  --b5f-ywrx: #e5e7eb;
  --pra1nv-q8vs: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --i6ibg1-z6b: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --iplz-sm3: 16px;
  --cps08s-nj: 56px;
  --p7f6m-yyk: 12px;
  --s1qbo9-akw: 999999;
}

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

/* Main Container */
.mn7h5c1 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--s1qbo9-akw);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--f6jy-w0);
}
.mn7h5c1.f4fjy3nru { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.kbypnizp6 { display: flex; flex-direction: column-reverse; gap: var(--p7f6m-yyk); align-items: center; }
.w0d_5a {
  width: var(--cps08s-nj); height: var(--cps08s-nj); min-width: var(--cps08s-nj); min-height: var(--cps08s-nj);
  border-radius: 50%; border: none; background: var(--uitp-pdik); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--pra1nv-q8vs);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.w0d_5a:hover { transform: scale(1.05); box-shadow: var(--i6ibg1-z6b); }
.w0d_5a:active { transform: scale(0.95); }
.w0d_5a:focus { outline: 2px solid var(--uitp-pdik); outline-offset: 2px; }
.w0d_5a svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .w0d_5a.fces_yh{ animation:none; }
  .w0d_5a,.i93vwiuueo,.kq4_1c1vz{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.i93vwiuueo{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ksg-o5g); border-radius: var(--iplz-sm3); box-shadow: var(--i6ibg1-z6b);
  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;
}
.mn7h5c1.f4fjy3nru .i93vwiuueo{ right:auto; left:24px; }
.i93vwiuueo.tpgk5a{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.pitu0_x{
  padding:16px 20px; background:var(--ksg-o5g); border-bottom:1px solid var(--b5f-ywrx);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.zw6rfu{ width:10px; height:10px; border-radius:50%; background:var(--uitp-pdik); flex-shrink:0; }
.i9fdb_e{ flex:1; min-width:0; }
.lckohmx{ font-size:16px; font-weight:600; color:var(--f6jy-w0); margin:0 0 2px 0; }
.og20mz7{ font-size:13px; color:var(--q2zj41-ueu); margin:0; }
.twec19ei{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--q2zj41-ueu);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.twec19ei:hover{ background:var(--lr0jcx-af); color:var(--f6jy-w0); }
.twec19ei:focus{ outline:2px solid var(--uitp-pdik); outline-offset:2px; }
.twec19ei svg{ width:20px; height:20px; }

/* Body */
.j10efi{
  flex:1; overflow-y:auto; padding:16px; background:var(--lr0jcx-af);
  display:flex; flex-direction:column; gap:12px;
}
.j10efi::-webkit-scrollbar{ width:6px; }
.j10efi::-webkit-scrollbar-track{ background:transparent; }
.j10efi::-webkit-scrollbar-thumb{ background:var(--b5f-ywrx); border-radius:3px; }
.j10efi::-webkit-scrollbar-thumb:hover{ background:var(--q2zj41-ueu); }

/* Messages */
.kq4_1c1vz{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.kq4_1c1vz.ts13q3{ flex-direction:row-reverse; }
.q0a5j5{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.q0a5j5 a{ color:inherit; }
.kq4_1c1vz.iymw54 .q0a5j5{ background:var(--ksg-o5g); color:var(--f6jy-w0); border-bottom-left-radius:4px; }
.kq4_1c1vz.ts13q3 .q0a5j5{ background:var(--uitp-pdik); color:#fff; border-bottom-right-radius:4px; }
.st6c0vfx7{ font-size:11px; color:var(--q2zj41-ueu); margin-top:4px; display:block; }

/* Typing Indicator */
.jk7szaz4ao{
  display:flex; gap:8px; padding:10px 14px; background:var(--ksg-o5g);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.gyuhr40kh{ width:8px; height:8px; border-radius:50%; background:var(--q2zj41-ueu); animation:typingDot 1.4s infinite; }
.gyuhr40kh:nth-child(2){ animation-delay:.2s; }
.gyuhr40kh: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) */
.z7qop8866p{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.fn2vc9b{
  border:0; border-radius:999px; padding:8px 12px; background:var(--uitp-pdik); 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(--pra1nv-q8vs);
}
.fn2vc9b:is(:hover,:focus){ transform:translateY(-1px); }
a.fn2vc9b{ text-decoration:none; display:inline-block; }
a.fn2vc9b:link, a.fn2vc9b:visited{ color:#fff; }
a.fn2vc9b:hover, a.fn2vc9b:focus{ color:#fff; }

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

/* Footer */
.vg2qy8i7tv{
  padding:16px; background:var(--ksg-o5g); border-top:1px solid var(--b5f-ywrx);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.x4l7inv19{
  flex:1; padding:10px 14px; border:1px solid var(--b5f-ywrx); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--f6jy-w0);
  background:var(--lr0jcx-af); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.x4l7inv19:focus{ border-color:var(--uitp-pdik); }
.x4l7inv19::placeholder{ color:var(--q2zj41-ueu); }
.x4l7inv19.aa0sgimvmj{ border-color:#c00; }
.jdumlxd{
  width:40px; height:40px; min-width:40px; border:none; background:var(--uitp-pdik); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.jdumlxd:disabled{ opacity:.5; cursor:not-allowed; }
.jdumlxd:not(:disabled):hover{ transform:scale(1.05); }
.jdumlxd:not(:disabled):active{ transform:scale(0.95); }
.jdumlxd:focus{ outline:2px solid var(--uitp-pdik); outline-offset:2px; }
.jdumlxd svg{ width:20px; height:20px; }

/* Character Counter */
.m4kt4d777e{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--q2zj41-ueu); }
.m4kt4d777e.mvcidx7o7{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.h6qof8eio{
  align-self:flex-start;
  max-width:75%;
  background: var(--ksg-o5g);
  color: var(--f6jy-w0);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--pra1nv-q8vs);
}
.pyz7xbspw{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.io7to1.q6fu_gwi{
  background: transparent; color: var(--f6jy-w0); border-color: var(--b5f-ywrx);
}
.io7to1.q6fu_gwi:hover{
  background: var(--uitp-pdik); color:#fff; border-color: var(--uitp-pdik);
}

/* Mobile */
@media (max-width: 768px){
  .mn7h5c1{ bottom:16px; right:16px; }
  .mn7h5c1.f4fjy3nru{ left:16px; }
  .w0d_5a{ --cps08s-nj:60px; }
  .i93vwiuueo{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--iplz-sm3) var(--iplz-sm3) 0 0; transform: translateY(100%);
  }
  .i93vwiuueo.tpgk5a{ transform: translateY(0); }
  .pitu0_x{ padding:20px; }
  .vg2qy8i7tv{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.mn7h5c1 :focus-visible{ outline:2px solid var(--uitp-pdik); outline-offset:2px; }

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