/* CSS Variables */
:root {
  --qar4-a1u: #4f46e5;
  --f9vkk-fiz1: #ffffff;
  --o9d7v-v5yj: #f9fafb;
  --mwl7ku-erc: #0f172a;
  --qdrt5y-wfsl: #6b7280;
  --x41swo-l9uw: #e5e7eb;
  --qpxas-ap4i: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wy1og-sw: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --tyh-np6s: 16px;
  --sy4-a93t: 56px;
  --ewqlk-u1d: 12px;
  --joc2v0-w7: 999999;
}

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

/* Main Container */
.hey-s763tgfu1c2 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--joc2v0-w7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--mwl7ku-erc);
}
.hey-s763tgfu1c2.hey-nwuq2uuerm { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.hey-iod4c50ch { display: flex; flex-direction: column-reverse; gap: var(--ewqlk-u1d); align-items: center; }
.hey-j6sel4xykesn {
  width: var(--sy4-a93t); height: var(--sy4-a93t); min-width: var(--sy4-a93t); min-height: var(--sy4-a93t);
  border-radius: 50%; border: none; background: var(--qar4-a1u); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--qpxas-ap4i);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.hey-j6sel4xykesn:hover { transform: scale(1.05); box-shadow: var(--wy1og-sw); }
.hey-j6sel4xykesn:active { transform: scale(0.95); }
.hey-j6sel4xykesn:focus { outline: 2px solid var(--qar4-a1u); outline-offset: 2px; }
.hey-j6sel4xykesn svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hey-j6sel4xykesn.hey-ohjm6iahxwug{ animation:none; }
  .hey-j6sel4xykesn,.hey-fr8o1goksua,.hey-xai1d6xas2{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.hey-fr8o1goksua{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--f9vkk-fiz1); border-radius: var(--tyh-np6s); box-shadow: var(--wy1og-sw);
  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;
}
.hey-s763tgfu1c2.hey-nwuq2uuerm .hey-fr8o1goksua{ right:auto; left:24px; }
.hey-fr8o1goksua.hey-cceinuys173p{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.hey-wwbabiq5{
  padding:16px 20px; background:var(--f9vkk-fiz1); border-bottom:1px solid var(--x41swo-l9uw);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.hey-m6cpajw7jd{ width:10px; height:10px; border-radius:50%; background:var(--qar4-a1u); flex-shrink:0; }
.hey-g7mjbkqe10r{ flex:1; min-width:0; }
.hey-qq112l5ygc62{ font-size:16px; font-weight:600; color:var(--mwl7ku-erc); margin:0 0 2px 0; }
.hey-k1hprakutlil{ font-size:13px; color:var(--qdrt5y-wfsl); margin:0; }
.hey-jtj8zeizieca{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--qdrt5y-wfsl);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.hey-jtj8zeizieca:hover{ background:var(--o9d7v-v5yj); color:var(--mwl7ku-erc); }
.hey-jtj8zeizieca:focus{ outline:2px solid var(--qar4-a1u); outline-offset:2px; }
.hey-jtj8zeizieca svg{ width:20px; height:20px; }

/* Body */
.hey-s1xqdv55z45{
  flex:1; overflow-y:auto; padding:16px; background:var(--o9d7v-v5yj);
  display:flex; flex-direction:column; gap:12px;
}
.hey-s1xqdv55z45::-webkit-scrollbar{ width:6px; }
.hey-s1xqdv55z45::-webkit-scrollbar-track{ background:transparent; }
.hey-s1xqdv55z45::-webkit-scrollbar-thumb{ background:var(--x41swo-l9uw); border-radius:3px; }
.hey-s1xqdv55z45::-webkit-scrollbar-thumb:hover{ background:var(--qdrt5y-wfsl); }

/* Messages */
.hey-xai1d6xas2{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.hey-xai1d6xas2.hey-m3u3lflj5n{ flex-direction:row-reverse; }
.hey-cvoon0nae7{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.hey-cvoon0nae7 a{ color:inherit; }
.hey-xai1d6xas2.hey-sandp5uyr4 .hey-cvoon0nae7{ background:var(--f9vkk-fiz1); color:var(--mwl7ku-erc); border-bottom-left-radius:4px; }
.hey-xai1d6xas2.hey-m3u3lflj5n .hey-cvoon0nae7{ background:var(--qar4-a1u); color:#fff; border-bottom-right-radius:4px; }
.hey-jyu82besnq{ font-size:11px; color:var(--qdrt5y-wfsl); margin-top:4px; display:block; }

/* Typing Indicator */
.hey-iu24g35otcm{
  display:flex; gap:8px; padding:10px 14px; background:var(--f9vkk-fiz1);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.hey-zcqalx7xx{ width:8px; height:8px; border-radius:50%; background:var(--qdrt5y-wfsl); animation:typingDot 1.4s infinite; }
.hey-zcqalx7xx:nth-child(2){ animation-delay:.2s; }
.hey-zcqalx7xx: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) */
.hey-qruiqv0axw5{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.hey-teoudqq4vt{
  border:0; border-radius:999px; padding:8px 12px; background:var(--qar4-a1u); 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(--qpxas-ap4i);
}
.hey-teoudqq4vt:is(:hover,:focus){ transform:translateY(-1px); }
a.hey-teoudqq4vt{ text-decoration:none; display:inline-block; }
a.hey-teoudqq4vt:link, a.hey-teoudqq4vt:visited{ color:#fff; }
a.hey-teoudqq4vt:hover, a.hey-teoudqq4vt:focus{ color:#fff; }

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

/* Footer */
.hey-dkfu0k42k08{
  padding:16px; background:var(--f9vkk-fiz1); border-top:1px solid var(--x41swo-l9uw);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.hey-xslku1dieb2q{
  flex:1; padding:10px 14px; border:1px solid var(--x41swo-l9uw); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--mwl7ku-erc);
  background:var(--o9d7v-v5yj); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.hey-xslku1dieb2q:focus{ border-color:var(--qar4-a1u); }
.hey-xslku1dieb2q::placeholder{ color:var(--qdrt5y-wfsl); }
.hey-xslku1dieb2q.hey-rrftwzdts{ border-color:#c00; }
.hey-whm01ekqxkqn{
  width:40px; height:40px; min-width:40px; border:none; background:var(--qar4-a1u); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.hey-whm01ekqxkqn:disabled{ opacity:.5; cursor:not-allowed; }
.hey-whm01ekqxkqn:not(:disabled):hover{ transform:scale(1.05); }
.hey-whm01ekqxkqn:not(:disabled):active{ transform:scale(0.95); }
.hey-whm01ekqxkqn:focus{ outline:2px solid var(--qar4-a1u); outline-offset:2px; }
.hey-whm01ekqxkqn svg{ width:20px; height:20px; }

/* Character Counter */
.hey-sujyqtwx8{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--qdrt5y-wfsl); }
.hey-sujyqtwx8.hey-er0880mv53s{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.hey-cusdz8pwd5a{
  align-self:flex-start;
  max-width:75%;
  background: var(--f9vkk-fiz1);
  color: var(--mwl7ku-erc);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--qpxas-ap4i);
}
.hey-m127fkg3z7ms{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.hey-b0nqnrbuh.hey-vrnnax4n2{
  background: transparent; color: var(--mwl7ku-erc); border-color: var(--x41swo-l9uw);
}
.hey-b0nqnrbuh.hey-vrnnax4n2:hover{
  background: var(--qar4-a1u); color:#fff; border-color: var(--qar4-a1u);
}

/* Mobile */
@media (max-width: 768px){
  .hey-s763tgfu1c2{ bottom:16px; right:16px; }
  .hey-s763tgfu1c2.hey-nwuq2uuerm{ left:16px; }
  .hey-j6sel4xykesn{ --sy4-a93t:60px; }
  .hey-fr8o1goksua{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--tyh-np6s) var(--tyh-np6s) 0 0; transform: translateY(100%);
  }
  .hey-fr8o1goksua.hey-cceinuys173p{ transform: translateY(0); }
  .hey-wwbabiq5{ padding:20px; }
  .hey-dkfu0k42k08{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.hey-s763tgfu1c2 :focus-visible{ outline:2px solid var(--qar4-a1u); outline-offset:2px; }

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