@keyframes spinner {
    0% {
        transform: translate3d(-50%, -50%, 0) rotate(0deg);
    }
    100% {
         transform: translate3d(-50%, -50%, 0) rotate(360deg);
    }
}

#payment-form .complete,
#methodForm .complete {
    display: none;   
}
  
#payment-form.payment-submitted .complete,
#methodForm.payment-submitted .complete,
#loading_spinner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#loading_spinner {
    display: none;
    margin-top: 160px;
}

#methodForm.payment-submitted .complete {
    margin-bottom: 35px;
}

#payment-form.payment-submitted .payment_card,
#payment-form.payment-submitted .sign_up_label,
#methodForm.payment-submitted .payment_card,
#methodForm.payment-submitted .card_label,
#methodForm.payment-submitted .buttons_container {
    display: none !important;
}

.spinner {
    height: 52px;
    width: 52px;
    position: relative;
}

.spinner::before {
    animation: 1s linear infinite spinner;
    border: solid 5px var(--white);
    border-bottom-color: var(--brown);
    border-radius: 50%;
    content: "";
    height: 40px;
    width: 40px;
    left: 50%;
    top: 50%;
    opacity: inherit;
    position: absolute;
    transform: translate3d(-50%, -50%, 0);
    transform-origin: center;
    will-change: transform;
}

.complete p {
    font-weight: 700;
    color: var(--black);
}