/* CSS Variables */
:root {
  --vq0j-qp: #4f46e5;
  --ehb-xm3: #ffffff;
  --zwlc-c4ai: #f9fafb;
  --yej5-of: #0f172a;
  --tu0-ood: #6b7280;
  --ruo-ot: #e5e7eb;
  --nengiy-lvmm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --yi0-i4e: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --wbq0k-kf: 16px;
  --nl7u0p-gwg: 56px;
  --p4l-krm: 12px;
  --s66b8c-bz: 999999;
}

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

/* Main Container */
.rtTz4 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--s66b8c-bz);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--yej5-of);
}
.rtTz4.fv4B8g { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.v34rTn1t { display: flex; flex-direction: column-reverse; gap: var(--p4l-krm); align-items: center; }
.a9lJ9gj {
  width: var(--nl7u0p-gwg); height: var(--nl7u0p-gwg); min-width: var(--nl7u0p-gwg); min-height: var(--nl7u0p-gwg);
  border-radius: 50%; border: none; background: var(--vq0j-qp); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nengiy-lvmm);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.a9lJ9gj:hover { transform: scale(1.05); box-shadow: var(--yi0-i4e); }
.a9lJ9gj:active { transform: scale(0.95); }
.a9lJ9gj:focus { outline: 2px solid var(--vq0j-qp); outline-offset: 2px; }
.a9lJ9gj svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .a9lJ9gj.dcfvEfwd{ animation:none; }
  .a9lJ9gj,.yw8Tfz,.g4Ohg{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.yw8Tfz{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ehb-xm3); border-radius: var(--wbq0k-kf); box-shadow: var(--yi0-i4e);
  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;
}
.rtTz4.fv4B8g .yw8Tfz{ right:auto; left:24px; }
.yw8Tfz.l2rOe2w{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ggmC3v{
  padding:16px 20px; background:var(--ehb-xm3); border-bottom:1px solid var(--ruo-ot);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.fuhF1h{ width:10px; height:10px; border-radius:50%; background:var(--vq0j-qp); flex-shrink:0; }
.puWmz{ flex:1; min-width:0; }
.a3Vjj{ font-size:16px; font-weight:600; color:var(--yej5-of); margin:0 0 2px 0; }
.o1tU8f{ font-size:13px; color:var(--tu0-ood); margin:0; }
.irekEr0j{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--tu0-ood);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.irekEr0j:hover{ background:var(--zwlc-c4ai); color:var(--yej5-of); }
.irekEr0j:focus{ outline:2px solid var(--vq0j-qp); outline-offset:2px; }
.irekEr0j svg{ width:20px; height:20px; }

/* Body */
.ekzRsr{
  flex:1; overflow-y:auto; padding:16px; background:var(--zwlc-c4ai);
  display:flex; flex-direction:column; gap:12px;
}
.ekzRsr::-webkit-scrollbar{ width:6px; }
.ekzRsr::-webkit-scrollbar-track{ background:transparent; }
.ekzRsr::-webkit-scrollbar-thumb{ background:var(--ruo-ot); border-radius:3px; }
.ekzRsr::-webkit-scrollbar-thumb:hover{ background:var(--tu0-ood); }

/* Messages */
.g4Ohg{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.g4Ohg.tl4Qch{ flex-direction:row-reverse; }
.cquhN80d{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.cquhN80d a{ color:inherit; }
.g4Ohg.vk6Tbts .cquhN80d{ background:var(--ehb-xm3); color:var(--yej5-of); border-bottom-left-radius:4px; }
.g4Ohg.tl4Qch .cquhN80d{ background:var(--vq0j-qp); color:#fff; border-bottom-right-radius:4px; }
.l5a7K3j4{ font-size:11px; color:var(--tu0-ood); margin-top:4px; display:block; }

/* Typing Indicator */
.zr87Prd8{
  display:flex; gap:8px; padding:10px 14px; background:var(--ehb-xm3);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.syFha{ width:8px; height:8px; border-radius:50%; background:var(--tu0-ood); animation:typingDot 1.4s infinite; }
.syFha:nth-child(2){ animation-delay:.2s; }
.syFha: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) */
.wsjhIi7k{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.iu5O50{
  border:0; border-radius:999px; padding:8px 12px; background:var(--vq0j-qp); 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(--nengiy-lvmm);
}
.iu5O50:is(:hover,:focus){ transform:translateY(-1px); }
a.iu5O50{ text-decoration:none; display:inline-block; }
a.iu5O50:link, a.iu5O50:visited{ color:#fff; }
a.iu5O50:hover, a.iu5O50:focus{ color:#fff; }

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

/* Footer */
.dsV8k{
  padding:16px; background:var(--ehb-xm3); border-top:1px solid var(--ruo-ot);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.eeZdo{
  flex:1; padding:10px 14px; border:1px solid var(--ruo-ot); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--yej5-of);
  background:var(--zwlc-c4ai); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.eeZdo:focus{ border-color:var(--vq0j-qp); }
.eeZdo::placeholder{ color:var(--tu0-ood); }
.eeZdo.g1z6Lps0{ border-color:#c00; }
.w5srSqv1{
  width:40px; height:40px; min-width:40px; border:none; background:var(--vq0j-qp); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.w5srSqv1:disabled{ opacity:.5; cursor:not-allowed; }
.w5srSqv1:not(:disabled):hover{ transform:scale(1.05); }
.w5srSqv1:not(:disabled):active{ transform:scale(0.95); }
.w5srSqv1:focus{ outline:2px solid var(--vq0j-qp); outline-offset:2px; }
.w5srSqv1 svg{ width:20px; height:20px; }

/* Character Counter */
.ltazWj6x{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--tu0-ood); }
.ltazWj6x.ol9Vff{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.vcE3a{
  align-self:flex-start;
  max-width:75%;
  background: var(--ehb-xm3);
  color: var(--yej5-of);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--nengiy-lvmm);
}
.rouS0g{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.zcoaA1i5.ea4Ty1r{
  background: transparent; color: var(--yej5-of); border-color: var(--ruo-ot);
}
.zcoaA1i5.ea4Ty1r:hover{
  background: var(--vq0j-qp); color:#fff; border-color: var(--vq0j-qp);
}

/* Mobile */
@media (max-width: 768px){
  .rtTz4{ bottom:16px; right:16px; }
  .rtTz4.fv4B8g{ left:16px; }
  .a9lJ9gj{ --nl7u0p-gwg:60px; }
  .yw8Tfz{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--wbq0k-kf) var(--wbq0k-kf) 0 0; transform: translateY(100%);
  }
  .yw8Tfz.l2rOe2w{ transform: translateY(0); }
  .ggmC3v{ padding:20px; }
  .dsV8k{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.rtTz4 :focus-visible{ outline:2px solid var(--vq0j-qp); outline-offset:2px; }

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