/* CSS Variables */
:root {
  --skie-i8: #4f46e5;
  --frt-si6: #ffffff;
  --g3i-e3md: #f9fafb;
  --ioc-yq4: #0f172a;
  --yupu-ajpq: #6b7280;
  --n31lr-r6ug: #e5e7eb;
  --sq2qt-dw8v: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --g4m-e2w: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --aw4n6m-yq: 16px;
  --biqv-el: 56px;
  --r6lcqv-wkz9: 12px;
  --d5y9og-wt: 999999;
}

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

/* Main Container */
.g5qqd0ld {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--d5y9og-wt);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ioc-yq4);
}
.g5qqd0ld.aqpfsy { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.wtphvzha { display: flex; flex-direction: column-reverse; gap: var(--r6lcqv-wkz9); align-items: center; }
.t4lrd9zxbt {
  width: var(--biqv-el); height: var(--biqv-el); min-width: var(--biqv-el); min-height: var(--biqv-el);
  border-radius: 50%; border: none; background: var(--skie-i8); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sq2qt-dw8v);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.t4lrd9zxbt:hover { transform: scale(1.05); box-shadow: var(--g4m-e2w); }
.t4lrd9zxbt:active { transform: scale(0.95); }
.t4lrd9zxbt:focus { outline: 2px solid var(--skie-i8); outline-offset: 2px; }
.t4lrd9zxbt svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .t4lrd9zxbt.hihdvvm4g{ animation:none; }
  .t4lrd9zxbt,.de7zn6tr,.e4zbxt{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.de7zn6tr{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--frt-si6); border-radius: var(--aw4n6m-yq); box-shadow: var(--g4m-e2w);
  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;
}
.g5qqd0ld.aqpfsy .de7zn6tr{ right:auto; left:24px; }
.de7zn6tr.rw7eumru1n{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ljgs3d690k{
  padding:16px 20px; background:var(--frt-si6); border-bottom:1px solid var(--n31lr-r6ug);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.sbteou4ign{ width:10px; height:10px; border-radius:50%; background:var(--skie-i8); flex-shrink:0; }
.b0hlnv{ flex:1; min-width:0; }
.bq495kwv{ font-size:16px; font-weight:600; color:var(--ioc-yq4); margin:0 0 2px 0; }
.njahwkmy{ font-size:13px; color:var(--yupu-ajpq); margin:0; }
.saqqsl1av{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--yupu-ajpq);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.saqqsl1av:hover{ background:var(--g3i-e3md); color:var(--ioc-yq4); }
.saqqsl1av:focus{ outline:2px solid var(--skie-i8); outline-offset:2px; }
.saqqsl1av svg{ width:20px; height:20px; }

/* Body */
.mzlgc24q{
  flex:1; overflow-y:auto; padding:16px; background:var(--g3i-e3md);
  display:flex; flex-direction:column; gap:12px;
}
.mzlgc24q::-webkit-scrollbar{ width:6px; }
.mzlgc24q::-webkit-scrollbar-track{ background:transparent; }
.mzlgc24q::-webkit-scrollbar-thumb{ background:var(--n31lr-r6ug); border-radius:3px; }
.mzlgc24q::-webkit-scrollbar-thumb:hover{ background:var(--yupu-ajpq); }

/* Messages */
.e4zbxt{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.e4zbxt.y4l14txs1c{ flex-direction:row-reverse; }
.rfva2t{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.rfva2t a{ color:inherit; }
.e4zbxt.pt9b1d2 .rfva2t{ background:var(--frt-si6); color:var(--ioc-yq4); border-bottom-left-radius:4px; }
.e4zbxt.y4l14txs1c .rfva2t{ background:var(--skie-i8); color:#fff; border-bottom-right-radius:4px; }
.g9g6abkow{ font-size:11px; color:var(--yupu-ajpq); margin-top:4px; display:block; }

/* Typing Indicator */
.z9qtgaqe{
  display:flex; gap:8px; padding:10px 14px; background:var(--frt-si6);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.kre0os52_5{ width:8px; height:8px; border-radius:50%; background:var(--yupu-ajpq); animation:typingDot 1.4s infinite; }
.kre0os52_5:nth-child(2){ animation-delay:.2s; }
.kre0os52_5: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) */
.vs7uiez{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.wno0l_yp{
  border:0; border-radius:999px; padding:8px 12px; background:var(--skie-i8); 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(--sq2qt-dw8v);
}
.wno0l_yp:is(:hover,:focus){ transform:translateY(-1px); }
a.wno0l_yp{ text-decoration:none; display:inline-block; }
a.wno0l_yp:link, a.wno0l_yp:visited{ color:#fff; }
a.wno0l_yp:hover, a.wno0l_yp:focus{ color:#fff; }

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

/* Footer */
.l2ub9lz8{
  padding:16px; background:var(--frt-si6); border-top:1px solid var(--n31lr-r6ug);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.rjeaxy{
  flex:1; padding:10px 14px; border:1px solid var(--n31lr-r6ug); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ioc-yq4);
  background:var(--g3i-e3md); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.rjeaxy:focus{ border-color:var(--skie-i8); }
.rjeaxy::placeholder{ color:var(--yupu-ajpq); }
.rjeaxy.qyerdn73{ border-color:#c00; }
.a__tx001{
  width:40px; height:40px; min-width:40px; border:none; background:var(--skie-i8); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.a__tx001:disabled{ opacity:.5; cursor:not-allowed; }
.a__tx001:not(:disabled):hover{ transform:scale(1.05); }
.a__tx001:not(:disabled):active{ transform:scale(0.95); }
.a__tx001:focus{ outline:2px solid var(--skie-i8); outline-offset:2px; }
.a__tx001 svg{ width:20px; height:20px; }

/* Character Counter */
.hv34bsqbxs{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--yupu-ajpq); }
.hv34bsqbxs.o2rsmmjyc9{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.tpdf6dizg4{
  align-self:flex-start;
  max-width:75%;
  background: var(--frt-si6);
  color: var(--ioc-yq4);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--sq2qt-dw8v);
}
.ruznre{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.c4croy.llgpmt{
  background: transparent; color: var(--ioc-yq4); border-color: var(--n31lr-r6ug);
}
.c4croy.llgpmt:hover{
  background: var(--skie-i8); color:#fff; border-color: var(--skie-i8);
}

/* Mobile */
@media (max-width: 768px){
  .g5qqd0ld{ bottom:16px; right:16px; }
  .g5qqd0ld.aqpfsy{ left:16px; }
  .t4lrd9zxbt{ --biqv-el:60px; }
  .de7zn6tr{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--aw4n6m-yq) var(--aw4n6m-yq) 0 0; transform: translateY(100%);
  }
  .de7zn6tr.rw7eumru1n{ transform: translateY(0); }
  .ljgs3d690k{ padding:20px; }
  .l2ub9lz8{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.g5qqd0ld :focus-visible{ outline:2px solid var(--skie-i8); outline-offset:2px; }

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