/* CSS Variables */
:root {
  --ucz-vc3: #4f46e5;
  --aenaa-n27: #ffffff;
  --jq8zh-zu: #f9fafb;
  --id921f-lg7: #0f172a;
  --nxe-mi: #6b7280;
  --vwxvp-lkn: #e5e7eb;
  --n5yq5j-os: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --s71-t8y: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --jp2h38-nb: 16px;
  --m3sbg4-xj2j: 56px;
  --rxhjuk-bczn: 12px;
  --xnkzi-culv: 999999;
}

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

/* Main Container */
.eiaz9pec {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--xnkzi-culv);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--id921f-lg7);
}
.eiaz9pec.ne41ay { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.gxtffja { display: flex; flex-direction: column-reverse; gap: var(--rxhjuk-bczn); align-items: center; }
.va3kc88x {
  width: var(--m3sbg4-xj2j); height: var(--m3sbg4-xj2j); min-width: var(--m3sbg4-xj2j); min-height: var(--m3sbg4-xj2j);
  border-radius: 50%; border: none; background: var(--ucz-vc3); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--n5yq5j-os);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.va3kc88x:hover { transform: scale(1.05); box-shadow: var(--s71-t8y); }
.va3kc88x:active { transform: scale(0.95); }
.va3kc88x:focus { outline: 2px solid var(--ucz-vc3); outline-offset: 2px; }
.va3kc88x svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .va3kc88x.e7ehamv883{ animation:none; }
  .va3kc88x,.khf_gob,.ujsw2gjiy{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.khf_gob{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--aenaa-n27); border-radius: var(--jp2h38-nb); box-shadow: var(--s71-t8y);
  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;
}
.eiaz9pec.ne41ay .khf_gob{ right:auto; left:24px; }
.khf_gob.ztnk1g{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.lwvao8uh5t{
  padding:16px 20px; background:var(--aenaa-n27); border-bottom:1px solid var(--vwxvp-lkn);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.r7fp93mnr{ width:10px; height:10px; border-radius:50%; background:var(--ucz-vc3); flex-shrink:0; }
.wf33350g{ flex:1; min-width:0; }
.wm6s8t3xc{ font-size:16px; font-weight:600; color:var(--id921f-lg7); margin:0 0 2px 0; }
.r7d8mhtk{ font-size:13px; color:var(--nxe-mi); margin:0; }
.hetmna5l2v{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--nxe-mi);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.hetmna5l2v:hover{ background:var(--jq8zh-zu); color:var(--id921f-lg7); }
.hetmna5l2v:focus{ outline:2px solid var(--ucz-vc3); outline-offset:2px; }
.hetmna5l2v svg{ width:20px; height:20px; }

/* Body */
.azu3d1b{
  flex:1; overflow-y:auto; padding:16px; background:var(--jq8zh-zu);
  display:flex; flex-direction:column; gap:12px;
}
.azu3d1b::-webkit-scrollbar{ width:6px; }
.azu3d1b::-webkit-scrollbar-track{ background:transparent; }
.azu3d1b::-webkit-scrollbar-thumb{ background:var(--vwxvp-lkn); border-radius:3px; }
.azu3d1b::-webkit-scrollbar-thumb:hover{ background:var(--nxe-mi); }

/* Messages */
.ujsw2gjiy{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ujsw2gjiy.rokya6c8r7{ flex-direction:row-reverse; }
.nwcp1uy26{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.nwcp1uy26 a{ color:inherit; }
.ujsw2gjiy.q8vsqe2k .nwcp1uy26{ background:var(--aenaa-n27); color:var(--id921f-lg7); border-bottom-left-radius:4px; }
.ujsw2gjiy.rokya6c8r7 .nwcp1uy26{ background:var(--ucz-vc3); color:#fff; border-bottom-right-radius:4px; }
.v9uof38{ font-size:11px; color:var(--nxe-mi); margin-top:4px; display:block; }

/* Typing Indicator */
.k1lyy9y{
  display:flex; gap:8px; padding:10px 14px; background:var(--aenaa-n27);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.wf6w81{ width:8px; height:8px; border-radius:50%; background:var(--nxe-mi); animation:typingDot 1.4s infinite; }
.wf6w81:nth-child(2){ animation-delay:.2s; }
.wf6w81: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) */
.ioh8jfr{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.jx8cch{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ucz-vc3); 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(--n5yq5j-os);
}
.jx8cch:is(:hover,:focus){ transform:translateY(-1px); }
a.jx8cch{ text-decoration:none; display:inline-block; }
a.jx8cch:link, a.jx8cch:visited{ color:#fff; }
a.jx8cch:hover, a.jx8cch:focus{ color:#fff; }

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

/* Footer */
.tul4mg{
  padding:16px; background:var(--aenaa-n27); border-top:1px solid var(--vwxvp-lkn);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.k5fqscf{
  flex:1; padding:10px 14px; border:1px solid var(--vwxvp-lkn); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--id921f-lg7);
  background:var(--jq8zh-zu); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.k5fqscf:focus{ border-color:var(--ucz-vc3); }
.k5fqscf::placeholder{ color:var(--nxe-mi); }
.k5fqscf.zoi0kj{ border-color:#c00; }
.btk9t5smrs{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ucz-vc3); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.btk9t5smrs:disabled{ opacity:.5; cursor:not-allowed; }
.btk9t5smrs:not(:disabled):hover{ transform:scale(1.05); }
.btk9t5smrs:not(:disabled):active{ transform:scale(0.95); }
.btk9t5smrs:focus{ outline:2px solid var(--ucz-vc3); outline-offset:2px; }
.btk9t5smrs svg{ width:20px; height:20px; }

/* Character Counter */
.zrf5eq8{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--nxe-mi); }
.zrf5eq8.gnhooybu9{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.nvzw1mb4{
  align-self:flex-start;
  max-width:75%;
  background: var(--aenaa-n27);
  color: var(--id921f-lg7);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--n5yq5j-os);
}
.ifnk1p{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.oj7_ijy71o.snr33qdfdi{
  background: transparent; color: var(--id921f-lg7); border-color: var(--vwxvp-lkn);
}
.oj7_ijy71o.snr33qdfdi:hover{
  background: var(--ucz-vc3); color:#fff; border-color: var(--ucz-vc3);
}

/* Mobile */
@media (max-width: 768px){
  .eiaz9pec{ bottom:16px; right:16px; }
  .eiaz9pec.ne41ay{ left:16px; }
  .va3kc88x{ --m3sbg4-xj2j:60px; }
  .khf_gob{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--jp2h38-nb) var(--jp2h38-nb) 0 0; transform: translateY(100%);
  }
  .khf_gob.ztnk1g{ transform: translateY(0); }
  .lwvao8uh5t{ padding:20px; }
  .tul4mg{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.eiaz9pec :focus-visible{ outline:2px solid var(--ucz-vc3); outline-offset:2px; }

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