/* 11.03. Checkout CSS */

/*-- Checkout Title --*/
.checkout-title {
    font-size: 20px;
    line-height: 23px;
    text-decoration: underline;
    text-transform: capitalize;
    font-weight: 600;
    margin-bottom: 30px;
}

/*-- Checkout Form --*/
.checkout-form {
    & label {
        display: block;
        font-size: 14px;
        margin-bottom: 12px;
        font-weight: 600;
        text-transform: capitalize;
    }
    & select {
        width: 100%;
        background-color: transparent;
        border: 1px solid #999999;
        border-radius: 0;
        line-height: 23px;
        padding: 10px 20px;
        font-size: 14px;
        height: 55px;
        color: $body-color;
        margin-bottom: 15px;
    }
    & input {
        margin-bottom: 15px;
        &[type="checkbox"] {
            width: auto;
        }
    }
    & .check-box {
        float: left;
        margin-right: 70px;
        // Responsive
        @media #{$small-mobile}{
            margin-right: 20px;
        }
        @media #{$extra-small-mobile}{
            margin-right: 0;
            margin-bottom: 10px;
        }
        &:last-child {
            margin-right: 0;
        }
        & input[type="checkbox"] {
            display: none;
            & + label {
                position: relative;
                padding-left: 30px;
                line-height: 20px;
                font-size: 14px;
                font-weight: 400;
                color: $heading-color;
                margin: 0;
                &::before {
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 20px;
                    height: 20px;
                    display: block;
                    border: 2px solid #999999;
                    content: "";
                    transition: all 0.3s ease 0s;
                }
                &::after {
                    position: absolute;
                    left: 0;
                    top: 0;
                    display: block;
                    content: "\f00c";
                    font-family: $fontAwesome5Pro;
                    font-size: 12px;
                    line-height: 20px;
                    opacity: 0;
                    color: $heading-color;
                    width: 20px;
                    text-align: center;
                    transition: all 0.3s ease 0s;
                }
            }
            &:checked + label {
                &::before {
                    border: 2px solid $heading-color;
                }
                &::after {
                    opacity: 1;
                }
            }
        }
    }
}

/*-- Shipping Form --*/
#shipping-form {
    display: none;
}

/*-- Checkout Cart Total --*/
.checkout-cart-total {
    background-color: #f5f5f5;
    padding: 45px;
    // Responsive
    @media #{$small-mobile}{
        padding: 30px;
    }
    & h4 {
        flex-basis: 18px;
        line-height: 23px;
        font-weight: 600;
        color: $heading-color;
        &:first-child {
            margin-top: 0;
            margin-bottom: 25px;
        }
        &:last-child {
            margin-top: 15px;
            margin-bottom: 0;
        }
        & span {
            float: right;
            display: block;
        }
    }
    & ul {
        padding-left: 0;
        margin-bottom: 0;
        border-bottom: 1px solid $heading-color;
        & li {
            color: $heading-color;
            font-size: 14px;
            line-height: 23px;
            font-weight: 600;
            display: block;
            margin-bottom: 16px;
            & span {
                color: $heading-color;
                float: right;
            }
        }
    }
    & p {
        line-height: 30px;
        font-weight: 600;
        color: $heading-color;
        padding: 10px 0;
        border-bottom: 1px solid $heading-color;
        margin: 0;
        & span {
            float: right;
        }
    }
}

/*-- Checkout Payment Method --*/
.checkout-payment-method {
    background-color: #f5f5f5;
    padding: 45px;
    // Responsive
    @media #{$small-mobile}{
        padding: 30px;
    }
}

/*-- Single Payment Method --*/
.single-method {
    margin-bottom: 20px;
    &:last-child {
        margin-bottom: 0;
    }
    & input[type="radio"] {
        display: none;
        & + label {
            position: relative;
            padding-left: 30px;
            line-height: 20px;
            font-size: 14px;
            font-weight: 400;
            color: $heading-color;
            margin: 0;
            &::before {
                position: absolute;
                left: 0;
                top: 0;
                width: 20px;
                height: 20px;
                display: block;
                border: 2px solid $heading-color;
                content: "";
                transition: all 0.3s ease 0s;
            }
            &::after {
                position: absolute;
                left: 5px;
                top: 5px;
                display: block;
                content: "";
                opacity: 0;
                background-color: $primary;
                width: 10px;
                text-align: center;
                height: 10px;
                transition: all 0.3s ease 0s;
            }
        }
        &:checked + label {
            &::before {
                border: 2px solid $primary;
            }
            &::after {
                opacity: 1;
            }
        }
    }
    & input[type="checkbox"] {
        display: none;
        & + label {
            position: relative;
            padding-left: 30px;
            line-height: 20px;
            font-size: 14px;
            font-weight: 400;
            color: $heading-color;
            margin: 0;
            &::before {
                position: absolute;
                left: 0;
                top: 0;
                width: 16px;
                height: 16px;
                display: block;
                border: 2px solid $heading-color;
                content: "";
                transition: all 0.3s ease 0s;
            }
            &::after {
                position: absolute;
                left: 4px;
                top: 4px;
                display: block;
                content: "";
                opacity: 0;
                background-color: $primary;
                width: 8px;
                text-align: center;
                height: 8px;
                transition: all 0.3s ease 0s;
            }
        }
        &:checked + label {
            &::before {
                border: 2px solid $primary;
            }
            &::after {
                opacity: 1;
            }
        }
    }
    & p {
        display: none;
        margin-top: 8px;
        color: $heading-color;
        line-height: 23px;
    }
}

/*-- Place Order --*/
.place-order {
    margin-top: 40px;
    float: left;
}