/* CSS Variables */
:root {
  --aqb-swr: #4f46e5;
  --u4v-nc: #ffffff;
  --hrw6ah-tzi: #f9fafb;
  --t0qo-zj: #0f172a;
  --tbkm-fn: #6b7280;
  --crdy-ys: #e5e7eb;
  --q8x-ssu1: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ky7nbs-jx: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --a7a9xz-bgoc: 16px;
  --uiy1h-vbqw: 56px;
  --y1a-rmo: 12px;
  --ge1u4-re3: 999999;
}

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

/* Main Container */
.y8vE2e {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ge1u4-re3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--t0qo-zj);
}
.y8vE2e.qoLy5 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.bo4A0qc { display: flex; flex-direction: column-reverse; gap: var(--y1a-rmo); align-items: center; }
.hyjV872 {
  width: var(--uiy1h-vbqw); height: var(--uiy1h-vbqw); min-width: var(--uiy1h-vbqw); min-height: var(--uiy1h-vbqw);
  border-radius: 50%; border: none; background: var(--aqb-swr); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--q8x-ssu1);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.hyjV872:hover { transform: scale(1.05); box-shadow: var(--ky7nbs-jx); }
.hyjV872:active { transform: scale(0.95); }
.hyjV872:focus { outline: 2px solid var(--aqb-swr); outline-offset: 2px; }
.hyjV872 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hyjV872.chhsD8ug{ animation:none; }
  .hyjV872,.rkFwa,.bv8Txqm{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.rkFwa{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--u4v-nc); border-radius: var(--a7a9xz-bgoc); box-shadow: var(--ky7nbs-jx);
  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;
}
.y8vE2e.qoLy5 .rkFwa{ right:auto; left:24px; }
.rkFwa.oab3S18a{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.sgLu4{
  padding:16px 20px; background:var(--u4v-nc); border-bottom:1px solid var(--crdy-ys);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ruWbs{ width:10px; height:10px; border-radius:50%; background:var(--aqb-swr); flex-shrink:0; }
.o5Mhl{ flex:1; min-width:0; }
.oanFaux{ font-size:16px; font-weight:600; color:var(--t0qo-zj); margin:0 0 2px 0; }
.ny4sVhzl{ font-size:13px; color:var(--tbkm-fn); margin:0; }
.byGek{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--tbkm-fn);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.byGek:hover{ background:var(--hrw6ah-tzi); color:var(--t0qo-zj); }
.byGek:focus{ outline:2px solid var(--aqb-swr); outline-offset:2px; }
.byGek svg{ width:20px; height:20px; }

/* Body */
.oy4Oodh{
  flex:1; overflow-y:auto; padding:16px; background:var(--hrw6ah-tzi);
  display:flex; flex-direction:column; gap:12px;
}
.oy4Oodh::-webkit-scrollbar{ width:6px; }
.oy4Oodh::-webkit-scrollbar-track{ background:transparent; }
.oy4Oodh::-webkit-scrollbar-thumb{ background:var(--crdy-ys); border-radius:3px; }
.oy4Oodh::-webkit-scrollbar-thumb:hover{ background:var(--tbkm-fn); }

/* Messages */
.bv8Txqm{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.bv8Txqm.kh0I02{ flex-direction:row-reverse; }
.hmzlUyj2{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.hmzlUyj2 a{ color:inherit; }
.bv8Txqm.ds2R2x8 .hmzlUyj2{ background:var(--u4v-nc); color:var(--t0qo-zj); border-bottom-left-radius:4px; }
.bv8Txqm.kh0I02 .hmzlUyj2{ background:var(--aqb-swr); color:#fff; border-bottom-right-radius:4px; }
.tiaRt94{ font-size:11px; color:var(--tbkm-fn); margin-top:4px; display:block; }

/* Typing Indicator */
.srIzf{
  display:flex; gap:8px; padding:10px 14px; background:var(--u4v-nc);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.t1sTee9{ width:8px; height:8px; border-radius:50%; background:var(--tbkm-fn); animation:typingDot 1.4s infinite; }
.t1sTee9:nth-child(2){ animation-delay:.2s; }
.t1sTee9: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) */
.l34Tsl{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.r0Qp8{
  border:0; border-radius:999px; padding:8px 12px; background:var(--aqb-swr); 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(--q8x-ssu1);
}
.r0Qp8:is(:hover,:focus){ transform:translateY(-1px); }
a.r0Qp8{ text-decoration:none; display:inline-block; }
a.r0Qp8:link, a.r0Qp8:visited{ color:#fff; }
a.r0Qp8:hover, a.r0Qp8:focus{ color:#fff; }

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

/* Footer */
.h2sHhyk{
  padding:16px; background:var(--u4v-nc); border-top:1px solid var(--crdy-ys);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.r1Kfi{
  flex:1; padding:10px 14px; border:1px solid var(--crdy-ys); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--t0qo-zj);
  background:var(--hrw6ah-tzi); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.r1Kfi:focus{ border-color:var(--aqb-swr); }
.r1Kfi::placeholder{ color:var(--tbkm-fn); }
.r1Kfi.boPjf{ border-color:#c00; }
.rlcjH1oz{
  width:40px; height:40px; min-width:40px; border:none; background:var(--aqb-swr); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.rlcjH1oz:disabled{ opacity:.5; cursor:not-allowed; }
.rlcjH1oz:not(:disabled):hover{ transform:scale(1.05); }
.rlcjH1oz:not(:disabled):active{ transform:scale(0.95); }
.rlcjH1oz:focus{ outline:2px solid var(--aqb-swr); outline-offset:2px; }
.rlcjH1oz svg{ width:20px; height:20px; }

/* Character Counter */
.ohuYnj{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--tbkm-fn); }
.ohuYnj.p0V56{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ygJ4t{
  align-self:flex-start;
  max-width:75%;
  background: var(--u4v-nc);
  color: var(--t0qo-zj);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--q8x-ssu1);
}
.knJaa{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.lyiJga.d7iB40q{
  background: transparent; color: var(--t0qo-zj); border-color: var(--crdy-ys);
}
.lyiJga.d7iB40q:hover{
  background: var(--aqb-swr); color:#fff; border-color: var(--aqb-swr);
}

/* Mobile */
@media (max-width: 768px){
  .y8vE2e{ bottom:16px; right:16px; }
  .y8vE2e.qoLy5{ left:16px; }
  .hyjV872{ --uiy1h-vbqw:60px; }
  .rkFwa{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--a7a9xz-bgoc) var(--a7a9xz-bgoc) 0 0; transform: translateY(100%);
  }
  .rkFwa.oab3S18a{ transform: translateY(0); }
  .sgLu4{ padding:20px; }
  .h2sHhyk{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.y8vE2e :focus-visible{ outline:2px solid var(--aqb-swr); outline-offset:2px; }

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