/* ============================================================
   XINGUZINHO_UX_BLOCO4_CSS_V1
   Desfazer
   ============================================================ */

.xux-undo-toast {
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:2200000;
  width:min(430px,calc(100vw - 28px));
  padding:11px 12px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  border:1px solid #86efac;
  border-radius:13px;
  background:var(--tema-card,#fff);
  color:var(--tema-texto,#0f172a);
  box-shadow:0 18px 55px rgba(15,23,42,.24);
  animation:xuxUndoIn .18s ease-out;
}

.xux-undo-icon {
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:rgba(22,163,74,.10);
  font-size:18px;
}

.xux-undo-body {
  min-width:0;
}

.xux-undo-body strong {
  display:block;
  color:#15803d;
  font-size:10px;
}

.xux-undo-body span {
  display:block;
  margin-top:2px;
  font-size:9px;
  font-weight:700;
}

.xux-undo-body small {
  display:block;
  margin-top:3px;
  color:var(--tema-texto-secundario,#64748b);
  font-size:8px;
}

.xux-undo-toast>button {
  min-height:34px;
  padding:7px 11px;
  border:1px solid #15803d;
  border-radius:8px;
  background:#15803d;
  color:#fff;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}

.xux-undo-toast>button:disabled {
  opacity:.65;
  cursor:wait;
}

@keyframes xuxUndoIn {
  from {
    opacity:0;
    transform:translateY(12px);
  }

  to {
    opacity:1;
    transform:translateY(0);
  }
}

@media(max-width:700px) {

  .xux-undo-toast {
    left:14px;
    right:14px;
    bottom:calc(82px + env(safe-area-inset-bottom));
    width:auto;
    grid-template-columns:34px minmax(0,1fr) auto;
  }
}
