/* CSS Variables */
:root {
  --kebqz-pg49: #4f46e5;
  --ahrurp-mz6: #ffffff;
  --j8fsc2-bai: #f9fafb;
  --v41ml-l6: #0f172a;
  --l6x-b9hm: #6b7280;
  --r1p-atp: #e5e7eb;
  --yfb-ava: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --zp9-q2qv: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --yg6-qj: 16px;
  --eypn-be: 56px;
  --lds-hd0: 12px;
  --dmc-l32x: 999999;
}

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

/* Main Container */
.kz3Ibq {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--dmc-l32x);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--v41ml-l6);
}
.kz3Ibq.xrqFbi { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.vpchW5f1 { display: flex; flex-direction: column-reverse; gap: var(--lds-hd0); align-items: center; }
.wp5Fmg {
  width: var(--eypn-be); height: var(--eypn-be); min-width: var(--eypn-be); min-height: var(--eypn-be);
  border-radius: 50%; border: none; background: var(--kebqz-pg49); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--yfb-ava);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.wp5Fmg:hover { transform: scale(1.05); box-shadow: var(--zp9-q2qv); }
.wp5Fmg:active { transform: scale(0.95); }
.wp5Fmg:focus { outline: 2px solid var(--kebqz-pg49); outline-offset: 2px; }
.wp5Fmg svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .wp5Fmg.out9Kvic{ animation:none; }
  .wp5Fmg,.zuZ0k,.sfaS5y{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.zuZ0k{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ahrurp-mz6); border-radius: var(--yg6-qj); box-shadow: var(--zp9-q2qv);
  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;
}
.kz3Ibq.xrqFbi .zuZ0k{ right:auto; left:24px; }
.zuZ0k.muoEojh{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.pc9Mmn1{
  padding:16px 20px; background:var(--ahrurp-mz6); border-bottom:1px solid var(--r1p-atp);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.s8Cp1{ width:10px; height:10px; border-radius:50%; background:var(--kebqz-pg49); flex-shrink:0; }
.a5qVzif{ flex:1; min-width:0; }
.lqwV73{ font-size:16px; font-weight:600; color:var(--v41ml-l6); margin:0 0 2px 0; }
.rbgReie{ font-size:13px; color:var(--l6x-b9hm); margin:0; }
.x7tsQ9ib{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--l6x-b9hm);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.x7tsQ9ib:hover{ background:var(--j8fsc2-bai); color:var(--v41ml-l6); }
.x7tsQ9ib:focus{ outline:2px solid var(--kebqz-pg49); outline-offset:2px; }
.x7tsQ9ib svg{ width:20px; height:20px; }

/* Body */
.k65J61d{
  flex:1; overflow-y:auto; padding:16px; background:var(--j8fsc2-bai);
  display:flex; flex-direction:column; gap:12px;
}
.k65J61d::-webkit-scrollbar{ width:6px; }
.k65J61d::-webkit-scrollbar-track{ background:transparent; }
.k65J61d::-webkit-scrollbar-thumb{ background:var(--r1p-atp); border-radius:3px; }
.k65J61d::-webkit-scrollbar-thumb:hover{ background:var(--l6x-b9hm); }

/* Messages */
.sfaS5y{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.sfaS5y.v6dW2m{ flex-direction:row-reverse; }
.o3aOt9m{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.o3aOt9m a{ color:inherit; }
.sfaS5y.z6bAsq .o3aOt9m{ background:var(--ahrurp-mz6); color:var(--v41ml-l6); border-bottom-left-radius:4px; }
.sfaS5y.v6dW2m .o3aOt9m{ background:var(--kebqz-pg49); color:#fff; border-bottom-right-radius:4px; }
.admqPqlo{ font-size:11px; color:var(--l6x-b9hm); margin-top:4px; display:block; }

/* Typing Indicator */
.d1wdHi4n{
  display:flex; gap:8px; padding:10px 14px; background:var(--ahrurp-mz6);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.z36Aem{ width:8px; height:8px; border-radius:50%; background:var(--l6x-b9hm); animation:typingDot 1.4s infinite; }
.z36Aem:nth-child(2){ animation-delay:.2s; }
.z36Aem: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) */
.elaE3y{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.t5ocKp1m{
  border:0; border-radius:999px; padding:8px 12px; background:var(--kebqz-pg49); 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(--yfb-ava);
}
.t5ocKp1m:is(:hover,:focus){ transform:translateY(-1px); }
a.t5ocKp1m{ text-decoration:none; display:inline-block; }
a.t5ocKp1m:link, a.t5ocKp1m:visited{ color:#fff; }
a.t5ocKp1m:hover, a.t5ocKp1m:focus{ color:#fff; }

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

/* Footer */
.ak1qRdnr{
  padding:16px; background:var(--ahrurp-mz6); border-top:1px solid var(--r1p-atp);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.tld5Ktzi{
  flex:1; padding:10px 14px; border:1px solid var(--r1p-atp); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--v41ml-l6);
  background:var(--j8fsc2-bai); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.tld5Ktzi:focus{ border-color:var(--kebqz-pg49); }
.tld5Ktzi::placeholder{ color:var(--l6x-b9hm); }
.tld5Ktzi.tm3Qwip{ border-color:#c00; }
.dmEsz{
  width:40px; height:40px; min-width:40px; border:none; background:var(--kebqz-pg49); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.dmEsz:disabled{ opacity:.5; cursor:not-allowed; }
.dmEsz:not(:disabled):hover{ transform:scale(1.05); }
.dmEsz:not(:disabled):active{ transform:scale(0.95); }
.dmEsz:focus{ outline:2px solid var(--kebqz-pg49); outline-offset:2px; }
.dmEsz svg{ width:20px; height:20px; }

/* Character Counter */
.u7iZ2j{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--l6x-b9hm); }
.u7iZ2j.muUim{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.mga7Rmwh{
  align-self:flex-start;
  max-width:75%;
  background: var(--ahrurp-mz6);
  color: var(--v41ml-l6);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--yfb-ava);
}
.cznZ9w{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.c4nnUecr.b3ddBsdl{
  background: transparent; color: var(--v41ml-l6); border-color: var(--r1p-atp);
}
.c4nnUecr.b3ddBsdl:hover{
  background: var(--kebqz-pg49); color:#fff; border-color: var(--kebqz-pg49);
}

/* Mobile */
@media (max-width: 768px){
  .kz3Ibq{ bottom:16px; right:16px; }
  .kz3Ibq.xrqFbi{ left:16px; }
  .wp5Fmg{ --eypn-be:60px; }
  .zuZ0k{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--yg6-qj) var(--yg6-qj) 0 0; transform: translateY(100%);
  }
  .zuZ0k.muoEojh{ transform: translateY(0); }
  .pc9Mmn1{ padding:20px; }
  .ak1qRdnr{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.kz3Ibq :focus-visible{ outline:2px solid var(--kebqz-pg49); outline-offset:2px; }

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