@use '../../utils' as *;

/*----------------------------------------*/
/*  7.6 Checkout css
/*----------------------------------------*/


.tp-checkout{
    &-verify{
        &-item{
            margin-bottom: 40px;
            &:not(:last-child){
                margin-bottom: 14px;
            }
        }
        &-reveal{
            width: 100%;
            font-size: 14px;
            margin-bottom: 0;
            padding: 8px 26px;
            display: inline-block;
            border: 1px dashed #AAB0B2;
            color: var(--tp-common-black);
            font-family: var(--tp-ff-dm);
            & button{
                position: relative;
                color: var(--tp-common-black);
                font-family: var(--tp-ff-dm);
                &::after{
                    position: absolute;
                    content: '';
                    left: 0;
                    bottom: 4px;
                    width: 100%;
                    height: 1px;
                    background-color: var(--tp-common-black);
                }
            }
        }
    }
    &-btn{
        font-size: 16px;
        font-weight: 500;
        height: 50px;
        padding: 0 30px;
        line-height: 50px;
        text-align: center;
        border-radius: 8px;
        display: inline-block;
        color: var(--tp-common-white);
        background-color: var(--tp-common-black);
        border: 1px solid transparent;
        font-family: var(--tp-ff-dm);
        &.btn-plr{
            padding: 0 150px;
            border-radius: 0;
            @media #{$xs} {
                padding: 0 100px;
            }
        }
        &.border-style{
            font-weight: 500;
            font-size: 15px;
            color: var(--tp-common-black);
            border-radius: 0;
            text-transform: capitalize;
            background-color: transparent;
            border: 1px solid var(--tp-border-1);
            font-family: var(--tp-ff-dm);
            & span{
                margin-left: 7px;
                transform: translateY(-1px);
                display: inline-block;
            }
            &:hover{
                color: var(--tp-common-white);
                background-color: var(--tp-common-black);
                border-color: var(--tp-common-black);
            }
        }
        &:hover{
            border-color: var(--tp-common-black);
            color: var(--tp-common-black);
            background-color: transparent;
        }
    }
    &-input{
        margin-bottom: 20px;
        & label{
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 12px;
            color: var(--tp-common-black);
            font-family: var(--tp-ff-dm);
            & span{
                color: red;
            }
        }
        & input,
        & textarea{
            width: 100%;
            padding: 0 26px;
            line-height: 52px;
            font-size: 14px;
            text-transform: capitalize;
            border: 1px solid transparent;
            color: var(--tp-common-black);  
            background: var(--tp-grey-5);
            font-family: var(--tp-ff-dm);
            &::placeholder{
                font-size: 14px;
                line-height: 52px;
                text-transform: capitalize;
                color: var(--tp-grey-1);
            }
            &:focus{
                background: transparent;
                border-color: var(--tp-common-black);
            }
        }
        & textarea{
            height: 200px;
            resize: none;
        }

        & .tp-select{
            height: 52px;
            line-height: 50px;
            border-radius: 0;
            border: 1px solid transparent;
            color: var(--tp-common-black);
            padding: 0px 25px 0;
            width: 100%;
            border-radius: 4px;
            background: var(--tp-grey-5);
            font-family: var(--tp-ff-dm);
            font-size: 14px;
            & .current{
                font-size: 14px;
                line-height: 52px;
                text-transform: capitalize;
                color: var(--tp-grey-1);
                font-family: var(--tp-ff-dm);
            }
        }
    }
    &-option{
        margin-bottom: 4px;
        &-wrapper{
            margin-top: 10px;
            margin-bottom: 17px;
        }
        & input{
            display: none;
            &:checked{
                & ~ label{
                    &::after{
                        background-color: #4d3d30;
                        border-color: #4d3d30;
                    }
                    &::before{
                        visibility: visible;
                        opacity: 1;
                    }
                }
            }
        }

        & label{
            font-size: 15px;
            color: #55585B;
            position: relative;
            padding-left: 26px;
            z-index: 1;
            font-family: var(--tp-ff-dm);
            &::after{
                position: absolute;
                content: '';
                top: 4px;
                left: 0;
                width: 18px;
                height: 18px;
                line-height: 16px;
                text-align: center;
                border: 1px solid #C3C7C9;
                z-index: -1;
                transition: all .4s ease;
            }
            &::before{
                position: absolute;
                content: url('../img/login/check.svg');
                top: 4px;
                left: 0;
                width: 18px;
                height: 18px;
                line-height: 16px;
                text-align: center;
                visibility: hidden;
                opacity: 0;
                color: var(--tp-common-white);
                transition: all .4s ease;
            }

            & a{
                &:hover{
                    color: var(--tp-common-black);
                }
            }

            &:hover{
                cursor: pointer;
            }
        }

    }
    &-bill{
        &-area{
            padding: 45px 40px 24px;
            background: var(--tp-common-white);
            box-shadow: 0px 30px 70px rgba(1, 15, 28, 0.1);
            border-radius: 12px;
            @media #{$xs}{
                padding: 45px 25px 24px;
            }
        }
        &-title{
            font-weight: 600;
            font-size: 26px;
            margin-bottom: 35px;
            font-family: var(--tp-ff-dm);
        }
    }
    &-place{
        // place order
        padding: 44px 50px 50px;
        background: var(--tp-common-white);
        box-shadow: 0px 30px 70px rgba(1, 15, 28, 0.1);
        border-radius: 12px;
        @media #{$lg}{
            padding: 35px 30px;
        }
        @media #{$md, $sm, $xs}{
            margin-top: 50px;
        }
        @media #{$xs}{
            padding: 45px 25px 24px;
        }
        &-title{
            font-size: 26px;
            font-weight: 600;
            margin-right: 37px;
            margin-bottom: 30px;
        }
    }
    &-payment{
        padding-bottom: 26px;
        margin-bottom: 24px;
        border-bottom: 1px solid #E0E2E3;
        &-item{
            &:not(:last-child){
                margin-bottom: 10px;
            }
            &.paypal-payment{
                & label{
                    @include flexbox();
                    align-items: center;
                    flex-wrap: wrap;
                }
            }
            & input{
                display: none;

                &:checked{
                    & ~ label{
                        &::after{
                            border-color: #4d3d30;
                        }
                        &::before{
                            opacity: 1;
                            visibility: visible;
                        }
                    }
                }
            }
            & label{
                font-size: 14px;
                position: relative;
                padding-left: 27px;
                font-weight: 500;
                color: var(--tp-common-black);
                font-family: var(--tp-ff-dm);
                &:hover{
                    cursor: pointer;
                }
                &::after{
                    position: absolute;
                    content: '';
                    left: 0;
                    top: 5px;
                    width: 16px;
                    height: 16px;
                    border-radius: 50%;
                    border: 1px solid #BCBCBC;
                    transition: all .4s ease;
                }
                &::before{
                    position: absolute;
                    content: '';
                    left: 3px;
                    top: 8px;
                    width: 10px;
                    height: 10px;
                    border-radius: 50%;
                    background-color: var(--tp-common-black);
                    visibility: hidden;
                    opacity: 0;
                    transition: all .4s ease;
                }

                & img{
                    margin-left: 14px;
                    @include transform(translateY(-2px));
                }

                & a{
                    margin-left: 20px;
                    position: relative;
                    &::after{
                        position: absolute;
                        content: '';
                        left: 0;
                        bottom: 3px;
                        width: 100%;
                        height: 1px;
                        background-color: var(--tp-common-black);
                    }
                }
            }
        }
        &-desc{
            position: relative;
            padding-top: 10px;
            display: none;

            &::after{
                position: absolute;
                content: '';
                left: 57px;
                top: 0;
                width: 16px;
                height: 16px;
                background-color: #F6F7F9;
                @include transform(translateY(3px) rotate(45deg));
            }
            & p{
                font-size: 14px;
                color: #55585B;
                margin-bottom: 0;
                margin-left: 27px;
                line-height: 1.57;
                padding: 19px 30px;
                background-color: #F6F7F9;
            }
        }
    }
    &-agree{
        margin-bottom: 24px;
    }
}

