/* CSS Variables */
:root {
  --xef-vc7p: #4f46e5;
  --i5u77-fwyy: #ffffff;
  --sx4w-yd6e: #f9fafb;
  --fye-cb90: #0f172a;
  --e6z-sj: #6b7280;
  --p66ba-ev: #e5e7eb;
  --xp2-atb: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --b1w5-uc: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ieisw6-um: 16px;
  --g8w-jo3: 56px;
  --stesg0-bs4f: 12px;
  --npj1g-jj: 999999;
}

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

/* Main Container */
.ze49bd {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--npj1g-jj);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--fye-cb90);
}
.ze49bd.nvuzm { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.llpt3 { display: flex; flex-direction: column-reverse; gap: var(--stesg0-bs4f); align-items: center; }
.d1s8 {
  width: var(--g8w-jo3); height: var(--g8w-jo3); min-width: var(--g8w-jo3); min-height: var(--g8w-jo3);
  border-radius: 50%; border: none; background: var(--xef-vc7p); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--xp2-atb);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.d1s8:hover { transform: scale(1.05); box-shadow: var(--b1w5-uc); }
.d1s8:active { transform: scale(0.95); }
.d1s8:focus { outline: 2px solid var(--xef-vc7p); outline-offset: 2px; }
.d1s8 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .d1s8.fscb1{ animation:none; }
  .d1s8,.afyvwv,.lp32t{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.afyvwv{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--i5u77-fwyy); border-radius: var(--ieisw6-um); box-shadow: var(--b1w5-uc);
  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;
}
.ze49bd.nvuzm .afyvwv{ right:auto; left:24px; }
.afyvwv.fmwt6f{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.wh4nvy{
  padding:16px 20px; background:var(--i5u77-fwyy); border-bottom:1px solid var(--p66ba-ev);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.cq7un{ width:10px; height:10px; border-radius:50%; background:var(--xef-vc7p); flex-shrink:0; }
.c42v{ flex:1; min-width:0; }
.zqff{ font-size:16px; font-weight:600; color:var(--fye-cb90); margin:0 0 2px 0; }
.yrf7{ font-size:13px; color:var(--e6z-sj); margin:0; }
.tmqehe{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--e6z-sj);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.tmqehe:hover{ background:var(--sx4w-yd6e); color:var(--fye-cb90); }
.tmqehe:focus{ outline:2px solid var(--xef-vc7p); outline-offset:2px; }
.tmqehe svg{ width:20px; height:20px; }

/* Body */
.v12s{
  flex:1; overflow-y:auto; padding:16px; background:var(--sx4w-yd6e);
  display:flex; flex-direction:column; gap:12px;
}
.v12s::-webkit-scrollbar{ width:6px; }
.v12s::-webkit-scrollbar-track{ background:transparent; }
.v12s::-webkit-scrollbar-thumb{ background:var(--p66ba-ev); border-radius:3px; }
.v12s::-webkit-scrollbar-thumb:hover{ background:var(--e6z-sj); }

/* Messages */
.lp32t{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.lp32t.ldht{ flex-direction:row-reverse; }
.yv0u7e{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.yv0u7e a{ color:inherit; }
.lp32t.ejgu .yv0u7e{ background:var(--i5u77-fwyy); color:var(--fye-cb90); border-bottom-left-radius:4px; }
.lp32t.ldht .yv0u7e{ background:var(--xef-vc7p); color:#fff; border-bottom-right-radius:4px; }
.lt5gg{ font-size:11px; color:var(--e6z-sj); margin-top:4px; display:block; }

/* Typing Indicator */
.oeaq7{
  display:flex; gap:8px; padding:10px 14px; background:var(--i5u77-fwyy);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.i1zsk{ width:8px; height:8px; border-radius:50%; background:var(--e6z-sj); animation:typingDot 1.4s infinite; }
.i1zsk:nth-child(2){ animation-delay:.2s; }
.i1zsk: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) */
.t9ssp9{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.rjlmi{
  border:0; border-radius:999px; padding:8px 12px; background:var(--xef-vc7p); 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(--xp2-atb);
}
.rjlmi:is(:hover,:focus){ transform:translateY(-1px); }
a.rjlmi{ text-decoration:none; display:inline-block; }
a.rjlmi:link, a.rjlmi:visited{ color:#fff; }
a.rjlmi:hover, a.rjlmi:focus{ color:#fff; }

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

/* Footer */
.z0le3{
  padding:16px; background:var(--i5u77-fwyy); border-top:1px solid var(--p66ba-ev);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.h5ydft{
  flex:1; padding:10px 14px; border:1px solid var(--p66ba-ev); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--fye-cb90);
  background:var(--sx4w-yd6e); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.h5ydft:focus{ border-color:var(--xef-vc7p); }
.h5ydft::placeholder{ color:var(--e6z-sj); }
.h5ydft.mwatg5{ border-color:#c00; }
.k7g82{
  width:40px; height:40px; min-width:40px; border:none; background:var(--xef-vc7p); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.k7g82:disabled{ opacity:.5; cursor:not-allowed; }
.k7g82:not(:disabled):hover{ transform:scale(1.05); }
.k7g82:not(:disabled):active{ transform:scale(0.95); }
.k7g82:focus{ outline:2px solid var(--xef-vc7p); outline-offset:2px; }
.k7g82 svg{ width:20px; height:20px; }

/* Character Counter */
.nbt4{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--e6z-sj); }
.nbt4.jxnk{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.zula84{
  align-self:flex-start;
  max-width:75%;
  background: var(--i5u77-fwyy);
  color: var(--fye-cb90);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--xp2-atb);
}
.x77v{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.enscim.n9bsap{
  background: transparent; color: var(--fye-cb90); border-color: var(--p66ba-ev);
}
.enscim.n9bsap:hover{
  background: var(--xef-vc7p); color:#fff; border-color: var(--xef-vc7p);
}

/* Mobile */
@media (max-width: 768px){
  .ze49bd{ bottom:16px; right:16px; }
  .ze49bd.nvuzm{ left:16px; }
  .d1s8{ --g8w-jo3:60px; }
  .afyvwv{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ieisw6-um) var(--ieisw6-um) 0 0; transform: translateY(100%);
  }
  .afyvwv.fmwt6f{ transform: translateY(0); }
  .wh4nvy{ padding:20px; }
  .z0le3{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ze49bd :focus-visible{ outline:2px solid var(--xef-vc7p); outline-offset:2px; }

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