/* CSS Variables */
:root {
  --ufu-etr: #4f46e5;
  --cpl2-cjo1: #ffffff;
  --bjk2z7-bfq: #f9fafb;
  --knq-r3h: #0f172a;
  --l553n-x2s: #6b7280;
  --pxyj-jkbv: #e5e7eb;
  --i9vun-i81: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ceridk-g5: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --w0p2q-ug1: 16px;
  --lw8rb-nx: 56px;
  --z57s-yg: 12px;
  --g5n1b-hm: 999999;
}

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

/* Main Container */
.jac-rk3c46ul935 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--g5n1b-hm);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--knq-r3h);
}
.jac-rk3c46ul935.jac-lwp3by02y { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.jac-vlilsy7k5a { display: flex; flex-direction: column-reverse; gap: var(--z57s-yg); align-items: center; }
.jac-ae32zmwp {
  width: var(--lw8rb-nx); height: var(--lw8rb-nx); min-width: var(--lw8rb-nx); min-height: var(--lw8rb-nx);
  border-radius: 50%; border: none; background: var(--ufu-etr); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--i9vun-i81);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.jac-ae32zmwp:hover { transform: scale(1.05); box-shadow: var(--ceridk-g5); }
.jac-ae32zmwp:active { transform: scale(0.95); }
.jac-ae32zmwp:focus { outline: 2px solid var(--ufu-etr); outline-offset: 2px; }
.jac-ae32zmwp svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jac-ae32zmwp.jac-nlegm81bve{ animation:none; }
  .jac-ae32zmwp,.jac-xqx6su9sei2u,.jac-wgu3x719emqr{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.jac-xqx6su9sei2u{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--cpl2-cjo1); border-radius: var(--w0p2q-ug1); box-shadow: var(--ceridk-g5);
  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;
}
.jac-rk3c46ul935.jac-lwp3by02y .jac-xqx6su9sei2u{ right:auto; left:24px; }
.jac-xqx6su9sei2u.jac-qrthssxb{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.jac-dpyb6oc4q7{
  padding:16px 20px; background:var(--cpl2-cjo1); border-bottom:1px solid var(--pxyj-jkbv);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.jac-odxkwbvit729{ width:10px; height:10px; border-radius:50%; background:var(--ufu-etr); flex-shrink:0; }
.jac-zzd1y7nwfkk{ flex:1; min-width:0; }
.jac-soule9y9up{ font-size:16px; font-weight:600; color:var(--knq-r3h); margin:0 0 2px 0; }
.jac-m9dy5x8dq0{ font-size:13px; color:var(--l553n-x2s); margin:0; }
.jac-k2jsvu4jd{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--l553n-x2s);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jac-k2jsvu4jd:hover{ background:var(--bjk2z7-bfq); color:var(--knq-r3h); }
.jac-k2jsvu4jd:focus{ outline:2px solid var(--ufu-etr); outline-offset:2px; }
.jac-k2jsvu4jd svg{ width:20px; height:20px; }

/* Body */
.jac-dkf4uy0vp{
  flex:1; overflow-y:auto; padding:16px; background:var(--bjk2z7-bfq);
  display:flex; flex-direction:column; gap:12px;
}
.jac-dkf4uy0vp::-webkit-scrollbar{ width:6px; }
.jac-dkf4uy0vp::-webkit-scrollbar-track{ background:transparent; }
.jac-dkf4uy0vp::-webkit-scrollbar-thumb{ background:var(--pxyj-jkbv); border-radius:3px; }
.jac-dkf4uy0vp::-webkit-scrollbar-thumb:hover{ background:var(--l553n-x2s); }

/* Messages */
.jac-wgu3x719emqr{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.jac-wgu3x719emqr.jac-ot4ajs56vnp{ flex-direction:row-reverse; }
.jac-hz37mhxr2q2{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.jac-hz37mhxr2q2 a{ color:inherit; }
.jac-wgu3x719emqr.jac-dks0zg4nbq .jac-hz37mhxr2q2{ background:var(--cpl2-cjo1); color:var(--knq-r3h); border-bottom-left-radius:4px; }
.jac-wgu3x719emqr.jac-ot4ajs56vnp .jac-hz37mhxr2q2{ background:var(--ufu-etr); color:#fff; border-bottom-right-radius:4px; }
.jac-dziuqir2d{ font-size:11px; color:var(--l553n-x2s); margin-top:4px; display:block; }

/* Typing Indicator */
.jac-xqhmtc6ut3i{
  display:flex; gap:8px; padding:10px 14px; background:var(--cpl2-cjo1);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.jac-a9ngs4xbp{ width:8px; height:8px; border-radius:50%; background:var(--l553n-x2s); animation:typingDot 1.4s infinite; }
.jac-a9ngs4xbp:nth-child(2){ animation-delay:.2s; }
.jac-a9ngs4xbp: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) */
.jac-i24hf7zip{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.jac-f41ef2800{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ufu-etr); 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(--i9vun-i81);
}
.jac-f41ef2800:is(:hover,:focus){ transform:translateY(-1px); }
a.jac-f41ef2800{ text-decoration:none; display:inline-block; }
a.jac-f41ef2800:link, a.jac-f41ef2800:visited{ color:#fff; }
a.jac-f41ef2800:hover, a.jac-f41ef2800:focus{ color:#fff; }

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

/* Footer */
.jac-yh0bzbbn1e{
  padding:16px; background:var(--cpl2-cjo1); border-top:1px solid var(--pxyj-jkbv);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.jac-ieqmqjwm4{
  flex:1; padding:10px 14px; border:1px solid var(--pxyj-jkbv); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--knq-r3h);
  background:var(--bjk2z7-bfq); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.jac-ieqmqjwm4:focus{ border-color:var(--ufu-etr); }
.jac-ieqmqjwm4::placeholder{ color:var(--l553n-x2s); }
.jac-ieqmqjwm4.jac-h5oeanv3d{ border-color:#c00; }
.jac-m7tgeymqi{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ufu-etr); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.jac-m7tgeymqi:disabled{ opacity:.5; cursor:not-allowed; }
.jac-m7tgeymqi:not(:disabled):hover{ transform:scale(1.05); }
.jac-m7tgeymqi:not(:disabled):active{ transform:scale(0.95); }
.jac-m7tgeymqi:focus{ outline:2px solid var(--ufu-etr); outline-offset:2px; }
.jac-m7tgeymqi svg{ width:20px; height:20px; }

/* Character Counter */
.jac-hws6mc9v39iq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--l553n-x2s); }
.jac-hws6mc9v39iq.jac-txvaog1zn{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.jac-l10blok3am6{
  align-self:flex-start;
  max-width:75%;
  background: var(--cpl2-cjo1);
  color: var(--knq-r3h);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--i9vun-i81);
}
.jac-u9d4qgo4j9k{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.jac-ue0o2cnw.jac-ypi7k3mt{
  background: transparent; color: var(--knq-r3h); border-color: var(--pxyj-jkbv);
}
.jac-ue0o2cnw.jac-ypi7k3mt:hover{
  background: var(--ufu-etr); color:#fff; border-color: var(--ufu-etr);
}

/* Mobile */
@media (max-width: 768px){
  .jac-rk3c46ul935{ bottom:16px; right:16px; }
  .jac-rk3c46ul935.jac-lwp3by02y{ left:16px; }
  .jac-ae32zmwp{ --lw8rb-nx:60px; }
  .jac-xqx6su9sei2u{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--w0p2q-ug1) var(--w0p2q-ug1) 0 0; transform: translateY(100%);
  }
  .jac-xqx6su9sei2u.jac-qrthssxb{ transform: translateY(0); }
  .jac-dpyb6oc4q7{ padding:20px; }
  .jac-yh0bzbbn1e{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.jac-rk3c46ul935 :focus-visible{ outline:2px solid var(--ufu-etr); outline-offset:2px; }

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