@use "../utilities" as *;

/**----------------------------------------
    START: Page Header CSS
----------------------------------------*/
.checkout-top{
    margin-bottom: 80px;
    @include breakpoint(md){
        margin-bottom: 40px;
    }
    .coupon-list{ 
        .verify-item{
            .title{
                background-color: var(--ed-color-common-white);
                width: 100%;
                padding: 15px 30px;
                font-size: 16px;
                font-weight: 500;
                border: 1px solid var(--ed-color-border-1);
                @include transition(all 0.3s ease-in-out);
                &:hover{
                    background-color: var(--ed-color-theme-primary);
                    color: var(--ed-color-common-white);
                }
                button{
                    font-weight: 600;
                    margin: 0 5px;
                    text-decoration: underline;
                }
            }
            .login-form{
                padding-top: 30px;
                display: none;
                .form-control{
                    background-color: var(--ed-color-grey-1);
                    padding: 15px 30px;
                    border: none;
                    box-shadow: none;
                    font-size: 14px;
                    color: var(--ed-color-text-body);
                    border-radius: 0;
                    margin-bottom: 20px;
                    max-width: 700px;
                    width: 100%;
                    @include tp-placeholder{
                        color: var(--ed-color-text-body);
                    }
                }
            }
            .checkbox-wrap{
                max-width: 700px;
                width: 100%;
                margin-bottom: 30px;
                @include flex-vertical-center;
                justify-content: space-between;
                .checkbox-item{
                    @include flex-vertical-center;
                    column-gap: 10px;
                    label{
                        color: var(--ed-color-text-body);
                        cursor: pointer;
                    }
                }
                .forgot{
                    color: var(--ed-color-common-white);
                    font-weight: 600;
                    &:hover{
                        color: var(--ed-color-theme-primary);
                    }
                }
            }
        }
    }
}

.checkout-left{
    padding-right: 10px;
    @include breakpoint(md){
        padding-right: 0;
    }
    .form-header{
        font-size: 30px;
        font-weight: 600;
        line-height: 1;
        margin-bottom: 40px;
    }
}

.checkout-form-wrap{
    .form-group{
        &:not(:last-of-type){
            margin-bottom: 30px;
        }
    }
    .form-item{
        &.name{
            @include breakpoint(sm){
                margin-bottom: 30px;
            }
        }
        .form-title{
            color: var(--ed-color-heading-primary);
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 20px;
        }
        .form-control{
            padding: 18px 20px;
            background-color: var(--ed-color-common-white);
            border: none;
            box-shadow: none;
            font-size: 16px;
            border: 1px solid var(--ed-color-border-1);
            border-radius: 6px;
            @include tp-placeholder{
                color: var(--ed-color-text-body);
            }
            &.street-control{
                margin-bottom: 20px;
            }
            &.nice-select{
                width: 100%;
                height: auto;
                line-height: inherit;
                padding: 18px 20px;
                &:after{
                    top: 46%;
                    width: 10px;
                    height: 10px;
                    border-color: var(--ed-color-text-body);
                    border-bottom: 1px solid var(--ed-color-text-body);
                    border-right: 1px solid var(--ed-color-text-body);
                    right: 25px;
                }
                .list{
                    background-color: var(--ed-color-common-white);
                    width: 100%;
                    border-radius: 0;
                    border: 1px solid var(--ed-color-border-1);
                    li{
                        padding-left: 20px;
                    }
                }
            }
        }
    }
}

.checkout-right{
    padding-left: 10px;
    @include breakpoint(md){
        margin-top: 50px;
        padding-left: 0;
    }
    .form-header{
        font-size: 30px;
        font-weight: 600;
        line-height: 1;
        margin-bottom: 40px;
    }
}

.order-box{
    background-color: var(--ed-color-grey-1);
    padding: 30px 40px;
    border: 1px solid var(--ed-color-border-1); 
    @include breakpoint(sm){
        padding: 30px 20px;
    } 
    .order-item{
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-gap: 20px;
        &:not(:last-of-type){
            margin-bottom: 30px;
            padding-bottom: 30px;
            border-bottom: 1px solid var(--ed-color-border-1);
        }
        @include breakpoint(sm){
            grid-template-columns: 1fr;
        }
        .order-left{
            .order-img{
                height: 80px;
                width: 80px;
                img{
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .product{
                color: var(--ed-color-text-body);
                font-size: 16px;
                font-weight: 500;
                margin-bottom: 0;
                line-height: 1;
                text-transform: uppercase;
            }
            .left-title{
                font-size: 16px;
                font-weight: 400;
                color: var(--ed-color-text-body);
                line-height: 1;
            }
        }
        .order-right{
            @include flex-vertical-center;
            justify-content: space-between;
            column-gap: 15px;
            flex-wrap: wrap;
            row-gap: 15px;
            .content{
                .category{
                    color: var(--ed-color-theme-primary);
                    text-transform: uppercase;
                    font-size: 14px;
                    font-weight: 400;
                    display: block;
                    line-height: 1;
                    margin-bottom: 15px;
                }
                .title{
                    font-size: 18px;
                    font-weight: 600;
                    margin-bottom: 0;
                    line-height: 1;
                }
            }
            .price{
                color: var(--ed-color-text-body);
                font-size: 16px;
                font-weight: 500;
                margin-bottom: 0;
                line-height: 1;
                text-transform: uppercase;
            }
            .right-title{
                font-size: 16px;
                font-weight: 500;
                color: var(--ed-color-heading-primary);
                line-height: 1;
                span{
                    color: var(--ed-color-text-body);
                    font-weight: 400;
                    margin-right: 10px;
                }
                &.title-2{
                    color: var(--ed-color-theme-primary);
                }
            }
        }
        &.item-1{
            grid-template-columns: 200px 1fr;
            @include breakpoint(sm){
                grid-template-columns: 100px 1fr;
            }
            .order-right{
                justify-content: end;
            }
        }
    }
}

.payment-option-wrap{
    margin-top: 40px;
    .payment-option{
        .shipping-option{
            &:not(:last-of-type){
                margin-bottom: 20px;
            }
            input{
                accent-color: var(--ed-color-theme-primary);
            }
            label{
                font-size: 16px;
                font-weight: 500;
                color: var(--ed-color-heading-primary);
                margin-left: 5px;
            }
            .options{
                input{
                    accent-color: var(--ed-color-theme-primary);
                    margin-bottom: 15px;
                }
            }
        }
    }
    .desc{
        margin: 20px 0;
    }
    .form-check{
        margin-bottom: 40px;
        .form-check-input{
            border: 1px solid var(--ed-color-border-1);
            box-shadow: none;
            accent-color: var(--ed-color-theme-primary);
        }
        .form-check-label{
            cursor: pointer;
        }
    }
    .order-btn{
        width: 100%;
        justify-content: center;
    }
}

/* !END: Page Header CSS */
