/* CSS Variables */
:root {
  --rj2u-ewmx: #4f46e5;
  --n9s-zgj: #ffffff;
  --lh48-hwbm: #f9fafb;
  --ey5-ua: #0f172a;
  --yhi5z-zc3q: #6b7280;
  --iil-nas: #e5e7eb;
  --z2q-i5: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --jv7-vlz: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --rc6zgt-evn6: 16px;
  --pm6j-os: 56px;
  --vwrgs-dq: 12px;
  --ta9we4-cs: 999999;
}

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

/* Main Container */
.web-aaxunenxeih {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ta9we4-cs);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ey5-ua);
}
.web-aaxunenxeih.web-aalcblr9xy { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.web-eql892gvhmk { display: flex; flex-direction: column-reverse; gap: var(--vwrgs-dq); align-items: center; }
.web-iidgh3fck {
  width: var(--pm6j-os); height: var(--pm6j-os); min-width: var(--pm6j-os); min-height: var(--pm6j-os);
  border-radius: 50%; border: none; background: var(--rj2u-ewmx); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--z2q-i5);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.web-iidgh3fck:hover { transform: scale(1.05); box-shadow: var(--jv7-vlz); }
.web-iidgh3fck:active { transform: scale(0.95); }
.web-iidgh3fck:focus { outline: 2px solid var(--rj2u-ewmx); outline-offset: 2px; }
.web-iidgh3fck svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .web-iidgh3fck.web-x0u1s9ic8bd1{ animation:none; }
  .web-iidgh3fck,.web-elnl7bej,.web-xj4vi8ev{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.web-elnl7bej{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--n9s-zgj); border-radius: var(--rc6zgt-evn6); box-shadow: var(--jv7-vlz);
  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;
}
.web-aaxunenxeih.web-aalcblr9xy .web-elnl7bej{ right:auto; left:24px; }
.web-elnl7bej.web-r3bebbqo{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.web-xxphwgljhts{
  padding:16px 20px; background:var(--n9s-zgj); border-bottom:1px solid var(--iil-nas);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.web-v5notizsbm41{ width:10px; height:10px; border-radius:50%; background:var(--rj2u-ewmx); flex-shrink:0; }
.web-yq5br7oxnwnl{ flex:1; min-width:0; }
.web-kwux36m405m{ font-size:16px; font-weight:600; color:var(--ey5-ua); margin:0 0 2px 0; }
.web-quk4xsaiqi{ font-size:13px; color:var(--yhi5z-zc3q); margin:0; }
.web-xier4v4n{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--yhi5z-zc3q);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.web-xier4v4n:hover{ background:var(--lh48-hwbm); color:var(--ey5-ua); }
.web-xier4v4n:focus{ outline:2px solid var(--rj2u-ewmx); outline-offset:2px; }
.web-xier4v4n svg{ width:20px; height:20px; }

/* Body */
.web-p8iqxtrh{
  flex:1; overflow-y:auto; padding:16px; background:var(--lh48-hwbm);
  display:flex; flex-direction:column; gap:12px;
}
.web-p8iqxtrh::-webkit-scrollbar{ width:6px; }
.web-p8iqxtrh::-webkit-scrollbar-track{ background:transparent; }
.web-p8iqxtrh::-webkit-scrollbar-thumb{ background:var(--iil-nas); border-radius:3px; }
.web-p8iqxtrh::-webkit-scrollbar-thumb:hover{ background:var(--yhi5z-zc3q); }

/* Messages */
.web-xj4vi8ev{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.web-xj4vi8ev.web-a86jzrzat{ flex-direction:row-reverse; }
.web-p6txbxbp2{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.web-p6txbxbp2 a{ color:inherit; }
.web-xj4vi8ev.web-a8hhgkgb .web-p6txbxbp2{ background:var(--n9s-zgj); color:var(--ey5-ua); border-bottom-left-radius:4px; }
.web-xj4vi8ev.web-a86jzrzat .web-p6txbxbp2{ background:var(--rj2u-ewmx); color:#fff; border-bottom-right-radius:4px; }
.web-ldr1nx7b{ font-size:11px; color:var(--yhi5z-zc3q); margin-top:4px; display:block; }

/* Typing Indicator */
.web-b8wghmukpqjj{
  display:flex; gap:8px; padding:10px 14px; background:var(--n9s-zgj);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.web-mdmst7xho{ width:8px; height:8px; border-radius:50%; background:var(--yhi5z-zc3q); animation:typingDot 1.4s infinite; }
.web-mdmst7xho:nth-child(2){ animation-delay:.2s; }
.web-mdmst7xho: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) */
.web-acxuynd2{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.web-xnbp6mrbo0{
  border:0; border-radius:999px; padding:8px 12px; background:var(--rj2u-ewmx); 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(--z2q-i5);
}
.web-xnbp6mrbo0:is(:hover,:focus){ transform:translateY(-1px); }
a.web-xnbp6mrbo0{ text-decoration:none; display:inline-block; }
a.web-xnbp6mrbo0:link, a.web-xnbp6mrbo0:visited{ color:#fff; }
a.web-xnbp6mrbo0:hover, a.web-xnbp6mrbo0:focus{ color:#fff; }

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

/* Footer */
.web-llcips89ksee{
  padding:16px; background:var(--n9s-zgj); border-top:1px solid var(--iil-nas);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.web-xsfgiqwswz2{
  flex:1; padding:10px 14px; border:1px solid var(--iil-nas); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ey5-ua);
  background:var(--lh48-hwbm); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.web-xsfgiqwswz2:focus{ border-color:var(--rj2u-ewmx); }
.web-xsfgiqwswz2::placeholder{ color:var(--yhi5z-zc3q); }
.web-xsfgiqwswz2.web-k9fod274kg05{ border-color:#c00; }
.web-rpsjdisq0vdf{
  width:40px; height:40px; min-width:40px; border:none; background:var(--rj2u-ewmx); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.web-rpsjdisq0vdf:disabled{ opacity:.5; cursor:not-allowed; }
.web-rpsjdisq0vdf:not(:disabled):hover{ transform:scale(1.05); }
.web-rpsjdisq0vdf:not(:disabled):active{ transform:scale(0.95); }
.web-rpsjdisq0vdf:focus{ outline:2px solid var(--rj2u-ewmx); outline-offset:2px; }
.web-rpsjdisq0vdf svg{ width:20px; height:20px; }

/* Character Counter */
.web-w5kualtwp{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--yhi5z-zc3q); }
.web-w5kualtwp.web-c3v6690rrkz{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.web-dzk6yv9hx2{
  align-self:flex-start;
  max-width:75%;
  background: var(--n9s-zgj);
  color: var(--ey5-ua);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--z2q-i5);
}
.web-x0lqzc484j1a{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.web-s31keyi2.web-fun7tddz1q0w{
  background: transparent; color: var(--ey5-ua); border-color: var(--iil-nas);
}
.web-s31keyi2.web-fun7tddz1q0w:hover{
  background: var(--rj2u-ewmx); color:#fff; border-color: var(--rj2u-ewmx);
}

/* Mobile */
@media (max-width: 768px){
  .web-aaxunenxeih{ bottom:16px; right:16px; }
  .web-aaxunenxeih.web-aalcblr9xy{ left:16px; }
  .web-iidgh3fck{ --pm6j-os:60px; }
  .web-elnl7bej{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--rc6zgt-evn6) var(--rc6zgt-evn6) 0 0; transform: translateY(100%);
  }
  .web-elnl7bej.web-r3bebbqo{ transform: translateY(0); }
  .web-xxphwgljhts{ padding:20px; }
  .web-llcips89ksee{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.web-aaxunenxeih :focus-visible{ outline:2px solid var(--rj2u-ewmx); outline-offset:2px; }

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