/* CSS Variables */
:root {
  --g6a-kp: #4f46e5;
  --ir2s-dhj: #ffffff;
  --g07xe-qb: #f9fafb;
  --v65-aa: #0f172a;
  --cxzp-bokh: #6b7280;
  --p3oay-ap: #e5e7eb;
  --mkd1ge-f8yc: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --m56x-kv: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --jpi0qz-k40: 16px;
  --m686k0-qg0: 56px;
  --yzzne-xss: 12px;
  --bhs-zxb: 999999;
}

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

/* Main Container */
.x37la1 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--bhs-zxb);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--v65-aa);
}
.x37la1.ybefisrv5e { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.mrc9ch3 { display: flex; flex-direction: column-reverse; gap: var(--yzzne-xss); align-items: center; }
.j1u7wl {
  width: var(--m686k0-qg0); height: var(--m686k0-qg0); min-width: var(--m686k0-qg0); min-height: var(--m686k0-qg0);
  border-radius: 50%; border: none; background: var(--g6a-kp); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--mkd1ge-f8yc);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.j1u7wl:hover { transform: scale(1.05); box-shadow: var(--m56x-kv); }
.j1u7wl:active { transform: scale(0.95); }
.j1u7wl:focus { outline: 2px solid var(--g6a-kp); outline-offset: 2px; }
.j1u7wl svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .j1u7wl.wfqask{ animation:none; }
  .j1u7wl,.mze05yf,.uneq7_rr{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.mze05yf{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ir2s-dhj); border-radius: var(--jpi0qz-k40); box-shadow: var(--m56x-kv);
  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;
}
.x37la1.ybefisrv5e .mze05yf{ right:auto; left:24px; }
.mze05yf.fk_pg5lay{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.gv1tfeq{
  padding:16px 20px; background:var(--ir2s-dhj); border-bottom:1px solid var(--p3oay-ap);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.vai8ezf77t{ width:10px; height:10px; border-radius:50%; background:var(--g6a-kp); flex-shrink:0; }
.xgl891f{ flex:1; min-width:0; }
.yojicl{ font-size:16px; font-weight:600; color:var(--v65-aa); margin:0 0 2px 0; }
.vcq5a9udc{ font-size:13px; color:var(--cxzp-bokh); margin:0; }
.jli6tuedk{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--cxzp-bokh);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jli6tuedk:hover{ background:var(--g07xe-qb); color:var(--v65-aa); }
.jli6tuedk:focus{ outline:2px solid var(--g6a-kp); outline-offset:2px; }
.jli6tuedk svg{ width:20px; height:20px; }

/* Body */
.hleq09{
  flex:1; overflow-y:auto; padding:16px; background:var(--g07xe-qb);
  display:flex; flex-direction:column; gap:12px;
}
.hleq09::-webkit-scrollbar{ width:6px; }
.hleq09::-webkit-scrollbar-track{ background:transparent; }
.hleq09::-webkit-scrollbar-thumb{ background:var(--p3oay-ap); border-radius:3px; }
.hleq09::-webkit-scrollbar-thumb:hover{ background:var(--cxzp-bokh); }

/* Messages */
.uneq7_rr{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.uneq7_rr.f_bx8r4x{ flex-direction:row-reverse; }
.taix71hl{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.taix71hl a{ color:inherit; }
.uneq7_rr.khziuhuo .taix71hl{ background:var(--ir2s-dhj); color:var(--v65-aa); border-bottom-left-radius:4px; }
.uneq7_rr.f_bx8r4x .taix71hl{ background:var(--g6a-kp); color:#fff; border-bottom-right-radius:4px; }
.xpc575i{ font-size:11px; color:var(--cxzp-bokh); margin-top:4px; display:block; }

/* Typing Indicator */
.gf77npep{
  display:flex; gap:8px; padding:10px 14px; background:var(--ir2s-dhj);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.utzvi7y{ width:8px; height:8px; border-radius:50%; background:var(--cxzp-bokh); animation:typingDot 1.4s infinite; }
.utzvi7y:nth-child(2){ animation-delay:.2s; }
.utzvi7y: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) */
.bez43y9px{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pi31xcnx9b{
  border:0; border-radius:999px; padding:8px 12px; background:var(--g6a-kp); 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(--mkd1ge-f8yc);
}
.pi31xcnx9b:is(:hover,:focus){ transform:translateY(-1px); }
a.pi31xcnx9b{ text-decoration:none; display:inline-block; }
a.pi31xcnx9b:link, a.pi31xcnx9b:visited{ color:#fff; }
a.pi31xcnx9b:hover, a.pi31xcnx9b:focus{ color:#fff; }

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

/* Footer */
.p8dg7mlf{
  padding:16px; background:var(--ir2s-dhj); border-top:1px solid var(--p3oay-ap);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.yk3jtnd{
  flex:1; padding:10px 14px; border:1px solid var(--p3oay-ap); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--v65-aa);
  background:var(--g07xe-qb); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.yk3jtnd:focus{ border-color:var(--g6a-kp); }
.yk3jtnd::placeholder{ color:var(--cxzp-bokh); }
.yk3jtnd.qyu_ng{ border-color:#c00; }
.uuroiku2f8{
  width:40px; height:40px; min-width:40px; border:none; background:var(--g6a-kp); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.uuroiku2f8:disabled{ opacity:.5; cursor:not-allowed; }
.uuroiku2f8:not(:disabled):hover{ transform:scale(1.05); }
.uuroiku2f8:not(:disabled):active{ transform:scale(0.95); }
.uuroiku2f8:focus{ outline:2px solid var(--g6a-kp); outline-offset:2px; }
.uuroiku2f8 svg{ width:20px; height:20px; }

/* Character Counter */
.uekr08wbpl{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--cxzp-bokh); }
.uekr08wbpl.fylqhede{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.er7qhd{
  align-self:flex-start;
  max-width:75%;
  background: var(--ir2s-dhj);
  color: var(--v65-aa);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--mkd1ge-f8yc);
}
.pnkpa6{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.lj0wvydc.ddruqoy{
  background: transparent; color: var(--v65-aa); border-color: var(--p3oay-ap);
}
.lj0wvydc.ddruqoy:hover{
  background: var(--g6a-kp); color:#fff; border-color: var(--g6a-kp);
}

/* Mobile */
@media (max-width: 768px){
  .x37la1{ bottom:16px; right:16px; }
  .x37la1.ybefisrv5e{ left:16px; }
  .j1u7wl{ --m686k0-qg0:60px; }
  .mze05yf{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--jpi0qz-k40) var(--jpi0qz-k40) 0 0; transform: translateY(100%);
  }
  .mze05yf.fk_pg5lay{ transform: translateY(0); }
  .gv1tfeq{ padding:20px; }
  .p8dg7mlf{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.x37la1 :focus-visible{ outline:2px solid var(--g6a-kp); outline-offset:2px; }

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