/* CSS Variables */
:root {
  --ri7-f2vj: #4f46e5;
  --mg0e-dg: #ffffff;
  --ieei0-mtdb: #f9fafb;
  --nmm-kb: #0f172a;
  --xc0p9i-yt: #6b7280;
  --rhd-rv: #e5e7eb;
  --v00u37-hs: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ug2ak-e7: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --w9l4t-r3: 16px;
  --runrer-as2: 56px;
  --nqs-cj3: 12px;
  --zlaao-u75y: 999999;
}

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

/* Main Container */
.pel3290slpd6ufaxd5 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--zlaao-u75y);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--nmm-kb);
}
.pel3290slpd6ufaxd5.s-qgr2ltpg4smmmx { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.rqdo42tnzv93lo { display: flex; flex-direction: column-reverse; gap: var(--nqs-cj3); align-items: center; }
.hp7rt-wjmfrslojnz9 {
  width: var(--runrer-as2); height: var(--runrer-as2); min-width: var(--runrer-as2); min-height: var(--runrer-as2);
  border-radius: 50%; border: none; background: var(--ri7-f2vj); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--v00u37-hs);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.hp7rt-wjmfrslojnz9:hover { transform: scale(1.05); box-shadow: var(--ug2ak-e7); }
.hp7rt-wjmfrslojnz9:active { transform: scale(0.95); }
.hp7rt-wjmfrslojnz9:focus { outline: 2px solid var(--ri7-f2vj); outline-offset: 2px; }
.hp7rt-wjmfrslojnz9 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hp7rt-wjmfrslojnz9.zhzer3x4m5k234mhu{ animation:none; }
  .hp7rt-wjmfrslojnz9,.wmx04q0x0evki6nmt,.ag05xxzyqddcxturf{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.wmx04q0x0evki6nmt{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--mg0e-dg); border-radius: var(--w9l4t-r3); box-shadow: var(--ug2ak-e7);
  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;
}
.pel3290slpd6ufaxd5.s-qgr2ltpg4smmmx .wmx04q0x0evki6nmt{ right:auto; left:24px; }
.wmx04q0x0evki6nmt.zcee74pfdenfmc{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.nn6svskajwcf3fd2g5{
  padding:16px 20px; background:var(--mg0e-dg); border-bottom:1px solid var(--rhd-rv);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.a33-f348c8v63yij{ width:10px; height:10px; border-radius:50%; background:var(--ri7-f2vj); flex-shrink:0; }
.tehnk3b-w6pcbm{ flex:1; min-width:0; }
.vjp09kykbpx5wa{ font-size:16px; font-weight:600; color:var(--nmm-kb); margin:0 0 2px 0; }
.qhgv8v6swtolgdmf{ font-size:13px; color:var(--xc0p9i-yt); margin:0; }
.v2fuv-ulxp1r03x{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--xc0p9i-yt);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.v2fuv-ulxp1r03x:hover{ background:var(--ieei0-mtdb); color:var(--nmm-kb); }
.v2fuv-ulxp1r03x:focus{ outline:2px solid var(--ri7-f2vj); outline-offset:2px; }
.v2fuv-ulxp1r03x svg{ width:20px; height:20px; }

/* Body */
.j0yg0lb05oj-9uh{
  flex:1; overflow-y:auto; padding:16px; background:var(--ieei0-mtdb);
  display:flex; flex-direction:column; gap:12px;
}
.j0yg0lb05oj-9uh::-webkit-scrollbar{ width:6px; }
.j0yg0lb05oj-9uh::-webkit-scrollbar-track{ background:transparent; }
.j0yg0lb05oj-9uh::-webkit-scrollbar-thumb{ background:var(--rhd-rv); border-radius:3px; }
.j0yg0lb05oj-9uh::-webkit-scrollbar-thumb:hover{ background:var(--xc0p9i-yt); }

/* Messages */
.ag05xxzyqddcxturf{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ag05xxzyqddcxturf.yr-4r661n1dftittt{ flex-direction:row-reverse; }
.hppq6eneljsks6lefl{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.hppq6eneljsks6lefl a{ color:inherit; }
.ag05xxzyqddcxturf.mt73afwyux4k2aj77 .hppq6eneljsks6lefl{ background:var(--mg0e-dg); color:var(--nmm-kb); border-bottom-left-radius:4px; }
.ag05xxzyqddcxturf.yr-4r661n1dftittt .hppq6eneljsks6lefl{ background:var(--ri7-f2vj); color:#fff; border-bottom-right-radius:4px; }
.tu4jmb5ngvwuad18hr{ font-size:11px; color:var(--xc0p9i-yt); margin-top:4px; display:block; }

/* Typing Indicator */
.r60t-fc--9xn2se{
  display:flex; gap:8px; padding:10px 14px; background:var(--mg0e-dg);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.pr5k4gi126obo57k{ width:8px; height:8px; border-radius:50%; background:var(--xc0p9i-yt); animation:typingDot 1.4s infinite; }
.pr5k4gi126obo57k:nth-child(2){ animation-delay:.2s; }
.pr5k4gi126obo57k: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) */
.mdt01ysehx4lgggc0e{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ot7v4eqk6wlf8utqw4{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ri7-f2vj); 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(--v00u37-hs);
}
.ot7v4eqk6wlf8utqw4:is(:hover,:focus){ transform:translateY(-1px); }
a.ot7v4eqk6wlf8utqw4{ text-decoration:none; display:inline-block; }
a.ot7v4eqk6wlf8utqw4:link, a.ot7v4eqk6wlf8utqw4:visited{ color:#fff; }
a.ot7v4eqk6wlf8utqw4:hover, a.ot7v4eqk6wlf8utqw4:focus{ color:#fff; }

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

/* Footer */
.s6xpfxe9kmjl-7{
  padding:16px; background:var(--mg0e-dg); border-top:1px solid var(--rhd-rv);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.u078p1-iff-utqhbpg{
  flex:1; padding:10px 14px; border:1px solid var(--rhd-rv); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--nmm-kb);
  background:var(--ieei0-mtdb); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.u078p1-iff-utqhbpg:focus{ border-color:var(--ri7-f2vj); }
.u078p1-iff-utqhbpg::placeholder{ color:var(--xc0p9i-yt); }
.u078p1-iff-utqhbpg.x2umyqnfqzlcruu{ border-color:#c00; }
.tszy4nh2b4wbxm{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ri7-f2vj); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.tszy4nh2b4wbxm:disabled{ opacity:.5; cursor:not-allowed; }
.tszy4nh2b4wbxm:not(:disabled):hover{ transform:scale(1.05); }
.tszy4nh2b4wbxm:not(:disabled):active{ transform:scale(0.95); }
.tszy4nh2b4wbxm:focus{ outline:2px solid var(--ri7-f2vj); outline-offset:2px; }
.tszy4nh2b4wbxm svg{ width:20px; height:20px; }

/* Character Counter */
.xfx7gizhn46z72vy{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--xc0p9i-yt); }
.xfx7gizhn46z72vy.jx-jrrtdg5es2n{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ociucevdp7qvq47xho{
  align-self:flex-start;
  max-width:75%;
  background: var(--mg0e-dg);
  color: var(--nmm-kb);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--v00u37-hs);
}
.mou1lalmh7w-d1{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ivbgkjv9l-ulwqrp90.jnk8x0ytk3wxsib6m{
  background: transparent; color: var(--nmm-kb); border-color: var(--rhd-rv);
}
.ivbgkjv9l-ulwqrp90.jnk8x0ytk3wxsib6m:hover{
  background: var(--ri7-f2vj); color:#fff; border-color: var(--ri7-f2vj);
}

/* Mobile */
@media (max-width: 768px){
  .pel3290slpd6ufaxd5{ bottom:16px; right:16px; }
  .pel3290slpd6ufaxd5.s-qgr2ltpg4smmmx{ left:16px; }
  .hp7rt-wjmfrslojnz9{ --runrer-as2:60px; }
  .wmx04q0x0evki6nmt{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--w9l4t-r3) var(--w9l4t-r3) 0 0; transform: translateY(100%);
  }
  .wmx04q0x0evki6nmt.zcee74pfdenfmc{ transform: translateY(0); }
  .nn6svskajwcf3fd2g5{ padding:20px; }
  .s6xpfxe9kmjl-7{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.pel3290slpd6ufaxd5 :focus-visible{ outline:2px solid var(--ri7-f2vj); outline-offset:2px; }

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