/* Estilo para os botões de itens por página */
.mfn-woo-list-perpage {
  position: relative;
}

.mfn-woo-list-perpage ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mfn-woo-list-perpage li {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin: 0;
  padding: 5px 10px;
  border-radius: 3px;
}

.mfn-woo-list-perpage li:hover:not(.processing) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Estilo para o estado ativo */
.mfn-woo-list-perpage li.active {
  font-weight: bold;
  pointer-events: none;
}

/* Estilo para o estado de loading */
.mfn-woo-list-perpage li.loading .num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
}

/* Spinner personalizado */
.mfn-woo-list-perpage li.active.loading::before {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  content: "\f110";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 16px;
  animation: spin 1s linear infinite;
}

.mfn-woo-list-perpage li.active.loading span {
  display: none;
}

/* Desabilita os botões durante o carregamento */
.mfn-woo-list-perpage li.processing {
  opacity: 0.5;
  pointer-events: none;
}

/* Remove o ponto da lista */
.mfn-woo-list-perpage li::before {
  display: none;
}

/* Animação de rotação para o loading */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Estilo para os botões de estilo de grade */
.mfn-woo-list-style {
  position: relative;
}

.mfn-woo-list-style ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mfn-woo-list-style li {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin: 0;
  padding: 5px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfn-woo-list-style li:hover:not(.processing) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Estilo para o estado ativo */
.mfn-woo-list-style li.active {
  font-weight: bold;
  pointer-events: none;
}

/* Spinner para o estilo de grade */
.mfn-woo-list-style li.active.loading::before {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  content: "\f110";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 16px;
  animation: spin 1s linear infinite;
  position: absolute;
}

.mfn-woo-list-style li.active.loading svg {
  opacity: 0;
}

/* Desabilita os botões durante o carregamento */
.mfn-woo-list-style li.processing {
  opacity: 0.5;
  pointer-events: none;
}

/* Remove o ponto da lista */
.mfn-woo-list-style li::before {
  display: none;
}

/* Animação de rotação para o loading */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