.tp-return-customer{
    display: none;
    margin-top: 14px;
    padding: 40px 40px;
    background: var(--tp-common-white);
    box-shadow: 0px 30px 70px rgba(1, 15, 28, 0.1);
    border-radius: 12px;
    &-input{
        margin-bottom: 20px;
        & label{
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 12px;
            color: var(--tp-common-black);
            font-family: var(--tp-ff-dm);
            & span{
                color: red;
            }
        }
        & input,
        & textarea{
            width: 100%;
            padding: 0 26px;
            line-height: 56px;
            font-size: 14px;
            text-transform: capitalize;
            border: 1px solid transparent;
            color: var(--tp-common-black);
            background: var(--tp-grey-5);
            font-family: var(--tp-ff-dm);
            &::placeholder{
                font-size: 14px;
                line-height: 56px;
                text-transform: capitalize;
                color: var(--tp-grey-1);
            }
            &:focus{
                background: transparent;
                border-color: var(--tp-common-black);
            }
        }
    }
    &-remeber{
        & input{
            display: none;
            font-family: var(--tp-ff-dm);
            &:checked{
                & ~ label{
                    &::after{
                        border-color: var(--tp-common-black);
                        background-color: var(--tp-common-black);
                    }
                    &::before{
                        opacity: 1;
                        visibility: visible;
                    }
                }
            }
        }

        & label{
            font-size: 15px;
            color: #55585B;
            position: relative;
            padding-left: 26px;
            z-index: 1;
            font-family: var(--tp-ff-dm);
            &::after{
                position: absolute;
                content: '';
                top: 4px;
                left: 0;
                width: 18px;
                height: 18px;
                line-height: 16px;
                text-align: center;
                border: 1px solid #C3C7C9;
                z-index: -1;
                transition: all .4s ease;
            }
            &::before{
                position: absolute;
                content: url('../img/login/check.svg');
                top: 4px;
                left: 0;
                width: 18px;
                height: 18px;
                line-height: 16px;
                text-align: center;
                visibility: hidden;
                opacity: 0;
                color: var(--tp-common-white);
                transition: all .4s ease;
            }

            & a{
                font-family: var(--tp-ff-dm);
                &:hover{
                    color: var(--tp-common-black);
                }
            }

            &:hover{
                cursor: pointer;
            }
        }
    }
    &-forgot{
        & a{
            font-weight: 400;
            font-size: 15px;
            color: var(--tp-common-black);
            position: relative;
            display: inline-block;
            font-family: var(--tp-ff-dm);
            &::after{
                position: absolute;
                content: url('../img/login/check.svg');
                left: auto;
                right: 0;
                bottom: 4px;
                width: 0%;
                height: 1px;
                background-color: var(--tp-common-black);
                transition: all .4s ease;
            }

            &:hover{
                &::after{
                    left: 0;
                    right: auto;
                    width: 100%;
                }
            }
        }
    }
}

