/* CSS Variables */
:root {
  --c1rm-dk: #4f46e5;
  --bf4l-p4: #ffffff;
  --w1dbrz-py7g: #f9fafb;
  --kc3ew0-uefx: #0f172a;
  --dmhv-ej21: #6b7280;
  --i9qsg6-gj5: #e5e7eb;
  --rkp7-jii9: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ccbh-iqy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --g1zb7-q3: 16px;
  --i5egr-eej: 56px;
  --y2j-azpk: 12px;
  --djd90e-y5i: 999999;
}

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

/* Main Container */
.jac-aonqt8k2oxtb {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--djd90e-y5i);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--kc3ew0-uefx);
}
.jac-aonqt8k2oxtb.jac-d7am54wlw { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.jac-eiu8yzlu { display: flex; flex-direction: column-reverse; gap: var(--y2j-azpk); align-items: center; }
.jac-w7cxi6gycqpc {
  width: var(--i5egr-eej); height: var(--i5egr-eej); min-width: var(--i5egr-eej); min-height: var(--i5egr-eej);
  border-radius: 50%; border: none; background: var(--c1rm-dk); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--rkp7-jii9);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.jac-w7cxi6gycqpc:hover { transform: scale(1.05); box-shadow: var(--ccbh-iqy); }
.jac-w7cxi6gycqpc:active { transform: scale(0.95); }
.jac-w7cxi6gycqpc:focus { outline: 2px solid var(--c1rm-dk); outline-offset: 2px; }
.jac-w7cxi6gycqpc svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jac-w7cxi6gycqpc.jac-lb3xq4fc0zsh{ animation:none; }
  .jac-w7cxi6gycqpc,.jac-rfz5gagbds8s,.jac-ich0qaxy{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.jac-rfz5gagbds8s{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--bf4l-p4); border-radius: var(--g1zb7-q3); box-shadow: var(--ccbh-iqy);
  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-aonqt8k2oxtb.jac-d7am54wlw .jac-rfz5gagbds8s{ right:auto; left:24px; }
.jac-rfz5gagbds8s.jac-u0blg79t332y{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.jac-c7rebx98ohtv{
  padding:16px 20px; background:var(--bf4l-p4); border-bottom:1px solid var(--i9qsg6-gj5);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.jac-mwh37em6n{ width:10px; height:10px; border-radius:50%; background:var(--c1rm-dk); flex-shrink:0; }
.jac-t8z4zdohtca{ flex:1; min-width:0; }
.jac-dbt84azzamkx{ font-size:16px; font-weight:600; color:var(--kc3ew0-uefx); margin:0 0 2px 0; }
.jac-wtxp5ujheew{ font-size:13px; color:var(--dmhv-ej21); margin:0; }
.jac-el6stbmou{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--dmhv-ej21);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jac-el6stbmou:hover{ background:var(--w1dbrz-py7g); color:var(--kc3ew0-uefx); }
.jac-el6stbmou:focus{ outline:2px solid var(--c1rm-dk); outline-offset:2px; }
.jac-el6stbmou svg{ width:20px; height:20px; }

/* Body */
.jac-lv21768s6un{
  flex:1; overflow-y:auto; padding:16px; background:var(--w1dbrz-py7g);
  display:flex; flex-direction:column; gap:12px;
}
.jac-lv21768s6un::-webkit-scrollbar{ width:6px; }
.jac-lv21768s6un::-webkit-scrollbar-track{ background:transparent; }
.jac-lv21768s6un::-webkit-scrollbar-thumb{ background:var(--i9qsg6-gj5); border-radius:3px; }
.jac-lv21768s6un::-webkit-scrollbar-thumb:hover{ background:var(--dmhv-ej21); }

/* Messages */
.jac-ich0qaxy{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.jac-ich0qaxy.jac-bcaka2zf{ flex-direction:row-reverse; }
.jac-zju0wcdm{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.jac-zju0wcdm a{ color:inherit; }
.jac-ich0qaxy.jac-yix7ec17 .jac-zju0wcdm{ background:var(--bf4l-p4); color:var(--kc3ew0-uefx); border-bottom-left-radius:4px; }
.jac-ich0qaxy.jac-bcaka2zf .jac-zju0wcdm{ background:var(--c1rm-dk); color:#fff; border-bottom-right-radius:4px; }
.jac-jfm62rn5sm{ font-size:11px; color:var(--dmhv-ej21); margin-top:4px; display:block; }

/* Typing Indicator */
.jac-i87ycb65ed{
  display:flex; gap:8px; padding:10px 14px; background:var(--bf4l-p4);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.jac-uzbezyaf7y1q{ width:8px; height:8px; border-radius:50%; background:var(--dmhv-ej21); animation:typingDot 1.4s infinite; }
.jac-uzbezyaf7y1q:nth-child(2){ animation-delay:.2s; }
.jac-uzbezyaf7y1q: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-zqou1i605qi{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.jac-la9z6ofgbm{
  border:0; border-radius:999px; padding:8px 12px; background:var(--c1rm-dk); 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(--rkp7-jii9);
}
.jac-la9z6ofgbm:is(:hover,:focus){ transform:translateY(-1px); }
a.jac-la9z6ofgbm{ text-decoration:none; display:inline-block; }
a.jac-la9z6ofgbm:link, a.jac-la9z6ofgbm:visited{ color:#fff; }
a.jac-la9z6ofgbm:hover, a.jac-la9z6ofgbm:focus{ color:#fff; }

/* Error Banner */
.jac-ivzuotzbr4{
  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-h8omwmzt1ye{
  padding:6px 12px; background:#c00; color:#fff; border:none; border-radius:6px; font-size:12px; cursor:pointer; white-space:nowrap;
}

/* Footer */
.jac-i2lj1i823{
  padding:16px; background:var(--bf4l-p4); border-top:1px solid var(--i9qsg6-gj5);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.jac-lgn218qgzfcv{
  flex:1; padding:10px 14px; border:1px solid var(--i9qsg6-gj5); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--kc3ew0-uefx);
  background:var(--w1dbrz-py7g); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.jac-lgn218qgzfcv:focus{ border-color:var(--c1rm-dk); }
.jac-lgn218qgzfcv::placeholder{ color:var(--dmhv-ej21); }
.jac-lgn218qgzfcv.jac-bjkucdixje{ border-color:#c00; }
.jac-s1zr56n2{
  width:40px; height:40px; min-width:40px; border:none; background:var(--c1rm-dk); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.jac-s1zr56n2:disabled{ opacity:.5; cursor:not-allowed; }
.jac-s1zr56n2:not(:disabled):hover{ transform:scale(1.05); }
.jac-s1zr56n2:not(:disabled):active{ transform:scale(0.95); }
.jac-s1zr56n2:focus{ outline:2px solid var(--c1rm-dk); outline-offset:2px; }
.jac-s1zr56n2 svg{ width:20px; height:20px; }

/* Character Counter */
.jac-j98s5k1b{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--dmhv-ej21); }
.jac-j98s5k1b.jac-gbz5cj0bp3{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.jac-yt4hf2lh5cbf{
  align-self:flex-start;
  max-width:75%;
  background: var(--bf4l-p4);
  color: var(--kc3ew0-uefx);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--rkp7-jii9);
}
.jac-lyiypyvoy{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.jac-usg3drmape0g.jac-azmbf41uax{
  background: transparent; color: var(--kc3ew0-uefx); border-color: var(--i9qsg6-gj5);
}
.jac-usg3drmape0g.jac-azmbf41uax:hover{
  background: var(--c1rm-dk); color:#fff; border-color: var(--c1rm-dk);
}

/* Mobile */
@media (max-width: 768px){
  .jac-aonqt8k2oxtb{ bottom:16px; right:16px; }
  .jac-aonqt8k2oxtb.jac-d7am54wlw{ left:16px; }
  .jac-w7cxi6gycqpc{ --i5egr-eej:60px; }
  .jac-rfz5gagbds8s{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--g1zb7-q3) var(--g1zb7-q3) 0 0; transform: translateY(100%);
  }
  .jac-rfz5gagbds8s.jac-u0blg79t332y{ transform: translateY(0); }
  .jac-c7rebx98ohtv{ padding:20px; }
  .jac-i2lj1i823{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.jac-aonqt8k2oxtb :focus-visible{ outline:2px solid var(--c1rm-dk); outline-offset:2px; }

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