/* CSS Variables */
:root {
  --t1t-pp: #4f46e5;
  --g518w-mg: #ffffff;
  --it53yh-fd: #f9fafb;
  --qcrkh-xv: #0f172a;
  --h7gu-jj: #6b7280;
  --zr7-cv: #e5e7eb;
  --ll6-ipof: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ht6zs-rv: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --sx0k-ra: 16px;
  --cogw-tvr5: 56px;
  --bpf-jbh: 12px;
  --j5wzp-th: 999999;
}

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

/* Main Container */
.ti1kp1g {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--j5wzp-th);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--qcrkh-xv);
}
.ti1kp1g.s2p7l7 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ivihc2 { display: flex; flex-direction: column-reverse; gap: var(--bpf-jbh); align-items: center; }
.rdqcrf {
  width: var(--cogw-tvr5); height: var(--cogw-tvr5); min-width: var(--cogw-tvr5); min-height: var(--cogw-tvr5);
  border-radius: 50%; border: none; background: var(--t1t-pp); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ll6-ipof);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rdqcrf:hover { transform: scale(1.05); box-shadow: var(--ht6zs-rv); }
.rdqcrf:active { transform: scale(0.95); }
.rdqcrf:focus { outline: 2px solid var(--t1t-pp); outline-offset: 2px; }
.rdqcrf svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rdqcrf.wjf75h1o6{ animation:none; }
  .rdqcrf,.fcbhfpm0,.yf4y66rh{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.fcbhfpm0{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--g518w-mg); border-radius: var(--sx0k-ra); box-shadow: var(--ht6zs-rv);
  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;
}
.ti1kp1g.s2p7l7 .fcbhfpm0{ right:auto; left:24px; }
.fcbhfpm0.r7246_1{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ngngq8aap{
  padding:16px 20px; background:var(--g518w-mg); border-bottom:1px solid var(--zr7-cv);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.gqvos__xn{ width:10px; height:10px; border-radius:50%; background:var(--t1t-pp); flex-shrink:0; }
.ax8tlc3{ flex:1; min-width:0; }
.gcqut5{ font-size:16px; font-weight:600; color:var(--qcrkh-xv); margin:0 0 2px 0; }
.bj3zdfkyg{ font-size:13px; color:var(--h7gu-jj); margin:0; }
.nngzgv2z{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--h7gu-jj);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.nngzgv2z:hover{ background:var(--it53yh-fd); color:var(--qcrkh-xv); }
.nngzgv2z:focus{ outline:2px solid var(--t1t-pp); outline-offset:2px; }
.nngzgv2z svg{ width:20px; height:20px; }

/* Body */
.ybc_j03z2n{
  flex:1; overflow-y:auto; padding:16px; background:var(--it53yh-fd);
  display:flex; flex-direction:column; gap:12px;
}
.ybc_j03z2n::-webkit-scrollbar{ width:6px; }
.ybc_j03z2n::-webkit-scrollbar-track{ background:transparent; }
.ybc_j03z2n::-webkit-scrollbar-thumb{ background:var(--zr7-cv); border-radius:3px; }
.ybc_j03z2n::-webkit-scrollbar-thumb:hover{ background:var(--h7gu-jj); }

/* Messages */
.yf4y66rh{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.yf4y66rh.kylrzo4ej{ flex-direction:row-reverse; }
.xrg2xh{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.xrg2xh a{ color:inherit; }
.yf4y66rh.u4dnmwmd .xrg2xh{ background:var(--g518w-mg); color:var(--qcrkh-xv); border-bottom-left-radius:4px; }
.yf4y66rh.kylrzo4ej .xrg2xh{ background:var(--t1t-pp); color:#fff; border-bottom-right-radius:4px; }
.mseehc{ font-size:11px; color:var(--h7gu-jj); margin-top:4px; display:block; }

/* Typing Indicator */
.wfv0ab1s2i{
  display:flex; gap:8px; padding:10px 14px; background:var(--g518w-mg);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.o3jbsflqn{ width:8px; height:8px; border-radius:50%; background:var(--h7gu-jj); animation:typingDot 1.4s infinite; }
.o3jbsflqn:nth-child(2){ animation-delay:.2s; }
.o3jbsflqn: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) */
.jov8voc7{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pt4vlps_ve{
  border:0; border-radius:999px; padding:8px 12px; background:var(--t1t-pp); 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(--ll6-ipof);
}
.pt4vlps_ve:is(:hover,:focus){ transform:translateY(-1px); }
a.pt4vlps_ve{ text-decoration:none; display:inline-block; }
a.pt4vlps_ve:link, a.pt4vlps_ve:visited{ color:#fff; }
a.pt4vlps_ve:hover, a.pt4vlps_ve:focus{ color:#fff; }

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

/* Footer */
.amcacnaj{
  padding:16px; background:var(--g518w-mg); border-top:1px solid var(--zr7-cv);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.jpavgn7jzq{
  flex:1; padding:10px 14px; border:1px solid var(--zr7-cv); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--qcrkh-xv);
  background:var(--it53yh-fd); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.jpavgn7jzq:focus{ border-color:var(--t1t-pp); }
.jpavgn7jzq::placeholder{ color:var(--h7gu-jj); }
.jpavgn7jzq.w29vsoftee{ border-color:#c00; }
.anqq4le9e{
  width:40px; height:40px; min-width:40px; border:none; background:var(--t1t-pp); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.anqq4le9e:disabled{ opacity:.5; cursor:not-allowed; }
.anqq4le9e:not(:disabled):hover{ transform:scale(1.05); }
.anqq4le9e:not(:disabled):active{ transform:scale(0.95); }
.anqq4le9e:focus{ outline:2px solid var(--t1t-pp); outline-offset:2px; }
.anqq4le9e svg{ width:20px; height:20px; }

/* Character Counter */
.acy6zcd1xq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--h7gu-jj); }
.acy6zcd1xq.q_tsdk4vjp{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ea7d8hq1{
  align-self:flex-start;
  max-width:75%;
  background: var(--g518w-mg);
  color: var(--qcrkh-xv);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ll6-ipof);
}
.emziyov2{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.lyqjdwni.xtr4f03dv{
  background: transparent; color: var(--qcrkh-xv); border-color: var(--zr7-cv);
}
.lyqjdwni.xtr4f03dv:hover{
  background: var(--t1t-pp); color:#fff; border-color: var(--t1t-pp);
}

/* Mobile */
@media (max-width: 768px){
  .ti1kp1g{ bottom:16px; right:16px; }
  .ti1kp1g.s2p7l7{ left:16px; }
  .rdqcrf{ --cogw-tvr5:60px; }
  .fcbhfpm0{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--sx0k-ra) var(--sx0k-ra) 0 0; transform: translateY(100%);
  }
  .fcbhfpm0.r7246_1{ transform: translateY(0); }
  .ngngq8aap{ padding:20px; }
  .amcacnaj{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ti1kp1g :focus-visible{ outline:2px solid var(--t1t-pp); outline-offset:2px; }

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