/* CSS Variables */
:root {
  --sop2-m3: #4f46e5;
  --p68-cmw: #ffffff;
  --q6xoir-iu6: #f9fafb;
  --w5w-z943: #0f172a;
  --vnby-h8pd: #6b7280;
  --n5ywv-b94: #e5e7eb;
  --fmtv-zhot: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --m3qb7d-tl3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --h44-xppj: 16px;
  --h9yx-oq: 56px;
  --q5f7-zt: 12px;
  --v3puq-gpzd: 999999;
}

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

/* Main Container */
.yf0L1v {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--v3puq-gpzd);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--w5w-z943);
}
.yf0L1v.bdxpOjqx { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.o0wfC31f { display: flex; flex-direction: column-reverse; gap: var(--q5f7-zt); align-items: center; }
.ldC9n {
  width: var(--h9yx-oq); height: var(--h9yx-oq); min-width: var(--h9yx-oq); min-height: var(--h9yx-oq);
  border-radius: 50%; border: none; background: var(--sop2-m3); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--fmtv-zhot);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ldC9n:hover { transform: scale(1.05); box-shadow: var(--m3qb7d-tl3); }
.ldC9n:active { transform: scale(0.95); }
.ldC9n:focus { outline: 2px solid var(--sop2-m3); outline-offset: 2px; }
.ldC9n svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ldC9n.rrKmt{ animation:none; }
  .ldC9n,.fhh7Gm1k,.zx2Ts2{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.fhh7Gm1k{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--p68-cmw); border-radius: var(--h44-xppj); box-shadow: var(--m3qb7d-tl3);
  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;
}
.yf0L1v.bdxpOjqx .fhh7Gm1k{ right:auto; left:24px; }
.fhh7Gm1k.t25Wlz{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.w3bP7m{
  padding:16px 20px; background:var(--p68-cmw); border-bottom:1px solid var(--n5ywv-b94);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.yxwS8n{ width:10px; height:10px; border-radius:50%; background:var(--sop2-m3); flex-shrink:0; }
.eiyI3zb{ flex:1; min-width:0; }
.i522Xtnt{ font-size:16px; font-weight:600; color:var(--w5w-z943); margin:0 0 2px 0; }
.pajU08{ font-size:13px; color:var(--vnby-h8pd); margin:0; }
.w5fOzzy{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--vnby-h8pd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.w5fOzzy:hover{ background:var(--q6xoir-iu6); color:var(--w5w-z943); }
.w5fOzzy:focus{ outline:2px solid var(--sop2-m3); outline-offset:2px; }
.w5fOzzy svg{ width:20px; height:20px; }

/* Body */
.tioIfp4{
  flex:1; overflow-y:auto; padding:16px; background:var(--q6xoir-iu6);
  display:flex; flex-direction:column; gap:12px;
}
.tioIfp4::-webkit-scrollbar{ width:6px; }
.tioIfp4::-webkit-scrollbar-track{ background:transparent; }
.tioIfp4::-webkit-scrollbar-thumb{ background:var(--n5ywv-b94); border-radius:3px; }
.tioIfp4::-webkit-scrollbar-thumb:hover{ background:var(--vnby-h8pd); }

/* Messages */
.zx2Ts2{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.zx2Ts2.jidVc7f{ flex-direction:row-reverse; }
.m4hwW3rd{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.m4hwW3rd a{ color:inherit; }
.zx2Ts2.ue9Tzm .m4hwW3rd{ background:var(--p68-cmw); color:var(--w5w-z943); border-bottom-left-radius:4px; }
.zx2Ts2.jidVc7f .m4hwW3rd{ background:var(--sop2-m3); color:#fff; border-bottom-right-radius:4px; }
.i67Wno{ font-size:11px; color:var(--vnby-h8pd); margin-top:4px; display:block; }

/* Typing Indicator */
.i75Iej{
  display:flex; gap:8px; padding:10px 14px; background:var(--p68-cmw);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.nvhgKytf{ width:8px; height:8px; border-radius:50%; background:var(--vnby-h8pd); animation:typingDot 1.4s infinite; }
.nvhgKytf:nth-child(2){ animation-delay:.2s; }
.nvhgKytf: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) */
.gqQ0g{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.haXbq{
  border:0; border-radius:999px; padding:8px 12px; background:var(--sop2-m3); 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(--fmtv-zhot);
}
.haXbq:is(:hover,:focus){ transform:translateY(-1px); }
a.haXbq{ text-decoration:none; display:inline-block; }
a.haXbq:link, a.haXbq:visited{ color:#fff; }
a.haXbq:hover, a.haXbq:focus{ color:#fff; }

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

/* Footer */
.i2oOots{
  padding:16px; background:var(--p68-cmw); border-top:1px solid var(--n5ywv-b94);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ajxOhg{
  flex:1; padding:10px 14px; border:1px solid var(--n5ywv-b94); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--w5w-z943);
  background:var(--q6xoir-iu6); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ajxOhg:focus{ border-color:var(--sop2-m3); }
.ajxOhg::placeholder{ color:var(--vnby-h8pd); }
.ajxOhg.dtuNlp{ border-color:#c00; }
.c6Bd3{
  width:40px; height:40px; min-width:40px; border:none; background:var(--sop2-m3); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.c6Bd3:disabled{ opacity:.5; cursor:not-allowed; }
.c6Bd3:not(:disabled):hover{ transform:scale(1.05); }
.c6Bd3:not(:disabled):active{ transform:scale(0.95); }
.c6Bd3:focus{ outline:2px solid var(--sop2-m3); outline-offset:2px; }
.c6Bd3 svg{ width:20px; height:20px; }

/* Character Counter */
.z49J62{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--vnby-h8pd); }
.z49J62.e3vHka{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.oiGoi{
  align-self:flex-start;
  max-width:75%;
  background: var(--p68-cmw);
  color: var(--w5w-z943);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--fmtv-zhot);
}
.fgcxTz5i{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.s3gCawu.c9fGa4{
  background: transparent; color: var(--w5w-z943); border-color: var(--n5ywv-b94);
}
.s3gCawu.c9fGa4:hover{
  background: var(--sop2-m3); color:#fff; border-color: var(--sop2-m3);
}

/* Mobile */
@media (max-width: 768px){
  .yf0L1v{ bottom:16px; right:16px; }
  .yf0L1v.bdxpOjqx{ left:16px; }
  .ldC9n{ --h9yx-oq:60px; }
  .fhh7Gm1k{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--h44-xppj) var(--h44-xppj) 0 0; transform: translateY(100%);
  }
  .fhh7Gm1k.t25Wlz{ transform: translateY(0); }
  .w3bP7m{ padding:20px; }
  .i2oOots{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.yf0L1v :focus-visible{ outline:2px solid var(--sop2-m3); outline-offset:2px; }

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