/* CSS Variables */
:root {
  --kh8t-idsk: #4f46e5;
  --j2pjh-kw: #ffffff;
  --ua0hv-fb6g: #f9fafb;
  --ojglb-aoa: #0f172a;
  --x04-v1: #6b7280;
  --tfq-ikvf: #e5e7eb;
  --zfcr-aep1: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --c7b-fr4: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --juc486-kq9h: 16px;
  --lhx-rfg: 56px;
  --p0m1d-s0o: 12px;
  --z4c3y-u68: 999999;
}

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

/* Main Container */
.oydr {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--z4c3y-u68);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ojglb-aoa);
}
.oydr.vt4f4 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.hkghvj { display: flex; flex-direction: column-reverse; gap: var(--p0m1d-s0o); align-items: center; }
.ld071 {
  width: var(--lhx-rfg); height: var(--lhx-rfg); min-width: var(--lhx-rfg); min-height: var(--lhx-rfg);
  border-radius: 50%; border: none; background: var(--kh8t-idsk); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--zfcr-aep1);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.ld071:hover { transform: scale(1.05); box-shadow: var(--c7b-fr4); }
.ld071:active { transform: scale(0.95); }
.ld071:focus { outline: 2px solid var(--kh8t-idsk); outline-offset: 2px; }
.ld071 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ld071.qbt5m{ animation:none; }
  .ld071,.fb7h,.xs3y{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.fb7h{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--j2pjh-kw); border-radius: var(--juc486-kq9h); box-shadow: var(--c7b-fr4);
  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;
}
.oydr.vt4f4 .fb7h{ right:auto; left:24px; }
.fb7h.xjd2q6{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.widbs{
  padding:16px 20px; background:var(--j2pjh-kw); border-bottom:1px solid var(--tfq-ikvf);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.q403ws{ width:10px; height:10px; border-radius:50%; background:var(--kh8t-idsk); flex-shrink:0; }
.zcid{ flex:1; min-width:0; }
.ckpjtr{ font-size:16px; font-weight:600; color:var(--ojglb-aoa); margin:0 0 2px 0; }
.fqa1w{ font-size:13px; color:var(--x04-v1); margin:0; }
.xpc4h8{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--x04-v1);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.xpc4h8:hover{ background:var(--ua0hv-fb6g); color:var(--ojglb-aoa); }
.xpc4h8:focus{ outline:2px solid var(--kh8t-idsk); outline-offset:2px; }
.xpc4h8 svg{ width:20px; height:20px; }

/* Body */
.c1ctxo{
  flex:1; overflow-y:auto; padding:16px; background:var(--ua0hv-fb6g);
  display:flex; flex-direction:column; gap:12px;
}
.c1ctxo::-webkit-scrollbar{ width:6px; }
.c1ctxo::-webkit-scrollbar-track{ background:transparent; }
.c1ctxo::-webkit-scrollbar-thumb{ background:var(--tfq-ikvf); border-radius:3px; }
.c1ctxo::-webkit-scrollbar-thumb:hover{ background:var(--x04-v1); }

/* Messages */
.xs3y{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.xs3y.av52{ flex-direction:row-reverse; }
.f9gzv{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.f9gzv a{ color:inherit; }
.xs3y.yfxo3 .f9gzv{ background:var(--j2pjh-kw); color:var(--ojglb-aoa); border-bottom-left-radius:4px; }
.xs3y.av52 .f9gzv{ background:var(--kh8t-idsk); color:#fff; border-bottom-right-radius:4px; }
.u120a{ font-size:11px; color:var(--x04-v1); margin-top:4px; display:block; }

/* Typing Indicator */
.ai0y{
  display:flex; gap:8px; padding:10px 14px; background:var(--j2pjh-kw);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.vxjb{ width:8px; height:8px; border-radius:50%; background:var(--x04-v1); animation:typingDot 1.4s infinite; }
.vxjb:nth-child(2){ animation-delay:.2s; }
.vxjb: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) */
.a9eq{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.rncehn{
  border:0; border-radius:999px; padding:8px 12px; background:var(--kh8t-idsk); 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(--zfcr-aep1);
}
.rncehn:is(:hover,:focus){ transform:translateY(-1px); }
a.rncehn{ text-decoration:none; display:inline-block; }
a.rncehn:link, a.rncehn:visited{ color:#fff; }
a.rncehn:hover, a.rncehn:focus{ color:#fff; }

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

/* Footer */
.lx3n4{
  padding:16px; background:var(--j2pjh-kw); border-top:1px solid var(--tfq-ikvf);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.fey3{
  flex:1; padding:10px 14px; border:1px solid var(--tfq-ikvf); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ojglb-aoa);
  background:var(--ua0hv-fb6g); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.fey3:focus{ border-color:var(--kh8t-idsk); }
.fey3::placeholder{ color:var(--x04-v1); }
.fey3.y679m{ border-color:#c00; }
.vkody{
  width:40px; height:40px; min-width:40px; border:none; background:var(--kh8t-idsk); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vkody:disabled{ opacity:.5; cursor:not-allowed; }
.vkody:not(:disabled):hover{ transform:scale(1.05); }
.vkody:not(:disabled):active{ transform:scale(0.95); }
.vkody:focus{ outline:2px solid var(--kh8t-idsk); outline-offset:2px; }
.vkody svg{ width:20px; height:20px; }

/* Character Counter */
.zm2f5u{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--x04-v1); }
.zm2f5u.jpaz6{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.h0zc{
  align-self:flex-start;
  max-width:75%;
  background: var(--j2pjh-kw);
  color: var(--ojglb-aoa);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--zfcr-aep1);
}
.ek3e1{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.m5haj.nf4gp{
  background: transparent; color: var(--ojglb-aoa); border-color: var(--tfq-ikvf);
}
.m5haj.nf4gp:hover{
  background: var(--kh8t-idsk); color:#fff; border-color: var(--kh8t-idsk);
}

/* Mobile */
@media (max-width: 768px){
  .oydr{ bottom:16px; right:16px; }
  .oydr.vt4f4{ left:16px; }
  .ld071{ --lhx-rfg:60px; }
  .fb7h{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--juc486-kq9h) var(--juc486-kq9h) 0 0; transform: translateY(100%);
  }
  .fb7h.xjd2q6{ transform: translateY(0); }
  .widbs{ padding:20px; }
  .lx3n4{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.oydr :focus-visible{ outline:2px solid var(--kh8t-idsk); outline-offset:2px; }

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