main{
    background-color: #f4f5f7;
}

.order-title{
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 110px;
    width: 30%;

    @media screen and (max-width: 768px){
        margin-bottom: 50px;
    }
}

.order-tab{
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0px 1px 5px 0px rgba(29, 45, 83, 0.20);

    display: flex;
    align-items: center;
    gap: 24px;

    .order-tab-number{
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        background: #0EAA9E;     
        
        color: #fff;
        font-size: 1.5rem;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .order-tab-title{
        color: #1D2D53;
        font-size: 1.5rem;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }
}

.order-content{
    display: flex;
    gap: 24px;

    @media screen and (max-width: 768px){
        flex-direction: column;
    }

    .order-left{
        width: 60%;

        @media screen and (max-width: 768px){
            width: 100%;
        }
    }

    .order-deliveries{
        border-radius: 10px;
        background: #FFF;
        box-shadow: 0px 1px 5px 0px rgba(29, 45, 83, 0.20);
        padding: 24px 20px;
        padding-top: 0;
        width: 100%;
        overflow: hidden;
        margin-bottom: 36px;
    }

    .order-delivery{
        display: flex;
        justify-content: space-between;
        width: 100%;
        position: relative;
        flex-direction: column;
        padding-bottom: 50px;
        padding-top: 24px;

        &::after{
            content: '';
            height: 2px;
            width: 140%;
            left: -20%;
            background-color: #cacdd56f;
            bottom: 0;
            position: absolute;
        }

        &:last-child{
            &::after{
                display: none;
            }
        }

        .order-isselected{
            position: absolute;
            right: 0;
            top: 10px;

            color: #0EAA9E;
            font-style: normal;
            font-weight: 600;
            line-height: normal;
        }
        

        .order-delivery-img{
            margin-bottom: 40px;
        }

        .order-delivery-items{
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .order-delivery-item{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 17px;

            @media screen and (max-width: 767px){
                flex-direction: column;
            }

            .order-delivery-checkbox{
                padding: 12px 15px;
                border-radius: 10px;
                background: #FFF;
                box-shadow: 0px 1px 5px 0px rgba(29, 45, 83, 0.20);
                width: 50%;
                flex-grow: 1;
                height: 48px;
                display: flex;
                align-items: center;

                @media screen and (max-width: 1024px){
                    flex-grow: 1;
                }
                @media screen and (max-width: 767px){
                    width: 100%;
                }
            }

            .order-delivery-right-btn{
                width: 25%;
                height: 48px;

                @media screen and (max-width: 768px){
                    width: 100%;
                }

                button{
                    position: relative;
                    width: 100%;
                    height: 100%;
                    border-radius: 10px;
                    border: 2px solid #CACDD5;
                    background-color: #fff;
                    color:#8E96A9;
                    font-style: normal;
                    font-weight: 600;
                    line-height: normal;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;    
                    padding: 0 25px;
                }
            }

            &.active{
                .order-delivery-right-btn{
                    button{
                        background-color: #CACDD5;
                        color: #fff;
                        justify-content: space-between;
                    }
                }
            }

        }

        
    }

    .delivery-description{
        margin-top: 36px;
        color: #8E96A9;
        font-family: Georgia;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        width: 80%;
    }

    .order-payment{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        border-radius: 10px;
        background: #FFF;
        box-shadow: 0px 1px 5px 0px rgba(29, 45, 83, 0.20);
        padding: 35px 16px;
        margin-bottom: 38px;

        @media screen and (max-width: 768px) {
            flex-direction: column;
            align-items: start;
        }
    }

    .order-payment-checkbox{
        height: 48px;
        padding: 0 12px;
        border-radius: 10px;
        background: #FFF;
        box-shadow: 0px 1px 5px 0px rgba(29, 45, 83, 0.20);
        display: flex;
        align-items: center;
        width: 35%;

        @media screen and (max-width: 768px){
            width: 100%;
        }
    }

    .order-payment-items{
        display: flex;
        gap: 16px;

        .order-payment-item{
            button{
                background-color: transparent;
                border: 0;
                width: 100%;
                outline: none;
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100%;

                img{
                    width: 70%;

                    @media screen and (max-width: 768px) {
                        width: 100%;
                    }
                }
            }
        }
    }

    .order-contact{
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 23px;
        padding-top: 48px;
        width: 100%;
        gap: 24px;
        border-radius: 10px;
        background: #FFF;
        box-shadow: 0px 1px 5px 0px rgba(29, 45, 83, 0.20);

        .order-contact-input{
            width: 100%;

            input,
            textarea{
                width: 100%;
                outline: none;
            }

            textarea{
                padding-top: 12px;
                min-height: 120px;
                max-width: 100%;
            }

            &.half{
                width: 47%;
                flex-grow: 1;
            }
        }
    }

}

.order-right{
    width: 35%;

    @media screen and (max-width: 1024px){
        width: 100%;
    }

    .checkout{
        padding: 30px 25px;
        border-radius: 10px;
        box-shadow: 0px 1px 5px 0px rgba(29, 45, 83, 0.20);
        background-color: #fff;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .checkout-head{
        display: flex;
        justify-content: space-between;
        align-items: end;
        padding-bottom: 30px;
        padding-top: 10px;
        position: relative;

        &::after{
            content:"";
            height: 2px;
            background: #cacdd570;
            width: 200%;
            position: absolute;
            bottom: 0;
            left: -50%;
        }
        .checkout-head-title{
            color: #1D2D53;
            font-family: Montserrat;
            font-size: 1.25rem;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
        }
        .checkout-head-price{
            color: #0EAA9E;
            font-family: Montserrat;
            font-size: 2rem;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
        }
    }

    .checkout-items{
        margin-top: 32px;
        .checkout-item{
            display: flex;
            justify-content: space-between;
            margin-bottom: 17px;
            .checkout-item-title{
                color: #8E96A9;
                font-family: Georgia;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
            }
            .checkout-item-value{
                color: #1D2D53;
                font-family: Montserrat;
                font-style: normal;
                font-weight: 600;
                line-height: normal;

                &.discount{
                    color: #FF6C87;
                    font-family: Montserrat;
                    font-style: normal;
                    font-weight: 600;
                    line-height: normal;
                }
            }
        }
        .checkout-subtitle{
            margin-top: 30px;
            color: #8E96A9;
            text-align: justify;
            font-family: Georgia;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
            margin-bottom: 95px;
        }

        .checkout-checkbox{
            margin-bottom: 30px;
        }

        .checkout-promo{
            width: 100%;
            display: flex;
            position: relative;
            margin-bottom: 24px;

            input{
                background-color: white;
                border-radius: 10px;
                border: 2px solid #CACDD5;
                width: 100%;
            }
            button{
                border-radius: 10px;
                background: #CACDD5;
                height: 100%;
                position: absolute;
                right: -20px;
                padding: 0 25px;
                color: white;
                border: 0;
                font-weight: 700;
                line-height: normal;
                cursor: pointer;
            }
        }

        .checkout-btn{
            width: 100%;
            margin-top: 50px;
            button{
                height: 60px;
                border-radius: 10px;
                background: #1D2D53;
                font-size: 1.25rem;
                font-style: normal;
                font-weight: 700;
                line-height: normal;
                color: white;
                border: 0;
                width: 100%;
                cursor: pointer;
                justify-content: center;
                gap: 40px;
                position: relative;

                .order-basket{
                    position: absolute;
                    left: 27px;
                    top: 50%;
                    transform: translateY(-50%);
                }

                .order-arrow{
                    position: absolute;
                    right: 27px;
                    top: 50%;
                    transform: translateY(-50%);
                }
            }
        }
    }
}