/* CSS Variables */
:root {
  --quyos-t6: #4f46e5;
  --hz1-zl: #ffffff;
  --cazctt-tzua: #f9fafb;
  --nsvj4-g6y: #0f172a;
  --ulsvy0-grx: #6b7280;
  --yq4p-lw: #e5e7eb;
  --nm5-hu: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --lmjjv-l29: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --athfb-bow6: 16px;
  --jmb-gg9: 56px;
  --piubi-x7m: 12px;
  --qxomk1-og: 999999;
}

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

/* Main Container */
.wz4z3wd23 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--qxomk1-og);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--nsvj4-g6y);
}
.wz4z3wd23.mw7gb9cvx { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.fk8qsze1u0 { display: flex; flex-direction: column-reverse; gap: var(--piubi-x7m); align-items: center; }
.fnay91x {
  width: var(--jmb-gg9); height: var(--jmb-gg9); min-width: var(--jmb-gg9); min-height: var(--jmb-gg9);
  border-radius: 50%; border: none; background: var(--quyos-t6); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nm5-hu);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.fnay91x:hover { transform: scale(1.05); box-shadow: var(--lmjjv-l29); }
.fnay91x:active { transform: scale(0.95); }
.fnay91x:focus { outline: 2px solid var(--quyos-t6); outline-offset: 2px; }
.fnay91x svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .fnay91x.qc_y9ove{ animation:none; }
  .fnay91x,.lduw76,.wyns8sl{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.lduw76{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--hz1-zl); border-radius: var(--athfb-bow6); box-shadow: var(--lmjjv-l29);
  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;
}
.wz4z3wd23.mw7gb9cvx .lduw76{ right:auto; left:24px; }
.lduw76.nkzk4j{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.vlp9w4{
  padding:16px 20px; background:var(--hz1-zl); border-bottom:1px solid var(--yq4p-lw);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.zb0a8rx5t{ width:10px; height:10px; border-radius:50%; background:var(--quyos-t6); flex-shrink:0; }
.ttrid3{ flex:1; min-width:0; }
.ayxvtjzjkz{ font-size:16px; font-weight:600; color:var(--nsvj4-g6y); margin:0 0 2px 0; }
.je4mfiu2t5{ font-size:13px; color:var(--ulsvy0-grx); margin:0; }
.e277ia45w{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ulsvy0-grx);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.e277ia45w:hover{ background:var(--cazctt-tzua); color:var(--nsvj4-g6y); }
.e277ia45w:focus{ outline:2px solid var(--quyos-t6); outline-offset:2px; }
.e277ia45w svg{ width:20px; height:20px; }

/* Body */
.bzj65cg6{
  flex:1; overflow-y:auto; padding:16px; background:var(--cazctt-tzua);
  display:flex; flex-direction:column; gap:12px;
}
.bzj65cg6::-webkit-scrollbar{ width:6px; }
.bzj65cg6::-webkit-scrollbar-track{ background:transparent; }
.bzj65cg6::-webkit-scrollbar-thumb{ background:var(--yq4p-lw); border-radius:3px; }
.bzj65cg6::-webkit-scrollbar-thumb:hover{ background:var(--ulsvy0-grx); }

/* Messages */
.wyns8sl{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.wyns8sl.t4f87avn{ flex-direction:row-reverse; }
.d8vll0y{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.d8vll0y a{ color:inherit; }
.wyns8sl.vva72484r7 .d8vll0y{ background:var(--hz1-zl); color:var(--nsvj4-g6y); border-bottom-left-radius:4px; }
.wyns8sl.t4f87avn .d8vll0y{ background:var(--quyos-t6); color:#fff; border-bottom-right-radius:4px; }
.qn956efed{ font-size:11px; color:var(--ulsvy0-grx); margin-top:4px; display:block; }

/* Typing Indicator */
.kqv_uby6{
  display:flex; gap:8px; padding:10px 14px; background:var(--hz1-zl);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.khicbdd{ width:8px; height:8px; border-radius:50%; background:var(--ulsvy0-grx); animation:typingDot 1.4s infinite; }
.khicbdd:nth-child(2){ animation-delay:.2s; }
.khicbdd: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) */
.acyy3hst{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.upad2wppv{
  border:0; border-radius:999px; padding:8px 12px; background:var(--quyos-t6); 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(--nm5-hu);
}
.upad2wppv:is(:hover,:focus){ transform:translateY(-1px); }
a.upad2wppv{ text-decoration:none; display:inline-block; }
a.upad2wppv:link, a.upad2wppv:visited{ color:#fff; }
a.upad2wppv:hover, a.upad2wppv:focus{ color:#fff; }

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

/* Footer */
.dzw88ti8ba{
  padding:16px; background:var(--hz1-zl); border-top:1px solid var(--yq4p-lw);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.eq9rr7z6{
  flex:1; padding:10px 14px; border:1px solid var(--yq4p-lw); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--nsvj4-g6y);
  background:var(--cazctt-tzua); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.eq9rr7z6:focus{ border-color:var(--quyos-t6); }
.eq9rr7z6::placeholder{ color:var(--ulsvy0-grx); }
.eq9rr7z6.v2zb00_apo{ border-color:#c00; }
.f220mri{
  width:40px; height:40px; min-width:40px; border:none; background:var(--quyos-t6); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.f220mri:disabled{ opacity:.5; cursor:not-allowed; }
.f220mri:not(:disabled):hover{ transform:scale(1.05); }
.f220mri:not(:disabled):active{ transform:scale(0.95); }
.f220mri:focus{ outline:2px solid var(--quyos-t6); outline-offset:2px; }
.f220mri svg{ width:20px; height:20px; }

/* Character Counter */
.f3jzkd{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ulsvy0-grx); }
.f3jzkd.hdsiw_x{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ud9ryzg{
  align-self:flex-start;
  max-width:75%;
  background: var(--hz1-zl);
  color: var(--nsvj4-g6y);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--nm5-hu);
}
.y0i82st4t{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ot3nq3kseb.nrw_46fl4h{
  background: transparent; color: var(--nsvj4-g6y); border-color: var(--yq4p-lw);
}
.ot3nq3kseb.nrw_46fl4h:hover{
  background: var(--quyos-t6); color:#fff; border-color: var(--quyos-t6);
}

/* Mobile */
@media (max-width: 768px){
  .wz4z3wd23{ bottom:16px; right:16px; }
  .wz4z3wd23.mw7gb9cvx{ left:16px; }
  .fnay91x{ --jmb-gg9:60px; }
  .lduw76{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--athfb-bow6) var(--athfb-bow6) 0 0; transform: translateY(100%);
  }
  .lduw76.nkzk4j{ transform: translateY(0); }
  .vlp9w4{ padding:20px; }
  .dzw88ti8ba{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.wz4z3wd23 :focus-visible{ outline:2px solid var(--quyos-t6); outline-offset:2px; }

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