/* CSS Variables */
:root {
  --w3qhu4-p0rh: #4f46e5;
  --qnt-b45: #ffffff;
  --pcmgr-z4: #f9fafb;
  --vb8-gy: #0f172a;
  --t61-z0lr: #6b7280;
  --sps-gr: #e5e7eb;
  --aeh-bsx: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --kpf-fc: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hyhj9-voga: 16px;
  --ic53s-tglg: 56px;
  --ox4-fenj: 12px;
  --ghwc93-v3a0: 999999;
}

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

/* Main Container */
.tszPpce {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ghwc93-v3a0);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--vb8-gy);
}
.tszPpce.ztlY8z { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ir55I4vh { display: flex; flex-direction: column-reverse; gap: var(--ox4-fenj); align-items: center; }
.w3X6s {
  width: var(--ic53s-tglg); height: var(--ic53s-tglg); min-width: var(--ic53s-tglg); min-height: var(--ic53s-tglg);
  border-radius: 50%; border: none; background: var(--w3qhu4-p0rh); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--aeh-bsx);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.w3X6s:hover { transform: scale(1.05); box-shadow: var(--kpf-fc); }
.w3X6s:active { transform: scale(0.95); }
.w3X6s:focus { outline: 2px solid var(--w3qhu4-p0rh); outline-offset: 2px; }
.w3X6s svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .w3X6s.t3vgRpkf{ animation:none; }
  .w3X6s,.gwuXuz,.woSmn{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.gwuXuz{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--qnt-b45); border-radius: var(--hyhj9-voga); box-shadow: var(--kpf-fc);
  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;
}
.tszPpce.ztlY8z .gwuXuz{ right:auto; left:24px; }
.gwuXuz.suEmt{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.fpeFe8{
  padding:16px 20px; background:var(--qnt-b45); border-bottom:1px solid var(--sps-gr);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ostEaiy{ width:10px; height:10px; border-radius:50%; background:var(--w3qhu4-p0rh); flex-shrink:0; }
.w8Q7d{ flex:1; min-width:0; }
.tcTt8{ font-size:16px; font-weight:600; color:var(--vb8-gy); margin:0 0 2px 0; }
.xzgEjn{ font-size:13px; color:var(--t61-z0lr); margin:0; }
.ig9Ikp{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--t61-z0lr);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ig9Ikp:hover{ background:var(--pcmgr-z4); color:var(--vb8-gy); }
.ig9Ikp:focus{ outline:2px solid var(--w3qhu4-p0rh); outline-offset:2px; }
.ig9Ikp svg{ width:20px; height:20px; }

/* Body */
.jtr8Gg53{
  flex:1; overflow-y:auto; padding:16px; background:var(--pcmgr-z4);
  display:flex; flex-direction:column; gap:12px;
}
.jtr8Gg53::-webkit-scrollbar{ width:6px; }
.jtr8Gg53::-webkit-scrollbar-track{ background:transparent; }
.jtr8Gg53::-webkit-scrollbar-thumb{ background:var(--sps-gr); border-radius:3px; }
.jtr8Gg53::-webkit-scrollbar-thumb:hover{ background:var(--t61-z0lr); }

/* Messages */
.woSmn{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.woSmn.deoQd4{ flex-direction:row-reverse; }
.i3dGqy{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.i3dGqy a{ color:inherit; }
.woSmn.pp70U2h2 .i3dGqy{ background:var(--qnt-b45); color:var(--vb8-gy); border-bottom-left-radius:4px; }
.woSmn.deoQd4 .i3dGqy{ background:var(--w3qhu4-p0rh); color:#fff; border-bottom-right-radius:4px; }
.mtkApg6{ font-size:11px; color:var(--t61-z0lr); margin-top:4px; display:block; }

/* Typing Indicator */
.dv0J5u{
  display:flex; gap:8px; padding:10px 14px; background:var(--qnt-b45);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.n3kNbv8{ width:8px; height:8px; border-radius:50%; background:var(--t61-z0lr); animation:typingDot 1.4s infinite; }
.n3kNbv8:nth-child(2){ animation-delay:.2s; }
.n3kNbv8: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) */
.v9xAw1{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.wuyKro{
  border:0; border-radius:999px; padding:8px 12px; background:var(--w3qhu4-p0rh); 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(--aeh-bsx);
}
.wuyKro:is(:hover,:focus){ transform:translateY(-1px); }
a.wuyKro{ text-decoration:none; display:inline-block; }
a.wuyKro:link, a.wuyKro:visited{ color:#fff; }
a.wuyKro:hover, a.wuyKro:focus{ color:#fff; }

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

/* Footer */
.mrvFmk9{
  padding:16px; background:var(--qnt-b45); border-top:1px solid var(--sps-gr);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ftgU3oz{
  flex:1; padding:10px 14px; border:1px solid var(--sps-gr); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--vb8-gy);
  background:var(--pcmgr-z4); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ftgU3oz:focus{ border-color:var(--w3qhu4-p0rh); }
.ftgU3oz::placeholder{ color:var(--t61-z0lr); }
.ftgU3oz.cqszYyf5{ border-color:#c00; }
.s17Lvm{
  width:40px; height:40px; min-width:40px; border:none; background:var(--w3qhu4-p0rh); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.s17Lvm:disabled{ opacity:.5; cursor:not-allowed; }
.s17Lvm:not(:disabled):hover{ transform:scale(1.05); }
.s17Lvm:not(:disabled):active{ transform:scale(0.95); }
.s17Lvm:focus{ outline:2px solid var(--w3qhu4-p0rh); outline-offset:2px; }
.s17Lvm svg{ width:20px; height:20px; }

/* Character Counter */
.zqfJulb{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--t61-z0lr); }
.zqfJulb.to7Mp72{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.mbjzV0l6{
  align-self:flex-start;
  max-width:75%;
  background: var(--qnt-b45);
  color: var(--vb8-gy);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--aeh-bsx);
}
.bb6Xrd6{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.zkLyd.n6uGi0{
  background: transparent; color: var(--vb8-gy); border-color: var(--sps-gr);
}
.zkLyd.n6uGi0:hover{
  background: var(--w3qhu4-p0rh); color:#fff; border-color: var(--w3qhu4-p0rh);
}

/* Mobile */
@media (max-width: 768px){
  .tszPpce{ bottom:16px; right:16px; }
  .tszPpce.ztlY8z{ left:16px; }
  .w3X6s{ --ic53s-tglg:60px; }
  .gwuXuz{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--hyhj9-voga) var(--hyhj9-voga) 0 0; transform: translateY(100%);
  }
  .gwuXuz.suEmt{ transform: translateY(0); }
  .fpeFe8{ padding:20px; }
  .mrvFmk9{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.tszPpce :focus-visible{ outline:2px solid var(--w3qhu4-p0rh); outline-offset:2px; }

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