@import "variables.less";

#content {
    form.woocommerce-checkout {
        .place-order [type="submit"] {
            .button(fade(@white-lighter, 87%), @brand-color);            
            width: 50%;
            padding: 15px 0;            
            float: right;
            margin-left: 20px;            
            font-size: 14px;
            line-height: 1.1;
        }
        #payment {
            ul.payment_methods {
                li {
                    &::before {
                        content: none;
                    }
                    padding: 0;
                    margin0: 0;
                }
            }
        }
    }
}

#payment {
    ul.payment_methods {
        text-align: left;
        padding: 1em;
        border-bottom: 1px solid @white-darker;
        margin: 0;
        list-style: none outside;

        li {
            line-height: 2;
            text-align: left;
            margin: 0;
            font-weight: normal;

            input {
                margin: 0 1em 0 0;
            }

            img {
                vertical-align: middle;
                margin: -2px 0 0 .5em;
                padding: 0;
                position: relative;
                box-shadow: none;
            }

            img + img {
                margin-left: 2px;
            }
        }
        &::after {
            content:"";
            display:table;
            clear:both;
        }
    }

    div.form-row {
        padding: 1em;
    }

    div.payment_box {
        position: relative;
        width: 96%;
        padding: 1em 2%;
        margin: 1em 0 1em 0;
        font-size: 0.92em;
        border-radius: 2px;
        line-height: 1.5;
        background-color: darken( @white-darker, 5% );
        color: @gray-darker;

        input.input-text, textarea {
            border-color: darken( @white, 15% );
            border-top-color: darken( @white, 20% );
        }

        ::-webkit-input-placeholder {
            color: darken( @white, 20% );
        }

        :-moz-placeholder {
            color: darken( @white, 20% );
        }

        :-ms-input-placeholder {
            color: darken( @white, 20% );
        }

        .wc-credit-card-form-card-number,
        .wc-credit-card-form-card-expiry,
        .wc-credit-card-form-card-cvc {
            font-size: 1.5em;
            padding: 8px;
            background-repeat: no-repeat;
            background-position: right;
        }

        span.help {
            font-size: .857em;
            color: @gray;
            font-weight: normal;
        }

        .form-row {
            margin: 0 0 1em;
        }

        p:last-child {
            margin-bottom: 0;
        }

        &:after {
            content: "";
            display: block;
            border: 8px solid darken( @white-darker, 5% ); /* arrow size / color */
            border-right-color: transparent;
            border-left-color: transparent;
            border-top-color: transparent;
            position: absolute;
            top: -2px;
            left: 0;
            margin: -1em 0 0 2em;
        }
    }

    .payment_method_paypal {
        .about_paypal {
            float: right;
            line-height: 52px;
            font-size: 0.83em;
            padding-left: 10px;
        }

        img {
            max-height: 52px;
            vertical-align: middle;
        }
    }
}

@media (max-width: 786px) {
    #payment {
        .payment_method_paypal {
            .about_paypal {
                display: none;
            }
        }
    }
}