/* CSS Variables */
:root {
  --y1zly8-zr1: #4f46e5;
  --g4i0m9-qag9: #ffffff;
  --yra-px33: #f9fafb;
  --lp6gb-xl: #0f172a;
  --ff9p-tf: #6b7280;
  --zo0hp-zl: #e5e7eb;
  --shb9kk-qw2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --d4sbiz-q6dx: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --sreh-msri: 16px;
  --yz0z-fsv: 56px;
  --x80h7-htvc: 12px;
  --cw71-f2x: 999999;
}

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

/* Main Container */
.wbdgbav0rv5evtxymr {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--cw71-f2x);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--lp6gb-xl);
}
.wbdgbav0rv5evtxymr.h-old4x7id6ucehar { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.xi3-xfgwv3rjbks { display: flex; flex-direction: column-reverse; gap: var(--x80h7-htvc); align-items: center; }
.x3y1ktmpg42mwvek {
  width: var(--yz0z-fsv); height: var(--yz0z-fsv); min-width: var(--yz0z-fsv); min-height: var(--yz0z-fsv);
  border-radius: 50%; border: none; background: var(--y1zly8-zr1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shb9kk-qw2);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.x3y1ktmpg42mwvek:hover { transform: scale(1.05); box-shadow: var(--d4sbiz-q6dx); }
.x3y1ktmpg42mwvek:active { transform: scale(0.95); }
.x3y1ktmpg42mwvek:focus { outline: 2px solid var(--y1zly8-zr1); outline-offset: 2px; }
.x3y1ktmpg42mwvek svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .x3y1ktmpg42mwvek.prh1vy0f-34se2uttc{ animation:none; }
  .x3y1ktmpg42mwvek,.mcgkpxmmwfkqry5o,.vso16z1fosu5grag{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.mcgkpxmmwfkqry5o{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--g4i0m9-qag9); border-radius: var(--sreh-msri); box-shadow: var(--d4sbiz-q6dx);
  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;
}
.wbdgbav0rv5evtxymr.h-old4x7id6ucehar .mcgkpxmmwfkqry5o{ right:auto; left:24px; }
.mcgkpxmmwfkqry5o.xs3t9ux9znwe4xs{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.u4y1iassnlm84huw{
  padding:16px 20px; background:var(--g4i0m9-qag9); border-bottom:1px solid var(--zo0hp-zl);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.qbis03mv1lb6z6qam{ width:10px; height:10px; border-radius:50%; background:var(--y1zly8-zr1); flex-shrink:0; }
.mwfaafjb0top4n7x{ flex:1; min-width:0; }
.saet7zpq2k83nsi{ font-size:16px; font-weight:600; color:var(--lp6gb-xl); margin:0 0 2px 0; }
.kpd5ldbar4ekpm5ut{ font-size:13px; color:var(--ff9p-tf); margin:0; }
.r3vim-x2d17u649{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ff9p-tf);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.r3vim-x2d17u649:hover{ background:var(--yra-px33); color:var(--lp6gb-xl); }
.r3vim-x2d17u649:focus{ outline:2px solid var(--y1zly8-zr1); outline-offset:2px; }
.r3vim-x2d17u649 svg{ width:20px; height:20px; }

/* Body */
.s9uojlxudz6a953{
  flex:1; overflow-y:auto; padding:16px; background:var(--yra-px33);
  display:flex; flex-direction:column; gap:12px;
}
.s9uojlxudz6a953::-webkit-scrollbar{ width:6px; }
.s9uojlxudz6a953::-webkit-scrollbar-track{ background:transparent; }
.s9uojlxudz6a953::-webkit-scrollbar-thumb{ background:var(--zo0hp-zl); border-radius:3px; }
.s9uojlxudz6a953::-webkit-scrollbar-thumb:hover{ background:var(--ff9p-tf); }

/* Messages */
.vso16z1fosu5grag{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.vso16z1fosu5grag.f2-vcdem1ncf2bhjtt{ flex-direction:row-reverse; }
.ld0jd-1dyygtgee4y{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ld0jd-1dyygtgee4y a{ color:inherit; }
.vso16z1fosu5grag.r5q7qk4etkbkuvfw .ld0jd-1dyygtgee4y{ background:var(--g4i0m9-qag9); color:var(--lp6gb-xl); border-bottom-left-radius:4px; }
.vso16z1fosu5grag.f2-vcdem1ncf2bhjtt .ld0jd-1dyygtgee4y{ background:var(--y1zly8-zr1); color:#fff; border-bottom-right-radius:4px; }
.v07y979elkxze8{ font-size:11px; color:var(--ff9p-tf); margin-top:4px; display:block; }

/* Typing Indicator */
.systumt8yizi6amk{
  display:flex; gap:8px; padding:10px 14px; background:var(--g4i0m9-qag9);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ckolnco7l-wlul{ width:8px; height:8px; border-radius:50%; background:var(--ff9p-tf); animation:typingDot 1.4s infinite; }
.ckolnco7l-wlul:nth-child(2){ animation-delay:.2s; }
.ckolnco7l-wlul: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) */
.x-xhp8csp9dmhtsydz{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.na2ehgs-de5yf8q1{
  border:0; border-radius:999px; padding:8px 12px; background:var(--y1zly8-zr1); 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(--shb9kk-qw2);
}
.na2ehgs-de5yf8q1:is(:hover,:focus){ transform:translateY(-1px); }
a.na2ehgs-de5yf8q1{ text-decoration:none; display:inline-block; }
a.na2ehgs-de5yf8q1:link, a.na2ehgs-de5yf8q1:visited{ color:#fff; }
a.na2ehgs-de5yf8q1:hover, a.na2ehgs-de5yf8q1:focus{ color:#fff; }

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

/* Footer */
.pgkertjf07xvogd{
  padding:16px; background:var(--g4i0m9-qag9); border-top:1px solid var(--zo0hp-zl);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.hzeeq-oxhc-9zj{
  flex:1; padding:10px 14px; border:1px solid var(--zo0hp-zl); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--lp6gb-xl);
  background:var(--yra-px33); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.hzeeq-oxhc-9zj:focus{ border-color:var(--y1zly8-zr1); }
.hzeeq-oxhc-9zj::placeholder{ color:var(--ff9p-tf); }
.hzeeq-oxhc-9zj.wsoxvw2giqe2aehz4o{ border-color:#c00; }
.fhnfs6ju06750xytn{
  width:40px; height:40px; min-width:40px; border:none; background:var(--y1zly8-zr1); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.fhnfs6ju06750xytn:disabled{ opacity:.5; cursor:not-allowed; }
.fhnfs6ju06750xytn:not(:disabled):hover{ transform:scale(1.05); }
.fhnfs6ju06750xytn:not(:disabled):active{ transform:scale(0.95); }
.fhnfs6ju06750xytn:focus{ outline:2px solid var(--y1zly8-zr1); outline-offset:2px; }
.fhnfs6ju06750xytn svg{ width:20px; height:20px; }

/* Character Counter */
.nqfzsi3gprv7qk{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ff9p-tf); }
.nqfzsi3gprv7qk.t11ugvov7jtrao6{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.p9wgg3cggh46nxm6{
  align-self:flex-start;
  max-width:75%;
  background: var(--g4i0m9-qag9);
  color: var(--lp6gb-xl);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--shb9kk-qw2);
}
.af8au5vms6t10mvwis{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.gegwks5sdp1szkom5.dt56ufyc3weofff{
  background: transparent; color: var(--lp6gb-xl); border-color: var(--zo0hp-zl);
}
.gegwks5sdp1szkom5.dt56ufyc3weofff:hover{
  background: var(--y1zly8-zr1); color:#fff; border-color: var(--y1zly8-zr1);
}

/* Mobile */
@media (max-width: 768px){
  .wbdgbav0rv5evtxymr{ bottom:16px; right:16px; }
  .wbdgbav0rv5evtxymr.h-old4x7id6ucehar{ left:16px; }
  .x3y1ktmpg42mwvek{ --yz0z-fsv:60px; }
  .mcgkpxmmwfkqry5o{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--sreh-msri) var(--sreh-msri) 0 0; transform: translateY(100%);
  }
  .mcgkpxmmwfkqry5o.xs3t9ux9znwe4xs{ transform: translateY(0); }
  .u4y1iassnlm84huw{ padding:20px; }
  .pgkertjf07xvogd{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.wbdgbav0rv5evtxymr :focus-visible{ outline:2px solid var(--y1zly8-zr1); outline-offset:2px; }

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