/* CSS Variables */
:root {
  --hg1t-rbs: #4f46e5;
  --ewhj-a9: #ffffff;
  --nahquz-f9o5: #f9fafb;
  --wi8b3q-l7z5: #0f172a;
  --houw-jd43: #6b7280;
  --d4eg-vn: #e5e7eb;
  --x4o2le-t82m: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --zdc-er: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --wpyvg-xmq8: 16px;
  --f2sfy-vr2z: 56px;
  --pk3l-qz: 12px;
  --qh1mdy-y6gp: 999999;
}

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

/* Main Container */
.rou-hjgbvlj8ea {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--qh1mdy-y6gp);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--wi8b3q-l7z5);
}
.rou-hjgbvlj8ea.rou-ic5hg07wl67 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.rou-sjyztvq3 { display: flex; flex-direction: column-reverse; gap: var(--pk3l-qz); align-items: center; }
.rou-pnxwcdatvmyw {
  width: var(--f2sfy-vr2z); height: var(--f2sfy-vr2z); min-width: var(--f2sfy-vr2z); min-height: var(--f2sfy-vr2z);
  border-radius: 50%; border: none; background: var(--hg1t-rbs); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--x4o2le-t82m);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rou-pnxwcdatvmyw:hover { transform: scale(1.05); box-shadow: var(--zdc-er); }
