.progress-spinner {
    display: inline-block;
    position: relative;
    width: 2rem;
    height: 2rem;
}

.progress-spinner::before {
    position: absolute;
    content: "";
    aspect-ratio: 1 / 1;
    width: 2rem;
    height: 2rem;
    border: 5px solid var(--disabled-colour);
    border-bottom: 5px solid var(--primary-colour);
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    top: 0;
    left: 0;
}

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