.carregamento {
  display: none;
  align-items: center;
  justify-content: center;
}

.carregamento__icone {
  animation: rotacao 1.5s linear infinite;
  z-index: 2;
  width: 40px;
  height: 100%;
  circle {
    stroke: var(--cor-primaria);
    stroke-linecap: round;
    animation: contorno 1.5s cubic-bezier(1, 0.5, 0.4, 0.8) infinite;
    stroke-dasharray: 4, 120;
    stroke-width: 4;
    fill: none;
  }
}

@keyframes rotacao {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes contorno {
  0% {
    stroke-dasharray: 4, 120;
    stroke-dashoffset: 0;
  }
  60% {
    stroke-dasharray: 90, 120;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 120;
    stroke-dashoffset: -124;
  }
}

.carregamento_altura-grande {
  height: calc(100vh - 200px);
}

.carregamento_altura-media {
  height: calc(100vh - 400px);
}

.carregamento_altura-pequena {
  height: calc(100vh - 560px);
}

.carregamento_no-conteudo {
  display: flex;
}

.carregamento_tela-cheia {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba($cor-preta, 0.5);
  z-index: 10001;
  circle {
    stroke: $cor-cinza-20;
  }
}

.carregamento_cor-branca {
  circle {
    stroke: $cor-branca;
  }
}

.carregamento_pequeno .carregamento__icone {
  width: 16px;
}

.carregamento_medio .carregamento__icone {
  width: 24px;
}

.carregamento_grande .carregamento__icone {
  width: 48px;
}