.tp-order{
    &-details{
        $details : &;

        padding: 70px 100px 55px;
        @media #{$xl}{
            padding: 70px 70px 55px;
        }
        @media #{$lg}{
            padding: 70px 30px 55px;
        }
        @media #{$sm}{
            padding: 70px 50px 55px;
        }
        @media #{$xs}{
            padding: 40px 30px 45px;
        }
        
        &-icon{
            margin-bottom: 22px;
            & span{
                display: inline-block;
                width: 120px;
                height: 120px;
                line-height: 118px;
                text-align: center;
                font-size: 55px;
                color: var(--tp-common-white);
                border-bottom: 1px solid #E0E2E3;
                border-radius: 50%;

                & svg{
                    transform: translateY(-1px);
                }
            }
        }
        &-title{
            font-size: 30px;
            font-weight: 600;
            color: var(--tp-common-white);
            margin-bottom: 7px;
        }
        &-content{
            & p{
                font-size: 16px;
                color: var(--tp-common-white);
                line-height: 1.38;
            }
        }
        &-item{
            margin-bottom: 38px;

            &-wrapper{
                & .row{
                    & [class*="col-"]{
                        &:nth-child(2n){
                            #{$details}{
                                &-item{
                                    padding-left: 40px;
                                    @media #{$xs}{
                                        padding-left: 0;
                                    }
                                }
                            }
                        }
                    }
                }
            }
            & h4{
                font-size: 18px;
                color: var(--tp-common-white);
                margin-bottom: 0;
                font-weight: 400;
            }
            & p{
                font-weight: 700;
                font-size: 18px;
                color: var(--tp-common-white);
                margin-bottom: 0;
            }
        }
    }
    &-info{
        &-wrapper{
            padding: 42px 50px;

            @media #{$lg}{
                padding: 42px 40px;
            }
            @media #{$xs}{
                padding: 42px 30px;
            }
        }
        &-title{
            font-size: 26px;
            font-weight: 600;
            margin-bottom: 40px;
        }
        &-list{
            $list : &;
            & ul{
                & li{
                    list-style: none;
                    padding: 15px 0;
                    @include flexbox();
                    align-items: center;
                    justify-content: space-between;

                    &:not(:last-child){
                        border-bottom: 1px solid #E0E2E3;
                    }
                    & span{
                        font-size: 15px;
                        color: var(--tp-common-black);
                        font-family: var(--tp-ff-dm);
                    }
                    &#{$list}{
                        &-header{
                            padding-top: 0;
                            padding-bottom: 12px;
                            & h4{
                                font-size: 16px;
                                font-weight: 500;
                                margin-bottom: 0;
                                font-family: var(--tp-ff-dm);
                            }
                        }
                        &-desc{
                            & p{
                                font-size: 15px;
                                margin-bottom: 0;
                                font-family: var(--tp-ff-dm);
                                & span{
                                    font-size: 15px;
                                    font-weight: 500;
                                }
                            }
                        }
                        &-subtotal{
                            & span{
                                &:last-child{
                                    color: var(--tp-common-black);
                                }
                            }
                        }
                        &-shipping{
                            & span{
                                & input{
                                    display: none;
                
                                    &:checked{
                                        & ~ label{
                                            &::after{
                                                border-color: #4d3d30;
                                            }
                                            &::before{
                                                opacity: 1;
                                                visibility: visible;
                                            }
                                        }
                                    }
                                }
                                & label{
                                    font-size: 14px;
                                    position: relative;
                                    padding-right: 27px;

                                    & span{
                                        color: var(--tp-common-black);
                                    }

                                    &:hover{
                                        cursor: pointer;
                                    }
                
                                    &::after{
                                        position: absolute;
                                        content: '';
                                        right: 0;
                                        top: 5px;
                                        width: 16px;
                                        height: 16px;
                                        border-radius: 50%;
                                        border: 1px solid #BCBCBC;
                                        transition: all .4s ease;
                                    }
                                    &::before{
                                        position: absolute;
                                        content: '';
                                        right: 4px;
                                        top: 9px;
                                        width: 8px;
                                        height: 8px;
                                        border-radius: 50%;
                                        background-color: var(--tp-common-black);
                                        visibility: hidden;
                                        opacity: 0;
                                        transition: all .4s ease;
                                    }
                                }
                            }
                        }
                        &-total{
                            padding: 14px 0;
                            & span{
                                font-size: 16px;
                                font-weight: 500;
                            }
                        }
                    }
                }
            }
        }
    }
    &-inner{
        background-color: var(--tp-common-white);
        box-shadow: 0px 30px 70px rgba(1, 15, 28, 0.1);
    }
}