/* CSS Variables */
:root {
  --aiiur-ovv: #4f46e5;
  --ojz-lu6: #ffffff;
  --ab1njx-dn: #f9fafb;
  --kdn23w-mu1f: #0f172a;
  --mftq-ht: #6b7280;
  --spmlka-zz: #e5e7eb;
  --wuhm-ren: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --qqu-sx8l: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --bwv-ht1p: 16px;
  --rkh-ye6: 56px;
  --e5m9nj-lo: 12px;
  --hmpq-y7: 999999;
}

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

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

/* Floating Panel - Buttons */
.q38bZmxj { display: flex; flex-direction: column-reverse; gap: var(--e5m9nj-lo); align-items: center; }
.e62Rbap {
  width: var(--rkh-ye6); height: var(--rkh-ye6); min-width: var(--rkh-ye6); min-height: var(--rkh-ye6);
  border-radius: 50%; border: none; background: var(--aiiur-ovv); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--wuhm-ren);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.e62Rbap:hover { transform: scale(1.05); box-shadow: var(--qqu-sx8l); }
.e62Rbap:active { transform: scale(0.95); }
.e62Rbap:focus { outline: 2px solid var(--aiiur-ovv); outline-offset: 2px; }
.e62Rbap svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .e62Rbap.spiEdhu{ animation:none; }
  .e62Rbap,.viX28,.z7bDiu{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.viX28{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ojz-lu6); border-radius: var(--bwv-ht1p); box-shadow: var(--qqu-sx8l);
  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;
}
.m61Q1z.h7A3o .viX28{ right:auto; left:24px; }
.viX28.kknQbc{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.d66H8gw{
  padding:16px 20px; background:var(--ojz-lu6); border-bottom:1px solid var(--spmlka-zz);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.xnOt7{ width:10px; height:10px; border-radius:50%; background:var(--aiiur-ovv); flex-shrink:0; }
.ck4Z7h{ flex:1; min-width:0; }
.j7wA8u{ font-size:16px; font-weight:600; color:var(--kdn23w-mu1f); margin:0 0 2px 0; }
.tcixOzdz{ font-size:13px; color:var(--mftq-ht); margin:0; }
.sgjsZtfa{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--mftq-ht);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.sgjsZtfa:hover{ background:var(--ab1njx-dn); color:var(--kdn23w-mu1f); }
.sgjsZtfa:focus{ outline:2px solid var(--aiiur-ovv); outline-offset:2px; }
.sgjsZtfa svg{ width:20px; height:20px; }

/* Body */
.jbR9u{
  flex:1; overflow-y:auto; padding:16px; background:var(--ab1njx-dn);
  display:flex; flex-direction:column; gap:12px;
}
.jbR9u::-webkit-scrollbar{ width:6px; }
.jbR9u::-webkit-scrollbar-track{ background:transparent; }
.jbR9u::-webkit-scrollbar-thumb{ background:var(--spmlka-zz); border-radius:3px; }
.jbR9u::-webkit-scrollbar-thumb:hover{ background:var(--mftq-ht); }

/* Messages */
.z7bDiu{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.z7bDiu.bk6wE1l1{ flex-direction:row-reverse; }
.wawYtn1{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.wawYtn1 a{ color:inherit; }
.z7bDiu.kvEbp .wawYtn1{ background:var(--ojz-lu6); color:var(--kdn23w-mu1f); border-bottom-left-radius:4px; }
.z7bDiu.bk6wE1l1 .wawYtn1{ background:var(--aiiur-ovv); color:#fff; border-bottom-right-radius:4px; }
.rxaNnw4{ font-size:11px; color:var(--mftq-ht); margin-top:4px; display:block; }

/* Typing Indicator */
.jbnJoo2{
  display:flex; gap:8px; padding:10px 14px; background:var(--ojz-lu6);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ehXdz{ width:8px; height:8px; border-radius:50%; background:var(--mftq-ht); animation:typingDot 1.4s infinite; }
.ehXdz:nth-child(2){ animation-delay:.2s; }
.ehXdz: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) */
.hvlHm0{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.fjdYyk{
  border:0; border-radius:999px; padding:8px 12px; background:var(--aiiur-ovv); 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(--wuhm-ren);
}
.fjdYyk:is(:hover,:focus){ transform:translateY(-1px); }
a.fjdYyk{ text-decoration:none; display:inline-block; }
a.fjdYyk:link, a.fjdYyk:visited{ color:#fff; }
a.fjdYyk:hover, a.fjdYyk:focus{ color:#fff; }

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

/* Footer */
.cmaE2qc{
  padding:16px; background:var(--ojz-lu6); border-top:1px solid var(--spmlka-zz);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.axK9v{
  flex:1; padding:10px 14px; border:1px solid var(--spmlka-zz); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--kdn23w-mu1f);
  background:var(--ab1njx-dn); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.axK9v:focus{ border-color:var(--aiiur-ovv); }
.axK9v::placeholder{ color:var(--mftq-ht); }
.axK9v.ovstPs2n{ border-color:#c00; }
.a9f9Fl9p{
  width:40px; height:40px; min-width:40px; border:none; background:var(--aiiur-ovv); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.a9f9Fl9p:disabled{ opacity:.5; cursor:not-allowed; }
.a9f9Fl9p:not(:disabled):hover{ transform:scale(1.05); }
.a9f9Fl9p:not(:disabled):active{ transform:scale(0.95); }
.a9f9Fl9p:focus{ outline:2px solid var(--aiiur-ovv); outline-offset:2px; }
.a9f9Fl9p svg{ width:20px; height:20px; }

/* Character Counter */
.sn88Ll8a{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--mftq-ht); }
.sn88Ll8a.znugR047{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.a43X2yr{
  align-self:flex-start;
  max-width:75%;
  background: var(--ojz-lu6);
  color: var(--kdn23w-mu1f);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--wuhm-ren);
}
.zdx1Kx4f{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ohpBou.jhvFme{
  background: transparent; color: var(--kdn23w-mu1f); border-color: var(--spmlka-zz);
}
.ohpBou.jhvFme:hover{
  background: var(--aiiur-ovv); color:#fff; border-color: var(--aiiur-ovv);
}

/* Mobile */
@media (max-width: 768px){
  .m61Q1z{ bottom:16px; right:16px; }
  .m61Q1z.h7A3o{ left:16px; }
  .e62Rbap{ --rkh-ye6:60px; }
  .viX28{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--bwv-ht1p) var(--bwv-ht1p) 0 0; transform: translateY(100%);
  }
  .viX28.kknQbc{ transform: translateY(0); }
  .d66H8gw{ padding:20px; }
  .cmaE2qc{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.m61Q1z :focus-visible{ outline:2px solid var(--aiiur-ovv); outline-offset:2px; }

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