/* CSS Variables */
:root {
  --izhupz-q0gp: #4f46e5;
  --jocr-lcya: #ffffff;
  --spauds-x0i: #f9fafb;
  --xxvcc-n1t5: #0f172a;
  --kzgz-c04t: #6b7280;
  --n2azz-n39: #e5e7eb;
  --yyu6pk-n1oa: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --e5u-k5ee: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --nkfnz8-fg: 16px;
  --kqs1n7-ok: 56px;
  --p8dm-ld8: 12px;
  --jxb4-aqh: 999999;
}

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

/* Main Container */
.hyu_m3as {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--jxb4-aqh);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--xxvcc-n1t5);
}
.hyu_m3as.jdtdwd { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.s_47fj9 { display: flex; flex-direction: column-reverse; gap: var(--p8dm-ld8); align-items: center; }
.svoa78uklf {
  width: var(--kqs1n7-ok); height: var(--kqs1n7-ok); min-width: var(--kqs1n7-ok); min-height: var(--kqs1n7-ok);
  border-radius: 50%; border: none; background: var(--izhupz-q0gp); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--yyu6pk-n1oa);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.svoa78uklf:hover { transform: scale(1.05); box-shadow: var(--e5u-k5ee); }
.svoa78uklf:active { transform: scale(0.95); }
.svoa78uklf:focus { outline: 2px solid var(--izhupz-q0gp); outline-offset: 2px; }
.svoa78uklf svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .svoa78uklf.mjx59q{ animation:none; }
  .svoa78uklf,.lntegw,.ft9d3oc4l{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.lntegw{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--jocr-lcya); border-radius: var(--nkfnz8-fg); box-shadow: var(--e5u-k5ee);
  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;
}
.hyu_m3as.jdtdwd .lntegw{ right:auto; left:24px; }
.lntegw.sa2tdcb{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.nnxrrpq55{
  padding:16px 20px; background:var(--jocr-lcya); border-bottom:1px solid var(--n2azz-n39);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.dv23ecu88{ width:10px; height:10px; border-radius:50%; background:var(--izhupz-q0gp); flex-shrink:0; }
.jc38egf{ flex:1; min-width:0; }
.f9jjb9{ font-size:16px; font-weight:600; color:var(--xxvcc-n1t5); margin:0 0 2px 0; }
.q9z96_s{ font-size:13px; color:var(--kzgz-c04t); margin:0; }
.zc_gwvivk{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--kzgz-c04t);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.zc_gwvivk:hover{ background:var(--spauds-x0i); color:var(--xxvcc-n1t5); }
.zc_gwvivk:focus{ outline:2px solid var(--izhupz-q0gp); outline-offset:2px; }
.zc_gwvivk svg{ width:20px; height:20px; }

/* Body */
.up14vacgw{
  flex:1; overflow-y:auto; padding:16px; background:var(--spauds-x0i);
  display:flex; flex-direction:column; gap:12px;
}
.up14vacgw::-webkit-scrollbar{ width:6px; }
.up14vacgw::-webkit-scrollbar-track{ background:transparent; }
.up14vacgw::-webkit-scrollbar-thumb{ background:var(--n2azz-n39); border-radius:3px; }
.up14vacgw::-webkit-scrollbar-thumb:hover{ background:var(--kzgz-c04t); }

/* Messages */
.ft9d3oc4l{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ft9d3oc4l.kuo3u37{ flex-direction:row-reverse; }
.xo26tl7sf{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.xo26tl7sf a{ color:inherit; }
.ft9d3oc4l.vw3p17 .xo26tl7sf{ background:var(--jocr-lcya); color:var(--xxvcc-n1t5); border-bottom-left-radius:4px; }
.ft9d3oc4l.kuo3u37 .xo26tl7sf{ background:var(--izhupz-q0gp); color:#fff; border-bottom-right-radius:4px; }
.ww0ibrfc{ font-size:11px; color:var(--kzgz-c04t); margin-top:4px; display:block; }

/* Typing Indicator */
.itrvlomhy{
  display:flex; gap:8px; padding:10px 14px; background:var(--jocr-lcya);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.tr26qd{ width:8px; height:8px; border-radius:50%; background:var(--kzgz-c04t); animation:typingDot 1.4s infinite; }
.tr26qd:nth-child(2){ animation-delay:.2s; }
.tr26qd: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) */
.eylr7pv{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.thxiciyn{
  border:0; border-radius:999px; padding:8px 12px; background:var(--izhupz-q0gp); 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(--yyu6pk-n1oa);
}
.thxiciyn:is(:hover,:focus){ transform:translateY(-1px); }
a.thxiciyn{ text-decoration:none; display:inline-block; }
a.thxiciyn:link, a.thxiciyn:visited{ color:#fff; }
a.thxiciyn:hover, a.thxiciyn:focus{ color:#fff; }

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

/* Footer */
.yhwqf5p{
  padding:16px; background:var(--jocr-lcya); border-top:1px solid var(--n2azz-n39);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.w1ibo9tez{
  flex:1; padding:10px 14px; border:1px solid var(--n2azz-n39); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--xxvcc-n1t5);
  background:var(--spauds-x0i); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.w1ibo9tez:focus{ border-color:var(--izhupz-q0gp); }
.w1ibo9tez::placeholder{ color:var(--kzgz-c04t); }
.w1ibo9tez.f1ox5cgx{ border-color:#c00; }
.e_8ebpg2ln{
  width:40px; height:40px; min-width:40px; border:none; background:var(--izhupz-q0gp); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.e_8ebpg2ln:disabled{ opacity:.5; cursor:not-allowed; }
.e_8ebpg2ln:not(:disabled):hover{ transform:scale(1.05); }
.e_8ebpg2ln:not(:disabled):active{ transform:scale(0.95); }
.e_8ebpg2ln:focus{ outline:2px solid var(--izhupz-q0gp); outline-offset:2px; }
.e_8ebpg2ln svg{ width:20px; height:20px; }

/* Character Counter */
.p8fuw1m7v{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--kzgz-c04t); }
.p8fuw1m7v.h5jsvxg8zb{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.t5levv{
  align-self:flex-start;
  max-width:75%;
  background: var(--jocr-lcya);
  color: var(--xxvcc-n1t5);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--yyu6pk-n1oa);
}
.rx9mgkqg{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.n5yr22z7u4.yjz78ufvp{
  background: transparent; color: var(--xxvcc-n1t5); border-color: var(--n2azz-n39);
}
.n5yr22z7u4.yjz78ufvp:hover{
  background: var(--izhupz-q0gp); color:#fff; border-color: var(--izhupz-q0gp);
}

/* Mobile */
@media (max-width: 768px){
  .hyu_m3as{ bottom:16px; right:16px; }
  .hyu_m3as.jdtdwd{ left:16px; }
  .svoa78uklf{ --kqs1n7-ok:60px; }
  .lntegw{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--nkfnz8-fg) var(--nkfnz8-fg) 0 0; transform: translateY(100%);
  }
  .lntegw.sa2tdcb{ transform: translateY(0); }
  .nnxrrpq55{ padding:20px; }
  .yhwqf5p{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.hyu_m3as :focus-visible{ outline:2px solid var(--izhupz-q0gp); outline-offset:2px; }

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