/* CSS Variables */
:root {
  --yawgzn-srf: #4f46e5;
  --rq8-j25m: #ffffff;
  --i1c-jic9: #f9fafb;
  --n01ep-o9u: #0f172a;
  --fj9-emvd: #6b7280;
  --zds-sw: #e5e7eb;
  --ca0-pysj: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --xefw-oq: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --yeq-h1ws: 16px;
  --d6kohc-d2h0: 56px;
  --y45-se7t: 12px;
  --rbi4wv-ypq: 999999;
}

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

/* Main Container */
.ln0Whuz {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--rbi4wv-ypq);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--n01ep-o9u);
}
.ln0Whuz.jjoWbej { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.dtiJo0 { display: flex; flex-direction: column-reverse; gap: var(--y45-se7t); align-items: center; }
.rkaH0st {
  width: var(--d6kohc-d2h0); height: var(--d6kohc-d2h0); min-width: var(--d6kohc-d2h0); min-height: var(--d6kohc-d2h0);
  border-radius: 50%; border: none; background: var(--yawgzn-srf); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ca0-pysj);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rkaH0st:hover { transform: scale(1.05); box-shadow: var(--xefw-oq); }
.rkaH0st:active { transform: scale(0.95); }
.rkaH0st:focus { outline: 2px solid var(--yawgzn-srf); outline-offset: 2px; }
.rkaH0st svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rkaH0st.xu7Nqug{ animation:none; }
  .rkaH0st,.y39Ak6z,.du9Sfw{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.y39Ak6z{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--rq8-j25m); border-radius: var(--yeq-h1ws); box-shadow: var(--xefw-oq);
  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;
}
.ln0Whuz.jjoWbej .y39Ak6z{ right:auto; left:24px; }
.y39Ak6z.g65Lng{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.p5hPibn{
  padding:16px 20px; background:var(--rq8-j25m); border-bottom:1px solid var(--zds-sw);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.f5eaP8p2{ width:10px; height:10px; border-radius:50%; background:var(--yawgzn-srf); flex-shrink:0; }
.yyxjS6ho{ flex:1; min-width:0; }
.wzoQpo{ font-size:16px; font-weight:600; color:var(--n01ep-o9u); margin:0 0 2px 0; }
.cdQls{ font-size:13px; color:var(--fj9-emvd); margin:0; }
.ypz6Kior{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--fj9-emvd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ypz6Kior:hover{ background:var(--i1c-jic9); color:var(--n01ep-o9u); }
.ypz6Kior:focus{ outline:2px solid var(--yawgzn-srf); outline-offset:2px; }
.ypz6Kior svg{ width:20px; height:20px; }

/* Body */
.gh9Tc9{
  flex:1; overflow-y:auto; padding:16px; background:var(--i1c-jic9);
  display:flex; flex-direction:column; gap:12px;
}
.gh9Tc9::-webkit-scrollbar{ width:6px; }
.gh9Tc9::-webkit-scrollbar-track{ background:transparent; }
.gh9Tc9::-webkit-scrollbar-thumb{ background:var(--zds-sw); border-radius:3px; }
.gh9Tc9::-webkit-scrollbar-thumb:hover{ background:var(--fj9-emvd); }

/* Messages */
.du9Sfw{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.du9Sfw.g674Be2k{ flex-direction:row-reverse; }
.vrcR1h{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.vrcR1h a{ color:inherit; }
.du9Sfw.edxKe3z .vrcR1h{ background:var(--rq8-j25m); color:var(--n01ep-o9u); border-bottom-left-radius:4px; }
.du9Sfw.g674Be2k .vrcR1h{ background:var(--yawgzn-srf); color:#fff; border-bottom-right-radius:4px; }
.h3gAdup{ font-size:11px; color:var(--fj9-emvd); margin-top:4px; display:block; }

/* Typing Indicator */
.fn9Elcf{
  display:flex; gap:8px; padding:10px 14px; background:var(--rq8-j25m);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.x8jKbsa{ width:8px; height:8px; border-radius:50%; background:var(--fj9-emvd); animation:typingDot 1.4s infinite; }
.x8jKbsa:nth-child(2){ animation-delay:.2s; }
.x8jKbsa: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) */
.n5mU6x{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.fioSe8z{
  border:0; border-radius:999px; padding:8px 12px; background:var(--yawgzn-srf); 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(--ca0-pysj);
}
.fioSe8z:is(:hover,:focus){ transform:translateY(-1px); }
a.fioSe8z{ text-decoration:none; display:inline-block; }
a.fioSe8z:link, a.fioSe8z:visited{ color:#fff; }
a.fioSe8z:hover, a.fioSe8z:focus{ color:#fff; }

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

/* Footer */
.l9nFv1{
  padding:16px; background:var(--rq8-j25m); border-top:1px solid var(--zds-sw);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.rpfQu41{
  flex:1; padding:10px 14px; border:1px solid var(--zds-sw); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--n01ep-o9u);
  background:var(--i1c-jic9); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.rpfQu41:focus{ border-color:var(--yawgzn-srf); }
.rpfQu41::placeholder{ color:var(--fj9-emvd); }
.rpfQu41.pbfEcxm{ border-color:#c00; }
.yxM4x{
  width:40px; height:40px; min-width:40px; border:none; background:var(--yawgzn-srf); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.yxM4x:disabled{ opacity:.5; cursor:not-allowed; }
.yxM4x:not(:disabled):hover{ transform:scale(1.05); }
.yxM4x:not(:disabled):active{ transform:scale(0.95); }
.yxM4x:focus{ outline:2px solid var(--yawgzn-srf); outline-offset:2px; }
.yxM4x svg{ width:20px; height:20px; }

/* Character Counter */
.bqg7Slkf{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--fj9-emvd); }
.bqg7Slkf.j68Pj4f{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.roPs4{
  align-self:flex-start;
  max-width:75%;
  background: var(--rq8-j25m);
  color: var(--n01ep-o9u);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ca0-pysj);
}
.mvgaGp6i{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.e9G48.qpXxz{
  background: transparent; color: var(--n01ep-o9u); border-color: var(--zds-sw);
}
.e9G48.qpXxz:hover{
  background: var(--yawgzn-srf); color:#fff; border-color: var(--yawgzn-srf);
}

/* Mobile */
@media (max-width: 768px){
  .ln0Whuz{ bottom:16px; right:16px; }
  .ln0Whuz.jjoWbej{ left:16px; }
  .rkaH0st{ --d6kohc-d2h0:60px; }
  .y39Ak6z{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--yeq-h1ws) var(--yeq-h1ws) 0 0; transform: translateY(100%);
  }
  .y39Ak6z.g65Lng{ transform: translateY(0); }
  .p5hPibn{ padding:20px; }
  .l9nFv1{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ln0Whuz :focus-visible{ outline:2px solid var(--yawgzn-srf); outline-offset:2px; }

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