/* CSS Variables */
:root {
  --j2wje-az: #4f46e5;
  --eov2np-sttf: #ffffff;
  --cqv-r5tg: #f9fafb;
  --x2dy-oeu: #0f172a;
  --nn31-gg: #6b7280;
  --u8u5ju-tne: #e5e7eb;
  --vc38h-ppq: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --t0d-af: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --s2n-ie9l: 16px;
  --q74-mzj5: 56px;
  --ndip-byhb: 12px;
  --x3i-y7: 999999;
}

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

/* Main Container */
.b9pfkg {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--x3i-y7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--x2dy-oeu);
}
.b9pfkg.cnjn { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.k8188 { display: flex; flex-direction: column-reverse; gap: var(--ndip-byhb); align-items: center; }
.ykwnx8 {
  width: var(--q74-mzj5); height: var(--q74-mzj5); min-width: var(--q74-mzj5); min-height: var(--q74-mzj5);
  border-radius: 50%; border: none; background: var(--j2wje-az); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--vc38h-ppq);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ykwnx8:hover { transform: scale(1.05); box-shadow: var(--t0d-af); }
.ykwnx8:active { transform: scale(0.95); }
.ykwnx8:focus { outline: 2px solid var(--j2wje-az); outline-offset: 2px; }
.ykwnx8 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ykwnx8.x9ao5z{ animation:none; }
  .ykwnx8,.bihq,.nuib{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.bihq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--eov2np-sttf); border-radius: var(--s2n-ie9l); box-shadow: var(--t0d-af);
  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;
}
.b9pfkg.cnjn .bihq{ right:auto; left:24px; }
.bihq.x1k2{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.kwb2{
  padding:16px 20px; background:var(--eov2np-sttf); border-bottom:1px solid var(--u8u5ju-tne);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.l13p{ width:10px; height:10px; border-radius:50%; background:var(--j2wje-az); flex-shrink:0; }
.j4wxs{ flex:1; min-width:0; }
.qr4i{ font-size:16px; font-weight:600; color:var(--x2dy-oeu); margin:0 0 2px 0; }
.cigx3k{ font-size:13px; color:var(--nn31-gg); margin:0; }
.vw0gyw{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--nn31-gg);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.vw0gyw:hover{ background:var(--cqv-r5tg); color:var(--x2dy-oeu); }
.vw0gyw:focus{ outline:2px solid var(--j2wje-az); outline-offset:2px; }
.vw0gyw svg{ width:20px; height:20px; }

/* Body */
.obucdf{
  flex:1; overflow-y:auto; padding:16px; background:var(--cqv-r5tg);
  display:flex; flex-direction:column; gap:12px;
}
.obucdf::-webkit-scrollbar{ width:6px; }
.obucdf::-webkit-scrollbar-track{ background:transparent; }
.obucdf::-webkit-scrollbar-thumb{ background:var(--u8u5ju-tne); border-radius:3px; }
.obucdf::-webkit-scrollbar-thumb:hover{ background:var(--nn31-gg); }

/* Messages */
.nuib{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.nuib.un4jkn{ flex-direction:row-reverse; }
.x7p8v{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.x7p8v a{ color:inherit; }
.nuib.za5s .x7p8v{ background:var(--eov2np-sttf); color:var(--x2dy-oeu); border-bottom-left-radius:4px; }
.nuib.un4jkn .x7p8v{ background:var(--j2wje-az); color:#fff; border-bottom-right-radius:4px; }
.zqksjf{ font-size:11px; color:var(--nn31-gg); margin-top:4px; display:block; }

/* Typing Indicator */
.j9h7bq{
  display:flex; gap:8px; padding:10px 14px; background:var(--eov2np-sttf);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ekca4{ width:8px; height:8px; border-radius:50%; background:var(--nn31-gg); animation:typingDot 1.4s infinite; }
.ekca4:nth-child(2){ animation-delay:.2s; }
.ekca4: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) */
.i7g0x{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.deoy8h{
  border:0; border-radius:999px; padding:8px 12px; background:var(--j2wje-az); 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(--vc38h-ppq);
}
.deoy8h:is(:hover,:focus){ transform:translateY(-1px); }
a.deoy8h{ text-decoration:none; display:inline-block; }
a.deoy8h:link, a.deoy8h:visited{ color:#fff; }
a.deoy8h:hover, a.deoy8h:focus{ color:#fff; }

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

/* Footer */
.hf59{
  padding:16px; background:var(--eov2np-sttf); border-top:1px solid var(--u8u5ju-tne);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.l44w{
  flex:1; padding:10px 14px; border:1px solid var(--u8u5ju-tne); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--x2dy-oeu);
  background:var(--cqv-r5tg); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.l44w:focus{ border-color:var(--j2wje-az); }
.l44w::placeholder{ color:var(--nn31-gg); }
.l44w.toue{ border-color:#c00; }
.fmmm{
  width:40px; height:40px; min-width:40px; border:none; background:var(--j2wje-az); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.fmmm:disabled{ opacity:.5; cursor:not-allowed; }
.fmmm:not(:disabled):hover{ transform:scale(1.05); }
.fmmm:not(:disabled):active{ transform:scale(0.95); }
.fmmm:focus{ outline:2px solid var(--j2wje-az); outline-offset:2px; }
.fmmm svg{ width:20px; height:20px; }

/* Character Counter */
.ac65{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--nn31-gg); }
.ac65.jnmv{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.zsfeo{
  align-self:flex-start;
  max-width:75%;
  background: var(--eov2np-sttf);
  color: var(--x2dy-oeu);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--vc38h-ppq);
}
.shr3{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.t9z4ch.f0kx{
  background: transparent; color: var(--x2dy-oeu); border-color: var(--u8u5ju-tne);
}
.t9z4ch.f0kx:hover{
  background: var(--j2wje-az); color:#fff; border-color: var(--j2wje-az);
}

/* Mobile */
@media (max-width: 768px){
  .b9pfkg{ bottom:16px; right:16px; }
  .b9pfkg.cnjn{ left:16px; }
  .ykwnx8{ --q74-mzj5:60px; }
  .bihq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--s2n-ie9l) var(--s2n-ie9l) 0 0; transform: translateY(100%);
  }
  .bihq.x1k2{ transform: translateY(0); }
  .kwb2{ padding:20px; }
  .hf59{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.b9pfkg :focus-visible{ outline:2px solid var(--j2wje-az); outline-offset:2px; }

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