﻿/* Desktop order sidebar: limited to HomeMenu and the QR Menu/Index view. */
@media (min-width: 1280px) {
    .nlv5-home-page .nlv2-wide-order-layout {
        display: grid !important;
        --nlv2-order-sidebar-width: 324px;
        --nlv2-order-layout-gap: 22px;
        grid-template-columns: minmax(0, 1fr) var(--nlv2-order-sidebar-width) !important;
        align-items: start !important;
        gap: var(--nlv2-order-layout-gap) !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .nlv5-home-page .nlv2-wide-order-main,
    .nlv5-home-page .nlv2-wide-order-sidebar {
        min-width: 0 !important;
    }

    .nlv5-home-page .nlv2-wide-order-sidebar {
        position: relative !important;
        z-index: 4 !important;
        align-self: stretch !important;
    }

    .nlv5-home-page .nlv2-home-actions {
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) 76px !important;
        gap: 10px !important;
    }

    #nlv2DesktopOrderActionMount {
        margin-top: 10px !important;
    }

    #nlv2DesktopOrderActionMount .nlv2-home-call-action,
    #nlv2DesktopOrderActionMount .waiter-call-button {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 9px !important;
        padding: 8px 12px !important;
        border: 1px solid #d8c89f !important;
        border-radius: 7px !important;
        background: #fff !important;
        box-shadow: none !important;
        color: #101d2d !important;
        text-decoration: none !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    #nlv2DesktopOrderActionMount .nlv2-home-call-icon,
    #nlv2DesktopOrderActionMount .waiter-call-icon {
        color: #a77b2f !important;
    }

    #nlv2DesktopOrderActionMount .nlv2-home-call-label {
        display: flex !important;
        flex-direction: row !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    #nlv2DesktopOrderActionMount .nlv2-home-call-chevron,
    #nlv2DesktopOrderActionMount .waiter-call-status-dot {
        display: none !important;
    }

    .nlv5-home-page .nlv2-wide-order-main .nlv2-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    #nlv2DesktopOrderMount > #cartModal.nlv2-desktop-cart-panel {
        display: block !important;
        position: sticky !important;
        inset-inline: auto !important;
        top: 16px !important;
        left: auto !important;
        right: auto !important;
        z-index: 5 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        pointer-events: auto !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-dialog {
        width: 100% !important;
        display: block !important;
        max-width: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-shell {
        display: flex !important;
        flex-direction: column !important;
        max-height: calc(100vh - 32px) !important;
        overflow: hidden !important;
        border: 1px solid #e5e2db !important;
        border-radius: 10px !important;
        background: #fff !important;
        box-shadow: 0 8px 24px rgba(15, 30, 48, .08) !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-header {
        flex: 0 0 auto !important;
        min-height: 60px !important;
        padding: 14px 16px !important;
        border: 0 !important;
        background: #101d2d !important;
        color: #fff !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-header-icon {
        display: none !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-title {
        display: none !important;
    }

    #nlv2DesktopOrderMount #cartModal .nlv2-wide-order-title {
        display: block !important;
        color: #fff !important;
        font: 500 22px/1.2 Georgia, "Times New Roman", serif !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-subtitle {
        display: inline-flex !important;
        width: fit-content !important;
        margin-top: 5px !important;
        padding: 3px 9px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #c6a15b !important;
        color: #101d2d !important;
        font-size: 10px !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-close-x,
    #nlv2DesktopOrderMount #cartModal .nl-cart46-tool-close {
        display: none !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-body {
        min-height: 0 !important;
        padding: 14px 16px 12px !important;
        overflow: hidden !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-order-context {
        margin-bottom: 10px !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList {
        min-height: 112px !important;
        height: auto !important;
        flex: 0 1 auto !important;
        max-height: min(491px, calc(100vh - 288px)) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-gutter: stable !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-comment-card {
        display: none !important;
    }

    #nlv2DesktopOrderMount #cartModal:has(#cartItemsList > .list-group-item:not(.alert-success)) .nl-cart46-comment-card {
        display: block !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-summary {
        margin-top: 10px !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-footer {
        flex: 0 0 auto !important;
        padding: 8px 16px 14px !important;
        border: 0 !important;
        background: #fff !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-tool-clear {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 1279.99px) {
    .nlv2-wide-order-sidebar {
        display: none !important;
    }
}


/* WIDE ORDER CART ROW FIX V1.1: keep item text and controls in separate rows. */
@media (min-width: 1280px) {
    #nlv2DesktopOrderMount #cartModal .nl-cart46-body {
        overflow-x: hidden !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList {
        box-sizing: border-box !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList > .list-group-item {
        grid-template-columns: 56px minmax(0, 1fr) !important;
        grid-template-areas:
            "image info"
            "image actions" !important;
        column-gap: 9px !important;
        row-gap: 6px !important;
        padding: 8px !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList > .list-group-item > img {
        grid-area: image !important;
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        align-self: start !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList > .list-group-item > .flex-grow-1 {
        grid-area: info !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList > .list-group-item > .d-flex.align-items-center.cart-line-controls:last-child {
        grid-area: actions !important;
        justify-self: end !important;
        width: 143px !important;
        min-width: 143px !important;
        grid-template-columns: 35px 38px 35px 35px !important;
        grid-template-rows: 38px !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList .decrease-btn,
    #nlv2DesktopOrderMount #cartModal #cartItemsList .increase-btn {
        width: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
        height: 38px !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList > .list-group-item > .d-flex.align-items-center.cart-line-controls:last-child > .fw-bold {
        width: 38px !important;
        min-width: 38px !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartItemsList .cart-remove-line-btn {
        width: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
        height: 38px !important;
    }
}


/* WIDE ORDER SIDEBAR ALIGN V1.2: align panel header with the guest control. */
@media (min-width: 1280px) {
    .nlv5-home-page .nlv2-wide-order-sidebar {
        margin-top: var(--nlv2-sidebar-offset, 0px) !important;
    }
}


/* WIDE ORDER CATEGORY SPAN V1.3.1: full-width category rail plus Guest-aligned sidebar. */
@media (min-width: 1280px) {
    .nlv5-home-page .nlv2-wide-order-main > .nlv2-category-zone {
        position: relative !important;
        z-index: 3 !important;
        box-sizing: border-box !important;
        width: calc(100% + var(--nlv2-order-sidebar-width) + var(--nlv2-order-layout-gap)) !important;
        max-width: none !important;
        overflow: visible !important;
    }
}

/* WIDE ORDER PANEL VISUAL AND CART POPUP FIX V1.5 */
@media (min-width: 1280px) {
    .nlv5-home-page .nlv2-product-card.card-grid,
    .nlv5-home-page .nlv2-product-card.blockb {
        border-color: #e2e7ed !important;
        background: #ffffff !important;
        box-shadow: 0 5px 18px rgba(16, 29, 45, .055) !important;
    }

    .nlv5-home-page .nlv2-product-card.card-grid::before,
    .nlv5-home-page .nlv2-product-card.blockb::before {
        display: none !important;
        content: none !important;
    }

    #nlv2DesktopCartActions {
        display: grid !important;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }

    #nlv2DesktopCartActions #btnclear,
    #nlv2DesktopCartActions #checkoutBtn {
        display: inline-flex !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

    #nlv2DesktopCartActions #btnclear {
        border: 1px solid #d96b6b !important;
        background: #ffffff !important;
        color: #b84747 !important;
        box-shadow: none !important;
    }

    /* Match the navy cart button shown in the user's reference image. */
    #nlv2DesktopCartActions #checkoutBtn {
        border: 1px solid #0b2848 !important;
        background: #0b2848 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }
}
/* WIDE ORDER BUTTON ROW PRESENTATION FIX V1.5.1 */
@media (min-width: 1280px) {
    #nlv2DesktopOrderMount #cartModal .nl-cart46-checkout-stack {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    #nlv2DesktopCartActions {
        display: none !important;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
    #nlv2DesktopCartActions.has-actions { display: grid !important; }

    #nlv2DesktopCartActions #btnclear,
    #nlv2DesktopCartActions #checkoutBtn {
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        font-weight: 750 !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }
    #nlv2DesktopCartActions.has-clear #btnclear,
    #nlv2DesktopCartActions.has-checkout #checkoutBtn {
        display: inline-flex !important;
    }
    #nlv2DesktopCartActions #btnclear {
        border: 1px solid #d96b6b !important;
        background: #ffffff !important;
        color: #b84747 !important;
        box-shadow: none !important;
    }
    #nlv2DesktopCartActions #checkoutBtn {
        border: 1px solid #0b2848 !important;
        background: #0b2848 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }
    #nlv2DesktopOrderMount #cartModal .nl-cart46-footer {
        display: none !important;
    }
}
/* WIDE ORDER CHECKOUT POPUP V1.6 */
@media (min-width: 1280px) {
    /* Keep customer contact fields out of the persistent right sidebar.
       The same cart DOM is moved to document.body while the modal is open,
       so the fields become visible in the popup without cloning inputs. */
    #nlv2DesktopOrderMount #cartModal.nlv2-desktop-cart-panel #home-order-fields {
        display: none !important;
    }

    #nlv2DesktopCartActions #checkoutBtn {
        position: relative !important;
        display: inline-flex !important;
        min-height: 64px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 8px 14px !important;
        border: 1px solid #102f50 !important;
        border-radius: 16px !important;
        background: linear-gradient(145deg, #143858 0%, #0b2848 100%) !important;
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(11, 40, 72, .18) !important;
        text-align: left !important;
        transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
    }

    #nlv2DesktopCartActions #checkoutBtn:hover {
        background: linear-gradient(145deg, #194366 0%, #102f50 100%) !important;
        box-shadow: 0 10px 24px rgba(11, 40, 72, .24) !important;
        transform: translateY(-1px);
    }

    #nlv2DesktopCartActions #checkoutBtn:focus-visible {
        outline: 3px solid rgba(239, 181, 68, .58) !important;
        outline-offset: 2px !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-icon {
        display: inline-flex !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-right: 1px solid rgba(255,255,255,.14) !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #f2b84b !important;
        box-shadow: none !important;
        font-size: 22px !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-icon i {
        color: #f2b84b !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-copy {
        display: block !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 !important;
        color: #fff !important;
        text-align: center !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-copy strong {
        display: block !important;
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-copy small {
        display: none !important;
    }

    #nlv2DesktopCartActions #checkoutBtn::after {
        content: "›";
        flex: 0 0 auto;
        margin-left: 2px;
        color: #fff;
        font-size: 27px;
        font-weight: 500;
        line-height: 1;
    }

    #nlv2DesktopCartActions #checkoutBtn:disabled {
        cursor: wait !important;
        opacity: .78 !important;
        transform: none !important;
    }
}
/* WIDE ORDER CHECKOUT DETAILS V1.6.1 */
@media (min-width: 1280px) {
    /* Extend subcategories under the full-width category rail. */
    .nlv5-home-page .nlv2-wide-order-main > .nlv2-subcategory-zone {
        box-sizing: border-box !important;
        width: calc(100% + var(--nlv2-order-sidebar-width) + var(--nlv2-order-layout-gap)) !important;
        max-width: none !important;
        overflow: visible !important;
    }

    .nlv5-home-page .nlv2-wide-order-main > .nlv2-subcategory-zone #subcategorySlider {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 4px 6px 8px !important;
        overflow: visible !important;
    }

    .nlv5-home-page .nlv2-wide-order-main > .nlv2-subcategory-zone .sub-btn {
        flex: 1 1 140px !important;
        min-width: 0 !important;
        justify-content: center !important;
        white-space: normal !important;
        text-align: center !important;
    }

    /* Keep table, online count, and item total together on the left; QR timer on the right. */
    .nlv5-home-page .nlv2-wide-menu-count-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 16px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-top: 14px !important;
    }

    .nlv5-home-page .nlv2-wide-menu-left-group {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .nlv5-home-page .nlv2-wide-menu-count-row .nlv2-status-card,
    .nlv5-home-page .nlv2-wide-menu-count-row .nlv2-home-live-stats,
    .nlv5-home-page .nlv2-wide-menu-count-row #searchResultCount {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        width: auto !important;
        height: 44px !important;
        min-width: 0 !important;
        min-height: 44px !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border: 1px solid rgba(8, 38, 66, .12) !important;
        border-radius: 999px !important;
        background: #fff !important;
        box-shadow: 0 4px 10px rgba(5, 25, 44, .045), inset 0 1px 0 #fff !important;
        color: #183650 !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .nlv5-home-page .nlv2-wide-menu-count-row .nlv2-qr-status-row.nlv2-qr-status-relocated {
        display: none !important;
    }

    .nlv5-home-page .nlv2-wide-menu-count-row .nlv2-home-live-stats {
        gap: 7px !important;
    }

    .nlv5-home-page .nlv2-wide-menu-count-row .nlv2-status-card i,
    .nlv5-home-page .nlv2-wide-menu-count-row .nlv2-home-live-stats i {
        color: #d39a2f !important;
        font-size: 15px !important;
    }

    .nlv5-home-page .nlv2-wide-menu-left-group #searchResultCount {
        text-align: left !important;
    }

    .nlv5-home-page .nlv2-wide-menu-count-row .nlv2-timer-card {
        grid-column: 2 !important;
        justify-self: end !important;
    }

    /* Give the item count its own visual breathing room below the title. */
    #nlv2DesktopOrderMount #cartModal .nl-cart46-subtitle {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 10px 0 0 !important;
        padding: 5px 10px !important;
        border: 1px solid rgba(242, 184, 75, .30) !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, .08) !important;
    }

    /* The persistent sidebar only shows the cart contents and total. */
    #nlv2DesktopOrderMount #cartModal .nl-cart46-comment-card {
        display: none !important;
    }

    /* Fit the full checkout label and chevron in the two-button action row. */
    #nlv2DesktopCartActions {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
        gap: 7px !important;
    }

    #nlv2DesktopCartActions #checkoutBtn {
        min-width: 0 !important;
        min-height: 58px !important;
        gap: 5px !important;
        padding: 6px 7px !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-icon {
        flex: 0 0 30px !important;
        width: 30px !important;
        height: 34px !important;
        font-size: 18px !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-copy strong {
        font-size: 12px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    #nlv2DesktopCartActions #checkoutBtn::after {
        margin-left: 0 !important;
        font-size: 21px !important;
    }
}

@media (max-width: 1279.99px) {
    .nlv5-home-page .nlv2-wide-menu-count-row {
        display: contents !important;
    }
}
/* WIDE ORDER SIDEBAR HOTFIX V1.6.2 */
@media (min-width: 1280px) {
    /* Match the existing item-dependent rule's specificity and override it. */
    #nlv2DesktopOrderMount #cartModal:has(#cartItemsList > .list-group-item:not(.alert-success)) .nl-cart46-comment-card {
        display: none !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-comment-card {
        display: none !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-subtitle {
        color: #f6c66d !important;
        border-color: rgba(246, 198, 109, .55) !important;
        background: rgba(246, 198, 109, .13) !important;
    }

    #nlv2DesktopCartActions {
        grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr) !important;
    }

    #nlv2DesktopCartActions #checkoutBtn {
        box-sizing: border-box !important;
        min-width: 0 !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 6px 7px !important;
        overflow: hidden !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-icon {
        flex: 0 0 26px !important;
        width: 26px !important;
        height: 32px !important;
        font-size: 17px !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-copy {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    #nlv2DesktopCartActions #checkoutBtn .nl-cart46-checkout-copy strong {
        font-size: 11px !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        text-align: center !important;
    }

    #nlv2DesktopCartActions #checkoutBtn::after {
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        font-size: 18px !important;
    }
}
/* WIDE MENU SEARCH SPACING V1.6.3 */
@media (min-width: 1280px) {
    .nlv5-home-page .nlv2-wide-menu-count-row ~ .nlv2-search-wrap {
        margin-top: 16px !important;
    }
}

/* WIDE MENU SEARCH SPACING V1.6.3 ORDER ACTIONS COMPLETION */
@media (min-width: 1280px) {
    #nlv2DesktopOrderMount #nlv2DesktopCartActions.has-clear #btnclear {
        display: none !important;
    }

    #nlv2DesktopOrderMount #nlv2DesktopCartActions.has-checkout #checkoutBtn {
        grid-column: 1 / -1 !important;
    }
}

