/* Centre les actions des formulaires PMPro et conserve leur espacement. */
.pmpro_form_submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

form.pmpro_form .input,
form.pmpro_form textarea,
form.pmpro_form select {
    display: inline-block !important;
}

form.pmpro_form .pmpro_checkout-fields div {
    margin: 0;
}

/* Présentation de l’ancien sélecteur de moyens de paiement, encore conservée
   pour les configurations PMPro qui le génèrent. */
.pmpro-checkout #pmpro_payment_method span {
    display: inline-block;
}

.pmpro-checkout #pmpro_payment_method span a {
    display: inline-block;
    width: 50%;
    border: 0;
    padding-bottom: 80px;
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 1.2rem;
}

.pmpro-checkout span.gateway_authorizenet,
.pmpro-checkout span.gateway_braintree,
.pmpro-checkout span.gateway_cybersource,
.pmpro-checkout span.gateway_paypal,
.pmpro-checkout span.gateway_stripe,
.pmpro-checkout span.gateway_twocheckout {
    width: 60%;
}

.pmpro-checkout span.gateway_paypalexpress {
    width: 30%;
}

.pmpro-checkout span.gateway_authorizenet a,
.pmpro-checkout span.gateway_braintree a,
.pmpro-checkout span.gateway_cybersource a,
.pmpro-checkout span.gateway_paypal a,
.pmpro-checkout span.gateway_stripe a,
.pmpro-checkout span.gateway_twocheckout a {
    background-image: url("images/cc-horizontal.jpg");
}

.pmpro-checkout span.gateway_paypalexpress a {
    background-image: url("images/cc-paypal.png");
}

@media (max-width: 768px) {
    .pmpro-checkout #pmpro_payment_method span {
        display: block;
        width: 100%;
    }
}
