/* CSS Variables */
:root {
  --d0n5t-pmi: #4f46e5;
  --gxpgi5-amx: #ffffff;
  --cjp9-m0: #f9fafb;
  --v0temh-l81n: #0f172a;
  --elzu-i1x: #6b7280;
  --lbg-vrfw: #e5e7eb;
  --fzs-agp: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --kjo-gbao: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --qu9np-zz6y: 16px;
  --cusbnw-za2p: 56px;
  --rgg3-blyn: 12px;
  --ge0dps-a9: 999999;
}

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

/* Main Container */
.pla-hagt5cvp {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ge0dps-a9);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--v0temh-l81n);
}
.pla-hagt5cvp.pla-ceysci7qdol { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.pla-h9of7qfnohnz { display: flex; flex-direction: column-reverse; gap: var(--rgg3-blyn); align-items: center; }
.pla-kflqxo3a {
  width: var(--cusbnw-za2p); height: var(--cusbnw-za2p); min-width: var(--cusbnw-za2p); min-height: var(--cusbnw-za2p);
  border-radius: 50%; border: none; background: var(--d0n5t-pmi); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--fzs-agp);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.pla-kflqxo3a:hover { transform: scale(1.05); box-shadow: var(--kjo-gbao); }
.pla-kflqxo3a:active { transform: scale(0.95); }
.pla-kflqxo3a:focus { outline: 2px solid var(--d0n5t-pmi); outline-offset: 2px; }
.pla-kflqxo3a svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pla-kflqxo3a.pla-wxrhv864631{ animation:none; }
  .pla-kflqxo3a,.pla-yxmnaresg5kf,.pla-pksslr5p12{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.pla-yxmnaresg5kf{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--gxpgi5-amx); border-radius: var(--qu9np-zz6y); box-shadow: var(--kjo-gbao);
  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-hagt5cvp.pla-ceysci7qdol .pla-yxmnaresg5kf{ right:auto; left:24px; }
.pla-yxmnaresg5kf.pla-mwvyu69s3445{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.pla-mvquamcrvxa2{
  padding:16px 20px; background:var(--gxpgi5-amx); border-bottom:1px solid var(--lbg-vrfw);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.pla-gvvnv0rm{ width:10px; height:10px; border-radius:50%; background:var(--d0n5t-pmi); flex-shrink:0; }
.pla-yhtuhpvniil{ flex:1; min-width:0; }
.pla-nu3mn0r7w0a{ font-size:16px; font-weight:600; color:var(--v0temh-l81n); margin:0 0 2px 0; }
.pla-buqsrlc10z6b{ font-size:13px; color:var(--elzu-i1x); margin:0; }
.pla-e4w8pzi50a3{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--elzu-i1x);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.pla-e4w8pzi50a3:hover{ background:var(--cjp9-m0); color:var(--v0temh-l81n); }
.pla-e4w8pzi50a3:focus{ outline:2px solid var(--d0n5t-pmi); outline-offset:2px; }
.pla-e4w8pzi50a3 svg{ width:20px; height:20px; }

/* Body */
.pla-z9wiupxpm{
  flex:1; overflow-y:auto; padding:16px; background:var(--cjp9-m0);
  display:flex; flex-direction:column; gap:12px;
}
.pla-z9wiupxpm::-webkit-scrollbar{ width:6px; }
.pla-z9wiupxpm::-webkit-scrollbar-track{ background:transparent; }
.pla-z9wiupxpm::-webkit-scrollbar-thumb{ background:var(--lbg-vrfw); border-radius:3px; }
.pla-z9wiupxpm::-webkit-scrollbar-thumb:hover{ background:var(--elzu-i1x); }

/* Messages */
.pla-pksslr5p12{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pla-pksslr5p12.pla-ahfiu13chyp{ flex-direction:row-reverse; }
.pla-u7t5vvvas{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.pla-u7t5vvvas a{ color:inherit; }
.pla-pksslr5p12.pla-pehhaoodt .pla-u7t5vvvas{ background:var(--gxpgi5-amx); color:var(--v0temh-l81n); border-bottom-left-radius:4px; }
.pla-pksslr5p12.pla-ahfiu13chyp .pla-u7t5vvvas{ background:var(--d0n5t-pmi); color:#fff; border-bottom-right-radius:4px; }
.pla-r92m4x0i37{ font-size:11px; color:var(--elzu-i1x); margin-top:4px; display:block; }

/* Typing Indicator */
.pla-r2759g85h{
  display:flex; gap:8px; padding:10px 14px; background:var(--gxpgi5-amx);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.pla-jf2echic399r{ width:8px; height:8px; border-radius:50%; background:var(--elzu-i1x); animation:typingDot 1.4s infinite; }
.pla-jf2echic399r:nth-child(2){ animation-delay:.2s; }
.pla-jf2echic399r: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-e6i0zc6h{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pla-mj247texeq{
  border:0; border-radius:999px; padding:8px 12px; background:var(--d0n5t-pmi); 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(--fzs-agp);
}
.pla-mj247texeq:is(:hover,:focus){ transform:translateY(-1px); }
a.pla-mj247texeq{ text-decoration:none; display:inline-block; }
a.pla-mj247texeq:link, a.pla-mj247texeq:visited{ color:#fff; }
a.pla-mj247texeq:hover, a.pla-mj247texeq:focus{ color:#fff; }

/* Error Banner */
.pla-gbqapar8a{
  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-lnoi5nwa06x{
  padding:6px 12px; background:#c00; color:#fff; border:none; border-radius:6px; font-size:12px; cursor:pointer; white-space:nowrap;
}

/* Footer */
.pla-k6h4aiec7qrb{
  padding:16px; background:var(--gxpgi5-amx); border-top:1px solid var(--lbg-vrfw);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pla-xspc22nol0g5{
  flex:1; padding:10px 14px; border:1px solid var(--lbg-vrfw); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--v0temh-l81n);
  background:var(--cjp9-m0); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pla-xspc22nol0g5:focus{ border-color:var(--d0n5t-pmi); }
.pla-xspc22nol0g5::placeholder{ color:var(--elzu-i1x); }
.pla-xspc22nol0g5.pla-v4uo5ius{ border-color:#c00; }
.pla-t715kz1qbyp{
  width:40px; height:40px; min-width:40px; border:none; background:var(--d0n5t-pmi); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.pla-t715kz1qbyp:disabled{ opacity:.5; cursor:not-allowed; }
.pla-t715kz1qbyp:not(:disabled):hover{ transform:scale(1.05); }
.pla-t715kz1qbyp:not(:disabled):active{ transform:scale(0.95); }
.pla-t715kz1qbyp:focus{ outline:2px solid var(--d0n5t-pmi); outline-offset:2px; }
.pla-t715kz1qbyp svg{ width:20px; height:20px; }

/* Character Counter */
.pla-tggzapwv6a{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--elzu-i1x); }
.pla-tggzapwv6a.pla-mu2fgguqdc{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.pla-ydsyr89lkj{
  align-self:flex-start;
  max-width:75%;
  background: var(--gxpgi5-amx);
  color: var(--v0temh-l81n);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--fzs-agp);
}
.pla-ynpb0l6me8{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.pla-o1czrxejhkt9.pla-fmhc98wwod{
  background: transparent; color: var(--v0temh-l81n); border-color: var(--lbg-vrfw);
}
.pla-o1czrxejhkt9.pla-fmhc98wwod:hover{
  background: var(--d0n5t-pmi); color:#fff; border-color: var(--d0n5t-pmi);
}

/* Mobile */
@media (max-width: 768px){
  .pla-hagt5cvp{ bottom:16px; right:16px; }
  .pla-hagt5cvp.pla-ceysci7qdol{ left:16px; }
  .pla-kflqxo3a{ --cusbnw-za2p:60px; }
  .pla-yxmnaresg5kf{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--qu9np-zz6y) var(--qu9np-zz6y) 0 0; transform: translateY(100%);
  }
  .pla-yxmnaresg5kf.pla-mwvyu69s3445{ transform: translateY(0); }
  .pla-mvquamcrvxa2{ padding:20px; }
  .pla-k6h4aiec7qrb{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.pla-hagt5cvp :focus-visible{ outline:2px solid var(--d0n5t-pmi); outline-offset:2px; }

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