/* CSS Variables */
:root {
  --xibnp-izx: #4f46e5;
  --e2v-t26z: #ffffff;
  --p74f-xrh: #f9fafb;
  --f12p-qkvl: #0f172a;
  --xqi4h-utdu: #6b7280;
  --e9joj3-drc: #e5e7eb;
  --m3pni-izk7: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --qtj3w-c6s7: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --edo-e2sm: 16px;
  --rsun-qi: 56px;
  --pct50-kxc: 12px;
  --fdlko-z4: 999999;
}

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

/* Main Container */
.fquTl8f {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--fdlko-z4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--f12p-qkvl);
}
.fquTl8f.xqxO73a { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.s5qlJk31 { display: flex; flex-direction: column-reverse; gap: var(--pct50-kxc); align-items: center; }
.nw1V90 {
  width: var(--rsun-qi); height: var(--rsun-qi); min-width: var(--rsun-qi); min-height: var(--rsun-qi);
  border-radius: 50%; border: none; background: var(--xibnp-izx); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--m3pni-izk7);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.nw1V90:hover { transform: scale(1.05); box-shadow: var(--qtj3w-c6s7); }
.nw1V90:active { transform: scale(0.95); }
.nw1V90:focus { outline: 2px solid var(--xibnp-izx); outline-offset: 2px; }
.nw1V90 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nw1V90.ps5Irh{ animation:none; }
  .nw1V90,.kboLem,.w4Lrn{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.kboLem{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--e2v-t26z); border-radius: var(--edo-e2sm); box-shadow: var(--qtj3w-c6s7);
  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;
}
.fquTl8f.xqxO73a .kboLem{ right:auto; left:24px; }
.kboLem.jdC3w{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.srYpt{
  padding:16px 20px; background:var(--e2v-t26z); border-bottom:1px solid var(--e9joj3-drc);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.b7pW3cs{ width:10px; height:10px; border-radius:50%; background:var(--xibnp-izx); flex-shrink:0; }
.t31Oax{ flex:1; min-width:0; }
.ctjDnye{ font-size:16px; font-weight:600; color:var(--f12p-qkvl); margin:0 0 2px 0; }
.nlL2g{ font-size:13px; color:var(--xqi4h-utdu); margin:0; }
.jiw2H1tc{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--xqi4h-utdu);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jiw2H1tc:hover{ background:var(--p74f-xrh); color:var(--f12p-qkvl); }
.jiw2H1tc:focus{ outline:2px solid var(--xibnp-izx); outline-offset:2px; }
.jiw2H1tc svg{ width:20px; height:20px; }

/* Body */
.umIqc{
  flex:1; overflow-y:auto; padding:16px; background:var(--p74f-xrh);
  display:flex; flex-direction:column; gap:12px;
}
.umIqc::-webkit-scrollbar{ width:6px; }
.umIqc::-webkit-scrollbar-track{ background:transparent; }
.umIqc::-webkit-scrollbar-thumb{ background:var(--e9joj3-drc); border-radius:3px; }
.umIqc::-webkit-scrollbar-thumb:hover{ background:var(--xqi4h-utdu); }

/* Messages */
.w4Lrn{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.w4Lrn.poMbj{ flex-direction:row-reverse; }
.egpIfq{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.egpIfq a{ color:inherit; }
.w4Lrn.d3Imv .egpIfq{ background:var(--e2v-t26z); color:var(--f12p-qkvl); border-bottom-left-radius:4px; }
.w4Lrn.poMbj .egpIfq{ background:var(--xibnp-izx); color:#fff; border-bottom-right-radius:4px; }
.fkaQnai{ font-size:11px; color:var(--xqi4h-utdu); margin-top:4px; display:block; }

/* Typing Indicator */
.n7Qnl{
  display:flex; gap:8px; padding:10px 14px; background:var(--e2v-t26z);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.qtzWn9t{ width:8px; height:8px; border-radius:50%; background:var(--xqi4h-utdu); animation:typingDot 1.4s infinite; }
.qtzWn9t:nth-child(2){ animation-delay:.2s; }
.qtzWn9t: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) */
.whoZ26p{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pa5fTfeq{
  border:0; border-radius:999px; padding:8px 12px; background:var(--xibnp-izx); 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(--m3pni-izk7);
}
.pa5fTfeq:is(:hover,:focus){ transform:translateY(-1px); }
a.pa5fTfeq{ text-decoration:none; display:inline-block; }
a.pa5fTfeq:link, a.pa5fTfeq:visited{ color:#fff; }
a.pa5fTfeq:hover, a.pa5fTfeq:focus{ color:#fff; }

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

/* Footer */
.k09Hf2x{
  padding:16px; background:var(--e2v-t26z); border-top:1px solid var(--e9joj3-drc);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.umk8Knnu{
  flex:1; padding:10px 14px; border:1px solid var(--e9joj3-drc); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--f12p-qkvl);
  background:var(--p74f-xrh); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.umk8Knnu:focus{ border-color:var(--xibnp-izx); }
.umk8Knnu::placeholder{ color:var(--xqi4h-utdu); }
.umk8Knnu.ehNq6{ border-color:#c00; }
.h4rM0u{
  width:40px; height:40px; min-width:40px; border:none; background:var(--xibnp-izx); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.h4rM0u:disabled{ opacity:.5; cursor:not-allowed; }
.h4rM0u:not(:disabled):hover{ transform:scale(1.05); }
.h4rM0u:not(:disabled):active{ transform:scale(0.95); }
.h4rM0u:focus{ outline:2px solid var(--xibnp-izx); outline-offset:2px; }
.h4rM0u svg{ width:20px; height:20px; }

/* Character Counter */
.vijMfr{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--xqi4h-utdu); }
.vijMfr.lc74Pdd1{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.siaK5h{
  align-self:flex-start;
  max-width:75%;
  background: var(--e2v-t26z);
  color: var(--f12p-qkvl);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--m3pni-izk7);
}
.c10Boi{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ba9Ny6.ulwPgb{
  background: transparent; color: var(--f12p-qkvl); border-color: var(--e9joj3-drc);
}
.ba9Ny6.ulwPgb:hover{
  background: var(--xibnp-izx); color:#fff; border-color: var(--xibnp-izx);
}

/* Mobile */
@media (max-width: 768px){
  .fquTl8f{ bottom:16px; right:16px; }
  .fquTl8f.xqxO73a{ left:16px; }
  .nw1V90{ --rsun-qi:60px; }
  .kboLem{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--edo-e2sm) var(--edo-e2sm) 0 0; transform: translateY(100%);
  }
  .kboLem.jdC3w{ transform: translateY(0); }
  .srYpt{ padding:20px; }
  .k09Hf2x{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.fquTl8f :focus-visible{ outline:2px solid var(--xibnp-izx); outline-offset:2px; }

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