/* CSS Variables */
:root {
  --xti-qc: #4f46e5;
  --t9wbc-qc: #ffffff;
  --ftmb-zyb: #f9fafb;
  --xp2kf-t4: #0f172a;
  --af35-e5: #6b7280;
  --oqg-wu: #e5e7eb;
  --qgufao-q0: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --imjrfp-s50d: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --pvv-yj2k: 16px;
  --e7445-cj4e: 56px;
  --qpfb9w-xtgo: 12px;
  --zoq-ko4: 999999;
}

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

/* Main Container */
.e9kFha {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--zoq-ko4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--xp2kf-t4);
}
.e9kFha.x0vdLdxl { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.m3cLq8o { display: flex; flex-direction: column-reverse; gap: var(--qpfb9w-xtgo); align-items: center; }
.nrnLwe {
  width: var(--e7445-cj4e); height: var(--e7445-cj4e); min-width: var(--e7445-cj4e); min-height: var(--e7445-cj4e);
  border-radius: 50%; border: none; background: var(--xti-qc); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--qgufao-q0);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.nrnLwe:hover { transform: scale(1.05); box-shadow: var(--imjrfp-s50d); }
.nrnLwe:active { transform: scale(0.95); }
.nrnLwe:focus { outline: 2px solid var(--xti-qc); outline-offset: 2px; }
.nrnLwe svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nrnLwe.pwtFwf{ animation:none; }
  .nrnLwe,.bpObr,.ybyBcw{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.bpObr{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--t9wbc-qc); border-radius: var(--pvv-yj2k); box-shadow: var(--imjrfp-s50d);
  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;
}
.e9kFha.x0vdLdxl .bpObr{ right:auto; left:24px; }
.bpObr.sbcEx5e{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.qnZ86{
  padding:16px 20px; background:var(--t9wbc-qc); border-bottom:1px solid var(--oqg-wu);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.m29Ca5e{ width:10px; height:10px; border-radius:50%; background:var(--xti-qc); flex-shrink:0; }
.q9cHxw{ flex:1; min-width:0; }
.nlm0B5jf{ font-size:16px; font-weight:600; color:var(--xp2kf-t4); margin:0 0 2px 0; }
.fknmVpeg{ font-size:13px; color:var(--af35-e5); margin:0; }
.hg1S5m{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--af35-e5);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.hg1S5m:hover{ background:var(--ftmb-zyb); color:var(--xp2kf-t4); }
.hg1S5m:focus{ outline:2px solid var(--xti-qc); outline-offset:2px; }
.hg1S5m svg{ width:20px; height:20px; }

/* Body */
.ywqXms{
  flex:1; overflow-y:auto; padding:16px; background:var(--ftmb-zyb);
  display:flex; flex-direction:column; gap:12px;
}
.ywqXms::-webkit-scrollbar{ width:6px; }
.ywqXms::-webkit-scrollbar-track{ background:transparent; }
.ywqXms::-webkit-scrollbar-thumb{ background:var(--oqg-wu); border-radius:3px; }
.ywqXms::-webkit-scrollbar-thumb:hover{ background:var(--af35-e5); }

/* Messages */
.ybyBcw{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ybyBcw.fn7Z3z{ flex-direction:row-reverse; }
.y1iYqd{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.y1iYqd a{ color:inherit; }
.ybyBcw.vx1Alk1 .y1iYqd{ background:var(--t9wbc-qc); color:var(--xp2kf-t4); border-bottom-left-radius:4px; }
.ybyBcw.fn7Z3z .y1iYqd{ background:var(--xti-qc); color:#fff; border-bottom-right-radius:4px; }
.awtIlo{ font-size:11px; color:var(--af35-e5); margin-top:4px; display:block; }

/* Typing Indicator */
.teXt6{
  display:flex; gap:8px; padding:10px 14px; background:var(--t9wbc-qc);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.t93J7d8{ width:8px; height:8px; border-radius:50%; background:var(--af35-e5); animation:typingDot 1.4s infinite; }
.t93J7d8:nth-child(2){ animation-delay:.2s; }
.t93J7d8: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) */
.zc3Ksn{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.i12Ggnn{
  border:0; border-radius:999px; padding:8px 12px; background:var(--xti-qc); 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(--qgufao-q0);
}
.i12Ggnn:is(:hover,:focus){ transform:translateY(-1px); }
a.i12Ggnn{ text-decoration:none; display:inline-block; }
a.i12Ggnn:link, a.i12Ggnn:visited{ color:#fff; }
a.i12Ggnn:hover, a.i12Ggnn:focus{ color:#fff; }

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

/* Footer */
.zgyY4m{
  padding:16px; background:var(--t9wbc-qc); border-top:1px solid var(--oqg-wu);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.rvwzAks3{
  flex:1; padding:10px 14px; border:1px solid var(--oqg-wu); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--xp2kf-t4);
  background:var(--ftmb-zyb); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.rvwzAks3:focus{ border-color:var(--xti-qc); }
.rvwzAks3::placeholder{ color:var(--af35-e5); }
.rvwzAks3.vokNt9{ border-color:#c00; }
.cp6Gfz4{
  width:40px; height:40px; min-width:40px; border:none; background:var(--xti-qc); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.cp6Gfz4:disabled{ opacity:.5; cursor:not-allowed; }
.cp6Gfz4:not(:disabled):hover{ transform:scale(1.05); }
.cp6Gfz4:not(:disabled):active{ transform:scale(0.95); }
.cp6Gfz4:focus{ outline:2px solid var(--xti-qc); outline-offset:2px; }
.cp6Gfz4 svg{ width:20px; height:20px; }

/* Character Counter */
.egshVl7u{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--af35-e5); }
.egshVl7u.hc6hC8xs{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.l6Ita{
  align-self:flex-start;
  max-width:75%;
  background: var(--t9wbc-qc);
  color: var(--xp2kf-t4);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--qgufao-q0);
}
.dmoWef{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.skqmCn8b.bfzKmw{
  background: transparent; color: var(--xp2kf-t4); border-color: var(--oqg-wu);
}
.skqmCn8b.bfzKmw:hover{
  background: var(--xti-qc); color:#fff; border-color: var(--xti-qc);
}

/* Mobile */
@media (max-width: 768px){
  .e9kFha{ bottom:16px; right:16px; }
  .e9kFha.x0vdLdxl{ left:16px; }
  .nrnLwe{ --e7445-cj4e:60px; }
  .bpObr{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--pvv-yj2k) var(--pvv-yj2k) 0 0; transform: translateY(100%);
  }
  .bpObr.sbcEx5e{ transform: translateY(0); }
  .qnZ86{ padding:20px; }
  .zgyY4m{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.e9kFha :focus-visible{ outline:2px solid var(--xti-qc); outline-offset:2px; }

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