/* CSS Variables */
:root {
  --r1xk-g51: #4f46e5;
  --qfzi1x-p0yg: #ffffff;
  --mah9-mm: #f9fafb;
  --zvlek-wy3y: #0f172a;
  --qwu-zwq: #6b7280;
  --vv36wn-z5: #e5e7eb;
  --fadjf-hd: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --t6to-ahh: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --xvi4p-fh: 16px;
  --sl6j-xk: 56px;
  --ij4z-xl5: 12px;
  --dlp-qwma: 999999;
}

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

/* Main Container */
.pla-wzvzipx98 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--dlp-qwma);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--zvlek-wy3y);
}
.pla-wzvzipx98.pla-dxv97x2vjn { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.pla-het0znxzlh5q { display: flex; flex-direction: column-reverse; gap: var(--ij4z-xl5); align-items: center; }
.pla-mycvslxc {
  width: var(--sl6j-xk); height: var(--sl6j-xk); min-width: var(--sl6j-xk); min-height: var(--sl6j-xk);
  border-radius: 50%; border: none; background: var(--r1xk-g51); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--fadjf-hd);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.pla-mycvslxc:hover { transform: scale(1.05); box-shadow: var(--t6to-ahh); }
.pla-mycvslxc:active { transform: scale(0.95); }
.pla-mycvslxc:focus { outline: 2px solid var(--r1xk-g51); outline-offset: 2px; }
.pla-mycvslxc svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pla-mycvslxc.pla-v5z2acor5j{ animation:none; }
  .pla-mycvslxc,.pla-hgzoe7lxv9g,.pla-wq6gs3d4iy{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.pla-hgzoe7lxv9g{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--qfzi1x-p0yg); border-radius: var(--xvi4p-fh); box-shadow: var(--t6to-ahh);
  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;
}
.pla-wzvzipx98.pla-dxv97x2vjn .pla-hgzoe7lxv9g{ right:auto; left:24px; }
.pla-hgzoe7lxv9g.pla-m0g6unzz{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.pla-qz4dera7y{
  padding:16px 20px; background:var(--qfzi1x-p0yg); border-bottom:1px solid var(--vv36wn-z5);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.pla-ob1gg2wf9284{ width:10px; height:10px; border-radius:50%; background:var(--r1xk-g51); flex-shrink:0; }
.pla-wthka0md{ flex:1; min-width:0; }
.pla-ya90kei359dr{ font-size:16px; font-weight:600; color:var(--zvlek-wy3y); margin:0 0 2px 0; }
.pla-za81g1y4vxqy{ font-size:13px; color:var(--qwu-zwq); margin:0; }
.pla-cpes2b9qi{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--qwu-zwq);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.pla-cpes2b9qi:hover{ background:var(--mah9-mm); color:var(--zvlek-wy3y); }
.pla-cpes2b9qi:focus{ outline:2px solid var(--r1xk-g51); outline-offset:2px; }
.pla-cpes2b9qi svg{ width:20px; height:20px; }

/* Body */
.pla-awyw973qlsd{
  flex:1; overflow-y:auto; padding:16px; background:var(--mah9-mm);
  display:flex; flex-direction:column; gap:12px;
}
.pla-awyw973qlsd::-webkit-scrollbar{ width:6px; }
.pla-awyw973qlsd::-webkit-scrollbar-track{ background:transparent; }
.pla-awyw973qlsd::-webkit-scrollbar-thumb{ background:var(--vv36wn-z5); border-radius:3px; }
.pla-awyw973qlsd::-webkit-scrollbar-thumb:hover{ background:var(--qwu-zwq); }

/* Messages */
.pla-wq6gs3d4iy{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pla-wq6gs3d4iy.pla-g722ber1iaea{ flex-direction:row-reverse; }
.pla-b4cwn0xg{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.pla-b4cwn0xg a{ color:inherit; }
.pla-wq6gs3d4iy.pla-x9szw6wg .pla-b4cwn0xg{ background:var(--qfzi1x-p0yg); color:var(--zvlek-wy3y); border-bottom-left-radius:4px; }
.pla-wq6gs3d4iy.pla-g722ber1iaea .pla-b4cwn0xg{ background:var(--r1xk-g51); color:#fff; border-bottom-right-radius:4px; }
.pla-uyo5ehq7g7xp{ font-size:11px; color:var(--qwu-zwq); margin-top:4px; display:block; }

/* Typing Indicator */
.pla-f9vs46lwt6p{
  display:flex; gap:8px; padding:10px 14px; background:var(--qfzi1x-p0yg);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.pla-x0e1nqgfi{ width:8px; height:8px; border-radius:50%; background:var(--qwu-zwq); animation:typingDot 1.4s infinite; }
.pla-x0e1nqgfi:nth-child(2){ animation-delay:.2s; }
.pla-x0e1nqgfi: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) */
.pla-q0ardjxv{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pla-s6wl8d19kgd{
  border:0; border-radius:999px; padding:8px 12px; background:var(--r1xk-g51); 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(--fadjf-hd);
}
.pla-s6wl8d19kgd:is(:hover,:focus){ transform:translateY(-1px); }
a.pla-s6wl8d19kgd{ text-decoration:none; display:inline-block; }
a.pla-s6wl8d19kgd:link, a.pla-s6wl8d19kgd:visited{ color:#fff; }
a.pla-s6wl8d19kgd:hover, a.pla-s6wl8d19kgd:focus{ color:#fff; }

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

/* Footer */
.pla-hwp7bqsj9z0{
  padding:16px; background:var(--qfzi1x-p0yg); border-top:1px solid var(--vv36wn-z5);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pla-s8dxdjyi{
  flex:1; padding:10px 14px; border:1px solid var(--vv36wn-z5); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--zvlek-wy3y);
  background:var(--mah9-mm); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pla-s8dxdjyi:focus{ border-color:var(--r1xk-g51); }
.pla-s8dxdjyi::placeholder{ color:var(--qwu-zwq); }
.pla-s8dxdjyi.pla-h0gvux9odz{ border-color:#c00; }
.pla-yqwkqvjz{
  width:40px; height:40px; min-width:40px; border:none; background:var(--r1xk-g51); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.pla-yqwkqvjz:disabled{ opacity:.5; cursor:not-allowed; }
.pla-yqwkqvjz:not(:disabled):hover{ transform:scale(1.05); }
.pla-yqwkqvjz:not(:disabled):active{ transform:scale(0.95); }
.pla-yqwkqvjz:focus{ outline:2px solid var(--r1xk-g51); outline-offset:2px; }
.pla-yqwkqvjz svg{ width:20px; height:20px; }

/* Character Counter */
.pla-eoyml84iq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--qwu-zwq); }
.pla-eoyml84iq.pla-dwn3i7z8{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.pla-jul73hyad{
  align-self:flex-start;
  max-width:75%;
  background: var(--qfzi1x-p0yg);
  color: var(--zvlek-wy3y);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--fadjf-hd);
}
.pla-sgxzcufyqft4{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.pla-fgeapcthn3md.pla-ihqjmp45bta{
  background: transparent; color: var(--zvlek-wy3y); border-color: var(--vv36wn-z5);
}
.pla-fgeapcthn3md.pla-ihqjmp45bta:hover{
  background: var(--r1xk-g51); color:#fff; border-color: var(--r1xk-g51);
}

/* Mobile */
@media (max-width: 768px){
  .pla-wzvzipx98{ bottom:16px; right:16px; }
  .pla-wzvzipx98.pla-dxv97x2vjn{ left:16px; }
  .pla-mycvslxc{ --sl6j-xk:60px; }
  .pla-hgzoe7lxv9g{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--xvi4p-fh) var(--xvi4p-fh) 0 0; transform: translateY(100%);
  }
  .pla-hgzoe7lxv9g.pla-m0g6unzz{ transform: translateY(0); }
  .pla-qz4dera7y{ padding:20px; }
  .pla-hwp7bqsj9z0{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.pla-wzvzipx98 :focus-visible{ outline:2px solid var(--r1xk-g51); outline-offset:2px; }

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