/* CSS Variables */
:root {
  --dz0-zo: #4f46e5;
  --x42-ghkj: #ffffff;
  --h5s4-qp: #f9fafb;
  --t5y-a2: #0f172a;
  --vtvbou-v3a7: #6b7280;
  --v2m0s-w2w: #e5e7eb;
  --nhskv3-v48w: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --k3e-e7: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --mmevb5-fjd: 16px;
  --fxb-ljby: 56px;
  --ncntu-yg3: 12px;
  --tocy-yof: 999999;
}

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

/* Main Container */
.v0e84n {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--tocy-yof);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--t5y-a2);
}
.v0e84n.an5k1y { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.oyap { display: flex; flex-direction: column-reverse; gap: var(--ncntu-yg3); align-items: center; }
.ncn5a8 {
  width: var(--fxb-ljby); height: var(--fxb-ljby); min-width: var(--fxb-ljby); min-height: var(--fxb-ljby);
  border-radius: 50%; border: none; background: var(--dz0-zo); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nhskv3-v48w);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ncn5a8:hover { transform: scale(1.05); box-shadow: var(--k3e-e7); }
.ncn5a8:active { transform: scale(0.95); }
.ncn5a8:focus { outline: 2px solid var(--dz0-zo); outline-offset: 2px; }
.ncn5a8 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ncn5a8.tp95{ animation:none; }
  .ncn5a8,.kuyy,.hkd3za{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.kuyy{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--x42-ghkj); border-radius: var(--mmevb5-fjd); box-shadow: var(--k3e-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;
}
.v0e84n.an5k1y .kuyy{ right:auto; left:24px; }
.kuyy.szcif0{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ify72{
  padding:16px 20px; background:var(--x42-ghkj); border-bottom:1px solid var(--v2m0s-w2w);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.qikjk{ width:10px; height:10px; border-radius:50%; background:var(--dz0-zo); flex-shrink:0; }
.e9utjg{ flex:1; min-width:0; }
.ease{ font-size:16px; font-weight:600; color:var(--t5y-a2); margin:0 0 2px 0; }
.yrru{ font-size:13px; color:var(--vtvbou-v3a7); margin:0; }
.sur5o{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--vtvbou-v3a7);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.sur5o:hover{ background:var(--h5s4-qp); color:var(--t5y-a2); }
.sur5o:focus{ outline:2px solid var(--dz0-zo); outline-offset:2px; }
.sur5o svg{ width:20px; height:20px; }

/* Body */
.k9rdg{
  flex:1; overflow-y:auto; padding:16px; background:var(--h5s4-qp);
  display:flex; flex-direction:column; gap:12px;
}
.k9rdg::-webkit-scrollbar{ width:6px; }
.k9rdg::-webkit-scrollbar-track{ background:transparent; }
.k9rdg::-webkit-scrollbar-thumb{ background:var(--v2m0s-w2w); border-radius:3px; }
.k9rdg::-webkit-scrollbar-thumb:hover{ background:var(--vtvbou-v3a7); }

/* Messages */
.hkd3za{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.hkd3za.wil7{ flex-direction:row-reverse; }
.tlrp{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.tlrp a{ color:inherit; }
.hkd3za.p9lz .tlrp{ background:var(--x42-ghkj); color:var(--t5y-a2); border-bottom-left-radius:4px; }
.hkd3za.wil7 .tlrp{ background:var(--dz0-zo); color:#fff; border-bottom-right-radius:4px; }
.onb9ow{ font-size:11px; color:var(--vtvbou-v3a7); margin-top:4px; display:block; }

/* Typing Indicator */
.slp01{
  display:flex; gap:8px; padding:10px 14px; background:var(--x42-ghkj);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.qo8xj{ width:8px; height:8px; border-radius:50%; background:var(--vtvbou-v3a7); animation:typingDot 1.4s infinite; }
.qo8xj:nth-child(2){ animation-delay:.2s; }
.qo8xj: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) */
.ntyr{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.q5tf{
  border:0; border-radius:999px; padding:8px 12px; background:var(--dz0-zo); 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(--nhskv3-v48w);
}
.q5tf:is(:hover,:focus){ transform:translateY(-1px); }
a.q5tf{ text-decoration:none; display:inline-block; }
a.q5tf:link, a.q5tf:visited{ color:#fff; }
a.q5tf:hover, a.q5tf:focus{ color:#fff; }

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

/* Footer */
.tvb7{
  padding:16px; background:var(--x42-ghkj); border-top:1px solid var(--v2m0s-w2w);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.av114{
  flex:1; padding:10px 14px; border:1px solid var(--v2m0s-w2w); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--t5y-a2);
  background:var(--h5s4-qp); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.av114:focus{ border-color:var(--dz0-zo); }
.av114::placeholder{ color:var(--vtvbou-v3a7); }
.av114.lrdvt{ border-color:#c00; }
.sldb4w{
  width:40px; height:40px; min-width:40px; border:none; background:var(--dz0-zo); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.sldb4w:disabled{ opacity:.5; cursor:not-allowed; }
.sldb4w:not(:disabled):hover{ transform:scale(1.05); }
.sldb4w:not(:disabled):active{ transform:scale(0.95); }
.sldb4w:focus{ outline:2px solid var(--dz0-zo); outline-offset:2px; }
.sldb4w svg{ width:20px; height:20px; }

/* Character Counter */
.o2jj{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--vtvbou-v3a7); }
.o2jj.p1735t{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ckoxep{
  align-self:flex-start;
  max-width:75%;
  background: var(--x42-ghkj);
  color: var(--t5y-a2);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--nhskv3-v48w);
}
.eh9k{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.i3yms.glbr{
  background: transparent; color: var(--t5y-a2); border-color: var(--v2m0s-w2w);
}
.i3yms.glbr:hover{
  background: var(--dz0-zo); color:#fff; border-color: var(--dz0-zo);
}

/* Mobile */
@media (max-width: 768px){
  .v0e84n{ bottom:16px; right:16px; }
  .v0e84n.an5k1y{ left:16px; }
  .ncn5a8{ --fxb-ljby:60px; }
  .kuyy{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--mmevb5-fjd) var(--mmevb5-fjd) 0 0; transform: translateY(100%);
  }
  .kuyy.szcif0{ transform: translateY(0); }
  .ify72{ padding:20px; }
  .tvb7{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.v0e84n :focus-visible{ outline:2px solid var(--dz0-zo); outline-offset:2px; }

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