/* CSS Variables */
:root {
  --suonp8-xj: #4f46e5;
  --uca-jw: #ffffff;
  --zd5sy-z2: #f9fafb;
  --n4kx-sc: #0f172a;
  --mu4mq8-fp: #6b7280;
  --mtz0a-i5: #e5e7eb;
  --kciv6t-bf8: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --bfqa-xul: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --haaj-bm2: 16px;
  --jeoc-yzh: 56px;
  --o1evu-i6d: 12px;
  --j56ds-wqyi: 999999;
}

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

/* Main Container */
.e1gl7 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--j56ds-wqyi);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--n4kx-sc);
}
.e1gl7.n8jmh9 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.njud { display: flex; flex-direction: column-reverse; gap: var(--o1evu-i6d); align-items: center; }
.rzy92ck {
  width: var(--jeoc-yzh); height: var(--jeoc-yzh); min-width: var(--jeoc-yzh); min-height: var(--jeoc-yzh);
  border-radius: 50%; border: none; background: var(--suonp8-xj); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--kciv6t-bf8);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rzy92ck:hover { transform: scale(1.05); box-shadow: var(--bfqa-xul); }
.rzy92ck:active { transform: scale(0.95); }
.rzy92ck:focus { outline: 2px solid var(--suonp8-xj); outline-offset: 2px; }
.rzy92ck svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rzy92ck.k2y71{ animation:none; }
  .rzy92ck,.ne5f,.cgsvn1so{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.ne5f{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--uca-jw); border-radius: var(--haaj-bm2); box-shadow: var(--bfqa-xul);
  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;
}
.e1gl7.n8jmh9 .ne5f{ right:auto; left:24px; }
.ne5f.t9og{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ws2h6f05{
  padding:16px 20px; background:var(--uca-jw); border-bottom:1px solid var(--mtz0a-i5);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.mjuv{ width:10px; height:10px; border-radius:50%; background:var(--suonp8-xj); flex-shrink:0; }
.wsh4nit{ flex:1; min-width:0; }
.pr74xj{ font-size:16px; font-weight:600; color:var(--n4kx-sc); margin:0 0 2px 0; }
.evuc{ font-size:13px; color:var(--mu4mq8-fp); margin:0; }
.c0esv8s{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--mu4mq8-fp);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.c0esv8s:hover{ background:var(--zd5sy-z2); color:var(--n4kx-sc); }
.c0esv8s:focus{ outline:2px solid var(--suonp8-xj); outline-offset:2px; }
.c0esv8s svg{ width:20px; height:20px; }

/* Body */
.rk8d7{
  flex:1; overflow-y:auto; padding:16px; background:var(--zd5sy-z2);
  display:flex; flex-direction:column; gap:12px;
}
.rk8d7::-webkit-scrollbar{ width:6px; }
.rk8d7::-webkit-scrollbar-track{ background:transparent; }
.rk8d7::-webkit-scrollbar-thumb{ background:var(--mtz0a-i5); border-radius:3px; }
.rk8d7::-webkit-scrollbar-thumb:hover{ background:var(--mu4mq8-fp); }

/* Messages */
.cgsvn1so{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.cgsvn1so.ie4by{ flex-direction:row-reverse; }
.tnc14u42{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.tnc14u42 a{ color:inherit; }
.cgsvn1so.l0x5n0 .tnc14u42{ background:var(--uca-jw); color:var(--n4kx-sc); border-bottom-left-radius:4px; }
.cgsvn1so.ie4by .tnc14u42{ background:var(--suonp8-xj); color:#fff; border-bottom-right-radius:4px; }
.qo7rii03{ font-size:11px; color:var(--mu4mq8-fp); margin-top:4px; display:block; }

/* Typing Indicator */
.ktungwl{
  display:flex; gap:8px; padding:10px 14px; background:var(--uca-jw);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.xvzh{ width:8px; height:8px; border-radius:50%; background:var(--mu4mq8-fp); animation:typingDot 1.4s infinite; }
.xvzh:nth-child(2){ animation-delay:.2s; }
.xvzh: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) */
.q0wyr7u{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.obyuc{
  border:0; border-radius:999px; padding:8px 12px; background:var(--suonp8-xj); 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(--kciv6t-bf8);
}
.obyuc:is(:hover,:focus){ transform:translateY(-1px); }
a.obyuc{ text-decoration:none; display:inline-block; }
a.obyuc:link, a.obyuc:visited{ color:#fff; }
a.obyuc:hover, a.obyuc:focus{ color:#fff; }

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

/* Footer */
.qfl8gq2{
  padding:16px; background:var(--uca-jw); border-top:1px solid var(--mtz0a-i5);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.lfvzk59{
  flex:1; padding:10px 14px; border:1px solid var(--mtz0a-i5); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--n4kx-sc);
  background:var(--zd5sy-z2); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.lfvzk59:focus{ border-color:var(--suonp8-xj); }
.lfvzk59::placeholder{ color:var(--mu4mq8-fp); }
.lfvzk59.fviebm{ border-color:#c00; }
.aylori{
  width:40px; height:40px; min-width:40px; border:none; background:var(--suonp8-xj); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.aylori:disabled{ opacity:.5; cursor:not-allowed; }
.aylori:not(:disabled):hover{ transform:scale(1.05); }
.aylori:not(:disabled):active{ transform:scale(0.95); }
.aylori:focus{ outline:2px solid var(--suonp8-xj); outline-offset:2px; }
.aylori svg{ width:20px; height:20px; }

/* Character Counter */
.clqz{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--mu4mq8-fp); }
.clqz.qo7cvwbl{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.k8uw6ei{
  align-self:flex-start;
  max-width:75%;
  background: var(--uca-jw);
  color: var(--n4kx-sc);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--kciv6t-bf8);
}
.lccgvvf{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.tabdz.sttye2ye{
  background: transparent; color: var(--n4kx-sc); border-color: var(--mtz0a-i5);
}
.tabdz.sttye2ye:hover{
  background: var(--suonp8-xj); color:#fff; border-color: var(--suonp8-xj);
}

/* Mobile */
@media (max-width: 768px){
  .e1gl7{ bottom:16px; right:16px; }
  .e1gl7.n8jmh9{ left:16px; }
  .rzy92ck{ --jeoc-yzh:60px; }
  .ne5f{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--haaj-bm2) var(--haaj-bm2) 0 0; transform: translateY(100%);
  }
  .ne5f.t9og{ transform: translateY(0); }
  .ws2h6f05{ padding:20px; }
  .qfl8gq2{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.e1gl7 :focus-visible{ outline:2px solid var(--suonp8-xj); outline-offset:2px; }

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