/* CSS Variables */
:root {
  --puovc-zomt: #4f46e5;
  --nst-hx5: #ffffff;
  --vx2-l5f7: #f9fafb;
  --qzpu5-kc1e: #0f172a;
  --gvwr5-as: #6b7280;
  --wraon-dm: #e5e7eb;
  --ahpd-jeq: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --w6htkj-wn: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --q6lf-td0q: 16px;
  --rwg58y-pujm: 56px;
  --cgsh-hw: 12px;
  --zp9j-dxu6: 999999;
}

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

/* Main Container */
.cwpgxx01 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--zp9j-dxu6);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--qzpu5-kc1e);
}
.cwpgxx01.amjvib4o0z { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.qakd50 { display: flex; flex-direction: column-reverse; gap: var(--cgsh-hw); align-items: center; }
.k78aivt {
  width: var(--rwg58y-pujm); height: var(--rwg58y-pujm); min-width: var(--rwg58y-pujm); min-height: var(--rwg58y-pujm);
  border-radius: 50%; border: none; background: var(--puovc-zomt); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ahpd-jeq);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.k78aivt:hover { transform: scale(1.05); box-shadow: var(--w6htkj-wn); }
.k78aivt:active { transform: scale(0.95); }
.k78aivt:focus { outline: 2px solid var(--puovc-zomt); outline-offset: 2px; }
.k78aivt svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k78aivt.jn767b0j{ animation:none; }
  .k78aivt,.yinmy7in,.hgz37x4w{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.yinmy7in{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--nst-hx5); border-radius: var(--q6lf-td0q); box-shadow: var(--w6htkj-wn);
  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;
}
.cwpgxx01.amjvib4o0z .yinmy7in{ right:auto; left:24px; }
.yinmy7in.w1s4bifv{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.zb0hgn3{
  padding:16px 20px; background:var(--nst-hx5); border-bottom:1px solid var(--wraon-dm);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.x4o44g{ width:10px; height:10px; border-radius:50%; background:var(--puovc-zomt); flex-shrink:0; }
.tkmtd01pz{ flex:1; min-width:0; }
.w3s93l{ font-size:16px; font-weight:600; color:var(--qzpu5-kc1e); margin:0 0 2px 0; }
.bfsu2y6hk{ font-size:13px; color:var(--gvwr5-as); margin:0; }
.wsfc13o{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--gvwr5-as);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.wsfc13o:hover{ background:var(--vx2-l5f7); color:var(--qzpu5-kc1e); }
.wsfc13o:focus{ outline:2px solid var(--puovc-zomt); outline-offset:2px; }
.wsfc13o svg{ width:20px; height:20px; }

/* Body */
.n34z7b3h0{
  flex:1; overflow-y:auto; padding:16px; background:var(--vx2-l5f7);
  display:flex; flex-direction:column; gap:12px;
}
.n34z7b3h0::-webkit-scrollbar{ width:6px; }
.n34z7b3h0::-webkit-scrollbar-track{ background:transparent; }
.n34z7b3h0::-webkit-scrollbar-thumb{ background:var(--wraon-dm); border-radius:3px; }
.n34z7b3h0::-webkit-scrollbar-thumb:hover{ background:var(--gvwr5-as); }

/* Messages */
.hgz37x4w{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.hgz37x4w.q0q8dj1fqq{ flex-direction:row-reverse; }
.wzxdylpgf{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.wzxdylpgf a{ color:inherit; }
.hgz37x4w.gxr_nemdm .wzxdylpgf{ background:var(--nst-hx5); color:var(--qzpu5-kc1e); border-bottom-left-radius:4px; }
.hgz37x4w.q0q8dj1fqq .wzxdylpgf{ background:var(--puovc-zomt); color:#fff; border-bottom-right-radius:4px; }
.pw8m9oy1v{ font-size:11px; color:var(--gvwr5-as); margin-top:4px; display:block; }

/* Typing Indicator */
.e5ej_j73{
  display:flex; gap:8px; padding:10px 14px; background:var(--nst-hx5);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.u15a1i_x8p{ width:8px; height:8px; border-radius:50%; background:var(--gvwr5-as); animation:typingDot 1.4s infinite; }
.u15a1i_x8p:nth-child(2){ animation-delay:.2s; }
.u15a1i_x8p: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) */
.q9ivipt{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.nx7upvatm{
  border:0; border-radius:999px; padding:8px 12px; background:var(--puovc-zomt); 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(--ahpd-jeq);
}
.nx7upvatm:is(:hover,:focus){ transform:translateY(-1px); }
a.nx7upvatm{ text-decoration:none; display:inline-block; }
a.nx7upvatm:link, a.nx7upvatm:visited{ color:#fff; }
a.nx7upvatm:hover, a.nx7upvatm:focus{ color:#fff; }

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

/* Footer */
.n9x3e6yz8{
  padding:16px; background:var(--nst-hx5); border-top:1px solid var(--wraon-dm);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.yf8gxynnde{
  flex:1; padding:10px 14px; border:1px solid var(--wraon-dm); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--qzpu5-kc1e);
  background:var(--vx2-l5f7); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.yf8gxynnde:focus{ border-color:var(--puovc-zomt); }
.yf8gxynnde::placeholder{ color:var(--gvwr5-as); }
.yf8gxynnde.q7pj1c{ border-color:#c00; }
.mpdp6k{
  width:40px; height:40px; min-width:40px; border:none; background:var(--puovc-zomt); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.mpdp6k:disabled{ opacity:.5; cursor:not-allowed; }
.mpdp6k:not(:disabled):hover{ transform:scale(1.05); }
.mpdp6k:not(:disabled):active{ transform:scale(0.95); }
.mpdp6k:focus{ outline:2px solid var(--puovc-zomt); outline-offset:2px; }
.mpdp6k svg{ width:20px; height:20px; }

/* Character Counter */
.gmcdg53o5l{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--gvwr5-as); }
.gmcdg53o5l.c2m188p{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.p57e_5{
  align-self:flex-start;
  max-width:75%;
  background: var(--nst-hx5);
  color: var(--qzpu5-kc1e);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ahpd-jeq);
}
.eodyeg8{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.zx8tygk.ixhk2d33z{
  background: transparent; color: var(--qzpu5-kc1e); border-color: var(--wraon-dm);
}
.zx8tygk.ixhk2d33z:hover{
  background: var(--puovc-zomt); color:#fff; border-color: var(--puovc-zomt);
}

/* Mobile */
@media (max-width: 768px){
  .cwpgxx01{ bottom:16px; right:16px; }
  .cwpgxx01.amjvib4o0z{ left:16px; }
  .k78aivt{ --rwg58y-pujm:60px; }
  .yinmy7in{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--q6lf-td0q) var(--q6lf-td0q) 0 0; transform: translateY(100%);
  }
  .yinmy7in.w1s4bifv{ transform: translateY(0); }
  .zb0hgn3{ padding:20px; }
  .n9x3e6yz8{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.cwpgxx01 :focus-visible{ outline:2px solid var(--puovc-zomt); outline-offset:2px; }

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