/* CSS Variables */
:root {
  --jutq-cm: #4f46e5;
  --g6ju-lq: #ffffff;
  --efx2iu-htdg: #f9fafb;
  --mudiaj-if: #0f172a;
  --rhmw-w1: #6b7280;
  --hyg-aen: #e5e7eb;
  --u59fyi-q43z: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --b5t63m-mg7: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --urr-i69v: 16px;
  --q6k5-ww9: 56px;
  --ng9j-v4ok: 12px;
  --ukz-kw: 999999;
}

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

/* Main Container */
.b8qa8hald {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ukz-kw);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--mudiaj-if);
}
.b8qa8hald.p1t8tr { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.wbydp2r3sp { display: flex; flex-direction: column-reverse; gap: var(--ng9j-v4ok); align-items: center; }
.e0cqtbas5t {
  width: var(--q6k5-ww9); height: var(--q6k5-ww9); min-width: var(--q6k5-ww9); min-height: var(--q6k5-ww9);
  border-radius: 50%; border: none; background: var(--jutq-cm); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--u59fyi-q43z);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.e0cqtbas5t:hover { transform: scale(1.05); box-shadow: var(--b5t63m-mg7); }
.e0cqtbas5t:active { transform: scale(0.95); }
.e0cqtbas5t:focus { outline: 2px solid var(--jutq-cm); outline-offset: 2px; }
.e0cqtbas5t svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .e0cqtbas5t.s2ui8z{ animation:none; }
  .e0cqtbas5t,.oc6_i7_nw,.gjhw3n{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.oc6_i7_nw{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--g6ju-lq); border-radius: var(--urr-i69v); box-shadow: var(--b5t63m-mg7);
  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;
}
.b8qa8hald.p1t8tr .oc6_i7_nw{ right:auto; left:24px; }
.oc6_i7_nw.wc74ckw0jv{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ckp4p1u{
  padding:16px 20px; background:var(--g6ju-lq); border-bottom:1px solid var(--hyg-aen);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.h4zomvvu0{ width:10px; height:10px; border-radius:50%; background:var(--jutq-cm); flex-shrink:0; }
.d3vee7wvn{ flex:1; min-width:0; }
.c7yt6u{ font-size:16px; font-weight:600; color:var(--mudiaj-if); margin:0 0 2px 0; }
.yb2kb2x96q{ font-size:13px; color:var(--rhmw-w1); margin:0; }
.s2hw99b1nv{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--rhmw-w1);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.s2hw99b1nv:hover{ background:var(--efx2iu-htdg); color:var(--mudiaj-if); }
.s2hw99b1nv:focus{ outline:2px solid var(--jutq-cm); outline-offset:2px; }
.s2hw99b1nv svg{ width:20px; height:20px; }

/* Body */
.sn91apasyu{
  flex:1; overflow-y:auto; padding:16px; background:var(--efx2iu-htdg);
  display:flex; flex-direction:column; gap:12px;
}
.sn91apasyu::-webkit-scrollbar{ width:6px; }
.sn91apasyu::-webkit-scrollbar-track{ background:transparent; }
.sn91apasyu::-webkit-scrollbar-thumb{ background:var(--hyg-aen); border-radius:3px; }
.sn91apasyu::-webkit-scrollbar-thumb:hover{ background:var(--rhmw-w1); }

/* Messages */
.gjhw3n{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.gjhw3n.bw18r8zeka{ flex-direction:row-reverse; }
.dgybpd{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.dgybpd a{ color:inherit; }
.gjhw3n.moxss0cz6e .dgybpd{ background:var(--g6ju-lq); color:var(--mudiaj-if); border-bottom-left-radius:4px; }
.gjhw3n.bw18r8zeka .dgybpd{ background:var(--jutq-cm); color:#fff; border-bottom-right-radius:4px; }
.a7nztj9{ font-size:11px; color:var(--rhmw-w1); margin-top:4px; display:block; }

/* Typing Indicator */
.yf437q{
  display:flex; gap:8px; padding:10px 14px; background:var(--g6ju-lq);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.vdgb5x{ width:8px; height:8px; border-radius:50%; background:var(--rhmw-w1); animation:typingDot 1.4s infinite; }
.vdgb5x:nth-child(2){ animation-delay:.2s; }
.vdgb5x: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) */
.k61traqhd{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ob3uxppbg{
  border:0; border-radius:999px; padding:8px 12px; background:var(--jutq-cm); 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(--u59fyi-q43z);
}
.ob3uxppbg:is(:hover,:focus){ transform:translateY(-1px); }
a.ob3uxppbg{ text-decoration:none; display:inline-block; }
a.ob3uxppbg:link, a.ob3uxppbg:visited{ color:#fff; }
a.ob3uxppbg:hover, a.ob3uxppbg:focus{ color:#fff; }

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

/* Footer */
.k49jhz2pay{
  padding:16px; background:var(--g6ju-lq); border-top:1px solid var(--hyg-aen);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.x1xlo7{
  flex:1; padding:10px 14px; border:1px solid var(--hyg-aen); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--mudiaj-if);
  background:var(--efx2iu-htdg); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.x1xlo7:focus{ border-color:var(--jutq-cm); }
.x1xlo7::placeholder{ color:var(--rhmw-w1); }
.x1xlo7.jjqypg3{ border-color:#c00; }
.y8lz2r5df{
  width:40px; height:40px; min-width:40px; border:none; background:var(--jutq-cm); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.y8lz2r5df:disabled{ opacity:.5; cursor:not-allowed; }
.y8lz2r5df:not(:disabled):hover{ transform:scale(1.05); }
.y8lz2r5df:not(:disabled):active{ transform:scale(0.95); }
.y8lz2r5df:focus{ outline:2px solid var(--jutq-cm); outline-offset:2px; }
.y8lz2r5df svg{ width:20px; height:20px; }

/* Character Counter */
.bj2ln2{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--rhmw-w1); }
.bj2ln2.ura3db72e{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.jd03dtgwmx{
  align-self:flex-start;
  max-width:75%;
  background: var(--g6ju-lq);
  color: var(--mudiaj-if);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--u59fyi-q43z);
}
.q8xwi417{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.mk4szbt.sd7amy67{
  background: transparent; color: var(--mudiaj-if); border-color: var(--hyg-aen);
}
.mk4szbt.sd7amy67:hover{
  background: var(--jutq-cm); color:#fff; border-color: var(--jutq-cm);
}

/* Mobile */
@media (max-width: 768px){
  .b8qa8hald{ bottom:16px; right:16px; }
  .b8qa8hald.p1t8tr{ left:16px; }
  .e0cqtbas5t{ --q6k5-ww9:60px; }
  .oc6_i7_nw{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--urr-i69v) var(--urr-i69v) 0 0; transform: translateY(100%);
  }
  .oc6_i7_nw.wc74ckw0jv{ transform: translateY(0); }
  .ckp4p1u{ padding:20px; }
  .k49jhz2pay{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.b8qa8hald :focus-visible{ outline:2px solid var(--jutq-cm); outline-offset:2px; }

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