/* CSS Variables */
:root {
  --ny73n9-qs9: #4f46e5;
  --owzwuv-sg4h: #ffffff;
  --tb7-bf: #f9fafb;
  --k8xn2-q733: #0f172a;
  --kqlvdz-hnr: #6b7280;
  --ja2yc-ch2: #e5e7eb;
  --g8uz9-e13r: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --lbs-gpml: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --akzk-y0: 16px;
  --ki83-drc: 56px;
  --mp5j-h3zy: 12px;
  --c3es-kus: 999999;
}

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

/* Main Container */
.ki35u6 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--c3es-kus);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--k8xn2-q733);
}
.ki35u6.bviq2 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.r61obl { display: flex; flex-direction: column-reverse; gap: var(--mp5j-h3zy); align-items: center; }
.cygsk {
  width: var(--ki83-drc); height: var(--ki83-drc); min-width: var(--ki83-drc); min-height: var(--ki83-drc);
  border-radius: 50%; border: none; background: var(--ny73n9-qs9); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--g8uz9-e13r);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.cygsk:hover { transform: scale(1.05); box-shadow: var(--lbs-gpml); }
.cygsk:active { transform: scale(0.95); }
.cygsk:focus { outline: 2px solid var(--ny73n9-qs9); outline-offset: 2px; }
.cygsk svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .cygsk.qg8nkr{ animation:none; }
  .cygsk,.fkqvx,.parf{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.fkqvx{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--owzwuv-sg4h); border-radius: var(--akzk-y0); box-shadow: var(--lbs-gpml);
  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;
}
.ki35u6.bviq2 .fkqvx{ right:auto; left:24px; }
.fkqvx.rasen{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.x2lrz{
  padding:16px 20px; background:var(--owzwuv-sg4h); border-bottom:1px solid var(--ja2yc-ch2);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.x4dm2{ width:10px; height:10px; border-radius:50%; background:var(--ny73n9-qs9); flex-shrink:0; }
.n9zu3z{ flex:1; min-width:0; }
.oel60i{ font-size:16px; font-weight:600; color:var(--k8xn2-q733); margin:0 0 2px 0; }
.a7vu6{ font-size:13px; color:var(--kqlvdz-hnr); margin:0; }
.scvg8x{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--kqlvdz-hnr);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.scvg8x:hover{ background:var(--tb7-bf); color:var(--k8xn2-q733); }
.scvg8x:focus{ outline:2px solid var(--ny73n9-qs9); outline-offset:2px; }
.scvg8x svg{ width:20px; height:20px; }

/* Body */
.bdpw7{
  flex:1; overflow-y:auto; padding:16px; background:var(--tb7-bf);
  display:flex; flex-direction:column; gap:12px;
}
.bdpw7::-webkit-scrollbar{ width:6px; }
.bdpw7::-webkit-scrollbar-track{ background:transparent; }
.bdpw7::-webkit-scrollbar-thumb{ background:var(--ja2yc-ch2); border-radius:3px; }
.bdpw7::-webkit-scrollbar-thumb:hover{ background:var(--kqlvdz-hnr); }

/* Messages */
.parf{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.parf.z8xi{ flex-direction:row-reverse; }
.wfj8{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.wfj8 a{ color:inherit; }
.parf.zb9dqj .wfj8{ background:var(--owzwuv-sg4h); color:var(--k8xn2-q733); border-bottom-left-radius:4px; }
.parf.z8xi .wfj8{ background:var(--ny73n9-qs9); color:#fff; border-bottom-right-radius:4px; }
.g990a{ font-size:11px; color:var(--kqlvdz-hnr); margin-top:4px; display:block; }

/* Typing Indicator */
.b24ba{
  display:flex; gap:8px; padding:10px 14px; background:var(--owzwuv-sg4h);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.co2g{ width:8px; height:8px; border-radius:50%; background:var(--kqlvdz-hnr); animation:typingDot 1.4s infinite; }
.co2g:nth-child(2){ animation-delay:.2s; }
.co2g: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) */
.h8px{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.z9l16{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ny73n9-qs9); 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(--g8uz9-e13r);
}
.z9l16:is(:hover,:focus){ transform:translateY(-1px); }
a.z9l16{ text-decoration:none; display:inline-block; }
a.z9l16:link, a.z9l16:visited{ color:#fff; }
a.z9l16:hover, a.z9l16:focus{ color:#fff; }

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

/* Footer */
.p9o6j{
  padding:16px; background:var(--owzwuv-sg4h); border-top:1px solid var(--ja2yc-ch2);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.wlpvf{
  flex:1; padding:10px 14px; border:1px solid var(--ja2yc-ch2); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--k8xn2-q733);
  background:var(--tb7-bf); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.wlpvf:focus{ border-color:var(--ny73n9-qs9); }
.wlpvf::placeholder{ color:var(--kqlvdz-hnr); }
.wlpvf.fgua{ border-color:#c00; }
.m5lxj2{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ny73n9-qs9); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.m5lxj2:disabled{ opacity:.5; cursor:not-allowed; }
.m5lxj2:not(:disabled):hover{ transform:scale(1.05); }
.m5lxj2:not(:disabled):active{ transform:scale(0.95); }
.m5lxj2:focus{ outline:2px solid var(--ny73n9-qs9); outline-offset:2px; }
.m5lxj2 svg{ width:20px; height:20px; }

/* Character Counter */
.fkab{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--kqlvdz-hnr); }
.fkab.gxkh7b{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.v0kf{
  align-self:flex-start;
  max-width:75%;
  background: var(--owzwuv-sg4h);
  color: var(--k8xn2-q733);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--g8uz9-e13r);
}
.eqr4{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.xfhnpv.a7yht{
  background: transparent; color: var(--k8xn2-q733); border-color: var(--ja2yc-ch2);
}
.xfhnpv.a7yht:hover{
  background: var(--ny73n9-qs9); color:#fff; border-color: var(--ny73n9-qs9);
}

/* Mobile */
@media (max-width: 768px){
  .ki35u6{ bottom:16px; right:16px; }
  .ki35u6.bviq2{ left:16px; }
  .cygsk{ --ki83-drc:60px; }
  .fkqvx{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--akzk-y0) var(--akzk-y0) 0 0; transform: translateY(100%);
  }
  .fkqvx.rasen{ transform: translateY(0); }
  .x2lrz{ padding:20px; }
  .p9o6j{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ki35u6 :focus-visible{ outline:2px solid var(--ny73n9-qs9); outline-offset:2px; }

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