/* CSS Variables */
:root {
  --ayu-rah: #4f46e5;
  --b0y-lfl6: #ffffff;
  --ggwl-vd: #f9fafb;
  --rcji0-q03p: #0f172a;
  --n572l-cuoq: #6b7280;
  --cjk-up: #e5e7eb;
  --uwevo9-l8z6: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --p9z64-iw5k: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --lnu-a6d: 16px;
  --opd6-egw: 56px;
  --sgkc7u-yed: 12px;
  --eow6qp-fdi: 999999;
}

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

/* Main Container */
.r4cQ7dz {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--eow6qp-fdi);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--rcji0-q03p);
}
.r4cQ7dz.yy90In35 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.tvTml { display: flex; flex-direction: column-reverse; gap: var(--sgkc7u-yed); align-items: center; }
.wuS9n {
  width: var(--opd6-egw); height: var(--opd6-egw); min-width: var(--opd6-egw); min-height: var(--opd6-egw);
  border-radius: 50%; border: none; background: var(--ayu-rah); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--uwevo9-l8z6);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.wuS9n:hover { transform: scale(1.05); box-shadow: var(--p9z64-iw5k); }
.wuS9n:active { transform: scale(0.95); }
.wuS9n:focus { outline: 2px solid var(--ayu-rah); outline-offset: 2px; }
.wuS9n svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .wuS9n.sj04Zhq1{ animation:none; }
  .wuS9n,.c9vS4s,.h7F0x{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.c9vS4s{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--b0y-lfl6); border-radius: var(--lnu-a6d); box-shadow: var(--p9z64-iw5k);
  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;
}
.r4cQ7dz.yy90In35 .c9vS4s{ right:auto; left:24px; }
.c9vS4s.v2h5Wvdb{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.l81Ymn{
  padding:16px 20px; background:var(--b0y-lfl6); border-bottom:1px solid var(--cjk-up);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.oxbvLwu5{ width:10px; height:10px; border-radius:50%; background:var(--ayu-rah); flex-shrink:0; }
.l1mjOfhm{ flex:1; min-width:0; }
.ny0Gnoh{ font-size:16px; font-weight:600; color:var(--rcji0-q03p); margin:0 0 2px 0; }
.aepaIqku{ font-size:13px; color:var(--n572l-cuoq); margin:0; }
.oe2Xx6{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--n572l-cuoq);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.oe2Xx6:hover{ background:var(--ggwl-vd); color:var(--rcji0-q03p); }
.oe2Xx6:focus{ outline:2px solid var(--ayu-rah); outline-offset:2px; }
.oe2Xx6 svg{ width:20px; height:20px; }

/* Body */
.t2aUes{
  flex:1; overflow-y:auto; padding:16px; background:var(--ggwl-vd);
  display:flex; flex-direction:column; gap:12px;
}
.t2aUes::-webkit-scrollbar{ width:6px; }
.t2aUes::-webkit-scrollbar-track{ background:transparent; }
.t2aUes::-webkit-scrollbar-thumb{ background:var(--cjk-up); border-radius:3px; }
.t2aUes::-webkit-scrollbar-thumb:hover{ background:var(--n572l-cuoq); }

/* Messages */
.h7F0x{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.h7F0x.h3Qrh{ flex-direction:row-reverse; }
.eypD9y{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.eypD9y a{ color:inherit; }
.h7F0x.v7lDr9 .eypD9y{ background:var(--b0y-lfl6); color:var(--rcji0-q03p); border-bottom-left-radius:4px; }
.h7F0x.h3Qrh .eypD9y{ background:var(--ayu-rah); color:#fff; border-bottom-right-radius:4px; }
.brXgm{ font-size:11px; color:var(--n572l-cuoq); margin-top:4px; display:block; }

/* Typing Indicator */
.jkwhXfli{
  display:flex; gap:8px; padding:10px 14px; background:var(--b0y-lfl6);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.uj6N1ze{ width:8px; height:8px; border-radius:50%; background:var(--n572l-cuoq); animation:typingDot 1.4s infinite; }
.uj6N1ze:nth-child(2){ animation-delay:.2s; }
.uj6N1ze: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) */
.kf8zIdcp{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.se5I6xf{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ayu-rah); 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(--uwevo9-l8z6);
}
.se5I6xf:is(:hover,:focus){ transform:translateY(-1px); }
a.se5I6xf{ text-decoration:none; display:inline-block; }
a.se5I6xf:link, a.se5I6xf:visited{ color:#fff; }
a.se5I6xf:hover, a.se5I6xf:focus{ color:#fff; }

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

/* Footer */
.wmCv0{
  padding:16px; background:var(--b0y-lfl6); border-top:1px solid var(--cjk-up);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.j6pIel7{
  flex:1; padding:10px 14px; border:1px solid var(--cjk-up); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--rcji0-q03p);
  background:var(--ggwl-vd); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.j6pIel7:focus{ border-color:var(--ayu-rah); }
.j6pIel7::placeholder{ color:var(--n572l-cuoq); }
.j6pIel7.nzzFcw0{ border-color:#c00; }
.eyxXn0b{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ayu-rah); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.eyxXn0b:disabled{ opacity:.5; cursor:not-allowed; }
.eyxXn0b:not(:disabled):hover{ transform:scale(1.05); }
.eyxXn0b:not(:disabled):active{ transform:scale(0.95); }
.eyxXn0b:focus{ outline:2px solid var(--ayu-rah); outline-offset:2px; }
.eyxXn0b svg{ width:20px; height:20px; }

/* Character Counter */
.exHml{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--n572l-cuoq); }
.exHml.gv30Ozwb{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.f9jG609{
  align-self:flex-start;
  max-width:75%;
  background: var(--b0y-lfl6);
  color: var(--rcji0-q03p);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--uwevo9-l8z6);
}
.qjiJt5{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ihomJeyf.zpeJd0m{
  background: transparent; color: var(--rcji0-q03p); border-color: var(--cjk-up);
}
.ihomJeyf.zpeJd0m:hover{
  background: var(--ayu-rah); color:#fff; border-color: var(--ayu-rah);
}

/* Mobile */
@media (max-width: 768px){
  .r4cQ7dz{ bottom:16px; right:16px; }
  .r4cQ7dz.yy90In35{ left:16px; }
  .wuS9n{ --opd6-egw:60px; }
  .c9vS4s{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--lnu-a6d) var(--lnu-a6d) 0 0; transform: translateY(100%);
  }
  .c9vS4s.v2h5Wvdb{ transform: translateY(0); }
  .l81Ymn{ padding:20px; }
  .wmCv0{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.r4cQ7dz :focus-visible{ outline:2px solid var(--ayu-rah); outline-offset:2px; }

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