/* CSS Variables */
:root {
  --rlep-fqhz: #4f46e5;
  --menhf-t9: #ffffff;
  --y3f-lrs: #f9fafb;
  --e90408-sy2g: #0f172a;
  --ob6fvm-oov9: #6b7280;
  --fol8k-cf78: #e5e7eb;
  --d0718-tl: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ksue4d-d4uo: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --b14-e4: 16px;
  --amcqwe-co: 56px;
  --tbdlyu-cdnu: 12px;
  --qiw2h-xm3m: 999999;
}

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

/* Main Container */
.xxx-itjwcjhd {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--qiw2h-xm3m);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--e90408-sy2g);
}
.xxx-itjwcjhd.xxx-juhf6d2r { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.xxx-ub8wrd02mzg8 { display: flex; flex-direction: column-reverse; gap: var(--tbdlyu-cdnu); align-items: center; }
.xxx-xcn0liqfq6ap {
  width: var(--amcqwe-co); height: var(--amcqwe-co); min-width: var(--amcqwe-co); min-height: var(--amcqwe-co);
  border-radius: 50%; border: none; background: var(--rlep-fqhz); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--d0718-tl);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.xxx-xcn0liqfq6ap:hover { transform: scale(1.05); box-shadow: var(--ksue4d-d4uo); }
.xxx-xcn0liqfq6ap:active { transform: scale(0.95); }
.xxx-xcn0liqfq6ap:focus { outline: 2px solid var(--rlep-fqhz); outline-offset: 2px; }
.xxx-xcn0liqfq6ap svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .xxx-xcn0liqfq6ap.xxx-vqrja6xjo5n{ animation:none; }
  .xxx-xcn0liqfq6ap,.xxx-mukb0ra5ipxj,.xxx-fbjdxpygh{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.xxx-mukb0ra5ipxj{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--menhf-t9); border-radius: var(--b14-e4); box-shadow: var(--ksue4d-d4uo);
  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;
}
.xxx-itjwcjhd.xxx-juhf6d2r .xxx-mukb0ra5ipxj{ right:auto; left:24px; }
.xxx-mukb0ra5ipxj.xxx-r19y2rm30m{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.xxx-z292fq4g448{
  padding:16px 20px; background:var(--menhf-t9); border-bottom:1px solid var(--fol8k-cf78);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.xxx-wcjrybl36d9{ width:10px; height:10px; border-radius:50%; background:var(--rlep-fqhz); flex-shrink:0; }
.xxx-k8453pvtvtjt{ flex:1; min-width:0; }
.xxx-ovtn8kdde9a7{ font-size:16px; font-weight:600; color:var(--e90408-sy2g); margin:0 0 2px 0; }
.xxx-l6lboun256s8{ font-size:13px; color:var(--ob6fvm-oov9); margin:0; }
.xxx-xv8zhb8441{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ob6fvm-oov9);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.xxx-xv8zhb8441:hover{ background:var(--y3f-lrs); color:var(--e90408-sy2g); }
.xxx-xv8zhb8441:focus{ outline:2px solid var(--rlep-fqhz); outline-offset:2px; }
.xxx-xv8zhb8441 svg{ width:20px; height:20px; }

/* Body */
.xxx-t48w6j8lo6{
  flex:1; overflow-y:auto; padding:16px; background:var(--y3f-lrs);
  display:flex; flex-direction:column; gap:12px;
}
.xxx-t48w6j8lo6::-webkit-scrollbar{ width:6px; }
.xxx-t48w6j8lo6::-webkit-scrollbar-track{ background:transparent; }
.xxx-t48w6j8lo6::-webkit-scrollbar-thumb{ background:var(--fol8k-cf78); border-radius:3px; }
.xxx-t48w6j8lo6::-webkit-scrollbar-thumb:hover{ background:var(--ob6fvm-oov9); }

/* Messages */
.xxx-fbjdxpygh{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.xxx-fbjdxpygh.xxx-q91yhgwsexui{ flex-direction:row-reverse; }
.xxx-ljjwarsub7j6{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.xxx-ljjwarsub7j6 a{ color:inherit; }
.xxx-fbjdxpygh.xxx-hq820pzzp7c .xxx-ljjwarsub7j6{ background:var(--menhf-t9); color:var(--e90408-sy2g); border-bottom-left-radius:4px; }
.xxx-fbjdxpygh.xxx-q91yhgwsexui .xxx-ljjwarsub7j6{ background:var(--rlep-fqhz); color:#fff; border-bottom-right-radius:4px; }
.xxx-zuwm2dnpg{ font-size:11px; color:var(--ob6fvm-oov9); margin-top:4px; display:block; }

/* Typing Indicator */
.xxx-mk9wa9mwxvnd{
  display:flex; gap:8px; padding:10px 14px; background:var(--menhf-t9);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.xxx-eu71nn45bzd{ width:8px; height:8px; border-radius:50%; background:var(--ob6fvm-oov9); animation:typingDot 1.4s infinite; }
.xxx-eu71nn45bzd:nth-child(2){ animation-delay:.2s; }
.xxx-eu71nn45bzd: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) */
.xxx-ud99finb5fi{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.xxx-irc1oqf339{
  border:0; border-radius:999px; padding:8px 12px; background:var(--rlep-fqhz); 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(--d0718-tl);
}
.xxx-irc1oqf339:is(:hover,:focus){ transform:translateY(-1px); }
a.xxx-irc1oqf339{ text-decoration:none; display:inline-block; }
a.xxx-irc1oqf339:link, a.xxx-irc1oqf339:visited{ color:#fff; }
a.xxx-irc1oqf339:hover, a.xxx-irc1oqf339:focus{ color:#fff; }

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

/* Footer */
.xxx-ktsdwajd{
  padding:16px; background:var(--menhf-t9); border-top:1px solid var(--fol8k-cf78);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.xxx-pxp15bvid{
  flex:1; padding:10px 14px; border:1px solid var(--fol8k-cf78); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--e90408-sy2g);
  background:var(--y3f-lrs); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.xxx-pxp15bvid:focus{ border-color:var(--rlep-fqhz); }
.xxx-pxp15bvid::placeholder{ color:var(--ob6fvm-oov9); }
.xxx-pxp15bvid.xxx-n1agf3ac{ border-color:#c00; }
.xxx-wvwyo2oexx{
  width:40px; height:40px; min-width:40px; border:none; background:var(--rlep-fqhz); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.xxx-wvwyo2oexx:disabled{ opacity:.5; cursor:not-allowed; }
.xxx-wvwyo2oexx:not(:disabled):hover{ transform:scale(1.05); }
.xxx-wvwyo2oexx:not(:disabled):active{ transform:scale(0.95); }
.xxx-wvwyo2oexx:focus{ outline:2px solid var(--rlep-fqhz); outline-offset:2px; }
.xxx-wvwyo2oexx svg{ width:20px; height:20px; }

/* Character Counter */
.xxx-ctsowvee64{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ob6fvm-oov9); }
.xxx-ctsowvee64.xxx-c86ctuqkeboh{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.xxx-ugctf1mxm48{
  align-self:flex-start;
  max-width:75%;
  background: var(--menhf-t9);
  color: var(--e90408-sy2g);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--d0718-tl);
}
.xxx-pz68yrbxoa{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.xxx-gi8g2a0ttb.xxx-ka1mlczftuv{
  background: transparent; color: var(--e90408-sy2g); border-color: var(--fol8k-cf78);
}
.xxx-gi8g2a0ttb.xxx-ka1mlczftuv:hover{
  background: var(--rlep-fqhz); color:#fff; border-color: var(--rlep-fqhz);
}

/* Mobile */
@media (max-width: 768px){
  .xxx-itjwcjhd{ bottom:16px; right:16px; }
  .xxx-itjwcjhd.xxx-juhf6d2r{ left:16px; }
  .xxx-xcn0liqfq6ap{ --amcqwe-co:60px; }
  .xxx-mukb0ra5ipxj{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--b14-e4) var(--b14-e4) 0 0; transform: translateY(100%);
  }
  .xxx-mukb0ra5ipxj.xxx-r19y2rm30m{ transform: translateY(0); }
  .xxx-z292fq4g448{ padding:20px; }
  .xxx-ktsdwajd{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .xxx-xcn0liqfq6ap, .xxx-mukb0ra5ipxj{ border:2px solid currentColor; } }

/* Focus Visible */
.xxx-itjwcjhd :focus-visible{ outline:2px solid var(--rlep-fqhz); outline-offset:2px; }

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