/* CSS Variables */
:root {
  --u128-mt: #4f46e5;
  --p8z-wnp: #ffffff;
  --tf8e-ob9z: #f9fafb;
  --l2r5-vr: #0f172a;
  --mljj-oxi: #6b7280;
  --jk3-uvk0: #e5e7eb;
  --rgetd-zt: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --lcovf-t275: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ao6-i0: 16px;
  --wyth9-ny6: 56px;
  --v3f-ey1p: 12px;
  --en76t-rlh3: 999999;
}

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

/* Main Container */
.qp_q9ikt {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--en76t-rlh3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--l2r5-vr);
}
.qp_q9ikt.km6bno { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.mb_qj0 { display: flex; flex-direction: column-reverse; gap: var(--v3f-ey1p); align-items: center; }
.ptkqvxx {
  width: var(--wyth9-ny6); height: var(--wyth9-ny6); min-width: var(--wyth9-ny6); min-height: var(--wyth9-ny6);
  border-radius: 50%; border: none; background: var(--u128-mt); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--rgetd-zt);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ptkqvxx:hover { transform: scale(1.05); box-shadow: var(--lcovf-t275); }
.ptkqvxx:active { transform: scale(0.95); }
.ptkqvxx:focus { outline: 2px solid var(--u128-mt); outline-offset: 2px; }
.ptkqvxx svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ptkqvxx.ebdzjj{ animation:none; }
  .ptkqvxx,.o2czdj3u,.tsre2i{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.o2czdj3u{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--p8z-wnp); border-radius: var(--ao6-i0); box-shadow: var(--lcovf-t275);
  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;
}
.qp_q9ikt.km6bno .o2czdj3u{ right:auto; left:24px; }
.o2czdj3u.ajgt232{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.p3z04o01pq{
  padding:16px 20px; background:var(--p8z-wnp); border-bottom:1px solid var(--jk3-uvk0);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.s7ahdz40{ width:10px; height:10px; border-radius:50%; background:var(--u128-mt); flex-shrink:0; }
.qgtid92b{ flex:1; min-width:0; }
.fl5e1zr2{ font-size:16px; font-weight:600; color:var(--l2r5-vr); margin:0 0 2px 0; }
.ddkux7g6i{ font-size:13px; color:var(--mljj-oxi); margin:0; }
.zshwzs2{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--mljj-oxi);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.zshwzs2:hover{ background:var(--tf8e-ob9z); color:var(--l2r5-vr); }
.zshwzs2:focus{ outline:2px solid var(--u128-mt); outline-offset:2px; }
.zshwzs2 svg{ width:20px; height:20px; }

/* Body */
.eem_kf9d{
  flex:1; overflow-y:auto; padding:16px; background:var(--tf8e-ob9z);
  display:flex; flex-direction:column; gap:12px;
}
.eem_kf9d::-webkit-scrollbar{ width:6px; }
.eem_kf9d::-webkit-scrollbar-track{ background:transparent; }
.eem_kf9d::-webkit-scrollbar-thumb{ background:var(--jk3-uvk0); border-radius:3px; }
.eem_kf9d::-webkit-scrollbar-thumb:hover{ background:var(--mljj-oxi); }

/* Messages */
.tsre2i{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.tsre2i.egexba{ flex-direction:row-reverse; }
.mox1n5xbo8{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.mox1n5xbo8 a{ color:inherit; }
.tsre2i.poyz8ynkg .mox1n5xbo8{ background:var(--p8z-wnp); color:var(--l2r5-vr); border-bottom-left-radius:4px; }
.tsre2i.egexba .mox1n5xbo8{ background:var(--u128-mt); color:#fff; border-bottom-right-radius:4px; }
.zl9bu7ns{ font-size:11px; color:var(--mljj-oxi); margin-top:4px; display:block; }

/* Typing Indicator */
.bp9n8dlt{
  display:flex; gap:8px; padding:10px 14px; background:var(--p8z-wnp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.kj_2qots{ width:8px; height:8px; border-radius:50%; background:var(--mljj-oxi); animation:typingDot 1.4s infinite; }
.kj_2qots:nth-child(2){ animation-delay:.2s; }
.kj_2qots: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) */
.au_j0pyim{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.x3glm18{
  border:0; border-radius:999px; padding:8px 12px; background:var(--u128-mt); 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(--rgetd-zt);
}
.x3glm18:is(:hover,:focus){ transform:translateY(-1px); }
a.x3glm18{ text-decoration:none; display:inline-block; }
a.x3glm18:link, a.x3glm18:visited{ color:#fff; }
a.x3glm18:hover, a.x3glm18:focus{ color:#fff; }

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

/* Footer */
.e3p8ieo65{
  padding:16px; background:var(--p8z-wnp); border-top:1px solid var(--jk3-uvk0);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.e1l18zqr{
  flex:1; padding:10px 14px; border:1px solid var(--jk3-uvk0); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--l2r5-vr);
  background:var(--tf8e-ob9z); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.e1l18zqr:focus{ border-color:var(--u128-mt); }
.e1l18zqr::placeholder{ color:var(--mljj-oxi); }
.e1l18zqr.mbl94f{ border-color:#c00; }
.djs0i3l{
  width:40px; height:40px; min-width:40px; border:none; background:var(--u128-mt); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.djs0i3l:disabled{ opacity:.5; cursor:not-allowed; }
.djs0i3l:not(:disabled):hover{ transform:scale(1.05); }
.djs0i3l:not(:disabled):active{ transform:scale(0.95); }
.djs0i3l:focus{ outline:2px solid var(--u128-mt); outline-offset:2px; }
.djs0i3l svg{ width:20px; height:20px; }

/* Character Counter */
.jh7cgh{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--mljj-oxi); }
.jh7cgh.uje8jik4{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.xu77i2a{
  align-self:flex-start;
  max-width:75%;
  background: var(--p8z-wnp);
  color: var(--l2r5-vr);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--rgetd-zt);
}
.zzcpkp4{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.llhj7cxn.nvnsnrtj2{
  background: transparent; color: var(--l2r5-vr); border-color: var(--jk3-uvk0);
}
.llhj7cxn.nvnsnrtj2:hover{
  background: var(--u128-mt); color:#fff; border-color: var(--u128-mt);
}

/* Mobile */
@media (max-width: 768px){
  .qp_q9ikt{ bottom:16px; right:16px; }
  .qp_q9ikt.km6bno{ left:16px; }
  .ptkqvxx{ --wyth9-ny6:60px; }
  .o2czdj3u{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--ao6-i0) var(--ao6-i0) 0 0; transform: translateY(100%);
  }
  .o2czdj3u.ajgt232{ transform: translateY(0); }
  .p3z04o01pq{ padding:20px; }
  .e3p8ieo65{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.qp_q9ikt :focus-visible{ outline:2px solid var(--u128-mt); outline-offset:2px; }

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