/* CSS Variables */
:root {
  --l6a-sx: #4f46e5;
  --fos7z9-twlf: #ffffff;
  --mjvm9-m9rp: #f9fafb;
  --czsqz-vthn: #0f172a;
  --b5k-f1tm: #6b7280;
  --iyi8uw-zdm9: #e5e7eb;
  --j4xf19-t46r: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --t40o-ug: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --g5i0q-ms: 16px;
  --se819v-syx: 56px;
  --fxpzt-bzd: 12px;
  --nk6lj-i3: 999999;
}

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

/* Main Container */
.bm0Bgx {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--nk6lj-i3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--czsqz-vthn);
}
.bm0Bgx.lmlVb1 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.eiyfK4ra { display: flex; flex-direction: column-reverse; gap: var(--fxpzt-bzd); align-items: center; }
.xxMmt {
  width: var(--se819v-syx); height: var(--se819v-syx); min-width: var(--se819v-syx); min-height: var(--se819v-syx);
  border-radius: 50%; border: none; background: var(--l6a-sx); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--j4xf19-t46r);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.xxMmt:hover { transform: scale(1.05); box-shadow: var(--t40o-ug); }
.xxMmt:active { transform: scale(0.95); }
.xxMmt:focus { outline: 2px solid var(--l6a-sx); outline-offset: 2px; }
.xxMmt svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .xxMmt.ztrYm1{ animation:none; }
  .xxMmt,.adeTdsr,.msrqP3x0{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.adeTdsr{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--fos7z9-twlf); border-radius: var(--g5i0q-ms); box-shadow: var(--t40o-ug);
  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;
}
.bm0Bgx.lmlVb1 .adeTdsr{ right:auto; left:24px; }
.adeTdsr.w59mEq37{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.y80Vog{
  padding:16px 20px; background:var(--fos7z9-twlf); border-bottom:1px solid var(--iyi8uw-zdm9);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ay1Zrib{ width:10px; height:10px; border-radius:50%; background:var(--l6a-sx); flex-shrink:0; }
.qxtdR2x7{ flex:1; min-width:0; }
.vp0nY50w{ font-size:16px; font-weight:600; color:var(--czsqz-vthn); margin:0 0 2px 0; }
.gv0O4nu{ font-size:13px; color:var(--b5k-f1tm); margin:0; }
.ahFyn{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--b5k-f1tm);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ahFyn:hover{ background:var(--mjvm9-m9rp); color:var(--czsqz-vthn); }
.ahFyn:focus{ outline:2px solid var(--l6a-sx); outline-offset:2px; }
.ahFyn svg{ width:20px; height:20px; }

/* Body */
.tilPubz{
  flex:1; overflow-y:auto; padding:16px; background:var(--mjvm9-m9rp);
  display:flex; flex-direction:column; gap:12px;
}
.tilPubz::-webkit-scrollbar{ width:6px; }
.tilPubz::-webkit-scrollbar-track{ background:transparent; }
.tilPubz::-webkit-scrollbar-thumb{ background:var(--iyi8uw-zdm9); border-radius:3px; }
.tilPubz::-webkit-scrollbar-thumb:hover{ background:var(--b5k-f1tm); }

/* Messages */
.msrqP3x0{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.msrqP3x0.dr1wSe8i{ flex-direction:row-reverse; }
.z6mD35{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.z6mD35 a{ color:inherit; }
.msrqP3x0.ryH18 .z6mD35{ background:var(--fos7z9-twlf); color:var(--czsqz-vthn); border-bottom-left-radius:4px; }
.msrqP3x0.dr1wSe8i .z6mD35{ background:var(--l6a-sx); color:#fff; border-bottom-right-radius:4px; }
.oyzmJueb{ font-size:11px; color:var(--b5k-f1tm); margin-top:4px; display:block; }

/* Typing Indicator */
.d9v1Qksm{
  display:flex; gap:8px; padding:10px 14px; background:var(--fos7z9-twlf);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.lnOt9{ width:8px; height:8px; border-radius:50%; background:var(--b5k-f1tm); animation:typingDot 1.4s infinite; }
.lnOt9:nth-child(2){ animation-delay:.2s; }
.lnOt9: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) */
.uioIyf{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.jaVum{
  border:0; border-radius:999px; padding:8px 12px; background:var(--l6a-sx); 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(--j4xf19-t46r);
}
.jaVum:is(:hover,:focus){ transform:translateY(-1px); }
a.jaVum{ text-decoration:none; display:inline-block; }
a.jaVum:link, a.jaVum:visited{ color:#fff; }
a.jaVum:hover, a.jaVum:focus{ color:#fff; }

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

/* Footer */
.cwzIgc9{
  padding:16px; background:var(--fos7z9-twlf); border-top:1px solid var(--iyi8uw-zdm9);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.o3Bfp{
  flex:1; padding:10px 14px; border:1px solid var(--iyi8uw-zdm9); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--czsqz-vthn);
  background:var(--mjvm9-m9rp); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.o3Bfp:focus{ border-color:var(--l6a-sx); }
.o3Bfp::placeholder{ color:var(--b5k-f1tm); }
.o3Bfp.gjwgGm6q{ border-color:#c00; }
.vwGma{
  width:40px; height:40px; min-width:40px; border:none; background:var(--l6a-sx); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vwGma:disabled{ opacity:.5; cursor:not-allowed; }
.vwGma:not(:disabled):hover{ transform:scale(1.05); }
.vwGma:not(:disabled):active{ transform:scale(0.95); }
.vwGma:focus{ outline:2px solid var(--l6a-sx); outline-offset:2px; }
.vwGma svg{ width:20px; height:20px; }

/* Character Counter */
.l2Hru{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--b5k-f1tm); }
.l2Hru.nahAgm{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.wl7Et8{
  align-self:flex-start;
  max-width:75%;
  background: var(--fos7z9-twlf);
  color: var(--czsqz-vthn);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--j4xf19-t46r);
}
.vodvCzmk{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ir0Ee8s.xuZr9{
  background: transparent; color: var(--czsqz-vthn); border-color: var(--iyi8uw-zdm9);
}
.ir0Ee8s.xuZr9:hover{
  background: var(--l6a-sx); color:#fff; border-color: var(--l6a-sx);
}

/* Mobile */
@media (max-width: 768px){
  .bm0Bgx{ bottom:16px; right:16px; }
  .bm0Bgx.lmlVb1{ left:16px; }
  .xxMmt{ --se819v-syx:60px; }
  .adeTdsr{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--g5i0q-ms) var(--g5i0q-ms) 0 0; transform: translateY(100%);
  }
  .adeTdsr.w59mEq37{ transform: translateY(0); }
  .y80Vog{ padding:20px; }
  .cwzIgc9{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.bm0Bgx :focus-visible{ outline:2px solid var(--l6a-sx); outline-offset:2px; }

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