/* CSS Variables */
:root {
  --f7eb-vz9: #4f46e5;
  --jkm-hlmp: #ffffff;
  --max-k5t: #f9fafb;
  --tpds-zo: #0f172a;
  --tv6-vvsf: #6b7280;
  --rxzp-gtf: #e5e7eb;
  --pr8-pn4: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --be1xfn-z2: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --rsaoe7-fl: 16px;
  --e828-oc: 56px;
  --nho-xv: 12px;
  --j94a-m4: 999999;
}

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

/* Main Container */
.xwtFpm {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--j94a-m4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--tpds-zo);
}
.xwtFpm.tswH1k { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.iqG4e { display: flex; flex-direction: column-reverse; gap: var(--nho-xv); align-items: center; }
.ckWpe {
  width: var(--e828-oc); height: var(--e828-oc); min-width: var(--e828-oc); min-height: var(--e828-oc);
  border-radius: 50%; border: none; background: var(--f7eb-vz9); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--pr8-pn4);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ckWpe:hover { transform: scale(1.05); box-shadow: var(--be1xfn-z2); }
.ckWpe:active { transform: scale(0.95); }
.ckWpe:focus { outline: 2px solid var(--f7eb-vz9); outline-offset: 2px; }
.ckWpe svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ckWpe.rr2R7x{ animation:none; }
  .ckWpe,.etkvLxwx,.mh1T3ay{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.etkvLxwx{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--jkm-hlmp); border-radius: var(--rsaoe7-fl); box-shadow: var(--be1xfn-z2);
  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;
}
.xwtFpm.tswH1k .etkvLxwx{ right:auto; left:24px; }
.etkvLxwx.miijO7qk{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.mngWirv{
  padding:16px 20px; background:var(--jkm-hlmp); border-bottom:1px solid var(--rxzp-gtf);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.bwF48{ width:10px; height:10px; border-radius:50%; background:var(--f7eb-vz9); flex-shrink:0; }
.ztj4Voei{ flex:1; min-width:0; }
.ddgVjov{ font-size:16px; font-weight:600; color:var(--tpds-zo); margin:0 0 2px 0; }
.gfmR3q{ font-size:13px; color:var(--tv6-vvsf); margin:0; }
.nz6Tyn{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--tv6-vvsf);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.nz6Tyn:hover{ background:var(--max-k5t); color:var(--tpds-zo); }
.nz6Tyn:focus{ outline:2px solid var(--f7eb-vz9); outline-offset:2px; }
.nz6Tyn svg{ width:20px; height:20px; }

/* Body */
.j82xA5p0{
  flex:1; overflow-y:auto; padding:16px; background:var(--max-k5t);
  display:flex; flex-direction:column; gap:12px;
}
.j82xA5p0::-webkit-scrollbar{ width:6px; }
.j82xA5p0::-webkit-scrollbar-track{ background:transparent; }
.j82xA5p0::-webkit-scrollbar-thumb{ background:var(--rxzp-gtf); border-radius:3px; }
.j82xA5p0::-webkit-scrollbar-thumb:hover{ background:var(--tv6-vvsf); }

/* Messages */
.mh1T3ay{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.mh1T3ay.ej9Gwgc{ flex-direction:row-reverse; }
.z3Y2r{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.z3Y2r a{ color:inherit; }
.mh1T3ay.y8Jeb .z3Y2r{ background:var(--jkm-hlmp); color:var(--tpds-zo); border-bottom-left-radius:4px; }
.mh1T3ay.ej9Gwgc .z3Y2r{ background:var(--f7eb-vz9); color:#fff; border-bottom-right-radius:4px; }
.yii7R3hf{ font-size:11px; color:var(--tv6-vvsf); margin-top:4px; display:block; }

/* Typing Indicator */
.jcuMg0{
  display:flex; gap:8px; padding:10px 14px; background:var(--jkm-hlmp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.kiJvu{ width:8px; height:8px; border-radius:50%; background:var(--tv6-vvsf); animation:typingDot 1.4s infinite; }
.kiJvu:nth-child(2){ animation-delay:.2s; }
.kiJvu: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) */
.y60xIsc4{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.q7Esn{
  border:0; border-radius:999px; padding:8px 12px; background:var(--f7eb-vz9); 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(--pr8-pn4);
}
.q7Esn:is(:hover,:focus){ transform:translateY(-1px); }
a.q7Esn{ text-decoration:none; display:inline-block; }
a.q7Esn:link, a.q7Esn:visited{ color:#fff; }
a.q7Esn:hover, a.q7Esn:focus{ color:#fff; }

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

/* Footer */
.p6koWyda{
  padding:16px; background:var(--jkm-hlmp); border-top:1px solid var(--rxzp-gtf);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.yradTxoz{
  flex:1; padding:10px 14px; border:1px solid var(--rxzp-gtf); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--tpds-zo);
  background:var(--max-k5t); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.yradTxoz:focus{ border-color:var(--f7eb-vz9); }
.yradTxoz::placeholder{ color:var(--tv6-vvsf); }
.yradTxoz.a44K4z{ border-color:#c00; }
.j4Yvz{
  width:40px; height:40px; min-width:40px; border:none; background:var(--f7eb-vz9); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.j4Yvz:disabled{ opacity:.5; cursor:not-allowed; }
.j4Yvz:not(:disabled):hover{ transform:scale(1.05); }
.j4Yvz:not(:disabled):active{ transform:scale(0.95); }
.j4Yvz:focus{ outline:2px solid var(--f7eb-vz9); outline-offset:2px; }
.j4Yvz svg{ width:20px; height:20px; }

/* Character Counter */
.wc0wRlpj{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--tv6-vvsf); }
.wc0wRlpj.iisXb5{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.usgM3z{
  align-self:flex-start;
  max-width:75%;
  background: var(--jkm-hlmp);
  color: var(--tpds-zo);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--pr8-pn4);
}
.vecI9e{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.afpuUs7m.pqTmv{
  background: transparent; color: var(--tpds-zo); border-color: var(--rxzp-gtf);
}
.afpuUs7m.pqTmv:hover{
  background: var(--f7eb-vz9); color:#fff; border-color: var(--f7eb-vz9);
}

/* Mobile */
@media (max-width: 768px){
  .xwtFpm{ bottom:16px; right:16px; }
  .xwtFpm.tswH1k{ left:16px; }
  .ckWpe{ --e828-oc:60px; }
  .etkvLxwx{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--rsaoe7-fl) var(--rsaoe7-fl) 0 0; transform: translateY(100%);
  }
  .etkvLxwx.miijO7qk{ transform: translateY(0); }
  .mngWirv{ padding:20px; }
  .p6koWyda{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.xwtFpm :focus-visible{ outline:2px solid var(--f7eb-vz9); outline-offset:2px; }

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