/* WIDE CHECKOUT BELOW TOTAL CARD V1.7.8 — SIDEBAR ONLY */
@media (min-width: 1280px) {
    .nlv5-home-page .nlv2-home-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 76px !important;
    }

    #cartModal.nlv2-desktop-cart-panel .nlv2-wide-checkout-below-summary #checkoutBtn {
        display: none !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 46px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        border: 1px solid #0b2848 !important;
        border-radius: 10px !important;
        background: linear-gradient(145deg, #143858 0%, #0b2848 100%) !important;
        box-shadow: 0 5px 14px rgba(11, 40, 72, .16) !important;
        color: #fff !important;
        text-align: center !important;
    }

    #cartModal.nlv2-desktop-cart-panel .nlv2-wide-checkout-below-summary.has-checkout #checkoutBtn {
        display: flex !important;
    }

    #cartModal.nlv2-desktop-cart-panel .nlv2-wide-checkout-below-summary #checkoutBtn .nl-cart46-checkout-icon {
        display: inline-flex !important;
        flex: 0 0 28px !important;
        width: 28px !important;
        height: 28px !important;
        align-items: center !important;
        justify-content: center !important;
        border-right: 1px solid rgba(255,255,255,.16) !important;
        background: transparent !important;
        color: #f2b84b !important;
        font-size: 16px !important;
    }

    #cartModal.nlv2-desktop-cart-panel .nlv2-wide-checkout-below-summary #checkoutBtn .nl-cart46-checkout-copy {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        color: #fff !important;
        text-align: center !important;
    }

    #cartModal.nlv2-desktop-cart-panel .nlv2-wide-checkout-below-summary #checkoutBtn .nl-cart46-checkout-copy strong {
        display: block !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    #cartModal.nlv2-desktop-cart-panel .nlv2-wide-checkout-below-summary #checkoutBtn .nl-cart46-checkout-copy small {
        display: none !important;
    }

    #cartModal.nlv2-desktop-cart-panel .nlv2-wide-checkout-below-summary #checkoutBtn:hover {
        background: linear-gradient(145deg, #194366 0%, #102f50 100%) !important;
        box-shadow: 0 7px 18px rgba(11, 40, 72, .22) !important;
        transform: translateY(-1px);
    }
}


