/* CSS Variables */
:root {
  --ubn-a5: #4f46e5;
  --gddn-xji: #ffffff;
  --i6gpgc-bm: #f9fafb;
  --wv7t3m-zt5: #0f172a;
  --a4ugak-hw1y: #6b7280;
  --px75mh-l9w: #e5e7eb;
  --giczz-egk8: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --d6n-e0: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --dl1yck-i8ot: 16px;
  --n4k-eklm: 56px;
  --atu8-ee: 12px;
  --ted-na: 999999;
}

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

/* Main Container */
.nar-v745l50f7q {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ted-na);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--wv7t3m-zt5);
}
.nar-v745l50f7q.nar-qin8zhqfjyq { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.nar-a8s7arctbi { display: flex; flex-direction: column-reverse; gap: var(--atu8-ee); align-items: center; }
.nar-wt2kf030nj {
  width: var(--n4k-eklm); height: var(--n4k-eklm); min-width: var(--n4k-eklm); min-height: var(--n4k-eklm);
  border-radius: 50%; border: none; background: var(--ubn-a5); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--giczz-egk8);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.nar-wt2kf030nj:hover { transform: scale(1.05); box-shadow: var(--d6n-e0); }
.nar-wt2kf030nj:active { transform: scale(0.95); }
.nar-wt2kf030nj:focus { outline: 2px solid var(--ubn-a5); outline-offset: 2px; }
.nar-wt2kf030nj svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nar-wt2kf030nj.nar-em2lzbdlce5m{ animation:none; }
  .nar-wt2kf030nj,.nar-k4eaydihrw,.nar-t99mnh07o{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.nar-k4eaydihrw{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--gddn-xji); border-radius: var(--dl1yck-i8ot); box-shadow: var(--d6n-e0);
  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;
}
.nar-v745l50f7q.nar-qin8zhqfjyq .nar-k4eaydihrw{ right:auto; left:24px; }
.nar-k4eaydihrw.nar-z5f6ds9r1{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.nar-zvpcdkk62{
  padding:16px 20px; background:var(--gddn-xji); border-bottom:1px solid var(--px75mh-l9w);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.nar-h97k46fio{ width:10px; height:10px; border-radius:50%; background:var(--ubn-a5); flex-shrink:0; }
.nar-f52xnixlvf{ flex:1; min-width:0; }
.nar-v1rpoxkiee{ font-size:16px; font-weight:600; color:var(--wv7t3m-zt5); margin:0 0 2px 0; }
.nar-np0551s5t{ font-size:13px; color:var(--a4ugak-hw1y); margin:0; }
.nar-p0s0zkuh{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--a4ugak-hw1y);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.nar-p0s0zkuh:hover{ background:var(--i6gpgc-bm); color:var(--wv7t3m-zt5); }
.nar-p0s0zkuh:focus{ outline:2px solid var(--ubn-a5); outline-offset:2px; }
.nar-p0s0zkuh svg{ width:20px; height:20px; }

/* Body */
.nar-fypykea2l{
  flex:1; overflow-y:auto; padding:16px; background:var(--i6gpgc-bm);
  display:flex; flex-direction:column; gap:12px;
}
.nar-fypykea2l::-webkit-scrollbar{ width:6px; }
.nar-fypykea2l::-webkit-scrollbar-track{ background:transparent; }
.nar-fypykea2l::-webkit-scrollbar-thumb{ background:var(--px75mh-l9w); border-radius:3px; }
.nar-fypykea2l::-webkit-scrollbar-thumb:hover{ background:var(--a4ugak-hw1y); }

/* Messages */
.nar-t99mnh07o{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.nar-t99mnh07o.nar-z0cdoh8dxcki{ flex-direction:row-reverse; }
.nar-trvn36ou232{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.nar-trvn36ou232 a{ color:inherit; }
.nar-t99mnh07o.nar-fbqbvygfx35a .nar-trvn36ou232{ background:var(--gddn-xji); color:var(--wv7t3m-zt5); border-bottom-left-radius:4px; }
.nar-t99mnh07o.nar-z0cdoh8dxcki .nar-trvn36ou232{ background:var(--ubn-a5); color:#fff; border-bottom-right-radius:4px; }
.nar-ggxzx15q{ font-size:11px; color:var(--a4ugak-hw1y); margin-top:4px; display:block; }

/* Typing Indicator */
.nar-rabqu91luzx{
  display:flex; gap:8px; padding:10px 14px; background:var(--gddn-xji);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.nar-qst41indi7mz{ width:8px; height:8px; border-radius:50%; background:var(--a4ugak-hw1y); animation:typingDot 1.4s infinite; }
.nar-qst41indi7mz:nth-child(2){ animation-delay:.2s; }
.nar-qst41indi7mz: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) */
.nar-fsku0vn8{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.nar-goal1llun7f{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ubn-a5); 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(--giczz-egk8);
}
.nar-goal1llun7f:is(:hover,:focus){ transform:translateY(-1px); }
a.nar-goal1llun7f{ text-decoration:none; display:inline-block; }
a.nar-goal1llun7f:link, a.nar-goal1llun7f:visited{ color:#fff; }
a.nar-goal1llun7f:hover, a.nar-goal1llun7f:focus{ color:#fff; }

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

/* Footer */
.nar-pmi02xpnoku3{
  padding:16px; background:var(--gddn-xji); border-top:1px solid var(--px75mh-l9w);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.nar-jdrpdsnge4{
  flex:1; padding:10px 14px; border:1px solid var(--px75mh-l9w); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--wv7t3m-zt5);
  background:var(--i6gpgc-bm); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.nar-jdrpdsnge4:focus{ border-color:var(--ubn-a5); }
.nar-jdrpdsnge4::placeholder{ color:var(--a4ugak-hw1y); }
.nar-jdrpdsnge4.nar-cglvgamd{ border-color:#c00; }
.nar-m4kbq0qz5r3{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ubn-a5); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.nar-m4kbq0qz5r3:disabled{ opacity:.5; cursor:not-allowed; }
.nar-m4kbq0qz5r3:not(:disabled):hover{ transform:scale(1.05); }
.nar-m4kbq0qz5r3:not(:disabled):active{ transform:scale(0.95); }
.nar-m4kbq0qz5r3:focus{ outline:2px solid var(--ubn-a5); outline-offset:2px; }
.nar-m4kbq0qz5r3 svg{ width:20px; height:20px; }

/* Character Counter */
.nar-dk9vlc420f{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--a4ugak-hw1y); }
.nar-dk9vlc420f.nar-a9asj7q5s{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.nar-opz233diniy{
  align-self:flex-start;
  max-width:75%;
  background: var(--gddn-xji);
  color: var(--wv7t3m-zt5);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--giczz-egk8);
}
.nar-jn9vpm5yl0yj{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.nar-t5mzoodt3ug8.nar-wk1tgdfr{
  background: transparent; color: var(--wv7t3m-zt5); border-color: var(--px75mh-l9w);
}
.nar-t5mzoodt3ug8.nar-wk1tgdfr:hover{
  background: var(--ubn-a5); color:#fff; border-color: var(--ubn-a5);
}

/* Mobile */
@media (max-width: 768px){
  .nar-v745l50f7q{ bottom:16px; right:16px; }
  .nar-v745l50f7q.nar-qin8zhqfjyq{ left:16px; }
  .nar-wt2kf030nj{ --n4k-eklm:60px; }
  .nar-k4eaydihrw{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--dl1yck-i8ot) var(--dl1yck-i8ot) 0 0; transform: translateY(100%);
  }
  .nar-k4eaydihrw.nar-z5f6ds9r1{ transform: translateY(0); }
  .nar-zvpcdkk62{ padding:20px; }
  .nar-pmi02xpnoku3{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.nar-v745l50f7q :focus-visible{ outline:2px solid var(--ubn-a5); outline-offset:2px; }

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