/* CSS Variables */
:root {
  --cwuv5m-xrgu: #4f46e5;
  --icuouz-raly: #ffffff;
  --jt2mr-hepl: #f9fafb;
  --b5kh-zt: #0f172a;
  --ddww-o415: #6b7280;
  --fgookh-b6q: #e5e7eb;
  --vzh-qd0: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --mdpqx5-n2t: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --x4p9p-fj1s: 16px;
  --zuvh-lr: 56px;
  --c88-vxlg: 12px;
  --gyhb4g-lja: 999999;
}

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

/* Main Container */
.egfq9i {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--gyhb4g-lja);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--b5kh-zt);
}
.egfq9i.po4iku64 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.j2h7u85u { display: flex; flex-direction: column-reverse; gap: var(--c88-vxlg); align-items: center; }
.y2zrgb {
  width: var(--zuvh-lr); height: var(--zuvh-lr); min-width: var(--zuvh-lr); min-height: var(--zuvh-lr);
  border-radius: 50%; border: none; background: var(--cwuv5m-xrgu); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--vzh-qd0);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.y2zrgb:hover { transform: scale(1.05); box-shadow: var(--mdpqx5-n2t); }
.y2zrgb:active { transform: scale(0.95); }
.y2zrgb:focus { outline: 2px solid var(--cwuv5m-xrgu); outline-offset: 2px; }
.y2zrgb svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .y2zrgb.hk8jx0gx{ animation:none; }
  .y2zrgb,.zpk5e4e0,.i35ttu5izs{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.zpk5e4e0{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--icuouz-raly); border-radius: var(--x4p9p-fj1s); box-shadow: var(--mdpqx5-n2t);
  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;
}
.egfq9i.po4iku64 .zpk5e4e0{ right:auto; left:24px; }
.zpk5e4e0.m0aaz9az8c{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.crq_r0p{
  padding:16px 20px; background:var(--icuouz-raly); border-bottom:1px solid var(--fgookh-b6q);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.yee37v2yo{ width:10px; height:10px; border-radius:50%; background:var(--cwuv5m-xrgu); flex-shrink:0; }
.ffo4n4{ flex:1; min-width:0; }
.spgfgl9{ font-size:16px; font-weight:600; color:var(--b5kh-zt); margin:0 0 2px 0; }
.iwvjcie3r{ font-size:13px; color:var(--ddww-o415); margin:0; }
.wrw870{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ddww-o415);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.wrw870:hover{ background:var(--jt2mr-hepl); color:var(--b5kh-zt); }
.wrw870:focus{ outline:2px solid var(--cwuv5m-xrgu); outline-offset:2px; }
.wrw870 svg{ width:20px; height:20px; }

/* Body */
.qwmdt9w{
  flex:1; overflow-y:auto; padding:16px; background:var(--jt2mr-hepl);
  display:flex; flex-direction:column; gap:12px;
}
.qwmdt9w::-webkit-scrollbar{ width:6px; }
.qwmdt9w::-webkit-scrollbar-track{ background:transparent; }
.qwmdt9w::-webkit-scrollbar-thumb{ background:var(--fgookh-b6q); border-radius:3px; }
.qwmdt9w::-webkit-scrollbar-thumb:hover{ background:var(--ddww-o415); }

/* Messages */
.i35ttu5izs{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.i35ttu5izs.aua_dm16{ flex-direction:row-reverse; }
.l4ccz3e4r{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.l4ccz3e4r a{ color:inherit; }
.i35ttu5izs.w_1u4lqq6j .l4ccz3e4r{ background:var(--icuouz-raly); color:var(--b5kh-zt); border-bottom-left-radius:4px; }
.i35ttu5izs.aua_dm16 .l4ccz3e4r{ background:var(--cwuv5m-xrgu); color:#fff; border-bottom-right-radius:4px; }
.ghq1_k9kpn{ font-size:11px; color:var(--ddww-o415); margin-top:4px; display:block; }

/* Typing Indicator */
.vl_5pwls{
  display:flex; gap:8px; padding:10px 14px; background:var(--icuouz-raly);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.r0_90m0f22{ width:8px; height:8px; border-radius:50%; background:var(--ddww-o415); animation:typingDot 1.4s infinite; }
.r0_90m0f22:nth-child(2){ animation-delay:.2s; }
.r0_90m0f22: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) */
.bknlglf6k9{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.fhm6rt{
  border:0; border-radius:999px; padding:8px 12px; background:var(--cwuv5m-xrgu); 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(--vzh-qd0);
}
.fhm6rt:is(:hover,:focus){ transform:translateY(-1px); }
a.fhm6rt{ text-decoration:none; display:inline-block; }
a.fhm6rt:link, a.fhm6rt:visited{ color:#fff; }
a.fhm6rt:hover, a.fhm6rt:focus{ color:#fff; }

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

/* Footer */
.klhkthjty{
  padding:16px; background:var(--icuouz-raly); border-top:1px solid var(--fgookh-b6q);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.moubr8{
  flex:1; padding:10px 14px; border:1px solid var(--fgookh-b6q); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--b5kh-zt);
  background:var(--jt2mr-hepl); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.moubr8:focus{ border-color:var(--cwuv5m-xrgu); }
.moubr8::placeholder{ color:var(--ddww-o415); }
.moubr8.bu2irjms{ border-color:#c00; }
.ipwrc0pfi{
  width:40px; height:40px; min-width:40px; border:none; background:var(--cwuv5m-xrgu); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ipwrc0pfi:disabled{ opacity:.5; cursor:not-allowed; }
.ipwrc0pfi:not(:disabled):hover{ transform:scale(1.05); }
.ipwrc0pfi:not(:disabled):active{ transform:scale(0.95); }
.ipwrc0pfi:focus{ outline:2px solid var(--cwuv5m-xrgu); outline-offset:2px; }
.ipwrc0pfi svg{ width:20px; height:20px; }

/* Character Counter */
.xi2kh5{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ddww-o415); }
.xi2kh5.ug_w1rfz9{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.t7h4f009{
  align-self:flex-start;
  max-width:75%;
  background: var(--icuouz-raly);
  color: var(--b5kh-zt);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--vzh-qd0);
}
.nv3j3h1fr{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.hmgduzmmi.p184mk{
  background: transparent; color: var(--b5kh-zt); border-color: var(--fgookh-b6q);
}
.hmgduzmmi.p184mk:hover{
  background: var(--cwuv5m-xrgu); color:#fff; border-color: var(--cwuv5m-xrgu);
}

/* Mobile */
@media (max-width: 768px){
  .egfq9i{ bottom:16px; right:16px; }
  .egfq9i.po4iku64{ left:16px; }
  .y2zrgb{ --zuvh-lr:60px; }
  .zpk5e4e0{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--x4p9p-fj1s) var(--x4p9p-fj1s) 0 0; transform: translateY(100%);
  }
  .zpk5e4e0.m0aaz9az8c{ transform: translateY(0); }
  .crq_r0p{ padding:20px; }
  .klhkthjty{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.egfq9i :focus-visible{ outline:2px solid var(--cwuv5m-xrgu); outline-offset:2px; }

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