/* CSS Variables */
:root {
  --qsnd-lt7: #4f46e5;
  --czhbzv-havu: #ffffff;
  --dqi-lbc: #f9fafb;
  --mkza-nqga: #0f172a;
  --t74w-z5i: #6b7280;
  --pscz-o3g5: #e5e7eb;
  --wafzi-i4a: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --sk94q-oe3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --y62k9r-dd: 16px;
  --autn-ht: 56px;
  --y6mr-l1: 12px;
  --pw9-dor5: 999999;
}

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

/* Main Container */
.uxUk3 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--pw9-dor5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--mkza-nqga);
}
.uxUk3.i2wWvq { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.sbvmFgw2 { display: flex; flex-direction: column-reverse; gap: var(--y6mr-l1); align-items: center; }
.gesEeaq {
  width: var(--autn-ht); height: var(--autn-ht); min-width: var(--autn-ht); min-height: var(--autn-ht);
  border-radius: 50%; border: none; background: var(--qsnd-lt7); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--wafzi-i4a);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.gesEeaq:hover { transform: scale(1.05); box-shadow: var(--sk94q-oe3); }
.gesEeaq:active { transform: scale(0.95); }
.gesEeaq:focus { outline: 2px solid var(--qsnd-lt7); outline-offset: 2px; }
.gesEeaq svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .gesEeaq.k8En3{ animation:none; }
  .gesEeaq,.ruLji,.yqHwp{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.ruLji{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--czhbzv-havu); border-radius: var(--y62k9r-dd); box-shadow: var(--sk94q-oe3);
  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;
}
.uxUk3.i2wWvq .ruLji{ right:auto; left:24px; }
.ruLji.otxTl77{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.zg8Gc9j{
  padding:16px 20px; background:var(--czhbzv-havu); border-bottom:1px solid var(--pscz-o3g5);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.g8nDhf{ width:10px; height:10px; border-radius:50%; background:var(--qsnd-lt7); flex-shrink:0; }
.hgFk7{ flex:1; min-width:0; }
.yafRs13{ font-size:16px; font-weight:600; color:var(--mkza-nqga); margin:0 0 2px 0; }
.esnHc2{ font-size:13px; color:var(--t74w-z5i); margin:0; }
.l7H96{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--t74w-z5i);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.l7H96:hover{ background:var(--dqi-lbc); color:var(--mkza-nqga); }
.l7H96:focus{ outline:2px solid var(--qsnd-lt7); outline-offset:2px; }
.l7H96 svg{ width:20px; height:20px; }

/* Body */
.ygM2z{
  flex:1; overflow-y:auto; padding:16px; background:var(--dqi-lbc);
  display:flex; flex-direction:column; gap:12px;
}
.ygM2z::-webkit-scrollbar{ width:6px; }
.ygM2z::-webkit-scrollbar-track{ background:transparent; }
.ygM2z::-webkit-scrollbar-thumb{ background:var(--pscz-o3g5); border-radius:3px; }
.ygM2z::-webkit-scrollbar-thumb:hover{ background:var(--t74w-z5i); }

/* Messages */
.yqHwp{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.yqHwp.sqtTok{ flex-direction:row-reverse; }
.zvEjm{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.zvEjm a{ color:inherit; }
.yqHwp.b0Ztj .zvEjm{ background:var(--czhbzv-havu); color:var(--mkza-nqga); border-bottom-left-radius:4px; }
.yqHwp.sqtTok .zvEjm{ background:var(--qsnd-lt7); color:#fff; border-bottom-right-radius:4px; }
.eu9Cdsw{ font-size:11px; color:var(--t74w-z5i); margin-top:4px; display:block; }

/* Typing Indicator */
.fcSie{
  display:flex; gap:8px; padding:10px 14px; background:var(--czhbzv-havu);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.k68T6gk{ width:8px; height:8px; border-radius:50%; background:var(--t74w-z5i); animation:typingDot 1.4s infinite; }
.k68T6gk:nth-child(2){ animation-delay:.2s; }
.k68T6gk: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) */
.ttvPenx{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.e2U09{
  border:0; border-radius:999px; padding:8px 12px; background:var(--qsnd-lt7); 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(--wafzi-i4a);
}
.e2U09:is(:hover,:focus){ transform:translateY(-1px); }
a.e2U09{ text-decoration:none; display:inline-block; }
a.e2U09:link, a.e2U09:visited{ color:#fff; }
a.e2U09:hover, a.e2U09:focus{ color:#fff; }

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

/* Footer */
.l8Mpk{
  padding:16px; background:var(--czhbzv-havu); border-top:1px solid var(--pscz-o3g5);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.sbxEab7{
  flex:1; padding:10px 14px; border:1px solid var(--pscz-o3g5); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--mkza-nqga);
  background:var(--dqi-lbc); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.sbxEab7:focus{ border-color:var(--qsnd-lt7); }
.sbxEab7::placeholder{ color:var(--t74w-z5i); }
.sbxEab7.m4Ns4{ border-color:#c00; }
.zv0Ai3{
  width:40px; height:40px; min-width:40px; border:none; background:var(--qsnd-lt7); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.zv0Ai3:disabled{ opacity:.5; cursor:not-allowed; }
.zv0Ai3:not(:disabled):hover{ transform:scale(1.05); }
.zv0Ai3:not(:disabled):active{ transform:scale(0.95); }
.zv0Ai3:focus{ outline:2px solid var(--qsnd-lt7); outline-offset:2px; }
.zv0Ai3 svg{ width:20px; height:20px; }

/* Character Counter */
.ofoLa3{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--t74w-z5i); }
.ofoLa3.ohsMga{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.nfpY5n{
  align-self:flex-start;
  max-width:75%;
  background: var(--czhbzv-havu);
  color: var(--mkza-nqga);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--wafzi-i4a);
}
.clzMqk{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.p0L04.m69kJd80{
  background: transparent; color: var(--mkza-nqga); border-color: var(--pscz-o3g5);
}
.p0L04.m69kJd80:hover{
  background: var(--qsnd-lt7); color:#fff; border-color: var(--qsnd-lt7);
}

/* Mobile */
@media (max-width: 768px){
  .uxUk3{ bottom:16px; right:16px; }
  .uxUk3.i2wWvq{ left:16px; }
  .gesEeaq{ --autn-ht:60px; }
  .ruLji{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--y62k9r-dd) var(--y62k9r-dd) 0 0; transform: translateY(100%);
  }
  .ruLji.otxTl77{ transform: translateY(0); }
  .zg8Gc9j{ padding:20px; }
  .l8Mpk{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.uxUk3 :focus-visible{ outline:2px solid var(--qsnd-lt7); outline-offset:2px; }

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