/* CSS Variables */
:root {
  --u01a4-w4ze: #4f46e5;
  --kfgz-lbkl: #ffffff;
  --hrii-nkc: #f9fafb;
  --hp5-gyb: #0f172a;
  --wzmm-bii: #6b7280;
  --rsm-wg9z: #e5e7eb;
  --o7cjr5-tc: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --l82do-vxw: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --imx2-dun: 16px;
  --rot7a-upp: 56px;
  --bqr109-lvw8: 12px;
  --ekv4-nbqo: 999999;
}

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

/* Main Container */
.krCxq {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ekv4-nbqo);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--hp5-gyb);
}
.krCxq.j47N7m6 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.if2Bsp { display: flex; flex-direction: column-reverse; gap: var(--bqr109-lvw8); align-items: center; }
.ybP4m {
  width: var(--rot7a-upp); height: var(--rot7a-upp); min-width: var(--rot7a-upp); min-height: var(--rot7a-upp);
  border-radius: 50%; border: none; background: var(--u01a4-w4ze); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--o7cjr5-tc);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ybP4m:hover { transform: scale(1.05); box-shadow: var(--l82do-vxw); }
.ybP4m:active { transform: scale(0.95); }
.ybP4m:focus { outline: 2px solid var(--u01a4-w4ze); outline-offset: 2px; }
.ybP4m svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ybP4m.gkrjDih1{ animation:none; }
  .ybP4m,.aiIvk,.g8Svi{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.aiIvk{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--kfgz-lbkl); border-radius: var(--imx2-dun); box-shadow: var(--l82do-vxw);
  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;
}
.krCxq.j47N7m6 .aiIvk{ right:auto; left:24px; }
.aiIvk.rqi1Hjx7{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.iysqC2lz{
  padding:16px 20px; background:var(--kfgz-lbkl); border-bottom:1px solid var(--rsm-wg9z);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.c8P03{ width:10px; height:10px; border-radius:50%; background:var(--u01a4-w4ze); flex-shrink:0; }
.ddteSqk6{ flex:1; min-width:0; }
.zm9tVn6j{ font-size:16px; font-weight:600; color:var(--hp5-gyb); margin:0 0 2px 0; }
.t7hJ3i{ font-size:13px; color:var(--wzmm-bii); margin:0; }
.lpbVkm8{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--wzmm-bii);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.lpbVkm8:hover{ background:var(--hrii-nkc); color:var(--hp5-gyb); }
.lpbVkm8:focus{ outline:2px solid var(--u01a4-w4ze); outline-offset:2px; }
.lpbVkm8 svg{ width:20px; height:20px; }

/* Body */
.ag6Vhe{
  flex:1; overflow-y:auto; padding:16px; background:var(--hrii-nkc);
  display:flex; flex-direction:column; gap:12px;
}
.ag6Vhe::-webkit-scrollbar{ width:6px; }
.ag6Vhe::-webkit-scrollbar-track{ background:transparent; }
.ag6Vhe::-webkit-scrollbar-thumb{ background:var(--rsm-wg9z); border-radius:3px; }
.ag6Vhe::-webkit-scrollbar-thumb:hover{ background:var(--wzmm-bii); }

/* Messages */
.g8Svi{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.g8Svi.e0Tra{ flex-direction:row-reverse; }
.adfxVbuj{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.adfxVbuj a{ color:inherit; }
.g8Svi.qct1Ajdk .adfxVbuj{ background:var(--kfgz-lbkl); color:var(--hp5-gyb); border-bottom-left-radius:4px; }
.g8Svi.e0Tra .adfxVbuj{ background:var(--u01a4-w4ze); color:#fff; border-bottom-right-radius:4px; }
.eomLoib{ font-size:11px; color:var(--wzmm-bii); margin-top:4px; display:block; }

/* Typing Indicator */
.t8l2Wgcs{
  display:flex; gap:8px; padding:10px 14px; background:var(--kfgz-lbkl);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.hwpB15b{ width:8px; height:8px; border-radius:50%; background:var(--wzmm-bii); animation:typingDot 1.4s infinite; }
.hwpB15b:nth-child(2){ animation-delay:.2s; }
.hwpB15b: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) */
.apefUrpw{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.annJat{
  border:0; border-radius:999px; padding:8px 12px; background:var(--u01a4-w4ze); 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(--o7cjr5-tc);
}
.annJat:is(:hover,:focus){ transform:translateY(-1px); }
a.annJat{ text-decoration:none; display:inline-block; }
a.annJat:link, a.annJat:visited{ color:#fff; }
a.annJat:hover, a.annJat:focus{ color:#fff; }

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

/* Footer */
.riI5x{
  padding:16px; background:var(--kfgz-lbkl); border-top:1px solid var(--rsm-wg9z);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.yf2Cwd{
  flex:1; padding:10px 14px; border:1px solid var(--rsm-wg9z); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--hp5-gyb);
  background:var(--hrii-nkc); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.yf2Cwd:focus{ border-color:var(--u01a4-w4ze); }
.yf2Cwd::placeholder{ color:var(--wzmm-bii); }
.yf2Cwd.l8l1Fiqd{ border-color:#c00; }
.vz7Uxpy{
  width:40px; height:40px; min-width:40px; border:none; background:var(--u01a4-w4ze); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vz7Uxpy:disabled{ opacity:.5; cursor:not-allowed; }
.vz7Uxpy:not(:disabled):hover{ transform:scale(1.05); }
.vz7Uxpy:not(:disabled):active{ transform:scale(0.95); }
.vz7Uxpy:focus{ outline:2px solid var(--u01a4-w4ze); outline-offset:2px; }
.vz7Uxpy svg{ width:20px; height:20px; }

/* Character Counter */
.lqlTk0{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--wzmm-bii); }
.lqlTk0.ggbaCb67{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.khsXwdm{
  align-self:flex-start;
  max-width:75%;
  background: var(--kfgz-lbkl);
  color: var(--hp5-gyb);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--o7cjr5-tc);
}
.glqPfi{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.z5nfN0sg.biQm0{
  background: transparent; color: var(--hp5-gyb); border-color: var(--rsm-wg9z);
}
.z5nfN0sg.biQm0:hover{
  background: var(--u01a4-w4ze); color:#fff; border-color: var(--u01a4-w4ze);
}

/* Mobile */
@media (max-width: 768px){
  .krCxq{ bottom:16px; right:16px; }
  .krCxq.j47N7m6{ left:16px; }
  .ybP4m{ --rot7a-upp:60px; }
  .aiIvk{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--imx2-dun) var(--imx2-dun) 0 0; transform: translateY(100%);
  }
  .aiIvk.rqi1Hjx7{ transform: translateY(0); }
  .iysqC2lz{ padding:20px; }
  .riI5x{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.krCxq :focus-visible{ outline:2px solid var(--u01a4-w4ze); outline-offset:2px; }

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