.savings-text {
    color: #198754
}

.overpaid-text {
    color: #FF0000
}

/* START restaurant main photo section */
.restaurant-info-section {
    max-width: 1600px;
    margin: 30px auto;
    padding: 0px !important;
    position: relative;
}

.restaurant-photo {
    position: relative;
    width: 100%;
    padding-top: calc(100% * 5 / 16); /* Aspect ratio 16:5 */
    background: #F7F7F7; /* Fallback background color */
    overflow: hidden;
    color: white; /* Text color */
    border-radius: 24px;
    border: none;
}

    .restaurant-photo::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(0deg, rgba(28, 28, 28, 1) 0%, rgba(255, 255, 255, 0) 100%);
        z-index: 1; /* Make sure the overlay is above the image */
        border: none;
    }

    .restaurant-photo img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0; /* Image is below the overlay */
    }


.restaurant-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px;
    z-index: 2; /* Make sure text is above the overlay */
}



@media (max-width: 768px) {
    .restaurant-info-section {
        margin: 0;
    }
    .restaurant-info-container {
        max-width:none !important;
        width:100% !important;
        padding:0px !important;
    }
    .restaurant-photo {
        padding-top: 31.25%; /* 16:5 aspect ratio for smaller screens */
        border-radius:0px;
    }
}

@media (max-width: 480px) {
    .restaurant-photo {
        padding-top: 50%; /* Adjusted aspect ratio for very small screens */
    }
}

/* END restaurant main photo section */

/* START restaurant service options */
.food-service-options-container{
    display:none;
}
.food-service-options-container-rt{
    margin-top:15px
}
.food-service-options {
    padding: 3px;
    position: relative;
    background: white;
    border-radius: 12px;
}
.food-service-radio-tabs {
    display: flex;
    align-items: stretch;
}
.food-service-radio-tabs label {
    flex: 1;
    align-content: center;
    padding: 10px;
    line-height: 18px;
    min-height: 46px;
    text-align: center;
    color: var(--headings-color);
    border: none;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
    .food-service-radio-tabs label > span {
        display: block;
        color: #EB6753;
        font-size: 12px;
    }
.food-service-radio-tabs input[type="radio"]:checked + label {
    background-color: #f9f9f9;
}
.food-service-radio-tabs input[type="radio"] {
    display: none;
}
.food-service-radio-tabs-modal {
    line-height: 18px !important;
}
.food-service-radio-tabs-modal label > span {
    display: block;
    color: var(--mb-colour);
    font-size: 12px;
}
.food-service-radio-tabs-modal label {
    align-content: center;
}
@media (max-width: 1199px) {
    .food-service-options-container {
        display: block; /* Show on mobile devices */
    }

}
/* END restaurant service options */

/* START restaurant categories nav */
.active-category {
    background-color: var(--mb-colour) !important;
    color: #ffffff !important;
}
.food-menu-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: #f7f7f7;
    padding: 20px 0;
}

