/* CSS Variables */
:root {
  --g5k-nd: #4f46e5;
  --rz17rf-p7c: #ffffff;
  --p70anr-yxim: #f9fafb;
  --x56g-ibwr: #0f172a;
  --q76tm-u4: #6b7280;
  --j6b1o-hm: #e5e7eb;
  --d5cmak-q1o: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --dnroi-z4: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --rf0-iwq4: 16px;
  --tfy77-ky9m: 56px;
  --n1c-nhrd: 12px;
  --naj6q-hpe5: 999999;
}

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

/* Main Container */
.abolHri0 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--naj6q-hpe5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--x56g-ibwr);
}
.abolHri0.msbjEkw0 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.jm9hDfa4 { display: flex; flex-direction: column-reverse; gap: var(--n1c-nhrd); align-items: center; }
.zs1E6q2 {
  width: var(--tfy77-ky9m); height: var(--tfy77-ky9m); min-width: var(--tfy77-ky9m); min-height: var(--tfy77-ky9m);
  border-radius: 50%; border: none; background: var(--g5k-nd); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--d5cmak-q1o);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.zs1E6q2:hover { transform: scale(1.05); box-shadow: var(--dnroi-z4); }
.zs1E6q2:active { transform: scale(0.95); }
.zs1E6q2:focus { outline: 2px solid var(--g5k-nd); outline-offset: 2px; }
.zs1E6q2 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .zs1E6q2.evqFxu{ animation:none; }
  .zs1E6q2,.sjkNl6h,.zwcVh9{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.sjkNl6h{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--rz17rf-p7c); border-radius: var(--rf0-iwq4); box-shadow: var(--dnroi-z4);
  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;
}
.abolHri0.msbjEkw0 .sjkNl6h{ right:auto; left:24px; }
.sjkNl6h.ynnDg0t{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ww0xQ48f{
  padding:16px 20px; background:var(--rz17rf-p7c); border-bottom:1px solid var(--j6b1o-hm);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.pk8Why0{ width:10px; height:10px; border-radius:50%; background:var(--g5k-nd); flex-shrink:0; }
.ft5pWjam{ flex:1; min-width:0; }
.r3lVnw{ font-size:16px; font-weight:600; color:var(--x56g-ibwr); margin:0 0 2px 0; }
.c1mzXsue{ font-size:13px; color:var(--q76tm-u4); margin:0; }
.twC2t{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--q76tm-u4);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.twC2t:hover{ background:var(--p70anr-yxim); color:var(--x56g-ibwr); }
.twC2t:focus{ outline:2px solid var(--g5k-nd); outline-offset:2px; }
.twC2t svg{ width:20px; height:20px; }

/* Body */
.kmjLc5{
  flex:1; overflow-y:auto; padding:16px; background:var(--p70anr-yxim);
  display:flex; flex-direction:column; gap:12px;
}
.kmjLc5::-webkit-scrollbar{ width:6px; }
.kmjLc5::-webkit-scrollbar-track{ background:transparent; }
.kmjLc5::-webkit-scrollbar-thumb{ background:var(--j6b1o-hm); border-radius:3px; }
.kmjLc5::-webkit-scrollbar-thumb:hover{ background:var(--q76tm-u4); }

/* Messages */
.zwcVh9{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.zwcVh9.tkLkf{ flex-direction:row-reverse; }
.cf7Pi5{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.cf7Pi5 a{ color:inherit; }
.zwcVh9.i9Lmj .cf7Pi5{ background:var(--rz17rf-p7c); color:var(--x56g-ibwr); border-bottom-left-radius:4px; }
.zwcVh9.tkLkf .cf7Pi5{ background:var(--g5k-nd); color:#fff; border-bottom-right-radius:4px; }
.mgzrNuiv{ font-size:11px; color:var(--q76tm-u4); margin-top:4px; display:block; }

/* Typing Indicator */
.u2vCf56{
  display:flex; gap:8px; padding:10px 14px; background:var(--rz17rf-p7c);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.l3hxFtbf{ width:8px; height:8px; border-radius:50%; background:var(--q76tm-u4); animation:typingDot 1.4s infinite; }
.l3hxFtbf:nth-child(2){ animation-delay:.2s; }
.l3hxFtbf: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) */
.yhaByis{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.sdfySaba{
  border:0; border-radius:999px; padding:8px 12px; background:var(--g5k-nd); 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(--d5cmak-q1o);
}
.sdfySaba:is(:hover,:focus){ transform:translateY(-1px); }
a.sdfySaba{ text-decoration:none; display:inline-block; }
a.sdfySaba:link, a.sdfySaba:visited{ color:#fff; }
a.sdfySaba:hover, a.sdfySaba:focus{ color:#fff; }

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

/* Footer */
.zr7C5p{
  padding:16px; background:var(--rz17rf-p7c); border-top:1px solid var(--j6b1o-hm);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ic9Biy{
  flex:1; padding:10px 14px; border:1px solid var(--j6b1o-hm); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--x56g-ibwr);
  background:var(--p70anr-yxim); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ic9Biy:focus{ border-color:var(--g5k-nd); }
.ic9Biy::placeholder{ color:var(--q76tm-u4); }
.ic9Biy.dlPv0{ border-color:#c00; }
.hkVg4{
  width:40px; height:40px; min-width:40px; border:none; background:var(--g5k-nd); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.hkVg4:disabled{ opacity:.5; cursor:not-allowed; }
.hkVg4:not(:disabled):hover{ transform:scale(1.05); }
.hkVg4:not(:disabled):active{ transform:scale(0.95); }
.hkVg4:focus{ outline:2px solid var(--g5k-nd); outline-offset:2px; }
.hkVg4 svg{ width:20px; height:20px; }

/* Character Counter */
.kz7Rlnn{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--q76tm-u4); }
.kz7Rlnn.lsmOmf{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.utPlq{
  align-self:flex-start;
  max-width:75%;
  background: var(--rz17rf-p7c);
  color: var(--x56g-ibwr);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--d5cmak-q1o);
}
.a8wZ5y{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.cmvPt8.iazW68b{
  background: transparent; color: var(--x56g-ibwr); border-color: var(--j6b1o-hm);
}
.cmvPt8.iazW68b:hover{
  background: var(--g5k-nd); color:#fff; border-color: var(--g5k-nd);
}

/* Mobile */
@media (max-width: 768px){
  .abolHri0{ bottom:16px; right:16px; }
  .abolHri0.msbjEkw0{ left:16px; }
  .zs1E6q2{ --tfy77-ky9m:60px; }
  .sjkNl6h{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--rf0-iwq4) var(--rf0-iwq4) 0 0; transform: translateY(100%);
  }
  .sjkNl6h.ynnDg0t{ transform: translateY(0); }
  .ww0xQ48f{ padding:20px; }
  .zr7C5p{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.abolHri0 :focus-visible{ outline:2px solid var(--g5k-nd); outline-offset:2px; }

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