/* CSS Variables */
:root {
  --f0am-wk: #4f46e5;
  --tq29h-u4: #ffffff;
  --njdj16-tjsc: #f9fafb;
  --hz47my-bhr: #0f172a;
  --wyuwb-usyz: #6b7280;
  --hdv1-e7n: #e5e7eb;
  --aayc-norp: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --aih-i0g3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ityu0d-hgk: 16px;
  --u64ma-hvt: 56px;
  --h97p-vq37: 12px;
  --f7c33q-ik75: 999999;
}

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

/* Main Container */
.geiaaq {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--f7c33q-ik75);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--hz47my-bhr);
}
.geiaaq.lu635yq { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.n1adylf41 { display: flex; flex-direction: column-reverse; gap: var(--h97p-vq37); align-items: center; }
.kawlk7k3zg {
  width: var(--u64ma-hvt); height: var(--u64ma-hvt); min-width: var(--u64ma-hvt); min-height: var(--u64ma-hvt);
  border-radius: 50%; border: none; background: var(--f0am-wk); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--aayc-norp);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.kawlk7k3zg:hover { transform: scale(1.05); box-shadow: var(--aih-i0g3); }
.kawlk7k3zg:active { transform: scale(0.95); }
.kawlk7k3zg:focus { outline: 2px solid var(--f0am-wk); outline-offset: 2px; }
.kawlk7k3zg svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .kawlk7k3zg.kayvqjq{ animation:none; }
  .kawlk7k3zg,.rvfu08ax,.cgz_zn8j0{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.rvfu08ax{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--tq29h-u4); border-radius: var(--ityu0d-hgk); box-shadow: var(--aih-i0g3);
  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;
}
.geiaaq.lu635yq .rvfu08ax{ right:auto; left:24px; }
.rvfu08ax.ut1oq5acwq{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.vtu__pro{
  padding:16px 20px; background:var(--tq29h-u4); border-bottom:1px solid var(--hdv1-e7n);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.hco6bocdpf{ width:10px; height:10px; border-radius:50%; background:var(--f0am-wk); flex-shrink:0; }
.p6di6jqs{ flex:1; min-width:0; }
.wd2orp{ font-size:16px; font-weight:600; color:var(--hz47my-bhr); margin:0 0 2px 0; }
.e_0fjs{ font-size:13px; color:var(--wyuwb-usyz); margin:0; }
.ofiwt9de6{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--wyuwb-usyz);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ofiwt9de6:hover{ background:var(--njdj16-tjsc); color:var(--hz47my-bhr); }
.ofiwt9de6:focus{ outline:2px solid var(--f0am-wk); outline-offset:2px; }
.ofiwt9de6 svg{ width:20px; height:20px; }

/* Body */
.q8ui1vc{
  flex:1; overflow-y:auto; padding:16px; background:var(--njdj16-tjsc);
  display:flex; flex-direction:column; gap:12px;
}
.q8ui1vc::-webkit-scrollbar{ width:6px; }
.q8ui1vc::-webkit-scrollbar-track{ background:transparent; }
.q8ui1vc::-webkit-scrollbar-thumb{ background:var(--hdv1-e7n); border-radius:3px; }
.q8ui1vc::-webkit-scrollbar-thumb:hover{ background:var(--wyuwb-usyz); }

/* Messages */
.cgz_zn8j0{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.cgz_zn8j0.ig0_zdzy5f{ flex-direction:row-reverse; }
.g162o3u{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.g162o3u a{ color:inherit; }
.cgz_zn8j0.oqghsgu .g162o3u{ background:var(--tq29h-u4); color:var(--hz47my-bhr); border-bottom-left-radius:4px; }
.cgz_zn8j0.ig0_zdzy5f .g162o3u{ background:var(--f0am-wk); color:#fff; border-bottom-right-radius:4px; }
.az5s2k4{ font-size:11px; color:var(--wyuwb-usyz); margin-top:4px; display:block; }

/* Typing Indicator */
.uh_ej2b93{
  display:flex; gap:8px; padding:10px 14px; background:var(--tq29h-u4);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.si9p9rhl0{ width:8px; height:8px; border-radius:50%; background:var(--wyuwb-usyz); animation:typingDot 1.4s infinite; }
.si9p9rhl0:nth-child(2){ animation-delay:.2s; }
.si9p9rhl0: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) */
.jliue4ydz{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.kwpvcznto9{
  border:0; border-radius:999px; padding:8px 12px; background:var(--f0am-wk); 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(--aayc-norp);
}
.kwpvcznto9:is(:hover,:focus){ transform:translateY(-1px); }
a.kwpvcznto9{ text-decoration:none; display:inline-block; }
a.kwpvcznto9:link, a.kwpvcznto9:visited{ color:#fff; }
a.kwpvcznto9:hover, a.kwpvcznto9:focus{ color:#fff; }

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

/* Footer */
.agknqq{
  padding:16px; background:var(--tq29h-u4); border-top:1px solid var(--hdv1-e7n);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.m5uggk84o{
  flex:1; padding:10px 14px; border:1px solid var(--hdv1-e7n); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--hz47my-bhr);
  background:var(--njdj16-tjsc); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.m5uggk84o:focus{ border-color:var(--f0am-wk); }
.m5uggk84o::placeholder{ color:var(--wyuwb-usyz); }
.m5uggk84o.mehz3ptms0{ border-color:#c00; }
.v1802_37{
  width:40px; height:40px; min-width:40px; border:none; background:var(--f0am-wk); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.v1802_37:disabled{ opacity:.5; cursor:not-allowed; }
.v1802_37:not(:disabled):hover{ transform:scale(1.05); }
.v1802_37:not(:disabled):active{ transform:scale(0.95); }
.v1802_37:focus{ outline:2px solid var(--f0am-wk); outline-offset:2px; }
.v1802_37 svg{ width:20px; height:20px; }

/* Character Counter */
.zgyi_ulcd{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--wyuwb-usyz); }
.zgyi_ulcd.ljij7noo{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.v9qgxd{
  align-self:flex-start;
  max-width:75%;
  background: var(--tq29h-u4);
  color: var(--hz47my-bhr);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--aayc-norp);
}
.a5tj0ad{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.qwqeihgef3.fjnqdrz{
  background: transparent; color: var(--hz47my-bhr); border-color: var(--hdv1-e7n);
}
.qwqeihgef3.fjnqdrz:hover{
  background: var(--f0am-wk); color:#fff; border-color: var(--f0am-wk);
}

/* Mobile */
@media (max-width: 768px){
  .geiaaq{ bottom:16px; right:16px; }
  .geiaaq.lu635yq{ left:16px; }
  .kawlk7k3zg{ --u64ma-hvt:60px; }
  .rvfu08ax{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ityu0d-hgk) var(--ityu0d-hgk) 0 0; transform: translateY(100%);
  }
  .rvfu08ax.ut1oq5acwq{ transform: translateY(0); }
  .vtu__pro{ padding:20px; }
  .agknqq{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.geiaaq :focus-visible{ outline:2px solid var(--f0am-wk); outline-offset:2px; }

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