.payment-element {
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.payment-element-form .hidden {
    display: none;
}

#payment-confirmation button.loading,
#tc-payment-confirmation button.loading {
    overflow: hidden;
    position: relative;
}

#payment-confirmation button.loading::after,
#tc-payment-confirmation button.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: inherit;
}

#payment-confirmation button.loading::before,
#tc-payment-confirmation button.loading::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    pointer-events: none;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
