/* CSS Variables */
:root {
  --shey-nw: #4f46e5;
  --f4qenr-m1v5: #ffffff;
  --llnpag-dxy0: #f9fafb;
  --cfyo-c12: #0f172a;
  --np4p-dn: #6b7280;
  --v7hmur-oe5a: #e5e7eb;
  --qn9i-xy1: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --s1j0-u8: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --d8e-dg: 16px;
  --w86i79-t7: 56px;
  --mwahnb-j9we: 12px;
  --cjzlz-f299: 999999;
}

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

/* Main Container */
.sex-tcwpci6c {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--cjzlz-f299);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--cfyo-c12);
}
.sex-tcwpci6c.sex-a3e6ioh18m { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.sex-i77vexqr { display: flex; flex-direction: column-reverse; gap: var(--mwahnb-j9we); align-items: center; }
.sex-qegff94au {
  width: var(--w86i79-t7); height: var(--w86i79-t7); min-width: var(--w86i79-t7); min-height: var(--w86i79-t7);
  border-radius: 50%; border: none; background: var(--shey-nw); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--qn9i-xy1);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.sex-qegff94au:hover { transform: scale(1.05); box-shadow: var(--s1j0-u8); }
.sex-qegff94au:active { transform: scale(0.95); }
.sex-qegff94au:focus { outline: 2px solid var(--shey-nw); outline-offset: 2px; }
.sex-qegff94au svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .sex-qegff94au.sex-h3s74ju7{ animation:none; }
  .sex-qegff94au,.sex-rnww1pq8,.sex-gpk93h9d{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.sex-rnww1pq8{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--f4qenr-m1v5); border-radius: var(--d8e-dg); box-shadow: var(--s1j0-u8);
  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;
}
.sex-tcwpci6c.sex-a3e6ioh18m .sex-rnww1pq8{ right:auto; left:24px; }
.sex-rnww1pq8.sex-k1h1nw3zkwh{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.sex-ejkqowcq0n{
  padding:16px 20px; background:var(--f4qenr-m1v5); border-bottom:1px solid var(--v7hmur-oe5a);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.sex-j9boh719r{ width:10px; height:10px; border-radius:50%; background:var(--shey-nw); flex-shrink:0; }
.sex-ctlkci7ylku{ flex:1; min-width:0; }
.sex-cqi6wlnwm{ font-size:16px; font-weight:600; color:var(--cfyo-c12); margin:0 0 2px 0; }
.sex-m9idd2z56c71{ font-size:13px; color:var(--np4p-dn); margin:0; }
.sex-dvm727ujr{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--np4p-dn);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.sex-dvm727ujr:hover{ background:var(--llnpag-dxy0); color:var(--cfyo-c12); }
.sex-dvm727ujr:focus{ outline:2px solid var(--shey-nw); outline-offset:2px; }
.sex-dvm727ujr svg{ width:20px; height:20px; }

/* Body */
.sex-deasrxlro{
  flex:1; overflow-y:auto; padding:16px; background:var(--llnpag-dxy0);
  display:flex; flex-direction:column; gap:12px;
}
.sex-deasrxlro::-webkit-scrollbar{ width:6px; }
.sex-deasrxlro::-webkit-scrollbar-track{ background:transparent; }
.sex-deasrxlro::-webkit-scrollbar-thumb{ background:var(--v7hmur-oe5a); border-radius:3px; }
.sex-deasrxlro::-webkit-scrollbar-thumb:hover{ background:var(--np4p-dn); }

/* Messages */
.sex-gpk93h9d{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.sex-gpk93h9d.sex-duxdovqwza{ flex-direction:row-reverse; }
.sex-nrubk3yg1kk{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.sex-nrubk3yg1kk a{ color:inherit; }
.sex-gpk93h9d.sex-vq9300qacolg .sex-nrubk3yg1kk{ background:var(--f4qenr-m1v5); color:var(--cfyo-c12); border-bottom-left-radius:4px; }
.sex-gpk93h9d.sex-duxdovqwza .sex-nrubk3yg1kk{ background:var(--shey-nw); color:#fff; border-bottom-right-radius:4px; }
.sex-y1qh4f24x{ font-size:11px; color:var(--np4p-dn); margin-top:4px; display:block; }

/* Typing Indicator */
.sex-ewtf0ykia1m{
  display:flex; gap:8px; padding:10px 14px; background:var(--f4qenr-m1v5);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.sex-ekhhfqlk{ width:8px; height:8px; border-radius:50%; background:var(--np4p-dn); animation:typingDot 1.4s infinite; }
.sex-ekhhfqlk:nth-child(2){ animation-delay:.2s; }
.sex-ekhhfqlk: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) */
.sex-xcxmx2yrqve4{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.sex-id8ad347h{
  border:0; border-radius:999px; padding:8px 12px; background:var(--shey-nw); 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(--qn9i-xy1);
}
.sex-id8ad347h:is(:hover,:focus){ transform:translateY(-1px); }
a.sex-id8ad347h{ text-decoration:none; display:inline-block; }
a.sex-id8ad347h:link, a.sex-id8ad347h:visited{ color:#fff; }
a.sex-id8ad347h:hover, a.sex-id8ad347h:focus{ color:#fff; }

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

/* Footer */
.sex-hlctu9jh7o{
  padding:16px; background:var(--f4qenr-m1v5); border-top:1px solid var(--v7hmur-oe5a);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.sex-c30cr93k{
  flex:1; padding:10px 14px; border:1px solid var(--v7hmur-oe5a); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--cfyo-c12);
  background:var(--llnpag-dxy0); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.sex-c30cr93k:focus{ border-color:var(--shey-nw); }
.sex-c30cr93k::placeholder{ color:var(--np4p-dn); }
.sex-c30cr93k.sex-r06erir7b{ border-color:#c00; }
.sex-g2idaww0n1zz{
  width:40px; height:40px; min-width:40px; border:none; background:var(--shey-nw); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.sex-g2idaww0n1zz:disabled{ opacity:.5; cursor:not-allowed; }
.sex-g2idaww0n1zz:not(:disabled):hover{ transform:scale(1.05); }
.sex-g2idaww0n1zz:not(:disabled):active{ transform:scale(0.95); }
.sex-g2idaww0n1zz:focus{ outline:2px solid var(--shey-nw); outline-offset:2px; }
.sex-g2idaww0n1zz svg{ width:20px; height:20px; }

/* Character Counter */
.sex-xsgokcqj{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--np4p-dn); }
.sex-xsgokcqj.sex-reky6mud5w{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.sex-d7u09rua{
  align-self:flex-start;
  max-width:75%;
  background: var(--f4qenr-m1v5);
  color: var(--cfyo-c12);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--qn9i-xy1);
}
.sex-f3e1alk4eo{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.sex-pol95di7txe4.sex-vj01t3ht7fs{
  background: transparent; color: var(--cfyo-c12); border-color: var(--v7hmur-oe5a);
}
.sex-pol95di7txe4.sex-vj01t3ht7fs:hover{
  background: var(--shey-nw); color:#fff; border-color: var(--shey-nw);
}

/* Mobile */
@media (max-width: 768px){
  .sex-tcwpci6c{ bottom:16px; right:16px; }
  .sex-tcwpci6c.sex-a3e6ioh18m{ left:16px; }
  .sex-qegff94au{ --w86i79-t7:60px; }
  .sex-rnww1pq8{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--d8e-dg) var(--d8e-dg) 0 0; transform: translateY(100%);
  }
  .sex-rnww1pq8.sex-k1h1nw3zkwh{ transform: translateY(0); }
  .sex-ejkqowcq0n{ padding:20px; }
  .sex-hlctu9jh7o{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.sex-tcwpci6c :focus-visible{ outline:2px solid var(--shey-nw); outline-offset:2px; }

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