/* COMPACT WIDE TOTAL CARD V1.7.8 — SIDEBAR ONLY */
@media (min-width: 1280px) {
    #nlv2DesktopOrderMount #cartModal .nl-cart46-summary {
        box-sizing: border-box !important;
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 10px !important;
        padding: 10px 14px !important;
    }

    #nlv2DesktopOrderMount #cartModal #cartBreakdown:not(.has-visible-breakdown) {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    #nlv2DesktopOrderMount #cartModal .nl-cart46-checkout-stack:not(.has-card-checkout) {
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }
}


/* DESKTOP POPUP PRESERVATION V1.7.8 */
@media (min-width: 1280px) {
    #cartModal:not(.nlv2-desktop-cart-panel) .nlv2-wide-checkout-below-summary {
        display: none !important;
    }
}


/* CENTER POPUP ACTIONS AND REDUCE CHECKOUT WIDTH V1.8.1 — WIDE ONLY */
@media (min-width: 1280px) {
    #cartModal:not(.nlv2-desktop-cart-panel) .nl-cart46-footer {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 8px 16px 14px !important;
    }

    #cartModal:not(.nlv2-desktop-cart-panel) .nl-cart46-tool-clear,
    #cartModal:not(.nlv2-desktop-cart-panel) .nl-cart46-tool-close {
        box-sizing: border-box !important;
        grid-row: auto !important;
        justify-self: auto !important;
        width: 200px !important;
        min-width: 150px !important;
        max-width: 200px !important;
        flex: 0 1 200px !important;
        margin: 0 !important;
    }



    #cartModal:not(.nlv2-desktop-cart-panel) .nl-cart46-summary .nl-cart46-checkout-stack {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    #cartModal:not(.nlv2-desktop-cart-panel) .nl-cart46-summary #checkoutBtn {
        box-sizing: border-box !important;
        width: min(100%, 420px) !important;
        max-width: 420px !important;
        flex: 0 1 420px !important;
        margin: 0 auto !important;
    }

    /* Keep the requested left-to-right order: Clear, then Close. */
    #cartModal:not(.nlv2-desktop-cart-panel) .nl-cart46-tool-clear { order: 1 !important; }
    #cartModal:not(.nlv2-desktop-cart-panel) .nl-cart46-tool-close { order: 2 !important; }
}
/* NEVERLAND WIDE EMPTY CART GAP V1.8.2: slight separation before the cart action, wide desktop sidebar only. */
@media (min-width: 1280px) {
    #nlv2DesktopOrderMount #cartModal:has(#cartItemsList > .alert-success) #cartItemsList {
        margin-bottom: 8px !important;
    }
}

