/* CSS Variables */
:root {
  --vprk-weft: #4f46e5;
  --w8xk-mqzf: #ffffff;
  --thdo-mb7: #f9fafb;
  --d30-i2qy: #0f172a;
  --g0u20d-m3bn: #6b7280;
  --pdrgas-pnmh: #e5e7eb;
  --wqvm-cm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --rruq-zp3r: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --vm0buf-k1: 16px;
  --mrf-yc: 56px;
  --kdzs5f-bk4: 12px;
  --smz3b-qi15: 999999;
}

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

/* Main Container */
.bn2k5r7i {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--smz3b-qi15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--d30-i2qy);
}
.bn2k5r7i.x8njuz4i { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.nea1jm6 { display: flex; flex-direction: column-reverse; gap: var(--kdzs5f-bk4); align-items: center; }
.ms70jtp {
  width: var(--mrf-yc); height: var(--mrf-yc); min-width: var(--mrf-yc); min-height: var(--mrf-yc);
  border-radius: 50%; border: none; background: var(--vprk-weft); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--wqvm-cm);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ms70jtp:hover { transform: scale(1.05); box-shadow: var(--rruq-zp3r); }
.ms70jtp:active { transform: scale(0.95); }
.ms70jtp:focus { outline: 2px solid var(--vprk-weft); outline-offset: 2px; }
.ms70jtp svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ms70jtp.to0vvwgg5b{ animation:none; }
  .ms70jtp,.qrn0gt,.k8_beosq1n{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.qrn0gt{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--w8xk-mqzf); border-radius: var(--vm0buf-k1); box-shadow: var(--rruq-zp3r);
  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;
}
.bn2k5r7i.x8njuz4i .qrn0gt{ right:auto; left:24px; }
.qrn0gt.lwgqay{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.t2etvyls09{
  padding:16px 20px; background:var(--w8xk-mqzf); border-bottom:1px solid var(--pdrgas-pnmh);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.hv9ibw6lg{ width:10px; height:10px; border-radius:50%; background:var(--vprk-weft); flex-shrink:0; }
.ld9s1t4mhm{ flex:1; min-width:0; }
.rh8nbg2{ font-size:16px; font-weight:600; color:var(--d30-i2qy); margin:0 0 2px 0; }
.eq_h955{ font-size:13px; color:var(--g0u20d-m3bn); margin:0; }
.vm5akhhnc{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--g0u20d-m3bn);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.vm5akhhnc:hover{ background:var(--thdo-mb7); color:var(--d30-i2qy); }
.vm5akhhnc:focus{ outline:2px solid var(--vprk-weft); outline-offset:2px; }
.vm5akhhnc svg{ width:20px; height:20px; }

/* Body */
.uxaqhc23{
  flex:1; overflow-y:auto; padding:16px; background:var(--thdo-mb7);
  display:flex; flex-direction:column; gap:12px;
}
.uxaqhc23::-webkit-scrollbar{ width:6px; }
.uxaqhc23::-webkit-scrollbar-track{ background:transparent; }
.uxaqhc23::-webkit-scrollbar-thumb{ background:var(--pdrgas-pnmh); border-radius:3px; }
.uxaqhc23::-webkit-scrollbar-thumb:hover{ background:var(--g0u20d-m3bn); }

/* Messages */
.k8_beosq1n{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.k8_beosq1n.bcdqx2ov0{ flex-direction:row-reverse; }
.a78klt7{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.a78klt7 a{ color:inherit; }
.k8_beosq1n.oyez4tnv .a78klt7{ background:var(--w8xk-mqzf); color:var(--d30-i2qy); border-bottom-left-radius:4px; }
.k8_beosq1n.bcdqx2ov0 .a78klt7{ background:var(--vprk-weft); color:#fff; border-bottom-right-radius:4px; }
.unxswyf5g{ font-size:11px; color:var(--g0u20d-m3bn); margin-top:4px; display:block; }

/* Typing Indicator */
.s0dw95dhv{
  display:flex; gap:8px; padding:10px 14px; background:var(--w8xk-mqzf);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.fh6wc5{ width:8px; height:8px; border-radius:50%; background:var(--g0u20d-m3bn); animation:typingDot 1.4s infinite; }
.fh6wc5:nth-child(2){ animation-delay:.2s; }
.fh6wc5: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) */
.z6v6hr20vf{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ifszcc{
  border:0; border-radius:999px; padding:8px 12px; background:var(--vprk-weft); 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(--wqvm-cm);
}
.ifszcc:is(:hover,:focus){ transform:translateY(-1px); }
a.ifszcc{ text-decoration:none; display:inline-block; }
a.ifszcc:link, a.ifszcc:visited{ color:#fff; }
a.ifszcc:hover, a.ifszcc:focus{ color:#fff; }

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

/* Footer */
.r2tuipj7d{
  padding:16px; background:var(--w8xk-mqzf); border-top:1px solid var(--pdrgas-pnmh);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.zd86p16{
  flex:1; padding:10px 14px; border:1px solid var(--pdrgas-pnmh); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--d30-i2qy);
  background:var(--thdo-mb7); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.zd86p16:focus{ border-color:var(--vprk-weft); }
.zd86p16::placeholder{ color:var(--g0u20d-m3bn); }
.zd86p16.qn5waymf{ border-color:#c00; }
.p76l_rnxu{
  width:40px; height:40px; min-width:40px; border:none; background:var(--vprk-weft); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.p76l_rnxu:disabled{ opacity:.5; cursor:not-allowed; }
.p76l_rnxu:not(:disabled):hover{ transform:scale(1.05); }
.p76l_rnxu:not(:disabled):active{ transform:scale(0.95); }
.p76l_rnxu:focus{ outline:2px solid var(--vprk-weft); outline-offset:2px; }
.p76l_rnxu svg{ width:20px; height:20px; }

/* Character Counter */
.emnr55k{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--g0u20d-m3bn); }
.emnr55k.gs74z7m{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.xl7vxa0{
  align-self:flex-start;
  max-width:75%;
  background: var(--w8xk-mqzf);
  color: var(--d30-i2qy);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--wqvm-cm);
}
.bp1ydi{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.furx507jrg.y1e68r{
  background: transparent; color: var(--d30-i2qy); border-color: var(--pdrgas-pnmh);
}
.furx507jrg.y1e68r:hover{
  background: var(--vprk-weft); color:#fff; border-color: var(--vprk-weft);
}

/* Mobile */
@media (max-width: 768px){
  .bn2k5r7i{ bottom:16px; right:16px; }
  .bn2k5r7i.x8njuz4i{ left:16px; }
  .ms70jtp{ --mrf-yc:60px; }
  .qrn0gt{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--vm0buf-k1) var(--vm0buf-k1) 0 0; transform: translateY(100%);
  }
  .qrn0gt.lwgqay{ transform: translateY(0); }
  .t2etvyls09{ padding:20px; }
  .r2tuipj7d{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.bn2k5r7i :focus-visible{ outline:2px solid var(--vprk-weft); outline-offset:2px; }

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