/* CSS Variables */
:root {
  --tkz-c31: #4f46e5;
  --uwq3-t5: #ffffff;
  --kc72-q3ne: #f9fafb;
  --rwoig-t5: #0f172a;
  --k7ni-sjeb: #6b7280;
  --agq3db-hy: #e5e7eb;
  --igjv9b-i22: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ws0vz8-qyy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ls1c-q6: 16px;
  --smn39d-l85h: 56px;
  --pq2-mj: 12px;
  --lnlib2-p76f: 999999;
}

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

/* Main Container */
.jac-srzu2w56 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--lnlib2-p76f);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--rwoig-t5);
}
.jac-srzu2w56.jac-ime5glre { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.jac-j04jpqbe77z { display: flex; flex-direction: column-reverse; gap: var(--pq2-mj); align-items: center; }
.jac-jxetlz3eg9 {
  width: var(--smn39d-l85h); height: var(--smn39d-l85h); min-width: var(--smn39d-l85h); min-height: var(--smn39d-l85h);
  border-radius: 50%; border: none; background: var(--tkz-c31); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--igjv9b-i22);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.jac-jxetlz3eg9:hover { transform: scale(1.05); box-shadow: var(--ws0vz8-qyy); }
.jac-jxetlz3eg9:active { transform: scale(0.95); }
.jac-jxetlz3eg9:focus { outline: 2px solid var(--tkz-c31); outline-offset: 2px; }
.jac-jxetlz3eg9 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jac-jxetlz3eg9.jac-uw63em2m{ animation:none; }
  .jac-jxetlz3eg9,.jac-c4148nyqq8w,.jac-odq4ktam{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.jac-c4148nyqq8w{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--uwq3-t5); border-radius: var(--ls1c-q6); box-shadow: var(--ws0vz8-qyy);
  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-srzu2w56.jac-ime5glre .jac-c4148nyqq8w{ right:auto; left:24px; }
.jac-c4148nyqq8w.jac-ncdbruwur3wm{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.jac-wrmeeqlid2q{
  padding:16px 20px; background:var(--uwq3-t5); border-bottom:1px solid var(--agq3db-hy);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.jac-xppmty86srj{ width:10px; height:10px; border-radius:50%; background:var(--tkz-c31); flex-shrink:0; }
.jac-b3esfpenlsn{ flex:1; min-width:0; }
.jac-v8bqkdy85buw{ font-size:16px; font-weight:600; color:var(--rwoig-t5); margin:0 0 2px 0; }
.jac-upu2jijcri7{ font-size:13px; color:var(--k7ni-sjeb); margin:0; }
.jac-e4xdjn00p0y{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--k7ni-sjeb);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jac-e4xdjn00p0y:hover{ background:var(--kc72-q3ne); color:var(--rwoig-t5); }
.jac-e4xdjn00p0y:focus{ outline:2px solid var(--tkz-c31); outline-offset:2px; }
.jac-e4xdjn00p0y svg{ width:20px; height:20px; }

/* Body */
.jac-fycxkoaxb5wt{
  flex:1; overflow-y:auto; padding:16px; background:var(--kc72-q3ne);
  display:flex; flex-direction:column; gap:12px;
}
.jac-fycxkoaxb5wt::-webkit-scrollbar{ width:6px; }
.jac-fycxkoaxb5wt::-webkit-scrollbar-track{ background:transparent; }
.jac-fycxkoaxb5wt::-webkit-scrollbar-thumb{ background:var(--agq3db-hy); border-radius:3px; }
.jac-fycxkoaxb5wt::-webkit-scrollbar-thumb:hover{ background:var(--k7ni-sjeb); }

/* Messages */
.jac-odq4ktam{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.jac-odq4ktam.jac-az5qpe52n8zj{ flex-direction:row-reverse; }
.jac-ruh1pmv47xc{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.jac-ruh1pmv47xc a{ color:inherit; }
.jac-odq4ktam.jac-bja2gg61aeo .jac-ruh1pmv47xc{ background:var(--uwq3-t5); color:var(--rwoig-t5); border-bottom-left-radius:4px; }
.jac-odq4ktam.jac-az5qpe52n8zj .jac-ruh1pmv47xc{ background:var(--tkz-c31); color:#fff; border-bottom-right-radius:4px; }
.jac-u16zx3un{ font-size:11px; color:var(--k7ni-sjeb); margin-top:4px; display:block; }

/* Typing Indicator */
.jac-bz7m91mabf{
  display:flex; gap:8px; padding:10px 14px; background:var(--uwq3-t5);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.jac-om4e3ar89k1{ width:8px; height:8px; border-radius:50%; background:var(--k7ni-sjeb); animation:typingDot 1.4s infinite; }
.jac-om4e3ar89k1:nth-child(2){ animation-delay:.2s; }
.jac-om4e3ar89k1: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-khjipop2f5rt{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.jac-wsvz6m244qyy{
  border:0; border-radius:999px; padding:8px 12px; background:var(--tkz-c31); 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(--igjv9b-i22);
}
.jac-wsvz6m244qyy:is(:hover,:focus){ transform:translateY(-1px); }
a.jac-wsvz6m244qyy{ text-decoration:none; display:inline-block; }
a.jac-wsvz6m244qyy:link, a.jac-wsvz6m244qyy:visited{ color:#fff; }
a.jac-wsvz6m244qyy:hover, a.jac-wsvz6m244qyy:focus{ color:#fff; }

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

/* Footer */
.jac-efv8md00bs{
  padding:16px; background:var(--uwq3-t5); border-top:1px solid var(--agq3db-hy);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.jac-tyqq3clulp{
  flex:1; padding:10px 14px; border:1px solid var(--agq3db-hy); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--rwoig-t5);
  background:var(--kc72-q3ne); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.jac-tyqq3clulp:focus{ border-color:var(--tkz-c31); }
.jac-tyqq3clulp::placeholder{ color:var(--k7ni-sjeb); }
.jac-tyqq3clulp.jac-krz18zk7{ border-color:#c00; }
.jac-dmbsscppnq{
  width:40px; height:40px; min-width:40px; border:none; background:var(--tkz-c31); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.jac-dmbsscppnq:disabled{ opacity:.5; cursor:not-allowed; }
.jac-dmbsscppnq:not(:disabled):hover{ transform:scale(1.05); }
.jac-dmbsscppnq:not(:disabled):active{ transform:scale(0.95); }
.jac-dmbsscppnq:focus{ outline:2px solid var(--tkz-c31); outline-offset:2px; }
.jac-dmbsscppnq svg{ width:20px; height:20px; }

/* Character Counter */
.jac-nyw2gzzp{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--k7ni-sjeb); }
.jac-nyw2gzzp.jac-h3ulg9cxcs0{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.jac-a2koait60{
  align-self:flex-start;
  max-width:75%;
  background: var(--uwq3-t5);
  color: var(--rwoig-t5);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--igjv9b-i22);
}
.jac-bg2vwyz5{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.jac-gqfard5fox.jac-ufrhxlpo2i6x{
  background: transparent; color: var(--rwoig-t5); border-color: var(--agq3db-hy);
}
.jac-gqfard5fox.jac-ufrhxlpo2i6x:hover{
  background: var(--tkz-c31); color:#fff; border-color: var(--tkz-c31);
}

/* Mobile */
@media (max-width: 768px){
  .jac-srzu2w56{ bottom:16px; right:16px; }
  .jac-srzu2w56.jac-ime5glre{ left:16px; }
  .jac-jxetlz3eg9{ --smn39d-l85h:60px; }
  .jac-c4148nyqq8w{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ls1c-q6) var(--ls1c-q6) 0 0; transform: translateY(100%);
  }
  .jac-c4148nyqq8w.jac-ncdbruwur3wm{ transform: translateY(0); }
  .jac-wrmeeqlid2q{ padding:20px; }
  .jac-efv8md00bs{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.jac-srzu2w56 :focus-visible{ outline:2px solid var(--tkz-c31); outline-offset:2px; }

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