/* CSS Variables */
:root {
  --e389-hqjz: #4f46e5;
  --x77999-ssg: #ffffff;
  --xo5fi-uj: #f9fafb;
  --vmyw3t-qx: #0f172a;
  --ixlp4-p13n: #6b7280;
  --dh3q7-lgif: #e5e7eb;
  --joc-htu: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --lkt-ve9h: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --fxhyqa-xlpx: 16px;
  --sdr0o0-rh12: 56px;
  --ypc7-gz6: 12px;
  --r249yv-w38h: 999999;
}

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

/* Main Container */
.xp7jgky2rq {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--r249yv-w38h);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--vmyw3t-qx);
}
.xp7jgky2rq.pxfd9ga { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.z23ledjhr { display: flex; flex-direction: column-reverse; gap: var(--ypc7-gz6); align-items: center; }
.rqygfwth {
  width: var(--sdr0o0-rh12); height: var(--sdr0o0-rh12); min-width: var(--sdr0o0-rh12); min-height: var(--sdr0o0-rh12);
  border-radius: 50%; border: none; background: var(--e389-hqjz); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--joc-htu);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rqygfwth:hover { transform: scale(1.05); box-shadow: var(--lkt-ve9h); }
.rqygfwth:active { transform: scale(0.95); }
.rqygfwth:focus { outline: 2px solid var(--e389-hqjz); outline-offset: 2px; }
.rqygfwth svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rqygfwth.fascvm{ animation:none; }
  .rqygfwth,.f7a9n1__qv,.evf4ez{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.f7a9n1__qv{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--x77999-ssg); border-radius: var(--fxhyqa-xlpx); box-shadow: var(--lkt-ve9h);
  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;
}
.xp7jgky2rq.pxfd9ga .f7a9n1__qv{ right:auto; left:24px; }
.f7a9n1__qv.cmd4w1wmzb{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ovhx9_9gq{
  padding:16px 20px; background:var(--x77999-ssg); border-bottom:1px solid var(--dh3q7-lgif);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.uufdj43a{ width:10px; height:10px; border-radius:50%; background:var(--e389-hqjz); flex-shrink:0; }
.rq5089ig5{ flex:1; min-width:0; }
.efd1bz3a45{ font-size:16px; font-weight:600; color:var(--vmyw3t-qx); margin:0 0 2px 0; }
.ob06376d14{ font-size:13px; color:var(--ixlp4-p13n); margin:0; }
.cs4t777{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ixlp4-p13n);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.cs4t777:hover{ background:var(--xo5fi-uj); color:var(--vmyw3t-qx); }
.cs4t777:focus{ outline:2px solid var(--e389-hqjz); outline-offset:2px; }
.cs4t777 svg{ width:20px; height:20px; }

/* Body */
.p5r0egf7da{
  flex:1; overflow-y:auto; padding:16px; background:var(--xo5fi-uj);
  display:flex; flex-direction:column; gap:12px;
}
.p5r0egf7da::-webkit-scrollbar{ width:6px; }
.p5r0egf7da::-webkit-scrollbar-track{ background:transparent; }
.p5r0egf7da::-webkit-scrollbar-thumb{ background:var(--dh3q7-lgif); border-radius:3px; }
.p5r0egf7da::-webkit-scrollbar-thumb:hover{ background:var(--ixlp4-p13n); }

/* Messages */
.evf4ez{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.evf4ez.hyr5xj{ flex-direction:row-reverse; }
.w27gdpce{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.w27gdpce a{ color:inherit; }
.evf4ez.enm6mz4ve .w27gdpce{ background:var(--x77999-ssg); color:var(--vmyw3t-qx); border-bottom-left-radius:4px; }
.evf4ez.hyr5xj .w27gdpce{ background:var(--e389-hqjz); color:#fff; border-bottom-right-radius:4px; }
.ak0vv35u1{ font-size:11px; color:var(--ixlp4-p13n); margin-top:4px; display:block; }

/* Typing Indicator */
.r3u2lrfn{
  display:flex; gap:8px; padding:10px 14px; background:var(--x77999-ssg);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ptpxdeaar{ width:8px; height:8px; border-radius:50%; background:var(--ixlp4-p13n); animation:typingDot 1.4s infinite; }
.ptpxdeaar:nth-child(2){ animation-delay:.2s; }
.ptpxdeaar: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) */
.uxbjlyd6{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.rododex{
  border:0; border-radius:999px; padding:8px 12px; background:var(--e389-hqjz); 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(--joc-htu);
}
.rododex:is(:hover,:focus){ transform:translateY(-1px); }
a.rododex{ text-decoration:none; display:inline-block; }
a.rododex:link, a.rododex:visited{ color:#fff; }
a.rododex:hover, a.rododex:focus{ color:#fff; }

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

/* Footer */
.qvd8xgg{
  padding:16px; background:var(--x77999-ssg); border-top:1px solid var(--dh3q7-lgif);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.dc6qb8f{
  flex:1; padding:10px 14px; border:1px solid var(--dh3q7-lgif); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--vmyw3t-qx);
  background:var(--xo5fi-uj); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.dc6qb8f:focus{ border-color:var(--e389-hqjz); }
.dc6qb8f::placeholder{ color:var(--ixlp4-p13n); }
.dc6qb8f.d2go4i6h{ border-color:#c00; }
.ysi7y2c{
  width:40px; height:40px; min-width:40px; border:none; background:var(--e389-hqjz); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ysi7y2c:disabled{ opacity:.5; cursor:not-allowed; }
.ysi7y2c:not(:disabled):hover{ transform:scale(1.05); }
.ysi7y2c:not(:disabled):active{ transform:scale(0.95); }
.ysi7y2c:focus{ outline:2px solid var(--e389-hqjz); outline-offset:2px; }
.ysi7y2c svg{ width:20px; height:20px; }

/* Character Counter */
.vc18nln{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ixlp4-p13n); }
.vc18nln.i7qeat{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.lcuyiyu{
  align-self:flex-start;
  max-width:75%;
  background: var(--x77999-ssg);
  color: var(--vmyw3t-qx);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--joc-htu);
}
.gjnfid{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.jmif_9jk.f3n4s_8v{
  background: transparent; color: var(--vmyw3t-qx); border-color: var(--dh3q7-lgif);
}
.jmif_9jk.f3n4s_8v:hover{
  background: var(--e389-hqjz); color:#fff; border-color: var(--e389-hqjz);
}

/* Mobile */
@media (max-width: 768px){
  .xp7jgky2rq{ bottom:16px; right:16px; }
  .xp7jgky2rq.pxfd9ga{ left:16px; }
  .rqygfwth{ --sdr0o0-rh12:60px; }
  .f7a9n1__qv{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--fxhyqa-xlpx) var(--fxhyqa-xlpx) 0 0; transform: translateY(100%);
  }
  .f7a9n1__qv.cmd4w1wmzb{ transform: translateY(0); }
  .ovhx9_9gq{ padding:20px; }
  .qvd8xgg{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.xp7jgky2rq :focus-visible{ outline:2px solid var(--e389-hqjz); outline-offset:2px; }

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