/* CSS Variables */
:root {
  --bgh-z7r: #4f46e5;
  --h35-fl18: #ffffff;
  --vvx99-ha: #f9fafb;
  --thz-r9: #0f172a;
  --nka4a3-eta9: #6b7280;
  --yfgmz-n3: #e5e7eb;
  --m3h-le: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ks5-twvy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --r9fd0x-xhoy: 16px;
  --f3wlen-g0: 56px;
  --v5cj-a760: 12px;
  --ftzxrq-q7l: 999999;
}

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

/* Main Container */
.pla-w3uvk0toog9 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ftzxrq-q7l);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--thz-r9);
}
.pla-w3uvk0toog9.pla-h84budrdm { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.pla-fcgvoc6siyf { display: flex; flex-direction: column-reverse; gap: var(--v5cj-a760); align-items: center; }
.pla-hqbolcih2 {
  width: var(--f3wlen-g0); height: var(--f3wlen-g0); min-width: var(--f3wlen-g0); min-height: var(--f3wlen-g0);
  border-radius: 50%; border: none; background: var(--bgh-z7r); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--m3h-le);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.pla-hqbolcih2:hover { transform: scale(1.05); box-shadow: var(--ks5-twvy); }
.pla-hqbolcih2:active { transform: scale(0.95); }
.pla-hqbolcih2:focus { outline: 2px solid var(--bgh-z7r); outline-offset: 2px; }
.pla-hqbolcih2 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pla-hqbolcih2.pla-rs10mui7{ animation:none; }
  .pla-hqbolcih2,.pla-cqyh1o2h,.pla-aeawhekmrbr{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.pla-cqyh1o2h{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--h35-fl18); border-radius: var(--r9fd0x-xhoy); box-shadow: var(--ks5-twvy);
  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-w3uvk0toog9.pla-h84budrdm .pla-cqyh1o2h{ right:auto; left:24px; }
.pla-cqyh1o2h.pla-ctk2px5uipbj{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.pla-r6gn8rqwvgx{
  padding:16px 20px; background:var(--h35-fl18); border-bottom:1px solid var(--yfgmz-n3);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.pla-obfr0venyrd4{ width:10px; height:10px; border-radius:50%; background:var(--bgh-z7r); flex-shrink:0; }
.pla-mti9vnz0{ flex:1; min-width:0; }
.pla-oh03smowo{ font-size:16px; font-weight:600; color:var(--thz-r9); margin:0 0 2px 0; }
.pla-lnmfin6yeif{ font-size:13px; color:var(--nka4a3-eta9); margin:0; }
.pla-leqgnq0zsz7t{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--nka4a3-eta9);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.pla-leqgnq0zsz7t:hover{ background:var(--vvx99-ha); color:var(--thz-r9); }
.pla-leqgnq0zsz7t:focus{ outline:2px solid var(--bgh-z7r); outline-offset:2px; }
.pla-leqgnq0zsz7t svg{ width:20px; height:20px; }

/* Body */
.pla-wlslxt61go0{
  flex:1; overflow-y:auto; padding:16px; background:var(--vvx99-ha);
  display:flex; flex-direction:column; gap:12px;
}
.pla-wlslxt61go0::-webkit-scrollbar{ width:6px; }
.pla-wlslxt61go0::-webkit-scrollbar-track{ background:transparent; }
.pla-wlslxt61go0::-webkit-scrollbar-thumb{ background:var(--yfgmz-n3); border-radius:3px; }
.pla-wlslxt61go0::-webkit-scrollbar-thumb:hover{ background:var(--nka4a3-eta9); }

/* Messages */
.pla-aeawhekmrbr{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pla-aeawhekmrbr.pla-uvfmmuus{ flex-direction:row-reverse; }
.pla-h1oz9rjx{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.pla-h1oz9rjx a{ color:inherit; }
.pla-aeawhekmrbr.pla-u8vin4xbiamc .pla-h1oz9rjx{ background:var(--h35-fl18); color:var(--thz-r9); border-bottom-left-radius:4px; }
.pla-aeawhekmrbr.pla-uvfmmuus .pla-h1oz9rjx{ background:var(--bgh-z7r); color:#fff; border-bottom-right-radius:4px; }
.pla-bzrn846rglgc{ font-size:11px; color:var(--nka4a3-eta9); margin-top:4px; display:block; }

/* Typing Indicator */
.pla-aq6uibyng{
  display:flex; gap:8px; padding:10px 14px; background:var(--h35-fl18);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.pla-zpmrgjh64tb{ width:8px; height:8px; border-radius:50%; background:var(--nka4a3-eta9); animation:typingDot 1.4s infinite; }
.pla-zpmrgjh64tb:nth-child(2){ animation-delay:.2s; }
.pla-zpmrgjh64tb: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-jldcqgnj{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pla-rwrxhpla3{
  border:0; border-radius:999px; padding:8px 12px; background:var(--bgh-z7r); 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(--m3h-le);
}
.pla-rwrxhpla3:is(:hover,:focus){ transform:translateY(-1px); }
a.pla-rwrxhpla3{ text-decoration:none; display:inline-block; }
a.pla-rwrxhpla3:link, a.pla-rwrxhpla3:visited{ color:#fff; }
a.pla-rwrxhpla3:hover, a.pla-rwrxhpla3:focus{ color:#fff; }

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

/* Footer */
.pla-hup6cppernz9{
  padding:16px; background:var(--h35-fl18); border-top:1px solid var(--yfgmz-n3);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pla-nlhe6bufzkt{
  flex:1; padding:10px 14px; border:1px solid var(--yfgmz-n3); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--thz-r9);
  background:var(--vvx99-ha); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pla-nlhe6bufzkt:focus{ border-color:var(--bgh-z7r); }
.pla-nlhe6bufzkt::placeholder{ color:var(--nka4a3-eta9); }
.pla-nlhe6bufzkt.pla-cco4gocnsy6{ border-color:#c00; }
.pla-vr42zskcs{
  width:40px; height:40px; min-width:40px; border:none; background:var(--bgh-z7r); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.pla-vr42zskcs:disabled{ opacity:.5; cursor:not-allowed; }
.pla-vr42zskcs:not(:disabled):hover{ transform:scale(1.05); }
.pla-vr42zskcs:not(:disabled):active{ transform:scale(0.95); }
.pla-vr42zskcs:focus{ outline:2px solid var(--bgh-z7r); outline-offset:2px; }
.pla-vr42zskcs svg{ width:20px; height:20px; }

/* Character Counter */
.pla-vjqpy9cdw{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--nka4a3-eta9); }
.pla-vjqpy9cdw.pla-vn6t8vop{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.pla-m3tn8oiayo{
  align-self:flex-start;
  max-width:75%;
  background: var(--h35-fl18);
  color: var(--thz-r9);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--m3h-le);
}
.pla-ux5gdfe5ow{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.pla-vll7d8f8qr.pla-iokcbj1ov{
  background: transparent; color: var(--thz-r9); border-color: var(--yfgmz-n3);
}
.pla-vll7d8f8qr.pla-iokcbj1ov:hover{
  background: var(--bgh-z7r); color:#fff; border-color: var(--bgh-z7r);
}

/* Mobile */
@media (max-width: 768px){
  .pla-w3uvk0toog9{ bottom:16px; right:16px; }
  .pla-w3uvk0toog9.pla-h84budrdm{ left:16px; }
  .pla-hqbolcih2{ --f3wlen-g0:60px; }
  .pla-cqyh1o2h{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--r9fd0x-xhoy) var(--r9fd0x-xhoy) 0 0; transform: translateY(100%);
  }
  .pla-cqyh1o2h.pla-ctk2px5uipbj{ transform: translateY(0); }
  .pla-r6gn8rqwvgx{ padding:20px; }
  .pla-hup6cppernz9{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.pla-w3uvk0toog9 :focus-visible{ outline:2px solid var(--bgh-z7r); outline-offset:2px; }

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