.rou-pnxwcdatvmyw:active { transform: scale(0.95); }
.rou-pnxwcdatvmyw:focus { outline: 2px solid var(--hg1t-rbs); outline-offset: 2px; }
.rou-pnxwcdatvmyw svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rou-pnxwcdatvmyw.rou-y0x3hgu0i{ animation:none; }
  .rou-pnxwcdatvmyw,.rou-wvjr0d88,.rou-jpt49zqv{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.rou-wvjr0d88{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ewhj-a9); border-radius: var(--wpyvg-xmq8); box-shadow: var(--zdc-er);
  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-hjgbvlj8ea.rou-ic5hg07wl67 .rou-wvjr0d88{ right:auto; left:24px; }
.rou-wvjr0d88.rou-rtc0tq08wfn{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.rou-g5xmmcln{
  padding:16px 20px; background:var(--ewhj-a9); border-bottom:1px solid var(--d4eg-vn);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.rou-q49nt3rl{ width:10px; height:10px; border-radius:50%; background:var(--hg1t-rbs); flex-shrink:0; }
.rou-vn3g7bc6m4s{ flex:1; min-width:0; }
.rou-zltt73vw{ font-size:16px; font-weight:600; color:var(--wi8b3q-l7z5); margin:0 0 2px 0; }
.rou-ip9vcxymx{ font-size:13px; color:var(--houw-jd43); margin:0; }
.rou-kk6tz5dqi{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--houw-jd43);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.rou-kk6tz5dqi:hover{ background:var(--nahquz-f9o5); color:var(--wi8b3q-l7z5); }
.rou-kk6tz5dqi:focus{ outline:2px solid var(--hg1t-rbs); outline-offset:2px; }
.rou-kk6tz5dqi svg{ width:20px; height:20px; }

/* Body */
.rou-bye1ri4onq8{
  flex:1; overflow-y:auto; padding:16px; background:var(--nahquz-f9o5);
  display:flex; flex-direction:column; gap:12px;
}
.rou-bye1ri4onq8::-webkit-scrollbar{ width:6px; }
.rou-bye1ri4onq8::-webkit-scrollbar-track{ background:transparent; }
.rou-bye1ri4onq8::-webkit-scrollbar-thumb{ background:var(--d4eg-vn); border-radius:3px; }
.rou-bye1ri4onq8::-webkit-scrollbar-thumb:hover{ background:var(--houw-jd43); }

/* Messages */
.rou-jpt49zqv{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.rou-jpt49zqv.rou-uw2xohhrpex{ flex-direction:row-reverse; }
.rou-upm5g0qidj{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.rou-upm5g0qidj a{ color:inherit; }
.rou-jpt49zqv.rou-nsmfc6g8 .rou-upm5g0qidj{ background:var(--ewhj-a9); color:var(--wi8b3q-l7z5); border-bottom-left-radius:4px; }
.rou-jpt49zqv.rou-uw2xohhrpex .rou-upm5g0qidj{ background:var(--hg1t-rbs); color:#fff; border-bottom-right-radius:4px; }
.rou-umbztdun{ font-size:11px; color:var(--houw-jd43); margin-top:4px; display:block; }

/* Typing Indicator */
.rou-heht8f798wt{
  display:flex; gap:8px; padding:10px 14px; background:var(--ewhj-a9);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.rou-pit499ttwvmb{ width:8px; height:8px; border-radius:50%; background:var(--houw-jd43); animation:typingDot 1.4s infinite; }
.rou-pit499ttwvmb:nth-child(2){ animation-delay:.2s; }
.rou-pit499ttwvmb: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-uis2cuqigv8{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.rou-uts22or6w{
  border:0; border-radius:999px; padding:8px 12px; background:var(--hg1t-rbs); 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(--x4o2le-t82m);
}
.rou-uts22or6w:is(:hover,:focus){ transform:translateY(-1px); }
a.rou-uts22or6w{ text-decoration:none; display:inline-block; }
a.rou-uts22or6w:link, a.rou-uts22or6w:visited{ color:#fff; }
a.rou-uts22or6w:hover, a.rou-uts22or6w:focus{ color:#fff; }

/* Error Banner */
.rou-f4yjr7sznj{
  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-f9su5owb7c12{
  padding:6px 12px; background:#c00; color:#fff; border:none; border-radius:6px; font-size:12px; cursor:pointer; white-space:nowrap;
}

/* Footer */
.rou-izdl5qak5e3{
  padding:16px; background:var(--ewhj-a9); border-top:1px solid var(--d4eg-vn);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.rou-o0dhatdflgc{
  flex:1; padding:10px 14px; border:1px solid var(--d4eg-vn); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--wi8b3q-l7z5);
  background:var(--nahquz-f9o5); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.rou-o0dhatdflgc:focus{ border-color:var(--hg1t-rbs); }
.rou-o0dhatdflgc::placeholder{ color:var(--houw-jd43); }
.rou-o0dhatdflgc.rou-kt1ju2vgh{ border-color:#c00; }
.rou-kw3h5ty8{
  width:40px; height:40px; min-width:40px; border:none; background:var(--hg1t-rbs); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.rou-kw3h5ty8:disabled{ opacity:.5; cursor:not-allowed; }
.rou-kw3h5ty8:not(:disabled):hover{ transform:scale(1.05); }
.rou-kw3h5ty8:not(:disabled):active{ transform:scale(0.95); }
.rou-kw3h5ty8:focus{ outline:2px solid var(--hg1t-rbs); outline-offset:2px; }
.rou-kw3h5ty8 svg{ width:20px; height:20px; }

/* Character Counter */
.rou-elmeh33lroo{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--houw-jd43); }
.rou-elmeh33lroo.rou-baulmr9tpn{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.rou-j62li0i21ia{
  align-self:flex-start;
  max-width:75%;
  background: var(--ewhj-a9);
  color: var(--wi8b3q-l7z5);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--x4o2le-t82m);
}
.rou-gcy3ljev0htn{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.rou-k2oiljxeg.rou-u0y5xee61x{
  background: transparent; color: var(--wi8b3q-l7z5); border-color: var(--d4eg-vn);
}
.rou-k2oiljxeg.rou-u0y5xee61x:hover{
  background: var(--hg1t-rbs); color:#fff; border-color: var(--hg1t-rbs);
}

/* Mobile */
@media (max-width: 768px){
  .rou-hjgbvlj8ea{ bottom:16px; right:16px; }
  .rou-hjgbvlj8ea.rou-ic5hg07wl67{ left:16px; }
  .rou-pnxwcdatvmyw{ --f2sfy-vr2z:60px; }
  .rou-wvjr0d88{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--wpyvg-xmq8) var(--wpyvg-xmq8) 0 0; transform: translateY(100%);
  }
  .rou-wvjr0d88.rou-rtc0tq08wfn{ transform: translateY(0); }
  .rou-g5xmmcln{ padding:20px; }
  .rou-izdl5qak5e3{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.rou-hjgbvlj8ea :focus-visible{ outline:2px solid var(--hg1t-rbs); outline-offset:2px; }

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