@media (max-width: 767.98px) {
    .food-menu-wrapper {
        padding-top: 7px !important;
        padding-bottom: 0px !important;
    }
    .food-menu-wrapper-shadow {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

.food-menu-cat-box {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
}

/* Hide Scrollbar on Large Displays */
@media (min-width: 768px) {
    .food-menu-cat-box {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .food-menu-cat-box::-webkit-scrollbar {
        display: none; /* WebKit-based browsers (Chrome, Safari, Opera) */
    }
}

/* Show and Style Scrollbar on Mobile Devices */
@media (max-width: 767px) {
    /* For Firefox */
    .food-menu-cat-box {
        scrollbar-width: thin; /* Makes the scrollbar thinner in Firefox */
        scrollbar-color: var(--mb-colour) #f1f1f1; /* Thumb color: var(--mb-colour), Track color: #f1f1f1 */
        position: relative; /* Enables positioning for additional effects */
    }

    /* For WebKit-based browsers (Chrome, Safari, Edge) */
    .food-menu-cat-box::-webkit-scrollbar {
        height: 6px; /* Horizontal scrollbar thickness (height) */
    }

    .food-menu-cat-box::-webkit-scrollbar-thumb {
        background-color: var(--mb-colour); /* Thumb color */
        border-radius: 4px; /* Rounded corners for the thumb */
    }

    .food-menu-cat-box::-webkit-scrollbar-track {
        background-color: #f1f1f1; /* Track background color */
    }
}


    .food-menu-cat {
        margin-right: 5px;
        overflow: visible;
        border-radius: 12px;
        display: inline-block;
        font-family: var(--title-font-family);
        font-weight: 600;
        font-size: 16px;
        line-height: 22px;
        font-style: normal;
        letter-spacing: 0em;
        padding: 10px 15px;
        position: relative;
        text-align: center;
        background-color: white;
        z-index: 0;
        -webkit-transition: all 0.4s ease;
        -moz-transition: all 0.4s ease;
        -ms-transition: all 0.4s ease;
        -o-transition: all 0.4s ease;
        transition: all 0.4s ease;
        white-space: nowrap; /* Ensure the text doesn't wrap */
    }

    a.food-menu-cat:hover{
        color:initial;
    }

.food-menu-paddle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px;
    height: 65px; /* Set height to match the item */
    display: flex;
    font-size: 36px;
    border-radius: 50%;
    align-items: center;
    color: var(--headings-color);
    cursor: pointer;
    z-index: 1;
    justify-content: center;
    background-color: #F7F7F7;
}

    .left-food-menu-paddle {
        left: -12px;
        -webkit-box-shadow: 15px 0px 15px -15px rgba(107,106,107,0.78);
        -moz-box-shadow: 15px 0px 15px -15px rgba(107,106,107,0.78);
        box-shadow: 15px 0px 15px -15px rgba(107,106,107,0.78);
    }

.right-food-menu-paddle {
    right: -12px;
    -webkit-box-shadow: -15px 0px 15px -15px rgba(107,106,107,0.78);
    -moz-box-shadow: -15px 0px 15px -15px rgba(107,106,107,0.78);
    box-shadow: -15px 0px 15px -15px rgba(107,106,107,0.78);
}

    .hidden {
        display: none !important;
    }


    /* Hide paddles on screens smaller than 768px (adjust as needed) */
    @media (max-width: 767px) {
        .food-menu-paddle {
            display: none;
        }

        .food-menu-cat-box {
            padding-bottom: 5px;
            scrollbar-width: thin; /* Firefox */
            -ms-overflow-style: auto; /* IE and Edge */
        }

            .food-menu-cat-box::-webkit-scrollbar {
                display: block; /* Chrome, Safari, Opera */
                height: 8px; /* Adjust height for horizontal scrollbar */
            }

            .food-menu-cat-box::-webkit-scrollbar-thumb {
                background-color: #888; /* Scrollbar color */
                border-radius: 10px; /* Rounded corners for the scrollbar */
            }

            .food-menu-cat-box::-webkit-scrollbar-track {
                background-color: #f1f1f1; /* Track color */
            }
    }
    /* END restaurant categories nav */



/* START restaurant category list items */
.food-item-container{
    display:flex;
}

.food-item-image-container {
    margin-right: 10px;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

.food-item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
    .food-item-name {
        text-decoration: none !important;
    }

        .food-item-name span {
            background-color: var(--mb-colour);
            border: 1px solid var(--mb-colour);
            border-radius: 8px;
            color: #ffffff;
            padding: 0 5px;
            font-size: 12px;
        }

    .add-food-to-basket-btn {
        background-color: #F7F7F7 !important;
        border-radius: 50% !important;
        line-height: 14px !important;
        padding: 10px !important;
    }


@media (max-width: 600px) {
    .food-item-image-container {
        width: 80px;
        height: 80px;
    }
}
/* END restaurant category list items */



    /* START order basket elements */
    .empty-basket-container {
        text-align: center;
    }

        .empty-basket-container i {
            text-align: center;
            font-size: 60px;
            font-weight: 300;
        }

.food-basket-container {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

    .basket-item-box {
        border-bottom: 1px solid #ddd;
        margin-bottom: 15px;
    }

        .basket-item-box:last-child {
            border-bottom: none; /* Remove border from the last item */
        }

    .basket-item-box-top {
        display: flex;
        align-items: flex-start; /* Align items to the start */
        justify-content: space-between;
        width: 100%; /* Ensure the top row takes full width */
    }

    .basket-item-quantity {
        line-height: 20px;
        flex: 0 0 auto; /* Prevent flex shrinking */
        text-align: left;
    }

    .basket-item-description {
        line-height: 20px;
        flex: 1 1 auto; /* Allow to grow and shrink */
        margin-left: 10px;
        margin-right: 10px;
        min-width: 150px;
        max-width: calc(100% - 160px); /* Adjust to prevent overflow */
        overflow: visible; /* Prevent overflow */
    }

    .basket-item-price {
        flex: 0 0 auto; /* Prevent flex shrinking */
        text-align: right;
        min-width: 80px;
    }

    .basket-item-controls {
        display: flex;
        justify-content: end;
        align-items: center;
        padding: 10px 0 10px 0;
        width: 100%; /* Ensure controls take full width */
    }

    .basket-qty-button {
        background: #f0f0f0;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 20px;
        line-height: 30px;
        text-align: center;
        cursor: pointer;
        margin: 0 5px;
    }

    button.basket-qty-button:focus {
        outline: none;
    }

    .basket-item-quantity-update {
        font-size: 16px;
        width: 30px;
        text-align: center;
    }

    /* Ensure layout remains consistent on mobile screens */
    @media (max-width: 600px) {
        .basket-item-box-top {
            flex-wrap: nowrap;
            align-items: flex-start;
        }

        .basket-item-controls {
            margin-top: 10px;
            width: 100%; /* Ensure controls take full width */
        }
    }

    /* END order basket elements */

    /* START order elements - mobile only */
    .view-basket-btn-wraper {
        display: none; /* Hide by default */
        position: fixed;
        bottom: 0;
        width: 100%;
        box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.3); /* Shadow on top */
        background-color: white; /* Change this to your desired background color */
        z-index: 1000; /* Ensures the div stays on top */
    }

    .basket-modal-footer {
        position: sticky !important;
        bottom: 0 !important;
        width: 100% !important;
        background: white !important;
        box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.3) !important;
    }

    /* Media query to show the div only on mobile devices */
    @media (min-width: 1200px) {
        .view-basket-btn-wraper {
            display: none; /* Hide on larger screen sizes */
        }
    }

    @media (max-width: 1199px) {
        .view-basket-btn-wraper {
            display: block; /* Show on mobile devices */
        }

        .scrollToHome-m {
            bottom: 90px !important;
            right: 10px !important;
        }
    }
    /* END order elements - mobile only */

    /* START COMMON STYLING */

    .radio-tabs {
        display: flex;
    }

        .radio-tabs input[type="radio"] {
            display: none;
        }

        .radio-tabs label {
            flex: 1;
            padding: 10px;
            text-align: center;
            color: var(--headings-color);
            border: 1px solid #DDDDDD;
            border-radius: 12px;
            background-color: #ffffff;
            cursor: pointer;
            transition: background-color 0.3s, color 0.3s;
        }

        .radio-tabs input[type="radio"]:checked + label {
            background-color: #f9f9f9;
            border: 1px solid var(--headings-color);
        }

    @media (max-width: 1199px) {
        .d-none-formobile {
            display: none;
        }
    }
    /* END COMMON STYLING */



/* START ORDER PROGRESS SECTION */
.order-progress-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.order-progress-stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

    .order-progress-stepper-item::before {
        position: absolute;
        content: "";
        border-bottom: 1px solid #181A20;
        width: 100%;
        top: 20px;
        left: -50%;
        z-index: 2;
    }

    .order-progress-stepper-item::after {
        position: absolute;
        content: "";
        border-bottom: 1px solid #181A20;
        width: 100%;
        top: 20px;
        left: 50%;
        z-index: 2;
    }

    .order-progress-stepper-item .order-progress-step-counter {
        position: relative;
        z-index: 5;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #f3f5f6;
        margin-bottom: 6px;
    }

    .order-progress-stepper-item.order-progress-completed-step .order-progress-step-counter {
        background-color: var(--mb-colour);
        color: white;
    }

    .order-progress-completed-step  {
        font-weight: bold;
    }



    .order-progress-stepper-item:first-child::before {
        content: none;
    }

    .order-progress-stepper-item:last-child::after {
        content: none;
    }

@media (max-width: 768px) {
    .order-progress-stepper-item {
        font-size: 12px;
    }
}

/* END ORDER PROGRESS SECTION */