/* CSS Variables */
:root {
  --npkg-puas: #4f46e5;
  --vgam9-wsp: #ffffff;
  --ce7ei-v4: #f9fafb;
  --bt5-lwir: #0f172a;
  --pol0qy-ly: #6b7280;
  --f9xqm-hf: #e5e7eb;
  --kcj-mw4: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --azmluk-g6: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --u17nxi-bt: 16px;
  --nlvt-kdr: 56px;
  --ajjmja-qpe1: 12px;
  --i8gni-zn: 999999;
}

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

/* Main Container */
.che-i1bpzu1gr85 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--i8gni-zn);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--bt5-lwir);
}
.che-i1bpzu1gr85.che-nqv6m5hoz4 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.che-lvozob6j { display: flex; flex-direction: column-reverse; gap: var(--ajjmja-qpe1); align-items: center; }
.che-pouk0w7nw08 {
  width: var(--nlvt-kdr); height: var(--nlvt-kdr); min-width: var(--nlvt-kdr); min-height: var(--nlvt-kdr);
  border-radius: 50%; border: none; background: var(--npkg-puas); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--kcj-mw4);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.che-pouk0w7nw08:hover { transform: scale(1.05); box-shadow: var(--azmluk-g6); }
.che-pouk0w7nw08:active { transform: scale(0.95); }
.che-pouk0w7nw08:focus { outline: 2px solid var(--npkg-puas); outline-offset: 2px; }
.che-pouk0w7nw08 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .che-pouk0w7nw08.che-ornzsybm{ animation:none; }
  .che-pouk0w7nw08,.che-yojlp2145,.che-fcbner7wi{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.che-yojlp2145{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--vgam9-wsp); border-radius: var(--u17nxi-bt); box-shadow: var(--azmluk-g6);
  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;
}
.che-i1bpzu1gr85.che-nqv6m5hoz4 .che-yojlp2145{ right:auto; left:24px; }
.che-yojlp2145.che-d4m3w9ak5{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.che-ifthqva0g46{
  padding:16px 20px; background:var(--vgam9-wsp); border-bottom:1px solid var(--f9xqm-hf);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.che-v7otaslic12e{ width:10px; height:10px; border-radius:50%; background:var(--npkg-puas); flex-shrink:0; }
.che-av7k4jtrrxk1{ flex:1; min-width:0; }
.che-jdfb1fjn{ font-size:16px; font-weight:600; color:var(--bt5-lwir); margin:0 0 2px 0; }
.che-uv1bpav5p88{ font-size:13px; color:var(--pol0qy-ly); margin:0; }
.che-ezkp8y326tgs{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--pol0qy-ly);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.che-ezkp8y326tgs:hover{ background:var(--ce7ei-v4); color:var(--bt5-lwir); }
.che-ezkp8y326tgs:focus{ outline:2px solid var(--npkg-puas); outline-offset:2px; }
.che-ezkp8y326tgs svg{ width:20px; height:20px; }

/* Body */
.che-ghb589jv2s0{
  flex:1; overflow-y:auto; padding:16px; background:var(--ce7ei-v4);
  display:flex; flex-direction:column; gap:12px;
}
.che-ghb589jv2s0::-webkit-scrollbar{ width:6px; }
.che-ghb589jv2s0::-webkit-scrollbar-track{ background:transparent; }
.che-ghb589jv2s0::-webkit-scrollbar-thumb{ background:var(--f9xqm-hf); border-radius:3px; }
.che-ghb589jv2s0::-webkit-scrollbar-thumb:hover{ background:var(--pol0qy-ly); }

/* Messages */
.che-fcbner7wi{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.che-fcbner7wi.che-l0wqo00h6y{ flex-direction:row-reverse; }
.che-xs0hclgh2{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.che-xs0hclgh2 a{ color:inherit; }
.che-fcbner7wi.che-o1v8a86ohvd7 .che-xs0hclgh2{ background:var(--vgam9-wsp); color:var(--bt5-lwir); border-bottom-left-radius:4px; }
.che-fcbner7wi.che-l0wqo00h6y .che-xs0hclgh2{ background:var(--npkg-puas); color:#fff; border-bottom-right-radius:4px; }
.che-p2cek5k2{ font-size:11px; color:var(--pol0qy-ly); margin-top:4px; display:block; }

/* Typing Indicator */
.che-dfw8wsls{
  display:flex; gap:8px; padding:10px 14px; background:var(--vgam9-wsp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.che-tehswg0k75z{ width:8px; height:8px; border-radius:50%; background:var(--pol0qy-ly); animation:typingDot 1.4s infinite; }
.che-tehswg0k75z:nth-child(2){ animation-delay:.2s; }
.che-tehswg0k75z: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) */
.che-q12tzpliwi{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.che-pm0gvk72{
  border:0; border-radius:999px; padding:8px 12px; background:var(--npkg-puas); 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(--kcj-mw4);
}
.che-pm0gvk72:is(:hover,:focus){ transform:translateY(-1px); }
a.che-pm0gvk72{ text-decoration:none; display:inline-block; }
a.che-pm0gvk72:link, a.che-pm0gvk72:visited{ color:#fff; }
a.che-pm0gvk72:hover, a.che-pm0gvk72:focus{ color:#fff; }

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

/* Footer */
.che-bczcf921ep4{
  padding:16px; background:var(--vgam9-wsp); border-top:1px solid var(--f9xqm-hf);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.che-qcqb83zxehbk{
  flex:1; padding:10px 14px; border:1px solid var(--f9xqm-hf); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--bt5-lwir);
  background:var(--ce7ei-v4); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.che-qcqb83zxehbk:focus{ border-color:var(--npkg-puas); }
.che-qcqb83zxehbk::placeholder{ color:var(--pol0qy-ly); }
.che-qcqb83zxehbk.che-izsia34ue4uf{ border-color:#c00; }
.che-rts0laz8oo{
  width:40px; height:40px; min-width:40px; border:none; background:var(--npkg-puas); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.che-rts0laz8oo:disabled{ opacity:.5; cursor:not-allowed; }
.che-rts0laz8oo:not(:disabled):hover{ transform:scale(1.05); }
.che-rts0laz8oo:not(:disabled):active{ transform:scale(0.95); }
.che-rts0laz8oo:focus{ outline:2px solid var(--npkg-puas); outline-offset:2px; }
.che-rts0laz8oo svg{ width:20px; height:20px; }

/* Character Counter */
.che-sv3ud0wacp{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--pol0qy-ly); }
.che-sv3ud0wacp.che-igkfz8fb4xv4{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.che-xghe1rvzkj{
  align-self:flex-start;
  max-width:75%;
  background: var(--vgam9-wsp);
  color: var(--bt5-lwir);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--kcj-mw4);
}
.che-uqdc6vnh2{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.che-tdwfmbgnbkx4.che-cc5w1ot31pj{
  background: transparent; color: var(--bt5-lwir); border-color: var(--f9xqm-hf);
}
.che-tdwfmbgnbkx4.che-cc5w1ot31pj:hover{
  background: var(--npkg-puas); color:#fff; border-color: var(--npkg-puas);
}

/* Mobile */
@media (max-width: 768px){
  .che-i1bpzu1gr85{ bottom:16px; right:16px; }
  .che-i1bpzu1gr85.che-nqv6m5hoz4{ left:16px; }
  .che-pouk0w7nw08{ --nlvt-kdr:60px; }
  .che-yojlp2145{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--u17nxi-bt) var(--u17nxi-bt) 0 0; transform: translateY(100%);
  }
  .che-yojlp2145.che-d4m3w9ak5{ transform: translateY(0); }
  .che-ifthqva0g46{ padding:20px; }
  .che-bczcf921ep4{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.che-i1bpzu1gr85 :focus-visible{ outline:2px solid var(--npkg-puas); outline-offset:2px; }

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