::-webkit-scrollbar-track {
    background: rgba(var(--theme-primary-opacity), 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--theme-primary);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-secondary);
    border: 1px solid transparent;
    background-clip: padding-box;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-primary) rgba(var(--theme-primary-opacity), 0.1);
}

.p-2.redclass {
    color: red;
}


.cart-body {
    /* Hide scrollbar for Firefox */
    scrollbar-width: thin;
    /* Hide scrollbar for IE and Edge */
    -ms-overflow-style: none;
    /* Keep scrolling functionality */
    overflow-y: scroll;
    overflow-x: hidden;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Opera) */
.cart-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.img-item {
    max-height: 90px !important;
}

.pb-1 {
    padding-bottom: .95rem !important;
}

.btn-outline-secondary:hover {
    color: #000 !important;
}

.btn-decrement {
    color: #000 !important;
}

.btn-increment {
    color: #000 !important;
}

.storeclose {
    display: inline-block;
    background-color: #fff !important;
    color: #ff0000 !important;
    font-weight: bold;
    padding: 3px 10px;
    margin-top: 5px;
}

/* Small devices (tablets, 768px and up) */
@media (max-width: 375px) {
    .viewitemsbutton {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .quantity-wrapper {
        text-align: center !important;
    }

    .mobilebttn {
        width: 97% !important;
    }

    .bhrclss {
        margin-bottom: 179px !important;
    }
}

@media screen and (min-width:370px) and (max-width:420px) {
    .mobilebttn {
        width: 97% !important;
    }

    /* .add-to-order-btn {
        padding: 13px 0 !important;
    } */

    .update-cart-btn {
        padding: 13px 0 !important;
    }

    .menudeswidth {
        min-width: 361px;
    }

    .bhrclss {
        margin-bottom: 179px !important;
    }
}

@media screen and (min-width:710px) and (max-width:980px) {
    .mobilebttn {
        width: auto !important;
    }
}

@media (max-width: 576px) {
    .viewitemsbutton {
        width: 100% !important;
        margin-bottom: 20px !important;

    }

    .quantity-wrapper {
        text-align: center !important;

    }

    .bhrclss {
        margin-bottom: 179px !important;
    }
}

@media screen and (min-width:1080px) and (max-width:1920px) {
    .bhrclss {
        margin-bottom: 109px !important;
    }
}

.card-img-top {
    height: 150px !important;
    width: 150px !important;
}

.card-header {
    padding: 0px !important;
    background-color: #fff !important;
    border-bottom: 0px !important;
}

.priceDisplay {
    float: right !important;
}

.viewitemsbutton {
    background-color: #1c5d99 !important;
    color: #fff !important;
}

.btn-minus {
    background-color: #fff !important;
}

.btn-plus {
    background-color: #fff !important;
}

.list-group-item {
    border: none !important;
}

.hide {
    display: none !important;
}

.greenborder {
    border-right: 6px solid var(--theme-primary) ! important;
}

.greentext {
    color: green !important;
    text-transform: lowercase !important;
}

/* Small devices (mobile) */
@media (max-width: 420px) {
    .menudeswidth {
        min-width: 361px;
        padding-right: 1rem;
    }
}

/* Medium devices (tablets) */
@media (min-width: 421px) and (max-width: 767px) {
    .menudeswidth {
        min-width: 400px;
    }
}

/* Large devices (desktops) */
@media (min-width: 768px) {
    .menudeswidth {
        min-width: 493px !important;
    }
}

/* Extra large devices */
@media (min-width: 1200px) {
    .menudeswidth {
        min-width: 550px;
    }
}

body {
    font-family: "Inter", sans-serif;
}

.btn-primary,
.bg-primary {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

.border-primary {
    border-color: var(--theme-primary) !important;
}

.btn-secondary {
    background-color: var(--theme-secondary) !important;
    border-color: var(--theme-secondary) !important;
    color: var(--theme-secondary-text) !important;
}

/* Scrollspy style */

.scrollspy-nav {
    top: 0;
    left: 0;
    padding: 10px 5px;
}

#navbar-cat {
    background-color: #fff !important;
}

.scrollspy-nav .scrollspy-link {
    text-decoration: none;
    color: var(--theme-primary);
    font-family: inherit;
    margin: 0px 10px;
    padding: 10px 10px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: inset -2px -2px 2px 0px rgba(var(--theme-primary-opacity), 0.2);
}

#navbar-cat .active {
    background-color: var(--theme-primary) !important;
    color: #fff !important;
}

