/* CSS Variables */
:root {
  --xfwt-eyr: #4f46e5;
  --a21i-qzqr: #ffffff;
  --ffj17y-lga: #f9fafb;
  --yesr-n4: #0f172a;
  --pn9z-ue0: #6b7280;
  --zu07ot-zs8u: #e5e7eb;
  --aqd7o-ps: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --lpzd3-ty34: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --dyhtd-ui68: 16px;
  --bvfpf-oci: 56px;
  --evik-au: 12px;
  --wn32u-sl: 999999;
}

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

/* Main Container */
.ero-c6yp578pgjy {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--wn32u-sl);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--yesr-n4);
}
.ero-c6yp578pgjy.ero-ddhzd8n9b { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ero-eqpxacsnxj { display: flex; flex-direction: column-reverse; gap: var(--evik-au); align-items: center; }
.ero-l0fx1e97 {
  width: var(--bvfpf-oci); height: var(--bvfpf-oci); min-width: var(--bvfpf-oci); min-height: var(--bvfpf-oci);
  border-radius: 50%; border: none; background: var(--xfwt-eyr); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--aqd7o-ps);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ero-l0fx1e97:hover { transform: scale(1.05); box-shadow: var(--lpzd3-ty34); }
.ero-l0fx1e97:active { transform: scale(0.95); }
.ero-l0fx1e97:focus { outline: 2px solid var(--xfwt-eyr); outline-offset: 2px; }
.ero-l0fx1e97 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ero-l0fx1e97.ero-azeucs0mj3m{ animation:none; }
  .ero-l0fx1e97,.ero-tt205cvz2,.ero-sgz3ndazrxh3{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.ero-tt205cvz2{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--a21i-qzqr); border-radius: var(--dyhtd-ui68); box-shadow: var(--lpzd3-ty34);
  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;
}
.ero-c6yp578pgjy.ero-ddhzd8n9b .ero-tt205cvz2{ right:auto; left:24px; }
.ero-tt205cvz2.ero-ecuy9atkftqr{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ero-fotu7ry8y4bz{
  padding:16px 20px; background:var(--a21i-qzqr); border-bottom:1px solid var(--zu07ot-zs8u);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ero-trt0nwuwgf30{ width:10px; height:10px; border-radius:50%; background:var(--xfwt-eyr); flex-shrink:0; }
.ero-toms8e796w{ flex:1; min-width:0; }
.ero-qxvtykq0lv8t{ font-size:16px; font-weight:600; color:var(--yesr-n4); margin:0 0 2px 0; }
.ero-dy3sgi3tyv{ font-size:13px; color:var(--pn9z-ue0); margin:0; }
.ero-ypb1ua0p2z{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--pn9z-ue0);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ero-ypb1ua0p2z:hover{ background:var(--ffj17y-lga); color:var(--yesr-n4); }
.ero-ypb1ua0p2z:focus{ outline:2px solid var(--xfwt-eyr); outline-offset:2px; }
.ero-ypb1ua0p2z svg{ width:20px; height:20px; }

/* Body */
.ero-et8q7gss4nir{
  flex:1; overflow-y:auto; padding:16px; background:var(--ffj17y-lga);
  display:flex; flex-direction:column; gap:12px;
}
.ero-et8q7gss4nir::-webkit-scrollbar{ width:6px; }
.ero-et8q7gss4nir::-webkit-scrollbar-track{ background:transparent; }
.ero-et8q7gss4nir::-webkit-scrollbar-thumb{ background:var(--zu07ot-zs8u); border-radius:3px; }
.ero-et8q7gss4nir::-webkit-scrollbar-thumb:hover{ background:var(--pn9z-ue0); }

/* Messages */
.ero-sgz3ndazrxh3{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ero-sgz3ndazrxh3.ero-brd72059{ flex-direction:row-reverse; }
.ero-ax02rxhnr{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ero-ax02rxhnr a{ color:inherit; }
.ero-sgz3ndazrxh3.ero-hkt59ody .ero-ax02rxhnr{ background:var(--a21i-qzqr); color:var(--yesr-n4); border-bottom-left-radius:4px; }
.ero-sgz3ndazrxh3.ero-brd72059 .ero-ax02rxhnr{ background:var(--xfwt-eyr); color:#fff; border-bottom-right-radius:4px; }
.ero-bj5pvf32s{ font-size:11px; color:var(--pn9z-ue0); margin-top:4px; display:block; }

/* Typing Indicator */
.ero-gcalpe8wxey{
  display:flex; gap:8px; padding:10px 14px; background:var(--a21i-qzqr);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ero-rfd6rqiw2{ width:8px; height:8px; border-radius:50%; background:var(--pn9z-ue0); animation:typingDot 1.4s infinite; }
.ero-rfd6rqiw2:nth-child(2){ animation-delay:.2s; }
.ero-rfd6rqiw2: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) */
.ero-si75a4ngqs{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ero-hsrd1zce9pa1{
  border:0; border-radius:999px; padding:8px 12px; background:var(--xfwt-eyr); 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(--aqd7o-ps);
}
.ero-hsrd1zce9pa1:is(:hover,:focus){ transform:translateY(-1px); }
a.ero-hsrd1zce9pa1{ text-decoration:none; display:inline-block; }
a.ero-hsrd1zce9pa1:link, a.ero-hsrd1zce9pa1:visited{ color:#fff; }
a.ero-hsrd1zce9pa1:hover, a.ero-hsrd1zce9pa1:focus{ color:#fff; }

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

/* Footer */
.ero-iucncx7aggt{
  padding:16px; background:var(--a21i-qzqr); border-top:1px solid var(--zu07ot-zs8u);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ero-mc3zmh41z{
  flex:1; padding:10px 14px; border:1px solid var(--zu07ot-zs8u); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--yesr-n4);
  background:var(--ffj17y-lga); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ero-mc3zmh41z:focus{ border-color:var(--xfwt-eyr); }
.ero-mc3zmh41z::placeholder{ color:var(--pn9z-ue0); }
.ero-mc3zmh41z.ero-yda8lffl6w{ border-color:#c00; }
.ero-mtmtmmm3{
  width:40px; height:40px; min-width:40px; border:none; background:var(--xfwt-eyr); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ero-mtmtmmm3:disabled{ opacity:.5; cursor:not-allowed; }
.ero-mtmtmmm3:not(:disabled):hover{ transform:scale(1.05); }
.ero-mtmtmmm3:not(:disabled):active{ transform:scale(0.95); }
.ero-mtmtmmm3:focus{ outline:2px solid var(--xfwt-eyr); outline-offset:2px; }
.ero-mtmtmmm3 svg{ width:20px; height:20px; }

/* Character Counter */
.ero-zsrt43gbnnf{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--pn9z-ue0); }
.ero-zsrt43gbnnf.ero-brrxhoif{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ero-wlx89txmgps{
  align-self:flex-start;
  max-width:75%;
  background: var(--a21i-qzqr);
  color: var(--yesr-n4);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--aqd7o-ps);
}
.ero-ums2btfev{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ero-ie3hbd4njot.ero-vfioes2b8apn{
  background: transparent; color: var(--yesr-n4); border-color: var(--zu07ot-zs8u);
}
.ero-ie3hbd4njot.ero-vfioes2b8apn:hover{
  background: var(--xfwt-eyr); color:#fff; border-color: var(--xfwt-eyr);
}

/* Mobile */
@media (max-width: 768px){
  .ero-c6yp578pgjy{ bottom:16px; right:16px; }
  .ero-c6yp578pgjy.ero-ddhzd8n9b{ left:16px; }
  .ero-l0fx1e97{ --bvfpf-oci:60px; }
  .ero-tt205cvz2{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--dyhtd-ui68) var(--dyhtd-ui68) 0 0; transform: translateY(100%);
  }
  .ero-tt205cvz2.ero-ecuy9atkftqr{ transform: translateY(0); }
  .ero-fotu7ry8y4bz{ padding:20px; }
  .ero-iucncx7aggt{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ero-c6yp578pgjy :focus-visible{ outline:2px solid var(--xfwt-eyr); outline-offset:2px; }

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