/* CSS Variables */
:root {
  --pnodhz-qn: #4f46e5;
  --odst-lgr: #ffffff;
  --yt9jy-pb4d: #f9fafb;
  --zbqx-wt: #0f172a;
  --ki1a-uzb: #6b7280;
  --hfj6f-uh: #e5e7eb;
  --qbvdom-f9g: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --t1b-w1: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --msmh-xt: 16px;
  --eykidp-rr: 56px;
  --y00y-xo: 12px;
  --unti-h7: 999999;
}

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

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

/* Floating Panel - Buttons */
.c3htnn { display: flex; flex-direction: column-reverse; gap: var(--y00y-xo); align-items: center; }
.p84vtvu4c {
  width: var(--eykidp-rr); height: var(--eykidp-rr); min-width: var(--eykidp-rr); min-height: var(--eykidp-rr);
  border-radius: 50%; border: none; background: var(--pnodhz-qn); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--qbvdom-f9g);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.p84vtvu4c:hover { transform: scale(1.05); box-shadow: var(--t1b-w1); }
.p84vtvu4c:active { transform: scale(0.95); }
.p84vtvu4c:focus { outline: 2px solid var(--pnodhz-qn); outline-offset: 2px; }
.p84vtvu4c svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .p84vtvu4c.zr8ftwdrtk{ animation:none; }
  .p84vtvu4c,.r609r0l62,.xrqna7j{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.r609r0l62{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--odst-lgr); border-radius: var(--msmh-xt); box-shadow: var(--t1b-w1);
  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;
}
.hx8_s9q48.q6gv9rstvw .r609r0l62{ right:auto; left:24px; }
.r609r0l62.pig5hbmud4{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.jgo74_g_4a{
  padding:16px 20px; background:var(--odst-lgr); border-bottom:1px solid var(--hfj6f-uh);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.fz3jcc03bh{ width:10px; height:10px; border-radius:50%; background:var(--pnodhz-qn); flex-shrink:0; }
.kx7j3262{ flex:1; min-width:0; }
.g68gz4qt{ font-size:16px; font-weight:600; color:var(--zbqx-wt); margin:0 0 2px 0; }
.zrfkd4qd{ font-size:13px; color:var(--ki1a-uzb); margin:0; }
.w4i2lgklr{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ki1a-uzb);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.w4i2lgklr:hover{ background:var(--yt9jy-pb4d); color:var(--zbqx-wt); }
.w4i2lgklr:focus{ outline:2px solid var(--pnodhz-qn); outline-offset:2px; }
.w4i2lgklr svg{ width:20px; height:20px; }

/* Body */
.n4vjdr{
  flex:1; overflow-y:auto; padding:16px; background:var(--yt9jy-pb4d);
  display:flex; flex-direction:column; gap:12px;
}
.n4vjdr::-webkit-scrollbar{ width:6px; }
.n4vjdr::-webkit-scrollbar-track{ background:transparent; }
.n4vjdr::-webkit-scrollbar-thumb{ background:var(--hfj6f-uh); border-radius:3px; }
.n4vjdr::-webkit-scrollbar-thumb:hover{ background:var(--ki1a-uzb); }

/* Messages */
.xrqna7j{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.xrqna7j.ok03sj{ flex-direction:row-reverse; }
.k506dx0gm{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.k506dx0gm a{ color:inherit; }
.xrqna7j.a2tgpy252 .k506dx0gm{ background:var(--odst-lgr); color:var(--zbqx-wt); border-bottom-left-radius:4px; }
.xrqna7j.ok03sj .k506dx0gm{ background:var(--pnodhz-qn); color:#fff; border-bottom-right-radius:4px; }
.bdpibmmt2{ font-size:11px; color:var(--ki1a-uzb); margin-top:4px; display:block; }

/* Typing Indicator */
.vbbjhqab4{
  display:flex; gap:8px; padding:10px 14px; background:var(--odst-lgr);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.txkq203{ width:8px; height:8px; border-radius:50%; background:var(--ki1a-uzb); animation:typingDot 1.4s infinite; }
.txkq203:nth-child(2){ animation-delay:.2s; }
.txkq203: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) */
.xvcicnqo{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ba3oghsm{
  border:0; border-radius:999px; padding:8px 12px; background:var(--pnodhz-qn); 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(--qbvdom-f9g);
}
.ba3oghsm:is(:hover,:focus){ transform:translateY(-1px); }
a.ba3oghsm{ text-decoration:none; display:inline-block; }
a.ba3oghsm:link, a.ba3oghsm:visited{ color:#fff; }
a.ba3oghsm:hover, a.ba3oghsm:focus{ color:#fff; }

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

/* Footer */
.dg0tia5y{
  padding:16px; background:var(--odst-lgr); border-top:1px solid var(--hfj6f-uh);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.njuxf89xf2{
  flex:1; padding:10px 14px; border:1px solid var(--hfj6f-uh); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--zbqx-wt);
  background:var(--yt9jy-pb4d); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.njuxf89xf2:focus{ border-color:var(--pnodhz-qn); }
.njuxf89xf2::placeholder{ color:var(--ki1a-uzb); }
.njuxf89xf2.zk9har945v{ border-color:#c00; }
.ny58qct{
  width:40px; height:40px; min-width:40px; border:none; background:var(--pnodhz-qn); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ny58qct:disabled{ opacity:.5; cursor:not-allowed; }
.ny58qct:not(:disabled):hover{ transform:scale(1.05); }
.ny58qct:not(:disabled):active{ transform:scale(0.95); }
.ny58qct:focus{ outline:2px solid var(--pnodhz-qn); outline-offset:2px; }
.ny58qct svg{ width:20px; height:20px; }

/* Character Counter */
.ve4d74{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ki1a-uzb); }
.ve4d74.z402y18r{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.xx4yojgw0{
  align-self:flex-start;
  max-width:75%;
  background: var(--odst-lgr);
  color: var(--zbqx-wt);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--qbvdom-f9g);
}
.ugo_jrd{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.d8jfbetv1.yezjam{
  background: transparent; color: var(--zbqx-wt); border-color: var(--hfj6f-uh);
}
.d8jfbetv1.yezjam:hover{
  background: var(--pnodhz-qn); color:#fff; border-color: var(--pnodhz-qn);
}

/* Mobile */
@media (max-width: 768px){
  .hx8_s9q48{ bottom:16px; right:16px; }
  .hx8_s9q48.q6gv9rstvw{ left:16px; }
  .p84vtvu4c{ --eykidp-rr:60px; }
  .r609r0l62{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--msmh-xt) var(--msmh-xt) 0 0; transform: translateY(100%);
  }
  .r609r0l62.pig5hbmud4{ transform: translateY(0); }
  .jgo74_g_4a{ padding:20px; }
  .dg0tia5y{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.hx8_s9q48 :focus-visible{ outline:2px solid var(--pnodhz-qn); outline-offset:2px; }

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