/* CSS Variables */
:root {
  --lp89m-r3: #4f46e5;
  --dssuj7-tyh: #ffffff;
  --n4e21-fg: #f9fafb;
  --io7-y4d: #0f172a;
  --fld33-v4: #6b7280;
  --z7gl-cu: #e5e7eb;
  --b1ems-nda: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --jk72-xblp: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --bru9u-qrmm: 16px;
  --d93hsn-ncl: 56px;
  --rdp23u-bng: 12px;
  --f55y-atp: 999999;
}

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

/* Main Container */
.ly5fHc0w {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--f55y-atp);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--io7-y4d);
}
.ly5fHc0w.z56Q3y { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ncFsn { display: flex; flex-direction: column-reverse; gap: var(--rdp23u-bng); align-items: center; }
.tihQa3f {
  width: var(--d93hsn-ncl); height: var(--d93hsn-ncl); min-width: var(--d93hsn-ncl); min-height: var(--d93hsn-ncl);
  border-radius: 50%; border: none; background: var(--lp89m-r3); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--b1ems-nda);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.tihQa3f:hover { transform: scale(1.05); box-shadow: var(--jk72-xblp); }
.tihQa3f:active { transform: scale(0.95); }
.tihQa3f:focus { outline: 2px solid var(--lp89m-r3); outline-offset: 2px; }
.tihQa3f svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .tihQa3f.yaxhL5hk{ animation:none; }
  .tihQa3f,.xctYdu8,.ueTtf{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.xctYdu8{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--dssuj7-tyh); border-radius: var(--bru9u-qrmm); box-shadow: var(--jk72-xblp);
  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;
}
.ly5fHc0w.z56Q3y .xctYdu8{ right:auto; left:24px; }
.xctYdu8.n3kE2h6{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.bfpYo25{
  padding:16px 20px; background:var(--dssuj7-tyh); border-bottom:1px solid var(--z7gl-cu);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.e55Q1d{ width:10px; height:10px; border-radius:50%; background:var(--lp89m-r3); flex-shrink:0; }
.wvWvb{ flex:1; min-width:0; }
.pc5oB1fw{ font-size:16px; font-weight:600; color:var(--io7-y4d); margin:0 0 2px 0; }
.v1cM5y{ font-size:13px; color:var(--fld33-v4); margin:0; }
.l7gMbv{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--fld33-v4);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.l7gMbv:hover{ background:var(--n4e21-fg); color:var(--io7-y4d); }
.l7gMbv:focus{ outline:2px solid var(--lp89m-r3); outline-offset:2px; }
.l7gMbv svg{ width:20px; height:20px; }

/* Body */
.k2Tkn{
  flex:1; overflow-y:auto; padding:16px; background:var(--n4e21-fg);
  display:flex; flex-direction:column; gap:12px;
}
.k2Tkn::-webkit-scrollbar{ width:6px; }
.k2Tkn::-webkit-scrollbar-track{ background:transparent; }
.k2Tkn::-webkit-scrollbar-thumb{ background:var(--z7gl-cu); border-radius:3px; }
.k2Tkn::-webkit-scrollbar-thumb:hover{ background:var(--fld33-v4); }

/* Messages */
.ueTtf{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ueTtf.j0nYv5{ flex-direction:row-reverse; }
.ak7B31k{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ak7B31k a{ color:inherit; }
.ueTtf.klPuk .ak7B31k{ background:var(--dssuj7-tyh); color:var(--io7-y4d); border-bottom-left-radius:4px; }
.ueTtf.j0nYv5 .ak7B31k{ background:var(--lp89m-r3); color:#fff; border-bottom-right-radius:4px; }
.zyl5Rqtr{ font-size:11px; color:var(--fld33-v4); margin-top:4px; display:block; }

/* Typing Indicator */
.owgLy11{
  display:flex; gap:8px; padding:10px 14px; background:var(--dssuj7-tyh);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.e19Emgf{ width:8px; height:8px; border-radius:50%; background:var(--fld33-v4); animation:typingDot 1.4s infinite; }
.e19Emgf:nth-child(2){ animation-delay:.2s; }
.e19Emgf: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) */
.a0Kk6{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.n1htLl5f{
  border:0; border-radius:999px; padding:8px 12px; background:var(--lp89m-r3); 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(--b1ems-nda);
}
.n1htLl5f:is(:hover,:focus){ transform:translateY(-1px); }
a.n1htLl5f{ text-decoration:none; display:inline-block; }
a.n1htLl5f:link, a.n1htLl5f:visited{ color:#fff; }
a.n1htLl5f:hover, a.n1htLl5f:focus{ color:#fff; }

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

/* Footer */
.biwHscm{
  padding:16px; background:var(--dssuj7-tyh); border-top:1px solid var(--z7gl-cu);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.vq18Dgif{
  flex:1; padding:10px 14px; border:1px solid var(--z7gl-cu); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--io7-y4d);
  background:var(--n4e21-fg); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.vq18Dgif:focus{ border-color:var(--lp89m-r3); }
.vq18Dgif::placeholder{ color:var(--fld33-v4); }
.vq18Dgif.s77vX584{ border-color:#c00; }
.e43W3a{
  width:40px; height:40px; min-width:40px; border:none; background:var(--lp89m-r3); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.e43W3a:disabled{ opacity:.5; cursor:not-allowed; }
.e43W3a:not(:disabled):hover{ transform:scale(1.05); }
.e43W3a:not(:disabled):active{ transform:scale(0.95); }
.e43W3a:focus{ outline:2px solid var(--lp89m-r3); outline-offset:2px; }
.e43W3a svg{ width:20px; height:20px; }

/* Character Counter */
.ewwPl1{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--fld33-v4); }
.ewwPl1.rf3Hwu{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ujiUp4{
  align-self:flex-start;
  max-width:75%;
  background: var(--dssuj7-tyh);
  color: var(--io7-y4d);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--b1ems-nda);
}
.rwAq5{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.v44Eh8.pdcRyy{
  background: transparent; color: var(--io7-y4d); border-color: var(--z7gl-cu);
}
.v44Eh8.pdcRyy:hover{
  background: var(--lp89m-r3); color:#fff; border-color: var(--lp89m-r3);
}

/* Mobile */
@media (max-width: 768px){
  .ly5fHc0w{ bottom:16px; right:16px; }
  .ly5fHc0w.z56Q3y{ left:16px; }
  .tihQa3f{ --d93hsn-ncl:60px; }
  .xctYdu8{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--bru9u-qrmm) var(--bru9u-qrmm) 0 0; transform: translateY(100%);
  }
  .xctYdu8.n3kE2h6{ transform: translateY(0); }
  .bfpYo25{ padding:20px; }
  .biwHscm{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ly5fHc0w :focus-visible{ outline:2px solid var(--lp89m-r3); outline-offset:2px; }

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