/* CSS Variables */
:root {
  --v3avss-tuv: #4f46e5;
  --yahunl-mm: #ffffff;
  --c67-ye5: #f9fafb;
  --idr526-fa4: #0f172a;
  --jl5-mjtt: #6b7280;
  --mfsfhq-x01: #e5e7eb;
  --grvu-imn4: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --fzvh-jagc: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --qcy-b11: 16px;
  --sij-y18g: 56px;
  --dn2jhs-xjct: 12px;
  --y58r-v7: 999999;
}

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

/* Main Container */
.bq61dpy9ja6wfcin {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--y58r-v7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--idr526-fa4);
}
.bq61dpy9ja6wfcin.hlp6xceay42bvy { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.xukxlzx9onbx6yph { display: flex; flex-direction: column-reverse; gap: var(--dn2jhs-xjct); align-items: center; }
.sy2dw4cd95nk9p39 {
  width: var(--sij-y18g); height: var(--sij-y18g); min-width: var(--sij-y18g); min-height: var(--sij-y18g);
  border-radius: 50%; border: none; background: var(--v3avss-tuv); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--grvu-imn4);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.sy2dw4cd95nk9p39:hover { transform: scale(1.05); box-shadow: var(--fzvh-jagc); }
.sy2dw4cd95nk9p39:active { transform: scale(0.95); }
.sy2dw4cd95nk9p39:focus { outline: 2px solid var(--v3avss-tuv); outline-offset: 2px; }
.sy2dw4cd95nk9p39 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .sy2dw4cd95nk9p39.jchh7vs8cxm98sppdl{ animation:none; }
  .sy2dw4cd95nk9p39,.cdeqxfce9i2-4nj,.vky9t9d1wfi8113{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.cdeqxfce9i2-4nj{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--yahunl-mm); border-radius: var(--qcy-b11); box-shadow: var(--fzvh-jagc);
  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;
}
.bq61dpy9ja6wfcin.hlp6xceay42bvy .cdeqxfce9i2-4nj{ right:auto; left:24px; }
.cdeqxfce9i2-4nj.hyg4zo3608ngd475j{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.tc2ki9h1fn9fhxd{
  padding:16px 20px; background:var(--yahunl-mm); border-bottom:1px solid var(--mfsfhq-x01);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.megr7uyw0kvfcy{ width:10px; height:10px; border-radius:50%; background:var(--v3avss-tuv); flex-shrink:0; }
.v8-sc0fup7bayl{ flex:1; min-width:0; }
.iks9dvsfkc4o8yccw5{ font-size:16px; font-weight:600; color:var(--idr526-fa4); margin:0 0 2px 0; }
.pl8drvj6kiwwy95r98{ font-size:13px; color:var(--jl5-mjtt); margin:0; }
.qd5bo2w2t4-dmx9{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--jl5-mjtt);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.qd5bo2w2t4-dmx9:hover{ background:var(--c67-ye5); color:var(--idr526-fa4); }
.qd5bo2w2t4-dmx9:focus{ outline:2px solid var(--v3avss-tuv); outline-offset:2px; }
.qd5bo2w2t4-dmx9 svg{ width:20px; height:20px; }

/* Body */
.zrfgcjmxi9wyn1m0ak{
  flex:1; overflow-y:auto; padding:16px; background:var(--c67-ye5);
  display:flex; flex-direction:column; gap:12px;
}
.zrfgcjmxi9wyn1m0ak::-webkit-scrollbar{ width:6px; }
.zrfgcjmxi9wyn1m0ak::-webkit-scrollbar-track{ background:transparent; }
.zrfgcjmxi9wyn1m0ak::-webkit-scrollbar-thumb{ background:var(--mfsfhq-x01); border-radius:3px; }
.zrfgcjmxi9wyn1m0ak::-webkit-scrollbar-thumb:hover{ background:var(--jl5-mjtt); }

/* Messages */
.vky9t9d1wfi8113{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.vky9t9d1wfi8113.w5hwxi76bo4x4d3e2{ flex-direction:row-reverse; }
.sd2wppzry45dvy{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.sd2wppzry45dvy a{ color:inherit; }
.vky9t9d1wfi8113.cvnk5yhj6oz1ku5nw .sd2wppzry45dvy{ background:var(--yahunl-mm); color:var(--idr526-fa4); border-bottom-left-radius:4px; }
.vky9t9d1wfi8113.w5hwxi76bo4x4d3e2 .sd2wppzry45dvy{ background:var(--v3avss-tuv); color:#fff; border-bottom-right-radius:4px; }
.cnjj2dspt0ze1hl5s3{ font-size:11px; color:var(--jl5-mjtt); margin-top:4px; display:block; }

/* Typing Indicator */
.wt33ci5w9qnq7vc7xc{
  display:flex; gap:8px; padding:10px 14px; background:var(--yahunl-mm);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.w7dtpc1lohzdtnxuv{ width:8px; height:8px; border-radius:50%; background:var(--jl5-mjtt); animation:typingDot 1.4s infinite; }
.w7dtpc1lohzdtnxuv:nth-child(2){ animation-delay:.2s; }
.w7dtpc1lohzdtnxuv: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) */
.z5odiv4nfmishud{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.tpceg-a6hf20s3{
  border:0; border-radius:999px; padding:8px 12px; background:var(--v3avss-tuv); 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(--grvu-imn4);
}
.tpceg-a6hf20s3:is(:hover,:focus){ transform:translateY(-1px); }
a.tpceg-a6hf20s3{ text-decoration:none; display:inline-block; }
a.tpceg-a6hf20s3:link, a.tpceg-a6hf20s3:visited{ color:#fff; }
a.tpceg-a6hf20s3:hover, a.tpceg-a6hf20s3:focus{ color:#fff; }

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

/* Footer */
.wr90b445dvxbhxr{
  padding:16px; background:var(--yahunl-mm); border-top:1px solid var(--mfsfhq-x01);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ge1zx6-y2k13m9fmv{
  flex:1; padding:10px 14px; border:1px solid var(--mfsfhq-x01); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--idr526-fa4);
  background:var(--c67-ye5); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ge1zx6-y2k13m9fmv:focus{ border-color:var(--v3avss-tuv); }
.ge1zx6-y2k13m9fmv::placeholder{ color:var(--jl5-mjtt); }
.ge1zx6-y2k13m9fmv.kr9gdd9r68y-nxqp9{ border-color:#c00; }
.x04g9jhmxvp1k6{
  width:40px; height:40px; min-width:40px; border:none; background:var(--v3avss-tuv); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.x04g9jhmxvp1k6:disabled{ opacity:.5; cursor:not-allowed; }
.x04g9jhmxvp1k6:not(:disabled):hover{ transform:scale(1.05); }
.x04g9jhmxvp1k6:not(:disabled):active{ transform:scale(0.95); }
.x04g9jhmxvp1k6:focus{ outline:2px solid var(--v3avss-tuv); outline-offset:2px; }
.x04g9jhmxvp1k6 svg{ width:20px; height:20px; }

/* Character Counter */
.b0si5y-wq1yela7eb{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--jl5-mjtt); }
.b0si5y-wq1yela7eb.lr22hzhoehywr2wfu{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.t759nrby9nxaui{
  align-self:flex-start;
  max-width:75%;
  background: var(--yahunl-mm);
  color: var(--idr526-fa4);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--grvu-imn4);
}
.lfzl7db5nl6gvx{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.gefplltsf1zleuc.barubp4fc-xqbuj{
  background: transparent; color: var(--idr526-fa4); border-color: var(--mfsfhq-x01);
}
.gefplltsf1zleuc.barubp4fc-xqbuj:hover{
  background: var(--v3avss-tuv); color:#fff; border-color: var(--v3avss-tuv);
}

/* Mobile */
@media (max-width: 768px){
  .bq61dpy9ja6wfcin{ bottom:16px; right:16px; }
  .bq61dpy9ja6wfcin.hlp6xceay42bvy{ left:16px; }
  .sy2dw4cd95nk9p39{ --sij-y18g:60px; }
  .cdeqxfce9i2-4nj{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--qcy-b11) var(--qcy-b11) 0 0; transform: translateY(100%);
  }
  .cdeqxfce9i2-4nj.hyg4zo3608ngd475j{ transform: translateY(0); }
  .tc2ki9h1fn9fhxd{ padding:20px; }
  .wr90b445dvxbhxr{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .sy2dw4cd95nk9p39, .cdeqxfce9i2-4nj{ border:2px solid currentColor; } }

/* Focus Visible */
.bq61dpy9ja6wfcin :focus-visible{ outline:2px solid var(--v3avss-tuv); outline-offset:2px; }

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