/* CSS Variables */
:root {
  --bv2516-x88: #4f46e5;
  --l0bta-u2: #ffffff;
  --vs78bj-sk: #f9fafb;
  --alw-z7e: #0f172a;
  --azx1th-wu8v: #6b7280;
  --anc1-w4j: #e5e7eb;
  --ntf-nm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ysyd2-a19: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --x021-xg: 16px;
  --lj9h0-yrz: 56px;
  --hx2y-of6v: 12px;
  --gvlw9-oi7d: 999999;
}

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

/* Main Container */
.u5z5J5yu {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--gvlw9-oi7d);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--alw-z7e);
}
.u5z5J5yu.q3xAfi6 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.nnvBgkc { display: flex; flex-direction: column-reverse; gap: var(--hx2y-of6v); align-items: center; }
.yq7iHatt {
  width: var(--lj9h0-yrz); height: var(--lj9h0-yrz); min-width: var(--lj9h0-yrz); min-height: var(--lj9h0-yrz);
  border-radius: 50%; border: none; background: var(--bv2516-x88); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ntf-nm);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.yq7iHatt:hover { transform: scale(1.05); box-shadow: var(--ysyd2-a19); }
.yq7iHatt:active { transform: scale(0.95); }
.yq7iHatt:focus { outline: 2px solid var(--bv2516-x88); outline-offset: 2px; }
.yq7iHatt svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .yq7iHatt.l5pOqm{ animation:none; }
  .yq7iHatt,.w8fYzn,.tzo2Ya9o{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.w8fYzn{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--l0bta-u2); border-radius: var(--x021-xg); box-shadow: var(--ysyd2-a19);
  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;
}
.u5z5J5yu.q3xAfi6 .w8fYzn{ right:auto; left:24px; }
.w8fYzn.sbUb3{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ixhDyr{
  padding:16px 20px; background:var(--l0bta-u2); border-bottom:1px solid var(--anc1-w4j);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.h37kB6sc{ width:10px; height:10px; border-radius:50%; background:var(--bv2516-x88); flex-shrink:0; }
.dragWafu{ flex:1; min-width:0; }
.yqZen{ font-size:16px; font-weight:600; color:var(--alw-z7e); margin:0 0 2px 0; }
.q0kNiqe{ font-size:13px; color:var(--azx1th-wu8v); margin:0; }
.fyjWgfk{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--azx1th-wu8v);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.fyjWgfk:hover{ background:var(--vs78bj-sk); color:var(--alw-z7e); }
.fyjWgfk:focus{ outline:2px solid var(--bv2516-x88); outline-offset:2px; }
.fyjWgfk svg{ width:20px; height:20px; }

/* Body */
.s06tFwgy{
  flex:1; overflow-y:auto; padding:16px; background:var(--vs78bj-sk);
  display:flex; flex-direction:column; gap:12px;
}
.s06tFwgy::-webkit-scrollbar{ width:6px; }
.s06tFwgy::-webkit-scrollbar-track{ background:transparent; }
.s06tFwgy::-webkit-scrollbar-thumb{ background:var(--anc1-w4j); border-radius:3px; }
.s06tFwgy::-webkit-scrollbar-thumb:hover{ background:var(--azx1th-wu8v); }

/* Messages */
.tzo2Ya9o{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.tzo2Ya9o.haDcq{ flex-direction:row-reverse; }
.dk7Nao{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.dk7Nao a{ color:inherit; }
.tzo2Ya9o.wqDwn .dk7Nao{ background:var(--l0bta-u2); color:var(--alw-z7e); border-bottom-left-radius:4px; }
.tzo2Ya9o.haDcq .dk7Nao{ background:var(--bv2516-x88); color:#fff; border-bottom-right-radius:4px; }
.oivVc55{ font-size:11px; color:var(--azx1th-wu8v); margin-top:4px; display:block; }

/* Typing Indicator */
.v29Gdz6{
  display:flex; gap:8px; padding:10px 14px; background:var(--l0bta-u2);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.zkaRj7a{ width:8px; height:8px; border-radius:50%; background:var(--azx1th-wu8v); animation:typingDot 1.4s infinite; }
.zkaRj7a:nth-child(2){ animation-delay:.2s; }
.zkaRj7a: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) */
.ocvGi8{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.caiHdwq{
  border:0; border-radius:999px; padding:8px 12px; background:var(--bv2516-x88); 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(--ntf-nm);
}
.caiHdwq:is(:hover,:focus){ transform:translateY(-1px); }
a.caiHdwq{ text-decoration:none; display:inline-block; }
a.caiHdwq:link, a.caiHdwq:visited{ color:#fff; }
a.caiHdwq:hover, a.caiHdwq:focus{ color:#fff; }

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

/* Footer */
.hc5hVcys{
  padding:16px; background:var(--l0bta-u2); border-top:1px solid var(--anc1-w4j);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.aqb3Z65f{
  flex:1; padding:10px 14px; border:1px solid var(--anc1-w4j); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--alw-z7e);
  background:var(--vs78bj-sk); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.aqb3Z65f:focus{ border-color:var(--bv2516-x88); }
.aqb3Z65f::placeholder{ color:var(--azx1th-wu8v); }
.aqb3Z65f.w3nQyz{ border-color:#c00; }
.rtgB8c{
  width:40px; height:40px; min-width:40px; border:none; background:var(--bv2516-x88); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.rtgB8c:disabled{ opacity:.5; cursor:not-allowed; }
.rtgB8c:not(:disabled):hover{ transform:scale(1.05); }
.rtgB8c:not(:disabled):active{ transform:scale(0.95); }
.rtgB8c:focus{ outline:2px solid var(--bv2516-x88); outline-offset:2px; }
.rtgB8c svg{ width:20px; height:20px; }

/* Character Counter */
.krkWn6u{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--azx1th-wu8v); }
.krkWn6u.auqF38t{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.zzVjt{
  align-self:flex-start;
  max-width:75%;
  background: var(--l0bta-u2);
  color: var(--alw-z7e);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ntf-nm);
}
.bxFmj{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.vwmGkcz.flJbk{
  background: transparent; color: var(--alw-z7e); border-color: var(--anc1-w4j);
}
.vwmGkcz.flJbk:hover{
  background: var(--bv2516-x88); color:#fff; border-color: var(--bv2516-x88);
}

/* Mobile */
@media (max-width: 768px){
  .u5z5J5yu{ bottom:16px; right:16px; }
  .u5z5J5yu.q3xAfi6{ left:16px; }
  .yq7iHatt{ --lj9h0-yrz:60px; }
  .w8fYzn{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--x021-xg) var(--x021-xg) 0 0; transform: translateY(100%);
  }
  .w8fYzn.sbUb3{ transform: translateY(0); }
  .ixhDyr{ padding:20px; }
  .hc5hVcys{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.u5z5J5yu :focus-visible{ outline:2px solid var(--bv2516-x88); outline-offset:2px; }

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