/* CSS Variables */
:root {
  --wexyx-djk: #4f46e5;
  --daofy4-vw: #ffffff;
  --hs5a-l6: #f9fafb;
  --vh84i-ox: #0f172a;
  --vl1k-lu: #6b7280;
  --qy7op-onf: #e5e7eb;
  --fwv-jc1: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --dgp-cr: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --w159k-w3: 16px;
  --c9ygsa-dkd7: 56px;
  --wbgfff-ayp2: 12px;
  --pobml-vx: 999999;
}

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

/* Main Container */
.prsi6d {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--pobml-vx);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--vh84i-ox);
}
.prsi6d.vo65 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.xk3nf { display: flex; flex-direction: column-reverse; gap: var(--wbgfff-ayp2); align-items: center; }
.hbo30u {
  width: var(--c9ygsa-dkd7); height: var(--c9ygsa-dkd7); min-width: var(--c9ygsa-dkd7); min-height: var(--c9ygsa-dkd7);
  border-radius: 50%; border: none; background: var(--wexyx-djk); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--fwv-jc1);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.hbo30u:hover { transform: scale(1.05); box-shadow: var(--dgp-cr); }
.hbo30u:active { transform: scale(0.95); }
.hbo30u:focus { outline: 2px solid var(--wexyx-djk); outline-offset: 2px; }
.hbo30u svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hbo30u.rv46{ animation:none; }
  .hbo30u,.tic0w,.y1xq{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.tic0w{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--daofy4-vw); border-radius: var(--w159k-w3); box-shadow: var(--dgp-cr);
  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;
}
.prsi6d.vo65 .tic0w{ right:auto; left:24px; }
.tic0w.m2fx{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.dwh99w{
  padding:16px 20px; background:var(--daofy4-vw); border-bottom:1px solid var(--qy7op-onf);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.khia{ width:10px; height:10px; border-radius:50%; background:var(--wexyx-djk); flex-shrink:0; }
.jkamq{ flex:1; min-width:0; }
.sxozg{ font-size:16px; font-weight:600; color:var(--vh84i-ox); margin:0 0 2px 0; }
.klq6{ font-size:13px; color:var(--vl1k-lu); margin:0; }
.j54c7{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--vl1k-lu);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.j54c7:hover{ background:var(--hs5a-l6); color:var(--vh84i-ox); }
.j54c7:focus{ outline:2px solid var(--wexyx-djk); outline-offset:2px; }
.j54c7 svg{ width:20px; height:20px; }

/* Body */
.nbmu2{
  flex:1; overflow-y:auto; padding:16px; background:var(--hs5a-l6);
  display:flex; flex-direction:column; gap:12px;
}
.nbmu2::-webkit-scrollbar{ width:6px; }
.nbmu2::-webkit-scrollbar-track{ background:transparent; }
.nbmu2::-webkit-scrollbar-thumb{ background:var(--qy7op-onf); border-radius:3px; }
.nbmu2::-webkit-scrollbar-thumb:hover{ background:var(--vl1k-lu); }

/* Messages */
.y1xq{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.y1xq.u5baf{ flex-direction:row-reverse; }
.hvi7v1{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.hvi7v1 a{ color:inherit; }
.y1xq.uz73c .hvi7v1{ background:var(--daofy4-vw); color:var(--vh84i-ox); border-bottom-left-radius:4px; }
.y1xq.u5baf .hvi7v1{ background:var(--wexyx-djk); color:#fff; border-bottom-right-radius:4px; }
.mzeae{ font-size:11px; color:var(--vl1k-lu); margin-top:4px; display:block; }

/* Typing Indicator */
.lrf5a{
  display:flex; gap:8px; padding:10px 14px; background:var(--daofy4-vw);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.af7d8{ width:8px; height:8px; border-radius:50%; background:var(--vl1k-lu); animation:typingDot 1.4s infinite; }
.af7d8:nth-child(2){ animation-delay:.2s; }
.af7d8: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) */
.afohw{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.h2p1s{
  border:0; border-radius:999px; padding:8px 12px; background:var(--wexyx-djk); 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(--fwv-jc1);
}
.h2p1s:is(:hover,:focus){ transform:translateY(-1px); }
a.h2p1s{ text-decoration:none; display:inline-block; }
a.h2p1s:link, a.h2p1s:visited{ color:#fff; }
a.h2p1s:hover, a.h2p1s:focus{ color:#fff; }

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

/* Footer */
.tgkg{
  padding:16px; background:var(--daofy4-vw); border-top:1px solid var(--qy7op-onf);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.qkft{
  flex:1; padding:10px 14px; border:1px solid var(--qy7op-onf); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--vh84i-ox);
  background:var(--hs5a-l6); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.qkft:focus{ border-color:var(--wexyx-djk); }
.qkft::placeholder{ color:var(--vl1k-lu); }
.qkft.aivpv{ border-color:#c00; }
.yixdcs{
  width:40px; height:40px; min-width:40px; border:none; background:var(--wexyx-djk); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.yixdcs:disabled{ opacity:.5; cursor:not-allowed; }
.yixdcs:not(:disabled):hover{ transform:scale(1.05); }
.yixdcs:not(:disabled):active{ transform:scale(0.95); }
.yixdcs:focus{ outline:2px solid var(--wexyx-djk); outline-offset:2px; }
.yixdcs svg{ width:20px; height:20px; }

/* Character Counter */
.m3k8v{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--vl1k-lu); }
.m3k8v.zejqbl{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.zzu9q5{
  align-self:flex-start;
  max-width:75%;
  background: var(--daofy4-vw);
  color: var(--vh84i-ox);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--fwv-jc1);
}
.y8vs8b{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.qsprf.cx0m2{
  background: transparent; color: var(--vh84i-ox); border-color: var(--qy7op-onf);
}
.qsprf.cx0m2:hover{
  background: var(--wexyx-djk); color:#fff; border-color: var(--wexyx-djk);
}

/* Mobile */
@media (max-width: 768px){
  .prsi6d{ bottom:16px; right:16px; }
  .prsi6d.vo65{ left:16px; }
  .hbo30u{ --c9ygsa-dkd7:60px; }
  .tic0w{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--w159k-w3) var(--w159k-w3) 0 0; transform: translateY(100%);
  }
  .tic0w.m2fx{ transform: translateY(0); }
  .dwh99w{ padding:20px; }
  .tgkg{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.prsi6d :focus-visible{ outline:2px solid var(--wexyx-djk); outline-offset:2px; }

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