/* QR status V4: disable the inherited QR stats margin on desktop. */
@media (min-width: 1280px) {
    .nlv5-page.nlv5-home-page.nlv5-qr-parity:not(.nlv2-home-page) .nlv2-qr-live-stats {
        margin: 0 !important;
    }
}

/* QR profile V5: match the cart button's navy, gold, and white surface. */
.nlv5-page.nlv5-home-page.nlv5-qr-parity:not(.nlv2-home-page)
.nlv2-profile-button.add-cart-btn2 {
    border: 1px solid rgba(255,255,255,.09) !important;
    background: linear-gradient(145deg, #10466f 0%, #082f50 58%, #061f36 100%) !important;
    box-shadow: 0 8px 18px rgba(5,28,49,.20), inset 0 1px 0 rgba(255,255,255,.10) !important;
    color: #fff !important;
}

.nlv5-page.nlv5-home-page.nlv5-qr-parity:not(.nlv2-home-page)
.nlv2-profile-button.add-cart-btn2 .nlv2-profile-icon,
.nlv5-page.nlv5-home-page.nlv5-qr-parity:not(.nlv2-home-page)
.nlv2-profile-button.add-cart-btn2 .nlv2-profile-icon i {
    color: #f0bd53 !important;
    border-right: 1px solid rgba(255,255,255,.18) !important;
}

.nlv5-page.nlv5-home-page.nlv5-qr-parity:not(.nlv2-home-page)
.nlv2-profile-button.add-cart-btn2 .profile-label {
    color: #fff !important;
    font-weight: 800 !important;
}

.nlv5-page.nlv5-home-page.nlv5-qr-parity:not(.nlv2-home-page)
.nlv2-profile-button.add-cart-btn2::after {
    top: 50% !important;
    right: 14px !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    background: none !important;
    opacity: .95 !important;
    transform: translateY(-50%) rotate(-45deg) !important;
}
