#restaurant-details-wrapper{
    z-index: 1;
    position: absolute;
    color: #000000;
    bottom: 0;
    margin: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 145px;
    justify-content: center;
    transition: top 150ms ease-in-out;
    overscroll-behavior: none;
}

#restaurant-details-content{
    display: flex;
    height: fit-content;
    width: 100%;
    flex-direction: column;
    justify-content: start;
    background-color: white;
    overscroll-behavior: none;
}

.img-header{
    width: 100%;
    height: 68px;
    object-fit: cover;
    transition: height 200ms ease-in-out;
}

.img-header-expanded{
    height: 118px;
}

.restaurant-subheader-info{
    width: 100%;
}

.restaurant-details-header{
    position: sticky;
    background-color: white;
    top: 0;
    z-index: 1;
    transition: box-shadow 500ms ease-in-out;
}

.header-shadow{
    box-shadow: 0px 2px 2px #C5C5C5 !important;
}

.restaurant-details-body{

}

.subheader{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 10px 23px;
}

.drag-wrapper{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 30px;
}

.drag-icon{
    width: 49px;
    height: 3px;
    border-radius: 6px;
    background-color: #D9D9D9;
    right: 43%;
    top: 10px;
}

.restaurant-name-type{
    display: flex;
    flex-direction: column;
}

.restaurant-name, .restaurant-type {
    padding: 0;
    margin: 0;
}

.restaurant-name{
    margin-bottom: 5px;
    font-size: 26px;
}

.restaurant-type{
    font-size: 18px;
    color: #B4B4B4;
}

.main-dishes-wrapper{
    position: relative;
    height: fit-content;
}

.restaurant-price{
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--primary-color);
}

.dish-types-wrapper{
    width: 100%;
    position: sticky;
    top: 5rem;
    background-color: #FFFFFF;
}

.restaurant-info-1{
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.restaurant-info-1 > img {
    height: 20px;
    width: 20px;
    background-color: rgba(169, 169, 169, 0.47);
    border-radius: 20px;
    padding: 3px;
}

.close-icon{

}

.close-icon:hover{
    cursor: pointer;
}

.restaurant-info-2{
    display: flex;
    flex-direction: row;
}

.dish-types-nav{
    width: inherit;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    list-style: none;
    height: 42px;
    border-bottom: 1px solid lightgrey;
    font-weight: 500;
    font-size: 20px;
    padding: 0;
    margin-bottom: 0;
}

.dish-types-nav > li{
    padding: 10px;
    color: #595959;
}

.dish-types-nav > li > a{
    text-decoration: none;
    color: #595959;
}

.dish-types-nav > .selected > a{
    text-decoration: none;
    color: var(--primary-color) !important;
}

.selected{
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.dishes-wrapper{
    width: 100%;
    display: grid;
    grid-template-columns: 100% 100% 100%;
    height: 225px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.dish-list{
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    width: 100%;
    overflow: scroll;
    list-style: none;
    padding: 15px;
    scroll-snap-align: center;
}

.dish-list::-webkit-scrollbar-thumb{
    background: var(--secondary-color);
}

.dish-list::-webkit-scrollbar{
    width: 5px;
}

.dish-list::-webkit-scrollbar-track {
    display: none;
}

.dishes-wrapper::-webkit-scrollbar{
    display: none;
    width: 5px;
}

.dishes-wrapper::-webkit-scrollbar-track {
    display: none;
}

.additional-information{
    display: flex;
    padding: 20px;
    flex-direction: column;
    align-items: center;
}

.add-ons{
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid #C5C5C5;
    border-bottom: 1px solid #C5C5C5;
    padding: 20px 10px;
}

.add-on-container{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.add-on-title{
    font-weight: 500;
    font-size: 24px;
    padding: 0;
    margin: 0;
}

.add-on-icon{
    height: 30px;
    width: 30px;
    background-color: #C5C5C5;
    border-radius: 20px;
    padding: 5px;
}

.disabled-add-on{
    color: #D0D0D0 !important;
}

.disabled-add-on > .add-on-icon{
    background-color: #E9E9E9E9 !important;
}


.add-on-status{
    width: 24px;
    height: 24px;
}

.dish{
    font-size: 20px;
    font-weight: 500;
    padding: 13px;
    scroll-snap-align: center;
}

.price{
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    background-color: #F9FAFB;
}

.price-number{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.price-number > h3 {
    width: 30%;
    font-size: 40px;
    font-weight: 700;
}

.price-number > p, h3{
    padding: 0;
    margin: 0;
}

.important-info{
    padding: 18px 23px;
    background-color: #F3F3F3;
    border: 1px solid #D6D6D6;
    margin: 18px;
    border-radius: 8px;
}

.important-info > p, small{
    padding: 0;
    margin: 0;
}

.location-wrapper{
    padding: 20px;
}

.location-button{
    width: 100%;
    margin-top: 15px;
}

.location-link:active{
    background-color: #595959;
    color: white;
}

.location-link:active > .location-icon{
    filter: saturate(100%) brightness(100);
}

.location-link:focus{
    background-color: #595959;
    color: white;
}

.location-link:focus > .location-icon{
    filter: saturate(100%) brightness(100);
}

.location-link{
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    text-decoration: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #595959;
}

.location-icon{
    height: 24px;
    width: 24px;
    margin-right: 5px;
}

.location > h3{
    font-size: 24px;
    font-weight: 800;
}

.location > p:nth-child(2){
    font-weight: 600;
    color: #8D8D8D;
}

.location > p:nth-child(3){
    font-weight: 500;
    color: #B4B3B3;
}
.location > p{
    padding: 0;
    margin: 0;
}

.opened{
    top: 60% !important;
}

.select-menu-text{
    padding: 15px;
    margin: 0;
    font-weight: 400;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@media (max-width: 450px){
    #restaurant-details-wrapper{
        width: 100%;
    }
}

@media (min-width: 450px){
    #restaurant-details-wrapper{
        display: none;
        left: 0;
        height: 100%;
        width: 380px;
    }

    #restaurant-details-content{
        height: 100%;
        overflow-y: scroll;
        scroll-padding-top: 400px;
        scroll-behavior: smooth;
    }

    .img-header-expanded{
        height: 220px;
    }

    #restaurant-details-wrapper::-webkit-scrollbar{
        display: none;
    }

    #restaurant-details-content::-webkit-scrollbar{
        width: 3px;
    }

    #restaurant-details-content::-webkit-scrollbar-thumb{
        background: linear-gradient(navajowhite, var(--primary-color));
        border-radius: 10px;
    }

    #restaurant-details-wrapper::after{
        content: '';
        width: 10px;
        height: 10px;
        background-color: red;
    }

}

@media (max-height: 600px){
#restaurant-details-content{
        scroll-padding-top: 160px;
    }
}
