/* CSS Variables */
:root {
  --zrh-rml6: #4f46e5;
  --l14-r3l: #ffffff;
  --ltk-ktgg: #f9fafb;
  --f4fdaa-hw: #0f172a;
  --bg1ox6-f2sd: #6b7280;
  --qf33p-gs: #e5e7eb;
  --y9p-ohi: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --s42nr5-ny: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --fb2-jf: 16px;
  --lq3-si: 56px;
  --vw65-gf5h: 12px;
  --n7s8o-pl5j: 999999;
}

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

/* Main Container */
.u3hzp {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--n7s8o-pl5j);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--f4fdaa-hw);
}
.u3hzp.vrd1 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.gftk { display: flex; flex-direction: column-reverse; gap: var(--vw65-gf5h); align-items: center; }
.d3gyx {
  width: var(--lq3-si); height: var(--lq3-si); min-width: var(--lq3-si); min-height: var(--lq3-si);
  border-radius: 50%; border: none; background: var(--zrh-rml6); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--y9p-ohi);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.d3gyx:hover { transform: scale(1.05); box-shadow: var(--s42nr5-ny); }
.d3gyx:active { transform: scale(0.95); }
.d3gyx:focus { outline: 2px solid var(--zrh-rml6); outline-offset: 2px; }
.d3gyx svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .d3gyx.gq2rua{ animation:none; }
  .d3gyx,.vpexm,.gs90xy{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.vpexm{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--l14-r3l); border-radius: var(--fb2-jf); box-shadow: var(--s42nr5-ny);
  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;
}
.u3hzp.vrd1 .vpexm{ right:auto; left:24px; }
.vpexm.cclo8{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.mqjhn{
  padding:16px 20px; background:var(--l14-r3l); border-bottom:1px solid var(--qf33p-gs);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.mme2{ width:10px; height:10px; border-radius:50%; background:var(--zrh-rml6); flex-shrink:0; }
.bptdy{ flex:1; min-width:0; }
.h8484{ font-size:16px; font-weight:600; color:var(--f4fdaa-hw); margin:0 0 2px 0; }
.o6okx4{ font-size:13px; color:var(--bg1ox6-f2sd); margin:0; }
.vp3zfj{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--bg1ox6-f2sd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.vp3zfj:hover{ background:var(--ltk-ktgg); color:var(--f4fdaa-hw); }
.vp3zfj:focus{ outline:2px solid var(--zrh-rml6); outline-offset:2px; }
.vp3zfj svg{ width:20px; height:20px; }

/* Body */
.yjk2qz{
  flex:1; overflow-y:auto; padding:16px; background:var(--ltk-ktgg);
  display:flex; flex-direction:column; gap:12px;
}
.yjk2qz::-webkit-scrollbar{ width:6px; }
.yjk2qz::-webkit-scrollbar-track{ background:transparent; }
.yjk2qz::-webkit-scrollbar-thumb{ background:var(--qf33p-gs); border-radius:3px; }
.yjk2qz::-webkit-scrollbar-thumb:hover{ background:var(--bg1ox6-f2sd); }

/* Messages */
.gs90xy{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.gs90xy.jfir{ flex-direction:row-reverse; }
.q7cr1{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.q7cr1 a{ color:inherit; }
.gs90xy.ynk7u0 .q7cr1{ background:var(--l14-r3l); color:var(--f4fdaa-hw); border-bottom-left-radius:4px; }
.gs90xy.jfir .q7cr1{ background:var(--zrh-rml6); color:#fff; border-bottom-right-radius:4px; }
.j9uvwi{ font-size:11px; color:var(--bg1ox6-f2sd); margin-top:4px; display:block; }

/* Typing Indicator */
.w17q{
  display:flex; gap:8px; padding:10px 14px; background:var(--l14-r3l);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.fxwq4{ width:8px; height:8px; border-radius:50%; background:var(--bg1ox6-f2sd); animation:typingDot 1.4s infinite; }
.fxwq4:nth-child(2){ animation-delay:.2s; }
.fxwq4: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) */
.gljr{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.watfw{
  border:0; border-radius:999px; padding:8px 12px; background:var(--zrh-rml6); 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(--y9p-ohi);
}
.watfw:is(:hover,:focus){ transform:translateY(-1px); }
a.watfw{ text-decoration:none; display:inline-block; }
a.watfw:link, a.watfw:visited{ color:#fff; }
a.watfw:hover, a.watfw:focus{ color:#fff; }

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

/* Footer */
.bl539{
  padding:16px; background:var(--l14-r3l); border-top:1px solid var(--qf33p-gs);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.u7m1{
  flex:1; padding:10px 14px; border:1px solid var(--qf33p-gs); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--f4fdaa-hw);
  background:var(--ltk-ktgg); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.u7m1:focus{ border-color:var(--zrh-rml6); }
.u7m1::placeholder{ color:var(--bg1ox6-f2sd); }
.u7m1.yhpk{ border-color:#c00; }
.zi1zn{
  width:40px; height:40px; min-width:40px; border:none; background:var(--zrh-rml6); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.zi1zn:disabled{ opacity:.5; cursor:not-allowed; }
.zi1zn:not(:disabled):hover{ transform:scale(1.05); }
.zi1zn:not(:disabled):active{ transform:scale(0.95); }
.zi1zn:focus{ outline:2px solid var(--zrh-rml6); outline-offset:2px; }
.zi1zn svg{ width:20px; height:20px; }

/* Character Counter */
.fcvkm3{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--bg1ox6-f2sd); }
.fcvkm3.dj7wjt{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ktt7z0{
  align-self:flex-start;
  max-width:75%;
  background: var(--l14-r3l);
  color: var(--f4fdaa-hw);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--y9p-ohi);
}
.sz2t2x{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.fr2qj.t58xg5{
  background: transparent; color: var(--f4fdaa-hw); border-color: var(--qf33p-gs);
}
.fr2qj.t58xg5:hover{
  background: var(--zrh-rml6); color:#fff; border-color: var(--zrh-rml6);
}

/* Mobile */
@media (max-width: 768px){
  .u3hzp{ bottom:16px; right:16px; }
  .u3hzp.vrd1{ left:16px; }
  .d3gyx{ --lq3-si:60px; }
  .vpexm{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--fb2-jf) var(--fb2-jf) 0 0; transform: translateY(100%);
  }
  .vpexm.cclo8{ transform: translateY(0); }
  .mqjhn{ padding:20px; }
  .bl539{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.u3hzp :focus-visible{ outline:2px solid var(--zrh-rml6); outline-offset:2px; }

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