/* CSS Variables */
:root {
  --rc6-u2h6: #4f46e5;
  --v82cj-jc: #ffffff;
  --defsv-hfu: #f9fafb;
  --f63do-d99a: #0f172a;
  --tup-pec: #6b7280;
  --chhbe-rpa: #e5e7eb;
  --dc8-c1h: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --z36flq-wwin: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --pny32-a9: 16px;
  --j6js-bc: 56px;
  --ca3-bd: 12px;
  --g41-fsq: 999999;
}

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

/* Main Container */
.znpw2 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--g41-fsq);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--f63do-d99a);
}
.znpw2.jbn1ij { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.xece0 { display: flex; flex-direction: column-reverse; gap: var(--ca3-bd); align-items: center; }
.os6q1 {
  width: var(--j6js-bc); height: var(--j6js-bc); min-width: var(--j6js-bc); min-height: var(--j6js-bc);
  border-radius: 50%; border: none; background: var(--rc6-u2h6); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--dc8-c1h);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.os6q1:hover { transform: scale(1.05); box-shadow: var(--z36flq-wwin); }
.os6q1:active { transform: scale(0.95); }
.os6q1:focus { outline: 2px solid var(--rc6-u2h6); outline-offset: 2px; }
.os6q1 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .os6q1.vsnz{ animation:none; }
  .os6q1,.e0y8u,.v3tx6s{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.e0y8u{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--v82cj-jc); border-radius: var(--pny32-a9); box-shadow: var(--z36flq-wwin);
  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;
}
.znpw2.jbn1ij .e0y8u{ right:auto; left:24px; }
.e0y8u.lf50{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.fmxm{
  padding:16px 20px; background:var(--v82cj-jc); border-bottom:1px solid var(--chhbe-rpa);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.lhj1rr{ width:10px; height:10px; border-radius:50%; background:var(--rc6-u2h6); flex-shrink:0; }
.b10myw{ flex:1; min-width:0; }
.bjqt7g{ font-size:16px; font-weight:600; color:var(--f63do-d99a); margin:0 0 2px 0; }
.xgur{ font-size:13px; color:var(--tup-pec); margin:0; }
.yb9a{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--tup-pec);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.yb9a:hover{ background:var(--defsv-hfu); color:var(--f63do-d99a); }
.yb9a:focus{ outline:2px solid var(--rc6-u2h6); outline-offset:2px; }
.yb9a svg{ width:20px; height:20px; }

/* Body */
.aqww9{
  flex:1; overflow-y:auto; padding:16px; background:var(--defsv-hfu);
  display:flex; flex-direction:column; gap:12px;
}
.aqww9::-webkit-scrollbar{ width:6px; }
.aqww9::-webkit-scrollbar-track{ background:transparent; }
.aqww9::-webkit-scrollbar-thumb{ background:var(--chhbe-rpa); border-radius:3px; }
.aqww9::-webkit-scrollbar-thumb:hover{ background:var(--tup-pec); }

/* Messages */
.v3tx6s{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.v3tx6s.siwb{ flex-direction:row-reverse; }
.ct9o{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ct9o a{ color:inherit; }
.v3tx6s.iqtqp .ct9o{ background:var(--v82cj-jc); color:var(--f63do-d99a); border-bottom-left-radius:4px; }
.v3tx6s.siwb .ct9o{ background:var(--rc6-u2h6); color:#fff; border-bottom-right-radius:4px; }
.kiu8{ font-size:11px; color:var(--tup-pec); margin-top:4px; display:block; }

/* Typing Indicator */
.wpkx{
  display:flex; gap:8px; padding:10px 14px; background:var(--v82cj-jc);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.jmzq{ width:8px; height:8px; border-radius:50%; background:var(--tup-pec); animation:typingDot 1.4s infinite; }
.jmzq:nth-child(2){ animation-delay:.2s; }
.jmzq: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) */
.qmox{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.gcts{
  border:0; border-radius:999px; padding:8px 12px; background:var(--rc6-u2h6); 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(--dc8-c1h);
}
.gcts:is(:hover,:focus){ transform:translateY(-1px); }
a.gcts{ text-decoration:none; display:inline-block; }
a.gcts:link, a.gcts:visited{ color:#fff; }
a.gcts:hover, a.gcts:focus{ color:#fff; }

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

/* Footer */
.e9z0b{
  padding:16px; background:var(--v82cj-jc); border-top:1px solid var(--chhbe-rpa);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.vlqi{
  flex:1; padding:10px 14px; border:1px solid var(--chhbe-rpa); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--f63do-d99a);
  background:var(--defsv-hfu); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.vlqi:focus{ border-color:var(--rc6-u2h6); }
.vlqi::placeholder{ color:var(--tup-pec); }
.vlqi.krjt9r{ border-color:#c00; }
.qwauu{
  width:40px; height:40px; min-width:40px; border:none; background:var(--rc6-u2h6); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.qwauu:disabled{ opacity:.5; cursor:not-allowed; }
.qwauu:not(:disabled):hover{ transform:scale(1.05); }
.qwauu:not(:disabled):active{ transform:scale(0.95); }
.qwauu:focus{ outline:2px solid var(--rc6-u2h6); outline-offset:2px; }
.qwauu svg{ width:20px; height:20px; }

/* Character Counter */
.xqhw8{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--tup-pec); }
.xqhw8.j5ta53{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.miuxzs{
  align-self:flex-start;
  max-width:75%;
  background: var(--v82cj-jc);
  color: var(--f63do-d99a);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--dc8-c1h);
}
.psb9{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.c5vo.ld8b2l{
  background: transparent; color: var(--f63do-d99a); border-color: var(--chhbe-rpa);
}
.c5vo.ld8b2l:hover{
  background: var(--rc6-u2h6); color:#fff; border-color: var(--rc6-u2h6);
}

/* Mobile */
@media (max-width: 768px){
  .znpw2{ bottom:16px; right:16px; }
  .znpw2.jbn1ij{ left:16px; }
  .os6q1{ --j6js-bc:60px; }
  .e0y8u{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--pny32-a9) var(--pny32-a9) 0 0; transform: translateY(100%);
  }
  .e0y8u.lf50{ transform: translateY(0); }
  .fmxm{ padding:20px; }
  .e9z0b{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.znpw2 :focus-visible{ outline:2px solid var(--rc6-u2h6); outline-offset:2px; }

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