/* CSS Variables */
:root {
  --tinc-vj: #4f46e5;
  --i9ei3m-ao: #ffffff;
  --ocjh-z1: #f9fafb;
  --vwg0-vy: #0f172a;
  --u0t5c-jw1d: #6b7280;
  --e1pw-c48: #e5e7eb;
  --ba6xa-jfs: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hlbz-ykp: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --synd-cw: 16px;
  --vj683-xt: 56px;
  --gq3r-g1r: 12px;
  --akb-lay: 999999;
}

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

/* Main Container */
.yoilk {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--akb-lay);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--vwg0-vy);
}
.yoilk.e3x63 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.yx6f4 { display: flex; flex-direction: column-reverse; gap: var(--gq3r-g1r); align-items: center; }
.d4qn {
  width: var(--vj683-xt); height: var(--vj683-xt); min-width: var(--vj683-xt); min-height: var(--vj683-xt);
  border-radius: 50%; border: none; background: var(--tinc-vj); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ba6xa-jfs);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.d4qn:hover { transform: scale(1.05); box-shadow: var(--hlbz-ykp); }
.d4qn:active { transform: scale(0.95); }
.d4qn:focus { outline: 2px solid var(--tinc-vj); outline-offset: 2px; }
.d4qn svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .d4qn.i3ggm{ animation:none; }
  .d4qn,.q9gp6,.db20{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.q9gp6{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--i9ei3m-ao); border-radius: var(--synd-cw); box-shadow: var(--hlbz-ykp);
  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;
}
.yoilk.e3x63 .q9gp6{ right:auto; left:24px; }
.q9gp6.u7p2{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.x4lo{
  padding:16px 20px; background:var(--i9ei3m-ao); border-bottom:1px solid var(--e1pw-c48);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.w8uc{ width:10px; height:10px; border-radius:50%; background:var(--tinc-vj); flex-shrink:0; }
.pp7w{ flex:1; min-width:0; }
.z2ya{ font-size:16px; font-weight:600; color:var(--vwg0-vy); margin:0 0 2px 0; }
.uztdm3{ font-size:13px; color:var(--u0t5c-jw1d); margin:0; }
.nyznr{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--u0t5c-jw1d);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.nyznr:hover{ background:var(--ocjh-z1); color:var(--vwg0-vy); }
.nyznr:focus{ outline:2px solid var(--tinc-vj); outline-offset:2px; }
.nyznr svg{ width:20px; height:20px; }

/* Body */
.myu3{
  flex:1; overflow-y:auto; padding:16px; background:var(--ocjh-z1);
  display:flex; flex-direction:column; gap:12px;
}
.myu3::-webkit-scrollbar{ width:6px; }
.myu3::-webkit-scrollbar-track{ background:transparent; }
.myu3::-webkit-scrollbar-thumb{ background:var(--e1pw-c48); border-radius:3px; }
.myu3::-webkit-scrollbar-thumb:hover{ background:var(--u0t5c-jw1d); }

/* Messages */
.db20{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.db20.liwgl{ flex-direction:row-reverse; }
.bde4{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.bde4 a{ color:inherit; }
.db20.tolsk .bde4{ background:var(--i9ei3m-ao); color:var(--vwg0-vy); border-bottom-left-radius:4px; }
.db20.liwgl .bde4{ background:var(--tinc-vj); color:#fff; border-bottom-right-radius:4px; }
.n0xn{ font-size:11px; color:var(--u0t5c-jw1d); margin-top:4px; display:block; }

/* Typing Indicator */
.jlgrks{
  display:flex; gap:8px; padding:10px 14px; background:var(--i9ei3m-ao);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.pqgw1{ width:8px; height:8px; border-radius:50%; background:var(--u0t5c-jw1d); animation:typingDot 1.4s infinite; }
.pqgw1:nth-child(2){ animation-delay:.2s; }
.pqgw1: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) */
.gn4d{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.br2p{
  border:0; border-radius:999px; padding:8px 12px; background:var(--tinc-vj); 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(--ba6xa-jfs);
}
.br2p:is(:hover,:focus){ transform:translateY(-1px); }
a.br2p{ text-decoration:none; display:inline-block; }
a.br2p:link, a.br2p:visited{ color:#fff; }
a.br2p:hover, a.br2p:focus{ color:#fff; }

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

/* Footer */
.ovd80n{
  padding:16px; background:var(--i9ei3m-ao); border-top:1px solid var(--e1pw-c48);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.sg6e0e{
  flex:1; padding:10px 14px; border:1px solid var(--e1pw-c48); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--vwg0-vy);
  background:var(--ocjh-z1); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.sg6e0e:focus{ border-color:var(--tinc-vj); }
.sg6e0e::placeholder{ color:var(--u0t5c-jw1d); }
.sg6e0e.zdt7{ border-color:#c00; }
.ed5x2i{
  width:40px; height:40px; min-width:40px; border:none; background:var(--tinc-vj); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ed5x2i:disabled{ opacity:.5; cursor:not-allowed; }
.ed5x2i:not(:disabled):hover{ transform:scale(1.05); }
.ed5x2i:not(:disabled):active{ transform:scale(0.95); }
.ed5x2i:focus{ outline:2px solid var(--tinc-vj); outline-offset:2px; }
.ed5x2i svg{ width:20px; height:20px; }

/* Character Counter */
.c6n1ld{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--u0t5c-jw1d); }
.c6n1ld.bhlw{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.pvka6{
  align-self:flex-start;
  max-width:75%;
  background: var(--i9ei3m-ao);
  color: var(--vwg0-vy);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ba6xa-jfs);
}
.i2vq{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.gjuobu.jr9nqr{
  background: transparent; color: var(--vwg0-vy); border-color: var(--e1pw-c48);
}
.gjuobu.jr9nqr:hover{
  background: var(--tinc-vj); color:#fff; border-color: var(--tinc-vj);
}

/* Mobile */
@media (max-width: 768px){
  .yoilk{ bottom:16px; right:16px; }
  .yoilk.e3x63{ left:16px; }
  .d4qn{ --vj683-xt:60px; }
  .q9gp6{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--synd-cw) var(--synd-cw) 0 0; transform: translateY(100%);
  }
  .q9gp6.u7p2{ transform: translateY(0); }
  .x4lo{ padding:20px; }
  .ovd80n{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.yoilk :focus-visible{ outline:2px solid var(--tinc-vj); outline-offset:2px; }

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