/* Keep Checkout marks in the same leading column as the theme's card logo. */
.nq-c-CheckoutPaymentOption.ps_checkout-payment-option input[type='radio'] + label {
    /* The module forces display: inline !important on its labels. */
    display: flex !important;
    flex-direction: row-reverse;
    align-items: center;
    line-height: normal;
}

.nq-c-CheckoutPaymentOption.ps_checkout-payment-option .nq-c-CheckoutPaymentOption-text {
    flex: 1;
    min-width: 0;
    width: auto;
    line-height: 1.4;
}

.nq-c-CheckoutPaymentOption.ps_checkout-payment-option label > .ps_checkout-mark {
    display: block !important;
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
    margin: 0 0 0 20px;
    box-sizing: border-box;
}

.nq-c-CheckoutPaymentOption.ps_checkout-payment-option .ps_checkout-mark .paypal-mark {
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Pay Later includes text in its mark, not just an image. */
.nq-c-CheckoutPaymentOption.ps_checkout-payment-option .ps_checkout-mark[data-funding-source='paylater'] .paypal-mark {
    white-space: normal;
    line-height: 1.4;
}

.nq-c-CheckoutPaymentOption.ps_checkout-payment-option .ps_checkout-mark img,
.nq-c-CheckoutPaymentOption.ps_checkout-payment-option .ps_checkout-mark svg {
    max-width: 100%;
    max-height: 32px;
    height: auto;
    object-fit: contain;
    object-position: left center;
    vertical-align: middle;
}

@media screen and (max-width: 599px) {
    .nq-c-CheckoutPaymentOption.ps_checkout-payment-option label > .ps_checkout-mark {
        flex-basis: 90px;
        width: 90px;
        max-width: 90px;
        margin-left: 12px;
    }

    .nq-c-CheckoutPaymentOption.ps_checkout-payment-option .nq-c-CheckoutPaymentOption-text {
        margin-left: 12px;
    }
}