.custom-shadow {
    box-shadow: 1px 5px 7px 1px rgba(var(--theme-primary-opacity), 0.2);
}

.view-items {
    border-radius: 10px;
    border: 1px solid rgba(var(--theme-primary-opacity), 0.2);
}

.card-img-top {
    border-radius: 10px 0px 0px 10px;
}

.heading {
    color: var(--theme-primary);
}

.card-header {
    border-radius: 10px !important;
}

@media (max-width: 375px) {
    .items-container {
        margin: auto;
        max-width: 450px;
        padding-top: 60px !important
    }
}

@media (min-width: 376px) and (max-width: 768px) {
    .items-container {
        padding-top: 55px !important;
    }
}

@media only screen and (max-width: 812px) {
    .aside-cart {
        display: none;
    }
}

/* MOBILE and Portrait TABLETS*/

@media only screen and (max-width: 768px) {

    /* Hide huge summary message*/
    .summary-huge {
        display: none;
    }

    .landing-order-notification {
        height: 10vh;
        padding: 5px;
        text-align: center;
    }

    .landing-logo {
        width: 70%;
        max-width: 320px;
        max-height: 40vh;
    }

    /* Menu screen */
    .item-description {
        font-size: small;
        margin-bottom: 0px;
    }

    nav>.btn {
        padding-top: 15px;
        font-size: medium;
    }



    /* Cart overlay */
    .cart-body {
        max-height: 60vh;
        max-width: 97%;
    }

    .overlay-content-wrapper {
        max-width: 550px;
    }

    /* Order summary */
    .item-titles {
        font-size: small;
    }

    /* Item edit */
    .quantity-wrapper {
        max-width: 170px;
    }



    /* Post-order page*/
    .summary-image {
        padding-right: 0;
    }

    .receipt-wrapper {
        max-width: 680px;
    }

    .scrollspy-nav {
        padding-left: 15px;
        padding-right: 15px;
    }

    .scrollspy-link {
        margin: 0 5px;
        padding: 8px 8px;
        font-size: 14px;
    }
}


/* Landscape TABLETS and DESKTOP */
@media only screen and (min-width: 812px) {
    .view-cart-btn {
        display: none;
    }
}

@media only screen and (min-width: 769px) {

    /* Aside cart div */
    .fake-wrapper {
        float: right;
    }

    .aside-cart {
        background-color: var(--theme-bg);
        width: 275px;
        margin-left: 3rem;
    }

    .fixed {
        position: fixed;
    }

    /* Cart overlay and aside */
    .cart-body {
        max-height: 50vh;
        max-width: 97%;
        /* overflow-y: auto;
        overflow-x: hide; */
    }

    .overlay-content-wrapper {
        max-width: 550px;
    }

    .landing-order-notification {
        height: 10vh;
        padding: 5px;
        text-align: center;
    }

    .landing-logo {
        width: 70%;
        max-width: 236px;
        /*max-width: 320px;*/
    }

    /* Menu screen */
    .item-description {
        font-size: small;
        margin-bottom: 0px;
    }

    nav>.btn {
        padding-top: 15px;
        font-size: medium;
    }

    .items-container {
        margin: 1rem 3rem 1rem 3rem;
        padding-top: 30px;
    }

    .item-edit {
        float: right;
        font-size: small;
        max-width: 500px;
    }

    /* Order summary */
    .item-titles {
        font-size: small;
    }

    .cart-summary {
        font-size: small;
    }

    .quantity-wrapper {
        max-width: 170px;
    }

    .summary-image {
        padding-right: 0;
    }
}

.overlay {
    opacity: 0.6;
    background-color: rgb(0, 0, 0);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 1020;
}

.order-overlay {
    z-index: 1030;
    display: none;
}

.item-edit-div {
    height: 100vh;
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
}

.landing-welcome {
    /* height: 100vh; */
    text-align: center;
    z-index: 1040;
}

.notification-banner {
    z-index: 1080;
    font-size: large;
    font-weight: 500;
    line-height: 30px;
}

.img-item {
    max-height: 75px;
}

