/* CSS Variables */
:root {
  --c2h8a-egpl: #4f46e5;
  --s9ruzg-hr: #ffffff;
  --vufuh-fw: #f9fafb;
  --vmnpu-owo: #0f172a;
  --caxl9-cd: #6b7280;
  --z6u-y5k: #e5e7eb;
  --bxvbl8-av: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --p1cbi-ron: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --fhv6c-qerp: 16px;
  --oddam0-i1: 56px;
  --rog0gh-nveb: 12px;
  --v21pfx-pt: 999999;
}

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

/* Main Container */
.zpyqztfdtb {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--v21pfx-pt);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--vmnpu-owo);
}
.zpyqztfdtb.untpecfeya { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.l7dbwh { display: flex; flex-direction: column-reverse; gap: var(--rog0gh-nveb); align-items: center; }
.w_69rj {
  width: var(--oddam0-i1); height: var(--oddam0-i1); min-width: var(--oddam0-i1); min-height: var(--oddam0-i1);
  border-radius: 50%; border: none; background: var(--c2h8a-egpl); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--bxvbl8-av);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.w_69rj:hover { transform: scale(1.05); box-shadow: var(--p1cbi-ron); }
.w_69rj:active { transform: scale(0.95); }
.w_69rj:focus { outline: 2px solid var(--c2h8a-egpl); outline-offset: 2px; }
.w_69rj svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .w_69rj.w7gexz{ animation:none; }
  .w_69rj,.hgp_d4,.w3162v4a9c{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.hgp_d4{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--s9ruzg-hr); border-radius: var(--fhv6c-qerp); box-shadow: var(--p1cbi-ron);
  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;
}
.zpyqztfdtb.untpecfeya .hgp_d4{ right:auto; left:24px; }
.hgp_d4.w538skhr{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.qubwnc7o{
  padding:16px 20px; background:var(--s9ruzg-hr); border-bottom:1px solid var(--z6u-y5k);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.prnu84j{ width:10px; height:10px; border-radius:50%; background:var(--c2h8a-egpl); flex-shrink:0; }
.h5lbj3{ flex:1; min-width:0; }
.ad1f5rl_h{ font-size:16px; font-weight:600; color:var(--vmnpu-owo); margin:0 0 2px 0; }
.eq5q1zpq{ font-size:13px; color:var(--caxl9-cd); margin:0; }
.zbb2ergal{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--caxl9-cd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.zbb2ergal:hover{ background:var(--vufuh-fw); color:var(--vmnpu-owo); }
.zbb2ergal:focus{ outline:2px solid var(--c2h8a-egpl); outline-offset:2px; }
.zbb2ergal svg{ width:20px; height:20px; }

/* Body */
.hgdzn4z{
  flex:1; overflow-y:auto; padding:16px; background:var(--vufuh-fw);
  display:flex; flex-direction:column; gap:12px;
}
.hgdzn4z::-webkit-scrollbar{ width:6px; }
.hgdzn4z::-webkit-scrollbar-track{ background:transparent; }
.hgdzn4z::-webkit-scrollbar-thumb{ background:var(--z6u-y5k); border-radius:3px; }
.hgdzn4z::-webkit-scrollbar-thumb:hover{ background:var(--caxl9-cd); }

/* Messages */
.w3162v4a9c{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.w3162v4a9c.zdjg35iom{ flex-direction:row-reverse; }
.z4dnsd{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.z4dnsd a{ color:inherit; }
.w3162v4a9c.nlviku .z4dnsd{ background:var(--s9ruzg-hr); color:var(--vmnpu-owo); border-bottom-left-radius:4px; }
.w3162v4a9c.zdjg35iom .z4dnsd{ background:var(--c2h8a-egpl); color:#fff; border-bottom-right-radius:4px; }
.sn9clg6ov{ font-size:11px; color:var(--caxl9-cd); margin-top:4px; display:block; }

/* Typing Indicator */
.hk_6ai36{
  display:flex; gap:8px; padding:10px 14px; background:var(--s9ruzg-hr);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.z9tbos1i0{ width:8px; height:8px; border-radius:50%; background:var(--caxl9-cd); animation:typingDot 1.4s infinite; }
.z9tbos1i0:nth-child(2){ animation-delay:.2s; }
.z9tbos1i0: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) */
.yvpmtlu1{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.aazhtwu{
  border:0; border-radius:999px; padding:8px 12px; background:var(--c2h8a-egpl); 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(--bxvbl8-av);
}
.aazhtwu:is(:hover,:focus){ transform:translateY(-1px); }
a.aazhtwu{ text-decoration:none; display:inline-block; }
a.aazhtwu:link, a.aazhtwu:visited{ color:#fff; }
a.aazhtwu:hover, a.aazhtwu:focus{ color:#fff; }

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

/* Footer */
.l6dufvrp2d{
  padding:16px; background:var(--s9ruzg-hr); border-top:1px solid var(--z6u-y5k);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pofpcvr{
  flex:1; padding:10px 14px; border:1px solid var(--z6u-y5k); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--vmnpu-owo);
  background:var(--vufuh-fw); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pofpcvr:focus{ border-color:var(--c2h8a-egpl); }
.pofpcvr::placeholder{ color:var(--caxl9-cd); }
.pofpcvr.x44frz057{ border-color:#c00; }
.o1u9tnn8k{
  width:40px; height:40px; min-width:40px; border:none; background:var(--c2h8a-egpl); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.o1u9tnn8k:disabled{ opacity:.5; cursor:not-allowed; }
.o1u9tnn8k:not(:disabled):hover{ transform:scale(1.05); }
.o1u9tnn8k:not(:disabled):active{ transform:scale(0.95); }
.o1u9tnn8k:focus{ outline:2px solid var(--c2h8a-egpl); outline-offset:2px; }
.o1u9tnn8k svg{ width:20px; height:20px; }

/* Character Counter */
.cqct2xtia{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--caxl9-cd); }
.cqct2xtia.ij758t{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.iulaphfw{
  align-self:flex-start;
  max-width:75%;
  background: var(--s9ruzg-hr);
  color: var(--vmnpu-owo);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--bxvbl8-av);
}
.ysj7ku8z{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.p4d87mc.n6rsdlhr8{
  background: transparent; color: var(--vmnpu-owo); border-color: var(--z6u-y5k);
}
.p4d87mc.n6rsdlhr8:hover{
  background: var(--c2h8a-egpl); color:#fff; border-color: var(--c2h8a-egpl);
}

/* Mobile */
@media (max-width: 768px){
  .zpyqztfdtb{ bottom:16px; right:16px; }
  .zpyqztfdtb.untpecfeya{ left:16px; }
  .w_69rj{ --oddam0-i1:60px; }
  .hgp_d4{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--fhv6c-qerp) var(--fhv6c-qerp) 0 0; transform: translateY(100%);
  }
  .hgp_d4.w538skhr{ transform: translateY(0); }
  .qubwnc7o{ padding:20px; }
  .l6dufvrp2d{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.zpyqztfdtb :focus-visible{ outline:2px solid var(--c2h8a-egpl); outline-offset:2px; }

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