/* CSS Variables */
:root {
  --zcx3-yz: #4f46e5;
  --v7aj-yg: #ffffff;
  --y8fg-qdk: #f9fafb;
  --oddq2-gm: #0f172a;
  --mgx2-q4n: #6b7280;
  --ns87-ywl: #e5e7eb;
  --r3yt-xw: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --c8ep-xr: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --yvn-kb2: 16px;
  --bsq9dn-r7lr: 56px;
  --kpei-nu: 12px;
  --c58os-tso: 999999;
}

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

/* Main Container */
.rou-pf6ntlwa {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--c58os-tso);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--oddq2-gm);
}
.rou-pf6ntlwa.rou-p4ervos6tor { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.rou-zbyg2rg64m1 { display: flex; flex-direction: column-reverse; gap: var(--kpei-nu); align-items: center; }
.rou-uph1h5tsr {
  width: var(--bsq9dn-r7lr); height: var(--bsq9dn-r7lr); min-width: var(--bsq9dn-r7lr); min-height: var(--bsq9dn-r7lr);
  border-radius: 50%; border: none; background: var(--zcx3-yz); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--r3yt-xw);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rou-uph1h5tsr:hover { transform: scale(1.05); box-shadow: var(--c8ep-xr); }
.rou-uph1h5tsr:active { transform: scale(0.95); }
.rou-uph1h5tsr:focus { outline: 2px solid var(--zcx3-yz); outline-offset: 2px; }
.rou-uph1h5tsr svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rou-uph1h5tsr.rou-cw5yxinmw{ animation:none; }
  .rou-uph1h5tsr,.rou-k1whw9bjd07,.rou-f5iwz9h46{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.rou-k1whw9bjd07{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--v7aj-yg); border-radius: var(--yvn-kb2); box-shadow: var(--c8ep-xr);
  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;
}
.rou-pf6ntlwa.rou-p4ervos6tor .rou-k1whw9bjd07{ right:auto; left:24px; }
.rou-k1whw9bjd07.rou-ifivksmn93y{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.rou-jgtyx10zpt{
  padding:16px 20px; background:var(--v7aj-yg); border-bottom:1px solid var(--ns87-ywl);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.rou-fqz1nhxqng{ width:10px; height:10px; border-radius:50%; background:var(--zcx3-yz); flex-shrink:0; }
.rou-hg4707rd{ flex:1; min-width:0; }
.rou-pdudh9ze8{ font-size:16px; font-weight:600; color:var(--oddq2-gm); margin:0 0 2px 0; }
.rou-bjgwapa9ee8{ font-size:13px; color:var(--mgx2-q4n); margin:0; }
.rou-f8g9qj67y5{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--mgx2-q4n);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.rou-f8g9qj67y5:hover{ background:var(--y8fg-qdk); color:var(--oddq2-gm); }
.rou-f8g9qj67y5:focus{ outline:2px solid var(--zcx3-yz); outline-offset:2px; }
.rou-f8g9qj67y5 svg{ width:20px; height:20px; }

/* Body */
.rou-krjc3tpt{
  flex:1; overflow-y:auto; padding:16px; background:var(--y8fg-qdk);
  display:flex; flex-direction:column; gap:12px;
}
.rou-krjc3tpt::-webkit-scrollbar{ width:6px; }
.rou-krjc3tpt::-webkit-scrollbar-track{ background:transparent; }
.rou-krjc3tpt::-webkit-scrollbar-thumb{ background:var(--ns87-ywl); border-radius:3px; }
.rou-krjc3tpt::-webkit-scrollbar-thumb:hover{ background:var(--mgx2-q4n); }

/* Messages */
.rou-f5iwz9h46{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.rou-f5iwz9h46.rou-mpls22gm3efy{ flex-direction:row-reverse; }
.rou-izxvlkdyc00{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.rou-izxvlkdyc00 a{ color:inherit; }
.rou-f5iwz9h46.rou-wj6yimlfxk .rou-izxvlkdyc00{ background:var(--v7aj-yg); color:var(--oddq2-gm); border-bottom-left-radius:4px; }
.rou-f5iwz9h46.rou-mpls22gm3efy .rou-izxvlkdyc00{ background:var(--zcx3-yz); color:#fff; border-bottom-right-radius:4px; }
.rou-w88lh5gk05{ font-size:11px; color:var(--mgx2-q4n); margin-top:4px; display:block; }

/* Typing Indicator */
.rou-dcmril5lf26v{
  display:flex; gap:8px; padding:10px 14px; background:var(--v7aj-yg);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.rou-ped42joozzsu{ width:8px; height:8px; border-radius:50%; background:var(--mgx2-q4n); animation:typingDot 1.4s infinite; }
.rou-ped42joozzsu:nth-child(2){ animation-delay:.2s; }
.rou-ped42joozzsu: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) */
.rou-ikgjaq64{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.rou-h572c16f2x7q{
  border:0; border-radius:999px; padding:8px 12px; background:var(--zcx3-yz); 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(--r3yt-xw);
}
.rou-h572c16f2x7q:is(:hover,:focus){ transform:translateY(-1px); }
a.rou-h572c16f2x7q{ text-decoration:none; display:inline-block; }
a.rou-h572c16f2x7q:link, a.rou-h572c16f2x7q:visited{ color:#fff; }
a.rou-h572c16f2x7q:hover, a.rou-h572c16f2x7q:focus{ color:#fff; }

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

/* Footer */
.rou-aj4y6te36wg{
  padding:16px; background:var(--v7aj-yg); border-top:1px solid var(--ns87-ywl);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.rou-qqckj8h8p{
  flex:1; padding:10px 14px; border:1px solid var(--ns87-ywl); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--oddq2-gm);
  background:var(--y8fg-qdk); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.rou-qqckj8h8p:focus{ border-color:var(--zcx3-yz); }
.rou-qqckj8h8p::placeholder{ color:var(--mgx2-q4n); }
.rou-qqckj8h8p.rou-sksa83ez{ border-color:#c00; }
.rou-lb2vz8jfjbx{
  width:40px; height:40px; min-width:40px; border:none; background:var(--zcx3-yz); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.rou-lb2vz8jfjbx:disabled{ opacity:.5; cursor:not-allowed; }
.rou-lb2vz8jfjbx:not(:disabled):hover{ transform:scale(1.05); }
.rou-lb2vz8jfjbx:not(:disabled):active{ transform:scale(0.95); }
.rou-lb2vz8jfjbx:focus{ outline:2px solid var(--zcx3-yz); outline-offset:2px; }
.rou-lb2vz8jfjbx svg{ width:20px; height:20px; }

/* Character Counter */
.rou-gbj0t4ad7vq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--mgx2-q4n); }
.rou-gbj0t4ad7vq.rou-h2fbont83{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.rou-cqufi65gr89{
  align-self:flex-start;
  max-width:75%;
  background: var(--v7aj-yg);
  color: var(--oddq2-gm);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--r3yt-xw);
}
.rou-ugyd8cw2{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.rou-a5wj9wejfp.rou-g80504t4{
  background: transparent; color: var(--oddq2-gm); border-color: var(--ns87-ywl);
}
.rou-a5wj9wejfp.rou-g80504t4:hover{
  background: var(--zcx3-yz); color:#fff; border-color: var(--zcx3-yz);
}

/* Mobile */
@media (max-width: 768px){
  .rou-pf6ntlwa{ bottom:16px; right:16px; }
  .rou-pf6ntlwa.rou-p4ervos6tor{ left:16px; }
  .rou-uph1h5tsr{ --bsq9dn-r7lr:60px; }
  .rou-k1whw9bjd07{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--yvn-kb2) var(--yvn-kb2) 0 0; transform: translateY(100%);
  }
  .rou-k1whw9bjd07.rou-ifivksmn93y{ transform: translateY(0); }
  .rou-jgtyx10zpt{ padding:20px; }
  .rou-aj4y6te36wg{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.rou-pf6ntlwa :focus-visible{ outline:2px solid var(--zcx3-yz); outline-offset:2px; }

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