/* CSS Variables */
:root {
  --qfo6-tsfo: #4f46e5;
  --pcv472-yp: #ffffff;
  --fpm-rf: #f9fafb;
  --xglq8-m9an: #0f172a;
  --tnvoc-dr: #6b7280;
  --khpd1-urz: #e5e7eb;
  --g294c-qznv: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --z54et-x1a: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --loxvcn-fnu: 16px;
  --fyvbc2-u9vp: 56px;
  --abg-di: 12px;
  --fk99-lis: 999999;
}

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

/* Main Container */
.ad3cj {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--fk99-lis);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--xglq8-m9an);
}
.ad3cj.t83e { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.y1dw1 { display: flex; flex-direction: column-reverse; gap: var(--abg-di); align-items: center; }
.q6j00 {
  width: var(--fyvbc2-u9vp); height: var(--fyvbc2-u9vp); min-width: var(--fyvbc2-u9vp); min-height: var(--fyvbc2-u9vp);
  border-radius: 50%; border: none; background: var(--qfo6-tsfo); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--g294c-qznv);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.q6j00:hover { transform: scale(1.05); box-shadow: var(--z54et-x1a); }
.q6j00:active { transform: scale(0.95); }
.q6j00:focus { outline: 2px solid var(--qfo6-tsfo); outline-offset: 2px; }
.q6j00 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .q6j00.vjf7a{ animation:none; }
  .q6j00,.yt89o,.bfkq79{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.yt89o{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--pcv472-yp); border-radius: var(--loxvcn-fnu); box-shadow: var(--z54et-x1a);
  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;
}
.ad3cj.t83e .yt89o{ right:auto; left:24px; }
.yt89o.tm5kbr{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.bj9e12{
  padding:16px 20px; background:var(--pcv472-yp); border-bottom:1px solid var(--khpd1-urz);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ezn6k{ width:10px; height:10px; border-radius:50%; background:var(--qfo6-tsfo); flex-shrink:0; }
.s93rzc{ flex:1; min-width:0; }
.se5lwb{ font-size:16px; font-weight:600; color:var(--xglq8-m9an); margin:0 0 2px 0; }
.h17x{ font-size:13px; color:var(--tnvoc-dr); margin:0; }
.att4{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--tnvoc-dr);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.att4:hover{ background:var(--fpm-rf); color:var(--xglq8-m9an); }
.att4:focus{ outline:2px solid var(--qfo6-tsfo); outline-offset:2px; }
.att4 svg{ width:20px; height:20px; }

/* Body */
.p0hbd{
  flex:1; overflow-y:auto; padding:16px; background:var(--fpm-rf);
  display:flex; flex-direction:column; gap:12px;
}
.p0hbd::-webkit-scrollbar{ width:6px; }
.p0hbd::-webkit-scrollbar-track{ background:transparent; }
.p0hbd::-webkit-scrollbar-thumb{ background:var(--khpd1-urz); border-radius:3px; }
.p0hbd::-webkit-scrollbar-thumb:hover{ background:var(--tnvoc-dr); }

/* Messages */
.bfkq79{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.bfkq79.rrouky{ flex-direction:row-reverse; }
.crcq{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.crcq a{ color:inherit; }
.bfkq79.ipdcy6 .crcq{ background:var(--pcv472-yp); color:var(--xglq8-m9an); border-bottom-left-radius:4px; }
.bfkq79.rrouky .crcq{ background:var(--qfo6-tsfo); color:#fff; border-bottom-right-radius:4px; }
.nq6res{ font-size:11px; color:var(--tnvoc-dr); margin-top:4px; display:block; }

/* Typing Indicator */
.j2m21b{
  display:flex; gap:8px; padding:10px 14px; background:var(--pcv472-yp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.efd2{ width:8px; height:8px; border-radius:50%; background:var(--tnvoc-dr); animation:typingDot 1.4s infinite; }
.efd2:nth-child(2){ animation-delay:.2s; }
.efd2: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) */
.w0v7q6{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.oop6{
  border:0; border-radius:999px; padding:8px 12px; background:var(--qfo6-tsfo); 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(--g294c-qznv);
}
.oop6:is(:hover,:focus){ transform:translateY(-1px); }
a.oop6{ text-decoration:none; display:inline-block; }
a.oop6:link, a.oop6:visited{ color:#fff; }
a.oop6:hover, a.oop6:focus{ color:#fff; }

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

/* Footer */
.nq7v8u{
  padding:16px; background:var(--pcv472-yp); border-top:1px solid var(--khpd1-urz);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.o70hu{
  flex:1; padding:10px 14px; border:1px solid var(--khpd1-urz); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--xglq8-m9an);
  background:var(--fpm-rf); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.o70hu:focus{ border-color:var(--qfo6-tsfo); }
.o70hu::placeholder{ color:var(--tnvoc-dr); }
.o70hu.f64z{ border-color:#c00; }
.dvlsqj{
  width:40px; height:40px; min-width:40px; border:none; background:var(--qfo6-tsfo); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.dvlsqj:disabled{ opacity:.5; cursor:not-allowed; }
.dvlsqj:not(:disabled):hover{ transform:scale(1.05); }
.dvlsqj:not(:disabled):active{ transform:scale(0.95); }
.dvlsqj:focus{ outline:2px solid var(--qfo6-tsfo); outline-offset:2px; }
.dvlsqj svg{ width:20px; height:20px; }

/* Character Counter */
.tc7yd{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--tnvoc-dr); }
.tc7yd.ym48s{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.k7cj2{
  align-self:flex-start;
  max-width:75%;
  background: var(--pcv472-yp);
  color: var(--xglq8-m9an);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--g294c-qznv);
}
.nopink{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ya0l8.h3bhc{
  background: transparent; color: var(--xglq8-m9an); border-color: var(--khpd1-urz);
}
.ya0l8.h3bhc:hover{
  background: var(--qfo6-tsfo); color:#fff; border-color: var(--qfo6-tsfo);
}

/* Mobile */
@media (max-width: 768px){
  .ad3cj{ bottom:16px; right:16px; }
  .ad3cj.t83e{ left:16px; }
  .q6j00{ --fyvbc2-u9vp:60px; }
  .yt89o{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--loxvcn-fnu) var(--loxvcn-fnu) 0 0; transform: translateY(100%);
  }
  .yt89o.tm5kbr{ transform: translateY(0); }
  .bj9e12{ padding:20px; }
  .nq7v8u{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ad3cj :focus-visible{ outline:2px solid var(--qfo6-tsfo); outline-offset:2px; }

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