.cart-body,
.cart-price,
.cart-total,
.cart-item,
.list-unstyled,
.pad-me {
    padding-left: 15px;
    padding-right: 15px;
}

.cart-item:hover {
    cursor: pointer;
}

.receipt-wrapper {
    background-color: white;
}

.btn-close {
    margin-right: 5px;
}

.cool-quantity {
    border: 1px solid grey;
    width: 2rem;
    height: 2rem;
}

.body-menu {
    -ms-overflow-style: none;
    /* for Internet Explorer, Edge */
    scrollbar-width: none;
    /* for Firefox */
    overflow: scroll;
}

.body-menu::-webkit-scrollbar {
    display: none;
    /* for Chrome, Safari, and Opera */
}

.borderless>li {
    border: none;
}

/* Add to your CSS */
.body-menu {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: white;
}


.menu-category:last-of-type {
    min-height: 75vh;
}

.body-summary {
    overflow: hidden;
}

.card {
    width: 24rem !important;
    flex-direction: row !important;
}

@media (max-width: 345px) {
    .card {
        width: 18rem !important;
    }

    .category-select {
        width: 140px !important;
    }
}

@media(max-width: 420px) {

    #comboModalBody .instruction-qty-controls .btn,
    form .instruction-qty-controls .btn {
        width: 40px !important;
    }

    #comboModalBody .instruction-qty-controls .instruction-qty,
    form .instruction-qty-controls .instruction-qty {
        width: 30px !important;
    }
}

@media (min-width: 346px) and (max-width: 415px) {
    .card {
        width: 20rem !important;
    }
}

/* Default: show short, hide long */
.desc-short {
    display: none;
}

.desc-long {
    display: block;
}

.items-container .card .card-title,
.menu-category .card .card-title {
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 2.4em;
    min-height: 1.2em;
}

.items-container .card .descmain,
.menu-category .card .descmain {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    max-height: 3.6em;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

/* For multi-badge version */
.badge-container {
    max-width: 200px;
}

.selected-item-badge {
    font-size: 0.7rem;
    font-weight: normal;
    padding: 0.2rem 0.4rem;
    margin: 0.1rem;
    white-space: nowrap;
}

.instruction-group .accordion-button {
    align-items: flex-start !important;
}

.instruction-group .instruction-group-name {
    flex-shrink: 0;
}

.instruction-desc {
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
}

.btn-danger,
.bg-danger {
    background-color: #f04438 !important;
    border-color: #f04438 !important;
}

.bg-success {
    background-color: #12b76a !important;
    color: #fff !important;
}

.bg-success.disabled {
    background-color: #ecfdf3 !important;
    color: #039855 !important;
}

.bg-warning {
    background-color: #f79009 !important;
}

.bg-info {
    background-color: #0ba5ec !important;
}

.alert-danger {
    color: #d92d20 !important;
    background-color: #fee4e2 !important;
    border-color: #f5c2c7 !important;
}

/* Add padding to the bottom of the scrollable content */
.edit-item.list-group {
    padding-bottom: 120px !important;
    /* Adjust based on footer height */
    margin-bottom: 0 !important;
}

/* Ensure the footer stays fixed with proper spacing */
.row.fixed-bottom {
    height: auto;
    /* min-height: 100px; */
    /* Adjust based on your footer content */
    padding-bottom: env(safe-area-inset-bottom, 0);
    /* For iOS safe area */
}

/* Promo code input styling */
.promotcode {
    transition: all 0.3s ease;
}

.promotcode.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

/* Success state for promo code */
.promotcode.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

/* Promo code container spacing */
.promotcode {
    font-size: 14px;
}

.promocode-clear-icon {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.promocode-clear-icon:hover {
    opacity: 1;
    color: #dc3545;
}

.promocode-clear-icon span {
    font-size: 20px;
    line-height: 1;
}

/* Responsive styling for promo code section */
@media (max-width: 768px) {
    .promotcode {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .col-8.text-start.ps-3 {
        padding-left: 0.5rem !important;
    }

    .col-4.text-end.pe-3 {
        padding-right: 0.5rem !important;
    }

    .apply-promo {
        white-space: nowrap;
        font-size: 12px;
        padding: 0.25rem 0.5rem;
    }

    .applied-promo-info {
        font-size: 11px;
        padding: 5px 0;
    }
}

/* Fix zoom issue on iOS for input focus */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}