/* CSS Variables */
:root {
  --ckwcxw-xx: #4f46e5;
  --b081-q9rl: #ffffff;
  --t9tldb-gtoj: #f9fafb;
  --k4u5-gm: #0f172a;
  --v25-p222: #6b7280;
  --h2oz-md0: #e5e7eb;
  --qwzd-q0o: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --suao0-zm3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --xfnx-we3e: 16px;
  --kb5sv-jwh: 56px;
  --vph00r-p5il: 12px;
  --p1r-vhws: 999999;
}

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

/* Main Container */
.hsaukzwr {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--p1r-vhws);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--k4u5-gm);
}
.hsaukzwr.ple14cfxyf { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.tiz_si9p8 { display: flex; flex-direction: column-reverse; gap: var(--vph00r-p5il); align-items: center; }
.k387hww {
  width: var(--kb5sv-jwh); height: var(--kb5sv-jwh); min-width: var(--kb5sv-jwh); min-height: var(--kb5sv-jwh);
  border-radius: 50%; border: none; background: var(--ckwcxw-xx); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--qwzd-q0o);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.k387hww:hover { transform: scale(1.05); box-shadow: var(--suao0-zm3); }
.k387hww:active { transform: scale(0.95); }
.k387hww:focus { outline: 2px solid var(--ckwcxw-xx); outline-offset: 2px; }
.k387hww svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .k387hww.q7ddfr{ animation:none; }
  .k387hww,.uvgejjz,.rkyuhbt1c{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.uvgejjz{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--b081-q9rl); border-radius: var(--xfnx-we3e); box-shadow: var(--suao0-zm3);
  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;
}
.hsaukzwr.ple14cfxyf .uvgejjz{ right:auto; left:24px; }
.uvgejjz.brbocjiuyu{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.va2nwt{
  padding:16px 20px; background:var(--b081-q9rl); border-bottom:1px solid var(--h2oz-md0);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.t2tot45aa{ width:10px; height:10px; border-radius:50%; background:var(--ckwcxw-xx); flex-shrink:0; }
.dnfndlhhm{ flex:1; min-width:0; }
.vnn0st7r1{ font-size:16px; font-weight:600; color:var(--k4u5-gm); margin:0 0 2px 0; }
.g6p71x{ font-size:13px; color:var(--v25-p222); margin:0; }
.sy1s1hybr6{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--v25-p222);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.sy1s1hybr6:hover{ background:var(--t9tldb-gtoj); color:var(--k4u5-gm); }
.sy1s1hybr6:focus{ outline:2px solid var(--ckwcxw-xx); outline-offset:2px; }
.sy1s1hybr6 svg{ width:20px; height:20px; }

/* Body */
.usvq18x1{
  flex:1; overflow-y:auto; padding:16px; background:var(--t9tldb-gtoj);
  display:flex; flex-direction:column; gap:12px;
}
.usvq18x1::-webkit-scrollbar{ width:6px; }
.usvq18x1::-webkit-scrollbar-track{ background:transparent; }
.usvq18x1::-webkit-scrollbar-thumb{ background:var(--h2oz-md0); border-radius:3px; }
.usvq18x1::-webkit-scrollbar-thumb:hover{ background:var(--v25-p222); }

/* Messages */
.rkyuhbt1c{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.rkyuhbt1c.xeqxt8l5{ flex-direction:row-reverse; }
.xfcpckror{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.xfcpckror a{ color:inherit; }
.rkyuhbt1c.hqx41qq05 .xfcpckror{ background:var(--b081-q9rl); color:var(--k4u5-gm); border-bottom-left-radius:4px; }
.rkyuhbt1c.xeqxt8l5 .xfcpckror{ background:var(--ckwcxw-xx); color:#fff; border-bottom-right-radius:4px; }
.e99gjwvav{ font-size:11px; color:var(--v25-p222); margin-top:4px; display:block; }

/* Typing Indicator */
.rp8d6gu{
  display:flex; gap:8px; padding:10px 14px; background:var(--b081-q9rl);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.qbccdg5z{ width:8px; height:8px; border-radius:50%; background:var(--v25-p222); animation:typingDot 1.4s infinite; }
.qbccdg5z:nth-child(2){ animation-delay:.2s; }
.qbccdg5z: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) */
.t6uru62te{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.hcdlt61umb{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ckwcxw-xx); 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(--qwzd-q0o);
}
.hcdlt61umb:is(:hover,:focus){ transform:translateY(-1px); }
a.hcdlt61umb{ text-decoration:none; display:inline-block; }
a.hcdlt61umb:link, a.hcdlt61umb:visited{ color:#fff; }
a.hcdlt61umb:hover, a.hcdlt61umb:focus{ color:#fff; }

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

/* Footer */
.y10s5xvti{
  padding:16px; background:var(--b081-q9rl); border-top:1px solid var(--h2oz-md0);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.a7d8ea0{
  flex:1; padding:10px 14px; border:1px solid var(--h2oz-md0); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--k4u5-gm);
  background:var(--t9tldb-gtoj); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.a7d8ea0:focus{ border-color:var(--ckwcxw-xx); }
.a7d8ea0::placeholder{ color:var(--v25-p222); }
.a7d8ea0.tu8kx2ntm{ border-color:#c00; }
.km6c9jl7sf{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ckwcxw-xx); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.km6c9jl7sf:disabled{ opacity:.5; cursor:not-allowed; }
.km6c9jl7sf:not(:disabled):hover{ transform:scale(1.05); }
.km6c9jl7sf:not(:disabled):active{ transform:scale(0.95); }
.km6c9jl7sf:focus{ outline:2px solid var(--ckwcxw-xx); outline-offset:2px; }
.km6c9jl7sf svg{ width:20px; height:20px; }

/* Character Counter */
.t8kvyhyii{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--v25-p222); }
.t8kvyhyii.drzm0vp0{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.hgn34bs_hl{
  align-self:flex-start;
  max-width:75%;
  background: var(--b081-q9rl);
  color: var(--k4u5-gm);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--qwzd-q0o);
}
.i8hosps{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.m43nkz4.pgx9_a{
  background: transparent; color: var(--k4u5-gm); border-color: var(--h2oz-md0);
}
.m43nkz4.pgx9_a:hover{
  background: var(--ckwcxw-xx); color:#fff; border-color: var(--ckwcxw-xx);
}

/* Mobile */
@media (max-width: 768px){
  .hsaukzwr{ bottom:16px; right:16px; }
  .hsaukzwr.ple14cfxyf{ left:16px; }
  .k387hww{ --kb5sv-jwh:60px; }
  .uvgejjz{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--xfnx-we3e) var(--xfnx-we3e) 0 0; transform: translateY(100%);
  }
  .uvgejjz.brbocjiuyu{ transform: translateY(0); }
  .va2nwt{ padding:20px; }
  .y10s5xvti{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.hsaukzwr :focus-visible{ outline:2px solid var(--ckwcxw-xx); outline-offset:2px; }

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