/* CSS Variables */
:root {
  --mg41bp-rj1l: #4f46e5;
  --ailb-yub4: #ffffff;
  --tgkg5-vz: #f9fafb;
  --hn4i-a7: #0f172a;
  --d69b-zd: #6b7280;
  --vf07k-hsj: #e5e7eb;
  --a42-kzh: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --t2h4n-vz: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --d3w-opy: 16px;
  --iiys-zjo: 56px;
  --nc6cig-da1y: 12px;
  --fp1j2-mex: 999999;
}

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

/* Main Container */
.e86s0m4td {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--fp1j2-mex);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--hn4i-a7);
}
.e86s0m4td.n17k_b3r { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.v655yygx { display: flex; flex-direction: column-reverse; gap: var(--nc6cig-da1y); align-items: center; }
.yj01byj {
  width: var(--iiys-zjo); height: var(--iiys-zjo); min-width: var(--iiys-zjo); min-height: var(--iiys-zjo);
  border-radius: 50%; border: none; background: var(--mg41bp-rj1l); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--a42-kzh);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.yj01byj:hover { transform: scale(1.05); box-shadow: var(--t2h4n-vz); }
.yj01byj:active { transform: scale(0.95); }
.yj01byj:focus { outline: 2px solid var(--mg41bp-rj1l); outline-offset: 2px; }
.yj01byj svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .yj01byj.m2xsd4h8_2{ animation:none; }
  .yj01byj,.w896diq,.c7at5ao8k{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.w896diq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ailb-yub4); border-radius: var(--d3w-opy); box-shadow: var(--t2h4n-vz);
  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;
}
.e86s0m4td.n17k_b3r .w896diq{ right:auto; left:24px; }
.w896diq.du0lws8{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ae_xc5{
  padding:16px 20px; background:var(--ailb-yub4); border-bottom:1px solid var(--vf07k-hsj);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ksw8_g{ width:10px; height:10px; border-radius:50%; background:var(--mg41bp-rj1l); flex-shrink:0; }
.yr7fh0iaa{ flex:1; min-width:0; }
.a1v5i7n{ font-size:16px; font-weight:600; color:var(--hn4i-a7); margin:0 0 2px 0; }
.dnqqgyk{ font-size:13px; color:var(--d69b-zd); margin:0; }
.zmbcfcf0vo{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--d69b-zd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.zmbcfcf0vo:hover{ background:var(--tgkg5-vz); color:var(--hn4i-a7); }
.zmbcfcf0vo:focus{ outline:2px solid var(--mg41bp-rj1l); outline-offset:2px; }
.zmbcfcf0vo svg{ width:20px; height:20px; }

/* Body */
.kfgqz5s{
  flex:1; overflow-y:auto; padding:16px; background:var(--tgkg5-vz);
  display:flex; flex-direction:column; gap:12px;
}
.kfgqz5s::-webkit-scrollbar{ width:6px; }
.kfgqz5s::-webkit-scrollbar-track{ background:transparent; }
.kfgqz5s::-webkit-scrollbar-thumb{ background:var(--vf07k-hsj); border-radius:3px; }
.kfgqz5s::-webkit-scrollbar-thumb:hover{ background:var(--d69b-zd); }

/* Messages */
.c7at5ao8k{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.c7at5ao8k.nucfw2v5g{ flex-direction:row-reverse; }
.qm0nek{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.qm0nek a{ color:inherit; }
.c7at5ao8k.xnb8jucrw .qm0nek{ background:var(--ailb-yub4); color:var(--hn4i-a7); border-bottom-left-radius:4px; }
.c7at5ao8k.nucfw2v5g .qm0nek{ background:var(--mg41bp-rj1l); color:#fff; border-bottom-right-radius:4px; }
.d22_jkz0{ font-size:11px; color:var(--d69b-zd); margin-top:4px; display:block; }

/* Typing Indicator */
.h9lr6fvvfm{
  display:flex; gap:8px; padding:10px 14px; background:var(--ailb-yub4);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.x8zycir{ width:8px; height:8px; border-radius:50%; background:var(--d69b-zd); animation:typingDot 1.4s infinite; }
.x8zycir:nth-child(2){ animation-delay:.2s; }
.x8zycir: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) */
.a2o5iosr{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.j45pbkg3o1{
  border:0; border-radius:999px; padding:8px 12px; background:var(--mg41bp-rj1l); 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(--a42-kzh);
}
.j45pbkg3o1:is(:hover,:focus){ transform:translateY(-1px); }
a.j45pbkg3o1{ text-decoration:none; display:inline-block; }
a.j45pbkg3o1:link, a.j45pbkg3o1:visited{ color:#fff; }
a.j45pbkg3o1:hover, a.j45pbkg3o1:focus{ color:#fff; }

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

/* Footer */
.oiwc41lz1{
  padding:16px; background:var(--ailb-yub4); border-top:1px solid var(--vf07k-hsj);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.tm7ozijp{
  flex:1; padding:10px 14px; border:1px solid var(--vf07k-hsj); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--hn4i-a7);
  background:var(--tgkg5-vz); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.tm7ozijp:focus{ border-color:var(--mg41bp-rj1l); }
.tm7ozijp::placeholder{ color:var(--d69b-zd); }
.tm7ozijp.lvodjgjj{ border-color:#c00; }
.uknfs8{
  width:40px; height:40px; min-width:40px; border:none; background:var(--mg41bp-rj1l); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.uknfs8:disabled{ opacity:.5; cursor:not-allowed; }
.uknfs8:not(:disabled):hover{ transform:scale(1.05); }
.uknfs8:not(:disabled):active{ transform:scale(0.95); }
.uknfs8:focus{ outline:2px solid var(--mg41bp-rj1l); outline-offset:2px; }
.uknfs8 svg{ width:20px; height:20px; }

/* Character Counter */
.ea_98wk8{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--d69b-zd); }
.ea_98wk8.o1pabrb{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ceola2rjb{
  align-self:flex-start;
  max-width:75%;
  background: var(--ailb-yub4);
  color: var(--hn4i-a7);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--a42-kzh);
}
.bc0di4y7kw{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.c484a16sal.n6nyiuxypd{
  background: transparent; color: var(--hn4i-a7); border-color: var(--vf07k-hsj);
}
.c484a16sal.n6nyiuxypd:hover{
  background: var(--mg41bp-rj1l); color:#fff; border-color: var(--mg41bp-rj1l);
}

/* Mobile */
@media (max-width: 768px){
  .e86s0m4td{ bottom:16px; right:16px; }
  .e86s0m4td.n17k_b3r{ left:16px; }
  .yj01byj{ --iiys-zjo:60px; }
  .w896diq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--d3w-opy) var(--d3w-opy) 0 0; transform: translateY(100%);
  }
  .w896diq.du0lws8{ transform: translateY(0); }
  .ae_xc5{ padding:20px; }
  .oiwc41lz1{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.e86s0m4td :focus-visible{ outline:2px solid var(--mg41bp-rj1l); outline-offset:2px; }

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