/* CSS Variables */
:root {
  --u6r-iger: #4f46e5;
  --lwop-ist: #ffffff;
  --br0xy-wnf: #f9fafb;
  --emdrer-ca76: #0f172a;
  --gvqlq-zq: #6b7280;
  --vl66-vtin: #e5e7eb;
  --henv9-eex: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --dm9g7-y9: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --fvl81e-ok: 16px;
  --v0vdl-ak5w: 56px;
  --cu8-rh47: 12px;
  --gvp-t3: 999999;
}

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

/* Main Container */
.hlwmsctqt1zn1dus {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--gvp-t3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--emdrer-ca76);
}
.hlwmsctqt1zn1dus.wtt5f63pz4c7zqb { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.fz8o04h-w63k6a { display: flex; flex-direction: column-reverse; gap: var(--cu8-rh47); align-items: center; }
.frzx4ccoyr9qblq {
  width: var(--v0vdl-ak5w); height: var(--v0vdl-ak5w); min-width: var(--v0vdl-ak5w); min-height: var(--v0vdl-ak5w);
  border-radius: 50%; border: none; background: var(--u6r-iger); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--henv9-eex);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.frzx4ccoyr9qblq:hover { transform: scale(1.05); box-shadow: var(--dm9g7-y9); }
.frzx4ccoyr9qblq:active { transform: scale(0.95); }
.frzx4ccoyr9qblq:focus { outline: 2px solid var(--u6r-iger); outline-offset: 2px; }
.frzx4ccoyr9qblq svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .frzx4ccoyr9qblq.ct4y2rq0a9cs533f{ animation:none; }
  .frzx4ccoyr9qblq,.s407frmwdorji6,.kj7m9kgosija93{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.s407frmwdorji6{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--lwop-ist); border-radius: var(--fvl81e-ok); box-shadow: var(--dm9g7-y9);
  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;
}
.hlwmsctqt1zn1dus.wtt5f63pz4c7zqb .s407frmwdorji6{ right:auto; left:24px; }
.s407frmwdorji6.zp2ifbjww4yhu3mt7a{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.zt508mcfuofem3{
  padding:16px 20px; background:var(--lwop-ist); border-bottom:1px solid var(--vl66-vtin);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.snc5sbi35aqm58{ width:10px; height:10px; border-radius:50%; background:var(--u6r-iger); flex-shrink:0; }
.ssc-c5trwkq6vzszb{ flex:1; min-width:0; }
.x9l73bomje7hyds3{ font-size:16px; font-weight:600; color:var(--emdrer-ca76); margin:0 0 2px 0; }
.knhbfdi60hybfmx7j{ font-size:13px; color:var(--gvqlq-zq); margin:0; }
.dsn80mc4nuvau0{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--gvqlq-zq);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.dsn80mc4nuvau0:hover{ background:var(--br0xy-wnf); color:var(--emdrer-ca76); }
.dsn80mc4nuvau0:focus{ outline:2px solid var(--u6r-iger); outline-offset:2px; }
.dsn80mc4nuvau0 svg{ width:20px; height:20px; }

/* Body */
.smq1d0iut0j3zi8c{
  flex:1; overflow-y:auto; padding:16px; background:var(--br0xy-wnf);
  display:flex; flex-direction:column; gap:12px;
}
.smq1d0iut0j3zi8c::-webkit-scrollbar{ width:6px; }
.smq1d0iut0j3zi8c::-webkit-scrollbar-track{ background:transparent; }
.smq1d0iut0j3zi8c::-webkit-scrollbar-thumb{ background:var(--vl66-vtin); border-radius:3px; }
.smq1d0iut0j3zi8c::-webkit-scrollbar-thumb:hover{ background:var(--gvqlq-zq); }

/* Messages */
.kj7m9kgosija93{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.kj7m9kgosija93.whe-wudib7tt7xv{ flex-direction:row-reverse; }
.inpvj53gkujy11d{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.inpvj53gkujy11d a{ color:inherit; }
.kj7m9kgosija93.qlnrc1fm1de0bqfd9 .inpvj53gkujy11d{ background:var(--lwop-ist); color:var(--emdrer-ca76); border-bottom-left-radius:4px; }
.kj7m9kgosija93.whe-wudib7tt7xv .inpvj53gkujy11d{ background:var(--u6r-iger); color:#fff; border-bottom-right-radius:4px; }
.wt98797r6cm4l2y{ font-size:11px; color:var(--gvqlq-zq); margin-top:4px; display:block; }

/* Typing Indicator */
.zu4jb7h6gph-e-lpaw{
  display:flex; gap:8px; padding:10px 14px; background:var(--lwop-ist);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.gychpy6zilzrq2{ width:8px; height:8px; border-radius:50%; background:var(--gvqlq-zq); animation:typingDot 1.4s infinite; }
.gychpy6zilzrq2:nth-child(2){ animation-delay:.2s; }
.gychpy6zilzrq2: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) */
.r-41au3itrji49i{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.edmr-76ay29fqb{
  border:0; border-radius:999px; padding:8px 12px; background:var(--u6r-iger); 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(--henv9-eex);
}
.edmr-76ay29fqb:is(:hover,:focus){ transform:translateY(-1px); }
a.edmr-76ay29fqb{ text-decoration:none; display:inline-block; }
a.edmr-76ay29fqb:link, a.edmr-76ay29fqb:visited{ color:#fff; }
a.edmr-76ay29fqb:hover, a.edmr-76ay29fqb:focus{ color:#fff; }

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

/* Footer */
.f38tahkveyohohlj{
  padding:16px; background:var(--lwop-ist); border-top:1px solid var(--vl66-vtin);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ez8uw6f7nt571f8u5c{
  flex:1; padding:10px 14px; border:1px solid var(--vl66-vtin); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--emdrer-ca76);
  background:var(--br0xy-wnf); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ez8uw6f7nt571f8u5c:focus{ border-color:var(--u6r-iger); }
.ez8uw6f7nt571f8u5c::placeholder{ color:var(--gvqlq-zq); }
.ez8uw6f7nt571f8u5c.ow0q8ooqrfvoca{ border-color:#c00; }
.ucow7dpj8cqoer4c{
  width:40px; height:40px; min-width:40px; border:none; background:var(--u6r-iger); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ucow7dpj8cqoer4c:disabled{ opacity:.5; cursor:not-allowed; }
.ucow7dpj8cqoer4c:not(:disabled):hover{ transform:scale(1.05); }
.ucow7dpj8cqoer4c:not(:disabled):active{ transform:scale(0.95); }
.ucow7dpj8cqoer4c:focus{ outline:2px solid var(--u6r-iger); outline-offset:2px; }
.ucow7dpj8cqoer4c svg{ width:20px; height:20px; }

/* Character Counter */
.k5-qx6nm2h626oxu{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--gvqlq-zq); }
.k5-qx6nm2h626oxu.go2wdvqert2qk2{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.cgctmbk8vi1te13aw{
  align-self:flex-start;
  max-width:75%;
  background: var(--lwop-ist);
  color: var(--emdrer-ca76);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--henv9-eex);
}
.f30z60rgkawa4is29{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.np9i24ssx2atz-2k.l2wsviv0n5ze66a42f{
  background: transparent; color: var(--emdrer-ca76); border-color: var(--vl66-vtin);
}
.np9i24ssx2atz-2k.l2wsviv0n5ze66a42f:hover{
  background: var(--u6r-iger); color:#fff; border-color: var(--u6r-iger);
}

/* Mobile */
@media (max-width: 768px){
  .hlwmsctqt1zn1dus{ bottom:16px; right:16px; }
  .hlwmsctqt1zn1dus.wtt5f63pz4c7zqb{ left:16px; }
  .frzx4ccoyr9qblq{ --v0vdl-ak5w:60px; }
  .s407frmwdorji6{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--fvl81e-ok) var(--fvl81e-ok) 0 0; transform: translateY(100%);
  }
  .s407frmwdorji6.zp2ifbjww4yhu3mt7a{ transform: translateY(0); }
  .zt508mcfuofem3{ padding:20px; }
  .f38tahkveyohohlj{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.hlwmsctqt1zn1dus :focus-visible{ outline:2px solid var(--u6r-iger); outline-offset:2px; }

/* SR-only */
.zsiwjlt8dsmhmsp{
  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 */
.yub-72w9cy8w89{ display:none !important; }
