/* CSS Variables */
:root {
  --llzjte-z1z: #4f46e5;
  --n7d1z-wgx: #ffffff;
  --dcjk8r-rc: #f9fafb;
  --gvxo-sl4v: #0f172a;
  --zzyoa1-hq: #6b7280;
  --uepn-e8k: #e5e7eb;
  --eg2-my: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --na214-ngmd: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --y9omm-qg: 16px;
  --ryy-v2ik: 56px;
  --jcp-k2: 12px;
  --zgv-v9: 999999;
}

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

/* Main Container */
.zcFg4 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--zgv-v9);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--gvxo-sl4v);
}
.zcFg4.nnsNtj7 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.jiEay { display: flex; flex-direction: column-reverse; gap: var(--jcp-k2); align-items: center; }
.r0dT9t2 {
  width: var(--ryy-v2ik); height: var(--ryy-v2ik); min-width: var(--ryy-v2ik); min-height: var(--ryy-v2ik);
  border-radius: 50%; border: none; background: var(--llzjte-z1z); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--eg2-my);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.r0dT9t2:hover { transform: scale(1.05); box-shadow: var(--na214-ngmd); }
.r0dT9t2:active { transform: scale(0.95); }
.r0dT9t2:focus { outline: 2px solid var(--llzjte-z1z); outline-offset: 2px; }
.r0dT9t2 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .r0dT9t2.e1lU6m{ animation:none; }
  .r0dT9t2,.smmGzq,.yksgP7xo{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.smmGzq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--n7d1z-wgx); border-radius: var(--y9omm-qg); box-shadow: var(--na214-ngmd);
  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;
}
.zcFg4.nnsNtj7 .smmGzq{ right:auto; left:24px; }
.smmGzq.uyIlm{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.c6Bwv{
  padding:16px 20px; background:var(--n7d1z-wgx); border-bottom:1px solid var(--uepn-e8k);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.inFm5{ width:10px; height:10px; border-radius:50%; background:var(--llzjte-z1z); flex-shrink:0; }
.neId6{ flex:1; min-width:0; }
.ne5Ru36{ font-size:16px; font-weight:600; color:var(--gvxo-sl4v); margin:0 0 2px 0; }
.i1wH0c{ font-size:13px; color:var(--zzyoa1-hq); margin:0; }
.od7Phn{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--zzyoa1-hq);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.od7Phn:hover{ background:var(--dcjk8r-rc); color:var(--gvxo-sl4v); }
.od7Phn:focus{ outline:2px solid var(--llzjte-z1z); outline-offset:2px; }
.od7Phn svg{ width:20px; height:20px; }

/* Body */
.r6u5Gnrh{
  flex:1; overflow-y:auto; padding:16px; background:var(--dcjk8r-rc);
  display:flex; flex-direction:column; gap:12px;
}
.r6u5Gnrh::-webkit-scrollbar{ width:6px; }
.r6u5Gnrh::-webkit-scrollbar-track{ background:transparent; }
.r6u5Gnrh::-webkit-scrollbar-thumb{ background:var(--uepn-e8k); border-radius:3px; }
.r6u5Gnrh::-webkit-scrollbar-thumb:hover{ background:var(--zzyoa1-hq); }

/* Messages */
.yksgP7xo{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.yksgP7xo.dj7Ox9{ flex-direction:row-reverse; }
.ha3Jru{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ha3Jru a{ color:inherit; }
.yksgP7xo.a5iJvn .ha3Jru{ background:var(--n7d1z-wgx); color:var(--gvxo-sl4v); border-bottom-left-radius:4px; }
.yksgP7xo.dj7Ox9 .ha3Jru{ background:var(--llzjte-z1z); color:#fff; border-bottom-right-radius:4px; }
.to5Ju09{ font-size:11px; color:var(--zzyoa1-hq); margin-top:4px; display:block; }

/* Typing Indicator */
.zrptTrdf{
  display:flex; gap:8px; padding:10px 14px; background:var(--n7d1z-wgx);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.rl8wDy8r{ width:8px; height:8px; border-radius:50%; background:var(--zzyoa1-hq); animation:typingDot 1.4s infinite; }
.rl8wDy8r:nth-child(2){ animation-delay:.2s; }
.rl8wDy8r: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) */
.p04Ajej{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.zq6Isxu{
  border:0; border-radius:999px; padding:8px 12px; background:var(--llzjte-z1z); 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(--eg2-my);
}
.zq6Isxu:is(:hover,:focus){ transform:translateY(-1px); }
a.zq6Isxu{ text-decoration:none; display:inline-block; }
a.zq6Isxu:link, a.zq6Isxu:visited{ color:#fff; }
a.zq6Isxu:hover, a.zq6Isxu:focus{ color:#fff; }

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

/* Footer */
.g016Dnn0{
  padding:16px; background:var(--n7d1z-wgx); border-top:1px solid var(--uepn-e8k);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.lyR5s{
  flex:1; padding:10px 14px; border:1px solid var(--uepn-e8k); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--gvxo-sl4v);
  background:var(--dcjk8r-rc); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.lyR5s:focus{ border-color:var(--llzjte-z1z); }
.lyR5s::placeholder{ color:var(--zzyoa1-hq); }
.lyR5s.rsiIam8{ border-color:#c00; }
.jkAhj{
  width:40px; height:40px; min-width:40px; border:none; background:var(--llzjte-z1z); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.jkAhj:disabled{ opacity:.5; cursor:not-allowed; }
.jkAhj:not(:disabled):hover{ transform:scale(1.05); }
.jkAhj:not(:disabled):active{ transform:scale(0.95); }
.jkAhj:focus{ outline:2px solid var(--llzjte-z1z); outline-offset:2px; }
.jkAhj svg{ width:20px; height:20px; }

/* Character Counter */
.sdeEq5{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--zzyoa1-hq); }
.sdeEq5.zv2Oas{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.r0yQa42{
  align-self:flex-start;
  max-width:75%;
  background: var(--n7d1z-wgx);
  color: var(--gvxo-sl4v);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--eg2-my);
}
.tapC57{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.a7G4l.ocAzm{
  background: transparent; color: var(--gvxo-sl4v); border-color: var(--uepn-e8k);
}
.a7G4l.ocAzm:hover{
  background: var(--llzjte-z1z); color:#fff; border-color: var(--llzjte-z1z);
}

/* Mobile */
@media (max-width: 768px){
  .zcFg4{ bottom:16px; right:16px; }
  .zcFg4.nnsNtj7{ left:16px; }
  .r0dT9t2{ --ryy-v2ik:60px; }
  .smmGzq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--y9omm-qg) var(--y9omm-qg) 0 0; transform: translateY(100%);
  }
  .smmGzq.uyIlm{ transform: translateY(0); }
  .c6Bwv{ padding:20px; }
  .g016Dnn0{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.zcFg4 :focus-visible{ outline:2px solid var(--llzjte-z1z); outline-offset:2px; }

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