@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Leckerli+One&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Send+Flowers&display=swap');

:root{
    --background-main: #faf9f6;
    --background-sec: #F0F2F5;
    --background-third: #F7F6F3;
    --accent-black: #121212;
    --accent-gold: #CCac00;
    --box-shadow: 0px 8px 15px rgba(0.1, 0.1, 0.1, 0.1);

    --text-regular1: Roboto;
    --text-regular2: Open Sans;
    --text-bold: Cal Sans;
    --text-stylish: Leckerli One;
}

.custom-main{
    display: flex;
    flex-direction: column;
    align-items: center;

    h2{
        margin-bottom: 20px;
        width: fit-content;
        font-family: var(--text-bold);
        font-size: 2rem;
    }

    .all-orders-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 50px;
        width: 100%;

        .no-order-screen{
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            height: 100%;
            width: 100%;
            font-size: 1.3rem;
            font-family: var(--text-regular1);
            white-space: nowrap;

            svg{
                margin-bottom: 50px;
            }
            a{
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 5px;
                margin-top: 10px;
                width: 140px;
                height: 50px;
                color: var(--accent-black);
                text-decoration: none;
                white-space: nowrap;
                font-family: var(--text-regular1);
                font-size: .8rem;
                background: var(--background-third);
                font-weight: bold;
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border-radius: 20px;
                border: 1px solid rgba(255, 255, 255, 0.2);
                box-shadow: var(--box-shadow);
                transition: all .4s ease-in-out;
                cursor: pointer;
                svg{
                    margin-bottom: 0;
                    fill: var(--accent-black);
                    transition: .4s ease-in-out;
                }
                &:hover{
                    background: rgba(255, 255, 255, 0.35);
                    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15),
                    -0px -.1px 3px rgba(0, 0, 0, 0.15);
                }
            }
        }

        .order-container{
            padding: 25px;
            width: 65%;
            font-family: var(--text-regular1);
            border-radius: 20px;
            box-shadow: var(--box-shadow);

            .order-details{
                .receipt-details{
                    display: flex;
                    justify-content: space-between;
                    gap: 5px;
                    margin-bottom: 15px;
                    .order-id-container{
                        font-family: var(--text-bold);
                        font-size: 1.3rem;
                    }
                    .date-created-container, .date-completed-container{
                        div{
                            font-size: .9rem;
                            filter: grayscale(100%);
                            opacity: 0.8;
                        }
                        span{
                            font-weight: 600;
                        }
                    }
                }

                .delivery-details{
                    input[type=radio]{
                        margin-right: 5px;
                        cursor: pointer;
                        accent-color: var(--accent-black);
                    }

                    label {
                        cursor: pointer;
                        font-family: var(--text-regular1);
                    }

                    .default-selection-container{
                        margin-bottom: 10px;

                        .no-default-info-warning-container{
                            display: none;
                            align-items: center;
                            margin-top: 10px;
                            margin-left: 4%;
                            button{
                                margin-left: 10px;
                                width: 70px;
                                height: 30px;
                                color: var(--background-third);
                                white-space: nowrap;
                                font-size: .8rem;
                                background: var(--accent-black);
                                backdrop-filter: blur(10px);
                                -webkit-backdrop-filter: blur(10px);
                                border-radius: 10px;
                                border: none;
                                transition: all .4s ease-in-out;
                                cursor: pointer;
                                &:hover{
                                    color: var(--accent-black);
                                    background: rgba(255, 255, 255, 0.35);
                                    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15),
                                    -0px -.1px 3px rgba(0, 0, 0, 0.15);
                                }
                            }
                        }
                    }

                    .custom-selection-container{
                        margin-bottom: 20px;
                        .custom-delivery-info-form{
                            display: none ;
                            flex-direction: column;
                            gap: 10px;
                            margin-top: 10px;
                            margin-left: 4%;

                            input[type=text]{
                                padding: 0 15px;
                                min-height: 40px;
                                width: 200px;
                                color: var(--accent-black);
                                font-family: var(--text-regular1);
                                font-size: .9rem;
                                background: rgba(0, 0, 0, 0.2);
                                border-radius: 10px;
                                border: none;
                                &::placeholder{
                                    color: var(--accent-black);
                                }
                                &:focus{
                                    border: .09px solid var(--accent-black);
                                    outline: none;
                                }
                                &:-webkit-autofill {
                                    -webkit-text-fill-color: var(--background-third) !important;
                                    transition: background-color 5000s ease-in-out 0s;
                                }
                            }

                            .delivery-as-prefered-option-info-form{
                                display: none;
                                flex-direction: column;
                                gap: 5px;
                                margin: 8px 0 10px 4%;
                                .container{
                                    display: flex;
                                    align-items: center;
                                    gap: 20px;
                                }
                            }

                            .pickup-as-prefered-option-info-form{
                                display: none;
                                flex-direction: column;
                                span{
                                    margin: 5px 0;
                                }
                                input[type=text]{
                                    margin: 5px 0;
                                }
                                .container{
                                    margin-top: 6px;
                                    margin-left: 4%;
                                }
                            }
                        }
                    }
                }

                .general-details, .payment-details, .delivery-details{
                    display: flex;
                    flex-direction: column;
                    gap: 5px;
                    margin-bottom: 20px;
                    .container{
                        span{
                            font-size: 1rem;
                            font-weight: 600;
                        }
                    }
                }
                .delivery-details{
                    .pickup-method{
                        display: none;
                    }
                }
            }
            p{
                opacity: .8;
            }

            .order-product-list{
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
                gap: 20px;
                margin-bottom: 40px;
                margin-top: 15px;

                .product-card{
                    display: flex;
                    align-items: start;
                    /* gap: 20px; */
                    height: 80px;
                    white-space: nowrap;
                    font-size: .9rem;
                    background: var(--background-third);
                    backdrop-filter: blur(10px);
                    -webkit-backdrop-filter: blur(10px);
                    border: 1px solid rgba(255, 255, 255, 0.2);
                    box-shadow: var(--box-shadow);
                    border-radius: 10px;
                    transition: all .4s ease-in-out;
                    cursor: pointer;
                    img{
                        height: 100%;
                        width: 25%;
                        object-fit: cover;
                        border-top-left-radius: inherit;
                        border-bottom-left-radius: inherit;
                    }
                    div{
                        margin-top: 25px;
                    }
                    .column{
                        display: flex;
                        flex-direction: column;
                        margin-left: 10px;
                        margin-right: 40px;
                        width: 35%;
                        span{
                            &:nth-child(2){
                                font-size: .9rem;
                            }
                        }
                    }
                    span{
                        width: 60%;
                    }
                }
            }

            .extra-info{
                display: flex;
                flex-direction: column;
                gap: 30px;

                button{
                    width: 150px;
                    height: 30px;
                    color: var(--accent-black);
                    white-space: nowrap;
                    font-size: 1rem;
                    background: var(--background-third);
                    backdrop-filter: blur(10px);
                    -webkit-backdrop-filter: blur(10px);
                    border-radius: 20px;
                    border: 1px solid var(--accent-black);
                    transition: all .4s ease-in-out;
                    cursor: pointer;
                    &:hover{
                        background: rgba(255, 255, 255, 0.35);
                        box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15),
                        -0px -.1px 3px rgba(0, 0, 0, 0.15);
                    }
                }

                .top{
                    display: flex;
                    justify-content: end;
                    button{
                        width: 200px;
                        height: 50px;
                        color: var(--background-main);
                        background: var(--accent-black);
                        border: none;
                        &:hover{
                            color: var(--accent-black);
                            background: rgba(255, 255, 255, 0.35);
                            box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.15),
                            -0px -.1px 3px rgba(0, 0, 0, 0.15);
                        }
                    }
                }

                .bottom{
                    display: flex;
                    align-items: center;
                    justify-content: space-between;

                    span{
                        white-space: nowrap;
                        opacity: .8;
                    }
                }
            }
        }
    }


    .footer-custom{
        margin-top: 200px;
    }
}

@media(max-width: 900px){
    .custom-main{
        .all-orders-container{
            .order-container{
                width: 82%;
                .order-details{
                    .receipt-details{
                        flex-direction: column;
                        .order-id-container{
                            font-size: 1.1rem;
                        }
                    }
                    .delivery-details{
                        .custom-selection-container{
                            .custom-delivery-info-form{
                                .delivery-as-prefered-option-info-form{
                                    gap: 10px;
                                    margin: 8px 0 10px -20%;
                                    span{
                                        margin-left: 20%;
                                    }
                                    .container{
                                        gap: 10px;
                                        flex-direction: column;
                                    }
                                }
                            }
                        }
                    }
                }
                .extra-info{
                    span{
                        font-size: .8rem;
                    }
                }
            }
        }
    }
}
