/*=====================
  5.6  location CSS start
==========================*/
.location-section {
    background-color: rgba(var(--white), 1);
    padding-bottom: 20px;

    .pickup-location-listing {
        width: 100%;
        border-radius: 6px;
        background-color: rgba(var(--box-bg), 1);

        li {
            width: 100%;
            padding: 0 15px;
            width: 100%;
            position: relative;
            z-index: 0;

            &::before {
                content: "";
                position: absolute;
                top: 30px;
                left: 25px;
                z-index: -1;
                width: 2px;
                height: calc(100% - 20px);
                border-left: 1px dashed rgba(var(--title-color), 1);

                [dir="rtl"] & {
                    left: unset;
                    right: 25px;
                    border-left: unset;
                    border-right: 1px dashed rgba(var(--title-color), 1);
                }
            }

            &::after {
                content: "";
                position: absolute;
                bottom: 0;
                right: 0;
                width: calc(100% - 20px - 5px);

                [dir="rtl"] & {
                    right: unset;
                    left: 0;
                }
            }

            &:last-child {

                &::before,
                &::after {
                    content: unset;
                }
            }

            .location-box {
                display: flex;
                align-items: center;
                gap: 10px;

                &:focus-visible {
                    outline: unset;
                }

                .icon {
                    position: relative;
                    --Iconsax-Color: rgba(var(--title-color), 1);
                    --Iconsax-Size: 18px;
                    width: 20px;
                    height: 20px;

                    &::after {
                        content: "";
                        position: absolute;
                        bottom: 10px;
                        left: 0;
                        width: 25px;
                        border: 1px dashed rgba(var(--line-color), 1);
                        transform: rotate(90deg);

                        [dir="rtl"] & {
                            right: 0;
                            left: unset;
                        }
                    }
                }

                .form-control {
                    padding: 15px 0;
                    background-color: rgba(var(--box-bg), 1);
                    border-top: none;
                    border-left: none;
                    border-right: none;
                    border-bottom: 1px solid rgba(var(--line-color), 1);
                    border-radius: 0;

                    @media (max-width: 600px) {
                        padding: calc(10px + (15 - 10) * ((100vw - 320px) / (768 - 320))) 0;
                    }

                    &::placeholder {
                        color: rgba(121, 125, 131, 1);
                    }

                    &:focus {
                        box-shadow: none;
                    }
                }

                .add-stop {
                    padding-left: 10px;
                    border-left: 1px solid rgba(var(--line-color), 1);
                    --Iconsax-Color: rgba(var(--title-color), 1);
                    --Iconsax-Size: 24px;

                    [dir="rtl"] & {
                        padding-right: 10px;
                        padding-left: unset;
                        border-left: unset;
                        border-right: 1px solid rgba(var(--line-color), 1);
                    }
                }
            }
        }
    }
}

.categories-place-list {
    display: flex;
    align-items: center;
    gap: 15px;

    li {
        .categories-place-box {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 10px 15px;
            background-color: rgba(var(--white), 1);
            border: 1px solid rgba(var(--line-color), 1);
            border-radius: 6px;

            .place-icon {
                width: 16px;
                height: 16px;
            }

            h5 {
                font-weight: 400;
                color: rgba(var(--title-color), 1);
            }
        }
    }
}

.recent-place-list {
    padding: 15px;
    background-color: rgba(var(--white), 1);
    border-radius: 6px;

    li {
        width: 100%;
        // padding: 15px 0;
        // border-bottom: 1px solid rgba(var(--line-color), 1);

        +li {
            padding-top: 15px;
            margin-top: 15px;
            border-top: 1px solid rgba(var(--line-color), 1);
        }

        // &:first-child {
        //     padding-top: 0;
        // }

        // &:last-child {
        //     padding-bottom: 0;
        //     border-bottom: none;
        // }

        .recent-box {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        h5 {
            font-weight: 500;
            color: rgba(var(--title-color), 1);
        }

        p {
            margin-top: 5px;
            line-height: 1.2;
            font-weight: 300;
            color: rgba(var(--content-color), 1);
        }
    }
}

.contact-list {
    li {
        width: 100%;
        padding-block: 20px;
        border-bottom: 1px solid rgba(var(--content-color), 0.15);

        @media (max-width: 600px) {
            padding-block: calc(10px + (20 - 10) * ((100vw - 320px) / (600 - 320)));
        }

        &:first-child {
            padding-top: 0;
        }

        &:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }

        .option-icon {
            --Iconsax-Color: rgba(var(--title-color), 1);
            --Iconsax-Size: 20px;
        }

        .contact-box {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;

            .contact-details {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 10px;

                .img {
                    width: 50px;
                    height: 50px;
                    object-fit: cover;
                    background-color: rgba(var(--title-color), 1);
                    border-radius: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;

                    .icon {
                        --Iconsax-Color: rgba(var(--white), 1);
                    }
                }

                h5 {
                    font-weight: 400;
                    color: rgba(var(--title-color), 1);
                }

                h6 {
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    margin-top: 4px;
                    color: rgba(var(--content-color), 1);
                }
            }

            i {
                --Iconsax-Color: rgba(var(--content-color), 1);
                --Iconsax-Size: 18px;
                line-height: 1;
            }

            a {
                z-index: 1;

                .icon-btn {
                    --Iconsax-Color: rgba(var(--title-color), 1);
                    --Iconsax-Size: 20px;
                    width: 40px;
                    height: 40px;
                    line-height: 1;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 1px solid rgba(var(--content-color), 0.15);
                    box-shadow: 0px 2px 15px 0px rgba(var(--title-color), 0.01);
                    background-color: rgba(var(--white), 1);
                    border-radius: 8px;

                    @media (max-width: 600px) {
                        --Iconsax-Size: calc(18px + (20 - 18) * ((100vw - 320px) / (600 - 320)));
                        width: calc(35px + (40 - 35) * ((100vw - 320px) / (600 - 320)));
                        height: calc(35px + (40 - 35) * ((100vw - 320px) / (600 - 320)));
                    }
                }
            }
        }
    }
}