/* CSS Variables */
:root {
  --ig79o8-ze: #4f46e5;
  --fdgtqj-ffem: #ffffff;
  --yzx64-vo49: #f9fafb;
  --dfl0a-gk4l: #0f172a;
  --ybd-w3o: #6b7280;
  --jgw-pm2x: #e5e7eb;
  --xumvv9-mx: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --jbh4b-k8zq: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --u7d-xv: 16px;
  --lwzqze-fa: 56px;
  --gj29-dyq: 12px;
  --lre-is: 999999;
}

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

/* Main Container */
.gz4zY8x4 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--lre-is);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--dfl0a-gk4l);
}
.gz4zY8x4.xbzzG1x6 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.lb9fG9so { display: flex; flex-direction: column-reverse; gap: var(--gj29-dyq); align-items: center; }
.e8Osh {
  width: var(--lwzqze-fa); height: var(--lwzqze-fa); min-width: var(--lwzqze-fa); min-height: var(--lwzqze-fa);
  border-radius: 50%; border: none; background: var(--ig79o8-ze); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--xumvv9-mx);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.e8Osh:hover { transform: scale(1.05); box-shadow: var(--jbh4b-k8zq); }
.e8Osh:active { transform: scale(0.95); }
.e8Osh:focus { outline: 2px solid var(--ig79o8-ze); outline-offset: 2px; }
.e8Osh svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .e8Osh.ejGsv{ animation:none; }
  .e8Osh,.ud9Nln0,.vimdFr7u{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.ud9Nln0{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fdgtqj-ffem); border-radius: var(--u7d-xv); box-shadow: var(--jbh4b-k8zq);
  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;
}
.gz4zY8x4.xbzzG1x6 .ud9Nln0{ right:auto; left:24px; }
.ud9Nln0.m0fMau1{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.p5Tj5{
  padding:16px 20px; background:var(--fdgtqj-ffem); border-bottom:1px solid var(--jgw-pm2x);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.xiCmd{ width:10px; height:10px; border-radius:50%; background:var(--ig79o8-ze); flex-shrink:0; }
.sbhjCw7v{ flex:1; min-width:0; }
.mctFq99{ font-size:16px; font-weight:600; color:var(--dfl0a-gk4l); margin:0 0 2px 0; }
.a75aCnas{ font-size:13px; color:var(--ybd-w3o); margin:0; }
.qbA7a{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ybd-w3o);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.qbA7a:hover{ background:var(--yzx64-vo49); color:var(--dfl0a-gk4l); }
.qbA7a:focus{ outline:2px solid var(--ig79o8-ze); outline-offset:2px; }
.qbA7a svg{ width:20px; height:20px; }

/* Body */
.buexQx9j{
  flex:1; overflow-y:auto; padding:16px; background:var(--yzx64-vo49);
  display:flex; flex-direction:column; gap:12px;
}
.buexQx9j::-webkit-scrollbar{ width:6px; }
.buexQx9j::-webkit-scrollbar-track{ background:transparent; }
.buexQx9j::-webkit-scrollbar-thumb{ background:var(--jgw-pm2x); border-radius:3px; }
.buexQx9j::-webkit-scrollbar-thumb:hover{ background:var(--ybd-w3o); }

/* Messages */
.vimdFr7u{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.vimdFr7u.rkA2k{ flex-direction:row-reverse; }
.yyQbi{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.yyQbi a{ color:inherit; }
.vimdFr7u.nidPiph .yyQbi{ background:var(--fdgtqj-ffem); color:var(--dfl0a-gk4l); border-bottom-left-radius:4px; }
.vimdFr7u.rkA2k .yyQbi{ background:var(--ig79o8-ze); color:#fff; border-bottom-right-radius:4px; }
.dzySfj{ font-size:11px; color:var(--ybd-w3o); margin-top:4px; display:block; }

/* Typing Indicator */
.o9Hnt{
  display:flex; gap:8px; padding:10px 14px; background:var(--fdgtqj-ffem);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.duogNheo{ width:8px; height:8px; border-radius:50%; background:var(--ybd-w3o); animation:typingDot 1.4s infinite; }
.duogNheo:nth-child(2){ animation-delay:.2s; }
.duogNheo: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) */
.vplTb5{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.fzhwHhah{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ig79o8-ze); 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(--xumvv9-mx);
}
.fzhwHhah:is(:hover,:focus){ transform:translateY(-1px); }
a.fzhwHhah{ text-decoration:none; display:inline-block; }
a.fzhwHhah:link, a.fzhwHhah:visited{ color:#fff; }
a.fzhwHhah:hover, a.fzhwHhah:focus{ color:#fff; }

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

/* Footer */
.yvsN61{
  padding:16px; background:var(--fdgtqj-ffem); border-top:1px solid var(--jgw-pm2x);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.mpP9t{
  flex:1; padding:10px 14px; border:1px solid var(--jgw-pm2x); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--dfl0a-gk4l);
  background:var(--yzx64-vo49); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.mpP9t:focus{ border-color:var(--ig79o8-ze); }
.mpP9t::placeholder{ color:var(--ybd-w3o); }
.mpP9t.demHsu{ border-color:#c00; }
.bmSqb{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ig79o8-ze); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.bmSqb:disabled{ opacity:.5; cursor:not-allowed; }
.bmSqb:not(:disabled):hover{ transform:scale(1.05); }
.bmSqb:not(:disabled):active{ transform:scale(0.95); }
.bmSqb:focus{ outline:2px solid var(--ig79o8-ze); outline-offset:2px; }
.bmSqb svg{ width:20px; height:20px; }

/* Character Counter */
.a6qpLrbb{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ybd-w3o); }
.a6qpLrbb.btkrLv7q{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.rlr7V8w1{
  align-self:flex-start;
  max-width:75%;
  background: var(--fdgtqj-ffem);
  color: var(--dfl0a-gk4l);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--xumvv9-mx);
}
.shsUa6{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.g0Ytp.wuR78{
  background: transparent; color: var(--dfl0a-gk4l); border-color: var(--jgw-pm2x);
}
.g0Ytp.wuR78:hover{
  background: var(--ig79o8-ze); color:#fff; border-color: var(--ig79o8-ze);
}

/* Mobile */
@media (max-width: 768px){
  .gz4zY8x4{ bottom:16px; right:16px; }
  .gz4zY8x4.xbzzG1x6{ left:16px; }
  .e8Osh{ --lwzqze-fa:60px; }
  .ud9Nln0{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--u7d-xv) var(--u7d-xv) 0 0; transform: translateY(100%);
  }
  .ud9Nln0.m0fMau1{ transform: translateY(0); }
  .p5Tj5{ padding:20px; }
  .yvsN61{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.gz4zY8x4 :focus-visible{ outline:2px solid var(--ig79o8-ze); outline-offset:2px; }

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