/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
}

/* Menu-Only iframe embed: tenant can hide site chrome via Control capabilities */
html.minimal-embed-chrome,
body.minimal-embed-chrome {
    background: #fff;
}

body.minimal-embed-chrome .header,
body.minimal-embed-chrome .footer,
body.minimal-embed-chrome .floating-menu-container {
    display: none !important;
}

body.minimal-embed-chrome .container,
body.minimal-embed-chrome #mainContainer {
    padding-top: 0;
    margin-top: 0;
    background: #fff;
}

body.minimal-embed-chrome #menu-container {
    padding-top: 0.5rem;
}

.container {
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
    transition: all 0.3s ease;
    background: #f7f7f7;
}

/* HEADER STYLES */
.header {
    background: rgb(58 153 79 / 12%);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgb(58 153 79 / 20%);
    min-height: 140px;
    position: relative;
    z-index: 10; /* Ensure header stays above menu-type-toggle */
}

/* Override old header styles when using bespoke-classic-header */
.header.bespoke-classic-header {
    background: var(--color-classic-primary) !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    border-bottom: 5px solid var(--color-classic-dark) !important;
    min-height: auto !important;
}

.header-content {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-columns: repeat(8, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 140px;
    gap: 0;
    position: relative;
}

.logo-container {
    position: absolute;
    left: 20px;
    z-index: 10;
}

.logo-image {
    max-height: 45px;
    width: auto;
    margin-bottom: 0;
    filter: brightness(1.1);
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff8c42;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.corporate-info {
    grid-row: 3 / 5;
    grid-column: 2 / 8;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.restaurant-tagline {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.restaurant-website {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    margin-top: 0.3rem;
}

.restaurant-website:hover {
    color: #ff8c42;
}

.phone-info {
    grid-row: 6;
    grid-column: 1 / 3;
    text-align: left;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.phone-number {
    color: #64748b;
    font-size: 1.0rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: #ff8c42;
}

.email-info {
    grid-row: 6;
    grid-column: 6 / 9;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.3rem;
}

.email-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.email-address {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.email-address:hover {
    color: #1e293b;
    text-decoration: none;
}

.email-description {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-top: 0.1rem;
}

.airport-codes {
    grid-row: 7;
    grid-column: 1 / 9;
    text-align: center;
    padding-top: 0.3rem;
}

.airport-codes-text {
    color: #475569;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* MAIN CONTENT AREA */
.main-content {
    background: #FAF9F6;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-top: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* TAB NAVIGATION (Two-tier: Menu Types → Categories) */
.tab-navigation {
    margin-bottom: 2rem;
}

.menu-type-toggle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    padding: 0;
    position: relative;
    z-index: 1; /* Ensure it stays below header */
}

.menu-type-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 2px solid #cbd5e1;
    border-radius: 24px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: none; /* Remove uppercase for chips */
}

/* Chips style - base styles are defined in .menu-type-button above */

.menu-type-button.menu-type-chip.active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-color: #ff6b35;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
    transform: translateY(-1px);
}

.menu-type-button.menu-type-chip:not(.active):hover {
    border-color: #ff6b35;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-1px);
}

.menu-type-button.menu-type-chip:active {
    transform: translateY(0);
}

/* Remove old underline style - not needed for chips */
.menu-type-underline {
    display: none;
}

/* Menu Type Card Container - Groups toggle and description together */
/* Combined Tab Navigation Card */
.tab-navigation-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), inset 0 0 10px 7px rgba(255, 107, 53, 0.58);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative; /* For absolutely positioned printer button */
}

/* Printer button in tab navigation card */
.tab-navigation-card .print-button {
    position: absolute;
    top: 12px; /* Account for border-radius (12px) */
    right: 12px; /* Account for border-radius (12px) */
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ff6b35;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    z-index: 10;
}

.tab-navigation-card .print-button:hover {
    background: #ff8c42;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
}

.tab-navigation-card .print-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* Menu Type Section */
.menu-type-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-type-header-row {
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) minmax(110px, 150px);
    gap: 0.1rem;
    align-items: start;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.menu-type-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 0;
    gap: 0;
}

.menu-item-carousel {
    display: flex;
    width: 100%;
}

.menu-item-carousel--left {
    justify-content: flex-end;
}

.menu-item-carousel--right {
    justify-content: flex-start;
}

.menu-item-carousel.is-empty {
    visibility: hidden;
}

.menu-item-carousel-card {
    display: block;
    width: 100%;
    max-width: 150px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: center;
}

.menu-item-carousel-card:disabled {
    cursor: default;
}

.menu-item-carousel-image-wrap {
    --carousel-anim-duration: 1.05s;
    --carousel-anim-wipe-duration: 1.15s;
    --carousel-anim-ease: cubic-bezier(0.22, 0.85, 0.32, 1);
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 107, 53, 0.25);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.menu-item-carousel-image-wrap[class*='carousel-anim-'] {
    transition: none;
}

.menu-item-carousel-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0) 48%,
        rgba(255, 255, 255, 0.22) 67%,
        rgba(255, 255, 255, 0.62) 100%
    );
}

.menu-item-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.98) contrast(0.97);
}

.menu-item-carousel-featured-sash {
    display: none;
    position: absolute;
    top: 10px;
    left: -28px;
    width: 110px;
    padding: 4px 0;
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.35);
    z-index: 2;
    pointer-events: none;
}

.menu-item-carousel.is-featured .menu-item-carousel-image-wrap {
    border-color: rgba(34, 197, 94, 0.9);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.28);
}

.menu-item-carousel-name {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    z-index: 3;
    padding: 0.5rem 0.38rem 0.6rem;
    font-size: 0.67rem;
    line-height: 1.12;
    font-weight: 700;
    color: #000;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 54%, rgba(255, 255, 255, 0) 100%);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    -webkit-text-stroke: 0.75px #fff;
    paint-order: stroke fill;
    text-shadow:
        -1px -1px 0 #fff,
        1px -1px 0 #fff,
        -1px 1px 0 #fff,
        1px 1px 0 #fff,
        0 0 4px #fff,
        0 0 8px rgba(255, 255, 255, 0.85);
    display: block;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
    overflow: hidden;
    max-height: calc(1.12em * 4);
}

.menu-item-carousel-image-wrap.carousel-anim-slide-in-left {
    animation: menuCarouselSlideInLeft var(--carousel-anim-duration) var(--carousel-anim-ease) forwards;
}

.menu-item-carousel-image-wrap.carousel-anim-slide-in-right {
    animation: menuCarouselSlideInRight var(--carousel-anim-duration) var(--carousel-anim-ease) forwards;
}

.menu-item-carousel-image-wrap.carousel-anim-slide-up {
    animation: menuCarouselSlideUp var(--carousel-anim-duration) var(--carousel-anim-ease) forwards;
}

.menu-item-carousel-image-wrap.carousel-anim-zoom {
    animation: menuCarouselZoom var(--carousel-anim-duration) var(--carousel-anim-ease) forwards;
}

.menu-item-carousel-image-wrap.carousel-anim-wipe-ltr {
    animation: menuCarouselWipeLtr var(--carousel-anim-wipe-duration) cubic-bezier(0.33, 0.72, 0.36, 1) forwards;
}

.menu-item-carousel-image-wrap.carousel-anim-wipe-rtl {
    animation: menuCarouselWipeRtl var(--carousel-anim-wipe-duration) cubic-bezier(0.33, 0.72, 0.36, 1) forwards;
}

.menu-item-carousel-card:hover .menu-item-carousel-image-wrap,
.menu-item-carousel-card:focus-visible .menu-item-carousel-image-wrap {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.28);
}

.menu-item-carousel-card:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.5);
    outline-offset: 4px;
    border-radius: 8px;
}

@keyframes menuCarouselSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menuCarouselSlideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menuCarouselSlideUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuCarouselZoom {
    from {
        opacity: 0;
        transform: scale(0.78);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes menuCarouselWipeLtr {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes menuCarouselWipeRtl {
    from {
        clip-path: inset(0 0 0 100%);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-item-carousel-image-wrap[class*='carousel-anim-'] {
        animation: menuCarouselReducedMotion 0.55s ease forwards !important;
    }
}

@keyframes menuCarouselReducedMotion {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

.menu-item.menu-item-highlight {
    animation: menuItemHighlightPulse 1.8s ease;
}

@keyframes menuItemHighlightPulse {
    0%, 100% {
        box-shadow: none;
        background: transparent;
    }
    20%, 70% {
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.35);
        background: rgba(255, 107, 53, 0.06);
        border-radius: 8px;
    }
}

.menu-type-description {
    text-align: center;
    font-size: 0.95rem;
    color: #42536b;
    font-weight: 400;
    font-style: italic;
    margin: 0.35rem auto 0;
    max-width: 650px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid rgba(255, 107, 53, 0.4);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Divider between menu type and tab list sections */
.tab-navigation-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    width: 100%;
}

/* Tab List Section */
.tab-list-section {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Legacy classes for backward compatibility - now inherit from parent */
.menu-type-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
}

.tab-list-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-tab-thumbnail {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Responsive category tabs */
@media (max-width: 768px) {
    .category-tabs {
        gap: 0.4rem;
        padding: 0.5rem 0;
    }
    
    .category-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .category-tab-thumbnail {
        width: 18px;
        height: 18px;
    }
}

/* Expand All Toggle Switch */
.expand-all-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 0.5rem;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.expand-all-toggle-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.expand-all-toggle-option i {
    font-size: 0.75rem;
}

.expand-all-toggle-option.active {
    color: #1e293b; /* Dark text for better visibility on green background */
    font-weight: 600; /* Make active text more prominent */
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 2px 4px rgba(74, 222, 128, 0.3);
}

.expand-all-toggle-option:not(.active):hover {
    color: #475569;
    background: rgba(255, 255, 255, 0.8);
}

/* Grey out category tabs when expand-all is active */
.expand-all-toggle-option.active ~ .category-tabs .category-tab,
.expand-all-toggle.active ~ .category-tabs .category-tab {
    opacity: 0.5;
    filter: grayscale(0.3);
    pointer-events: auto; /* Still clickable to exit expand-all */
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.expand-all-toggle-option.active ~ .category-tabs .category-tab:hover,
.expand-all-toggle.active ~ .category-tabs .category-tab:hover {
    opacity: 0.7;
    filter: grayscale(0.1);
}

/* Alternative: Apply grey styling when expand-all is active on the container */
.category-tabs.expand-all-active .category-tab {
    opacity: 0.5;
    filter: grayscale(0.3);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.category-tabs.expand-all-active .category-tab:hover {
    opacity: 0.7;
    filter: grayscale(0.1);
}

/* Mobile / tablet: stack menu header (768px block below must not restore 3-column grid) */
@media (max-width: 768px) {
    .menu-type-header-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .menu-type-center {
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .menu-type-toggle {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .menu-type-description {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
    }

    .menu-item-carousel--left {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .menu-item-carousel--right {
        display: none !important;
    }

    .menu-item-carousel--left .menu-item-carousel-card {
        max-width: 150px;
        margin: 0 auto;
    }

    .category-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 0.5rem 0.25rem;
        max-width: 100%;
    }

    .category-tab {
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    .expand-all-toggle {
        gap: 4px;
        padding: 3px;
    }
    
    .expand-all-toggle-option {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .expand-all-toggle-option i {
        font-size: 0.7rem;
    }
}

.tab-content {
    min-height: 400px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active,
.tab-panel[style*="block"] {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(30, 41, 59, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(30, 41, 59, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 107, 53, 0.4);
    color: #ff6b35;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.15);
}

.tab-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(255, 107, 53, 0.2);
}

/* LOADING/ERROR */
.loading-message,
.error-message {
    text-align: center;
    padding: 4rem 0;
    color: #64748b;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* MENU CATEGORY */
.menu-category {
    margin-bottom: 3rem;
}

/* Category section (title/description) with background image */
.category-section-bg {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    background-color: #efefef;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background 0.5s ease;
    min-height: 120px;
    max-height: 200px;
    overflow: hidden;
}

.category-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 0;
}

.category-section-bg > * {
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
    padding-bottom: 0.6rem;
    padding-top: 1rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 1),
        0 2px 4px rgba(255, 255, 255, 1),
        0 3px 8px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.8);
}

.category-description {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 1),
        0 2px 4px rgba(255, 255, 255, 1),
        0 3px 8px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.8);
}

/* Sticky category header (matches subcategory sticky header style) */
/* NOTE: Currently using background-image mode. To revert to thumbnail mode, add .use-thumbnail class to all .category-header-sticky elements */
.category-header-sticky {
    position: sticky;
    top: 0 !important; /* Always at top of viewport when sticky */
    z-index: 1000; /* Higher z-index to appear above subcategory sections */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #6f4e37; /* Border highlight color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: none; /* Hidden by default, shown via JavaScript */
    width: 100%; /* Full width when using background image */
    max-width: 400px; /* But limit max width */
    border-radius: 0 0 8px 0; /* Rounded bottom-right corner */
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    /* Toggle: Use background-image mode by default. Set .category-header-sticky.use-thumbnail to revert */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* position: relative removed - was overriding position: sticky */
    min-height: 60px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Overlay for text readability when using background image */
.category-header-sticky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 0 0 8px 0;
    z-index: 1;
    pointer-events: none;
}

/* Revert to thumbnail mode when .use-thumbnail class is added */
.category-header-sticky.use-thumbnail {
    background-image: none !important;
    background: rgba(255, 255, 255, 0.95);
    width: fit-content; /* Back to fit-content width */
    max-width: none;
}

.category-header-sticky.use-thumbnail::before {
    display: none;
}

.category-header-sticky .category-thumbnail {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Hide thumbnail when using background image mode */
    display: none;
}

/* Show thumbnail when .use-thumbnail class is present */
.category-header-sticky.use-thumbnail .category-thumbnail {
    display: flex;
}

.category-header-sticky .category-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-header-sticky .category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    white-space: nowrap; /* Prevent title from wrapping */
    position: relative;
    z-index: 2; /* Above overlay */
    min-width: 0; /* Allow shrinking */
}

.category-header-sticky.expanded .category-info {
    white-space: normal; /* Allow wrapping when expanded */
    flex-shrink: 0; /* Don't shrink when expanded */
}

.category-header-sticky .category-title {
    font-size: 1rem;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    white-space: nowrap; /* Keep title on one line */
    text-align: left;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    /* Revert to original color when using thumbnail mode */
}

.category-header-sticky.use-thumbnail .category-title {
    color: #475569;
    text-shadow: none;
    font-weight: 600;
}

.category-header-sticky .category-sticky-subcategory {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.2rem;
    padding-left: 0.5rem;
    white-space: nowrap;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.5);
    /* Revert to original color when using thumbnail mode */
}

.category-header-sticky.use-thumbnail .category-sticky-subcategory {
    color: #64748b;
    text-shadow: none;
    font-weight: 500;
}

.category-header-sticky .category-description {
    display: none; /* No description in sticky mode */
}

.category-header-sticky.visible {
    display: flex;
    animation: slideDown 0.2s ease-out;
    cursor: pointer; /* Indicate it's clickable */
    transition: all 0.3s ease;
}

.category-header-sticky.visible:not(.expanded) {
    cursor: pointer; /* Only show pointer when not expanded */
}

.category-header-sticky.visible:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Expanded state for sticky card - MUST override base display: none and top: 0 !important */
/* Use data attribute selector for maximum specificity */
.category-header-sticky[data-expanded="true"],
.category-header-sticky.expanded,
.category-header-sticky.expanded.visible,
.category-header-sticky.use-thumbnail.expanded,
.category-header-sticky.use-thumbnail.expanded.visible,
.category-header-sticky[data-expanded="true"].expanded,
.category-header-sticky[data-expanded="true"].expanded.visible {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 500px !important;
    max-height: calc(100vh - 20px) !important; /* Use viewport height minus small margin */
    overflow: visible !important; /* Let menu-outline handle scrolling */
    padding: 1rem !important;
    cursor: default !important;
    position: fixed !important; /* Use fixed positioning when expanded to prevent scroll issues */
    top: 0 !important; /* Expand in place at top */
    left: 0 !important; /* Expand in place at left */
    transform: none !important; /* No transform - expand in place */
    z-index: var(--expanded-z-index, 10001) !important; /* Use CSS variable, fallback to 10001 - CRITICAL: Override base z-index: 1000 */
    display: flex !important; /* CRITICAL: Override base display: none */
    visibility: visible !important;
    opacity: 1 !important; /* Ensure full opacity */
    margin: 0 !important; /* No margin */
}

/* Hide thumbnail in expanded state to keep it compact */
.category-header-sticky.expanded .category-thumbnail {
    display: none !important;
}

/* Compact category info in expanded state */
.category-header-sticky.expanded .category-info {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(111, 78, 55, 0.2);
}

/* Ensure expanded card stays visible even if scroll handler tries to hide it */
.category-header-sticky.visible.expanded {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Prevent body scroll when sticky card is expanded */
body.sticky-expanded {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
}

.category-header-sticky.expanded .category-info {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(111, 78, 55, 0.2);
}

/* Menu outline container */
.category-header-sticky .menu-outline {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    margin-top: 0.5rem;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 78, 55, 0.3) transparent;
}

.category-header-sticky .menu-outline::-webkit-scrollbar {
    width: 6px;
}

.category-header-sticky .menu-outline::-webkit-scrollbar-track {
    background: transparent;
}

.category-header-sticky .menu-outline::-webkit-scrollbar-thumb {
    background-color: rgba(111, 78, 55, 0.3);
    border-radius: 3px;
}

.category-header-sticky .menu-outline::-webkit-scrollbar-thumb:hover {
    background-color: rgba(111, 78, 55, 0.5);
}

.category-header-sticky.expanded .menu-outline {
    display: block; /* Change from flex to block for CSS columns to work */
    max-height: calc(100vh - 180px); /* Leave room for category info and padding */
    column-count: 2; /* 2 columns on mobile */
    column-gap: 1rem;
    column-fill: balance; /* Balance content across columns */
}

/* Multi-column layout - don't break category groups (category + subcategories) across columns */
.menu-outline-category-group {
    break-inside: avoid; /* Don't break category group across columns */
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block; /* Required for break-inside to work with columns */
    width: 100%;
    margin-bottom: 0.5rem;
}

.menu-outline-category {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.25rem;
    background-color: rgba(111, 78, 55, 0.05);
    border-left: 3px solid #6f4e37;
}

.menu-outline-subcategory {
    font-weight: 400;
    font-size: 0.8rem;
    color: #64748b;
    padding: 0.35rem 0.75rem 0.35rem 2rem; /* More indentation for subcategories */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.1rem;
    background-color: transparent;
    border-left: 3px solid transparent;
}

/* Tablet and desktop: 3 columns */
@media (min-width: 768px) {
    .category-header-sticky.expanded .menu-outline {
        column-count: 3;
    }
}

/* Menu outline items */
.menu-outline-category {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.25rem;
    background-color: rgba(111, 78, 55, 0.05);
    border-left: 3px solid transparent;
}

.menu-outline-category:hover {
    background-color: rgba(111, 78, 55, 0.15);
}

.menu-outline-category.active {
    background-color: rgba(111, 78, 55, 0.2);
    color: #6f4e37;
    border-left-color: #ff6b35;
    font-weight: 700;
}

.menu-outline-subcategory:hover {
    background-color: rgba(111, 78, 55, 0.08);
    color: #475569;
}

.menu-outline-subcategory {
    background-color: transparent;
    border-left: 3px solid transparent;
}

.menu-outline-subcategory.active {
    background-color: rgba(111, 78, 55, 0.12);
    color: #6f4e37;
    font-weight: 500;
    border-left: 3px solid #ff6b35;
}

.menu-outline-subcategory::before {
    content: '└';
    position: absolute;
    left: 0.75rem;
    color: #94a3b8;
}

/* Hide the "└" character in expanded sticky */
.category-header-sticky.expanded .menu-outline-subcategory::before {
    content: none;
}

/* Expand indicator removed - user requested removal */

/* Mobile adjustments for expanded menu */
@media (max-width: 768px) {
    .category-header-sticky.expanded {
        max-width: 100%;
        max-height: 70vh;
        padding: 0.75rem;
    }
    
    .menu-outline-category {
        font-size: 0.9rem;
        padding: 0.6rem 0.75rem;
    }
    
    .menu-outline-subcategory {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem 0.4rem 1.5rem;
    }
}

/* Responsive adjustments for category sticky header */
@media (max-width: 768px) {
    .category-header-sticky {
        top: 0;
    }
    
    .category-header-sticky .category-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .category-header-sticky .category-title {
        font-size: 0.9rem;
    }
}

/* Subcategory tabs container */
.subcategory-tabs-container {
    margin: -1rem 0 1.5rem 0;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.subcategory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.75rem 0;
}

.subcategory-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.subcategory-tab:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subcategory-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.subcategory-tab.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

.subcategory-tab-thumbnail {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Responsive subcategory tabs */
@media (max-width: 768px) {
    .subcategory-tabs {
        gap: 0.4rem;
        padding: 0.5rem 0;
    }
    
    .subcategory-tab {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .subcategory-tab-thumbnail {
        width: 18px;
        height: 18px;
    }
    
    /* Floating menu adjustments for mobile */
    .floating-menu-container {
        top: 80px; /* Higher on mobile too, but not as much */
        right: 15px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .floating-view-style-button {
        display: inline-flex;
    }
    
    .floating-menu-button {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .floating-menu-dropdown {
        min-width: 200px;
        right: 0;
    }
    
    .floating-menu-item {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

.subcategory-section {
    margin: 2rem 0;
    position: relative;
    z-index: 1; /* Lower than sticky header to ensure sticky stays on top */
}

.subcategory-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1; /* Lower than sticky header */
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.subcategory-thumbnail {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.subcategory-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subcategory-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem; /* Start title 2/3 up the thumbnail (65px * 0.66 ≈ 43px, but we'll use padding-top for alignment) */
}

.subcategory-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.25rem 0;
    padding: 0;
    border: none;
    text-align: left;
    line-height: 1.3;
}

.subcategory-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-style: normal;
    line-height: 1.5;
}

.subcategory-items {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

.subcategory-section {
    margin: 0.3rem 0;
}

/* Sticky subcategory header (appears when scrolling) */
.subcategory-header-sticky {
    position: sticky;
    top: 0; /* At top of viewport when sticky (will be adjusted dynamically when category is also sticky) */
    z-index: 100; /* Will be increased to 101 when category is also sticky */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #6f4e37; /* Border highlight color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: none; /* Hidden by default, shown via JavaScript */
    width: fit-content; /* Only as wide as content */
    border-radius: 0 0 8px 0; /* Rounded bottom-right corner */
    left: 0; /* Will be adjusted dynamically when category is also sticky */
}

.subcategory-header-sticky .subcategory-thumbnail {
    width: 45px;
    height: 45px;
}

.subcategory-header-sticky .subcategory-info {
    padding-top: 0.3rem;
    white-space: nowrap; /* Prevent title from wrapping */
}

.subcategory-header-sticky .subcategory-sticky-category {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

.subcategory-header-sticky .subcategory-title {
    font-size: 1rem;
    margin-bottom: 0;
    white-space: nowrap; /* Keep title on one line */
    margin-left: 0;
    color: #1e293b;
}

.subcategory-header-sticky .subcategory-description {
    display: none; /* No description in sticky mode */
}

.subcategory-header-sticky.visible {
    display: flex;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for subcategory header */
@media (max-width: 768px) {
    .subcategory-header {
        gap: 0.75rem;
    }
    
    .subcategory-thumbnail {
        width: 55px;
        height: 55px;
    }
    
    .subcategory-info {
        padding-top: 0.4rem;
    }
    
    .subcategory-title {
        font-size: 1.1rem;
    }
    
    .subcategory-description {
        font-size: 0.8rem;
    }
    
    .subcategory-header-sticky {
        top: 0;
    }
    
    .subcategory-header-sticky .subcategory-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .subcategory-header-sticky .subcategory-title {
        font-size: 0.9rem;
    }
    
    .subcategory-header-sticky .subcategory-description {
        font-size: 0.7rem;
    }
}

/* MENU ITEMS GRID WITH LINEN TEXTURE */
.menu-items,
.category-items {
    display: grid;
    grid-template-columns: 1fr; /* Default: single column (500px-900px) */
    gap: 1.5rem;
    background-color: #efefef;
    /* Linen texture - exact from original (crossstitch pattern) */
    background-image:
        url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAC5JREFUeNpi/P//P8OAAzAwAARiYGFgZGRgqAgSgADGQGZmBgYGMABQYGFgAADAAAD/xS4Q+yEAAAAASUVORK5CYII='),
        repeating-linear-gradient(
            -45deg,
            #f5f4f21a 2px,
            rgba(200, 190, 170, 0.1) 4px,
            transparent 4px,
            transparent 8px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(200, 190, 170, 0.1) 2px,
            rgba(200, 190, 170, 0.1) 4px,
            transparent 4px,
            transparent 8px
        );
    background-size: 2px 2px, auto, auto;
    padding: 1.5rem;
    /* Soft, organic edges with gentle fade */
    box-shadow: 
        inset 15px 0 25px -15px rgba(0, 0, 0, 0.08),
        inset -15px 0 25px -15px rgba(0, 0, 0, 0.08),
        inset 0 15px 25px -15px rgba(0, 0, 0, 0.08),
        inset 0 -15px 25px -15px rgba(0, 0, 0, 0.08);
}


/* Mobile styles for screens under 500px */
@media (max-width: 500px) {
    .menu-items,
    .category-items {
        padding: 1rem;
        gap: 1rem;
    }
    
    .menu-item {
        padding: 0.5rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .item-image-container {
        width: 100%;
        height: 120px;
        order: 1;
        margin-bottom: 0.5rem;
    }
    
    .item-content {
        order: 2;
    }
    
    .item-name {
        font-size: 1.1rem;
    }
    
    .item-description {
        font-size: 0.9rem;
    }
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid #f59e0b;
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    color: #f59e0b;
}

.toast-message {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.4;
    flex: 1;
}

@media (max-width: 500px) {
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* MENU ITEM CARD */
.menu-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 253, 250, 0.95) 100%);
    border: 1px solid rgba(139, 117, 93, 0.15);
    padding: 0.3rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.46, 0.03, 0.52, 0.96);
    border-left: 3px solid rgba(139, 117, 93, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 253, 250, 1) 100%);
    border-color: rgba(139, 117, 93, 0.25);
    border-left-color: rgba(139, 117, 93, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.3rem;
    gap: 1rem;
}

.item-name {
    font-size: 1.2rem;
    font-weight: 400;
    color: #1e293b;
    margin: 0;
    letter-spacing: 1px;
    flex: 1;
}

.item-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.3rem 0;
    font-weight: 300;
}

.item-prep-note {
    color: #7c6952;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0 0 .5rem 0;
    padding: .25rem .5rem;
    background: linear-gradient(135deg, rgba(255, 248, 220, 0.6) 0%, rgba(255, 245, 210, 0.5) 100%);
    border: 1px solid rgba(139, 117, 93, 0.2);
    border-left: 3px solid rgba(180, 140, 80, 0.4);
    font-weight: 300;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.item-prep-note.hidden,
.item-cooking-method.hidden,
.item-tags.hidden {
    display: none !important;
}

.item-cooking-method {
    color: #5a6b7d;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0 0 .5rem 0;
    padding: .25rem .5rem;
    background: linear-gradient(135deg, rgba(225, 235, 245, 0.6) 0%, rgba(220, 230, 245, 0.5) 100%);
    border: 1px solid rgba(100, 120, 150, 0.2);
    border-left: 3px solid rgba(100, 140, 180, 0.4);
    font-weight: 300;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 0 0;
}

.item-tag {
    background: rgba(241, 245, 249, 0.8);
    color: #475569;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(30, 41, 59, 0.2);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
}

.item-tag.vegetarian {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.2);
}

.item-tag.vegan {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.15);
}

.item-tag.gluten-free {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border-color: rgba(249, 115, 22, 0.2);
}

/* MCOPH warning indicator - subtle warning for raw/undercooked foods */
.mcoph-warning-indicator {
    display: inline-block;
    font-size: 1.25rem;
    color: #f59e0b;
    margin-left: 0.5rem;
    opacity: 1;
}

/* Ensure warning indicator scales with print preview content */
/* The indicator is inside the page, so it will automatically scale with the page transform */
/* DO NOT override font-size - let inline styles control it (they calculate based on titleSize) */
#print-preview-modal .mcoph-warning-indicator,
.print-preview-content .mcoph-warning-indicator,
.print-preview-page .mcoph-warning-indicator,
.print-preview-content .preview-menu-item .mcoph-warning-indicator,
.print-preview-content .preview-menu-item span[title*="Consuming raw"],
.print-preview-content .preview-menu-item span[style*="color: #f59e0b"] {
    /* font-size removed - let inline style control it */
    display: inline-block !important;
    cursor: help !important;
    vertical-align: middle !important;
    line-height: 1 !important;
    transition: opacity 0.2s ease !important;
    font-weight: 900 !important;
    color: #f59e0b !important;
    margin-left: 0.5rem !important;
}

.mcoph-warning-indicator:hover {
    opacity: 0.8;
}

/* Warning indicator in modal */
#modalItemName + .mcoph-warning-indicator {
    font-size: 1.4rem;
    margin-left: 0.75rem;
    font-weight: 900;
}

/* Expanded sticky menu type buttons */
.expanded-sticky-menu-types {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.expanded-sticky-menu-type {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.expanded-sticky-menu-type:hover {
    background-color: rgba(111, 78, 55, 0.15) !important;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 107, 53, 0.9);
    }
}

@keyframes jiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-8deg) scale(1.15);
    }
    50% {
        transform: rotate(0deg) scale(1.2);
    }
    75% {
        transform: rotate(8deg) scale(1.15);
    }
}

@keyframes glow-pulse-green {
    0%, 100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(34, 197, 94, 0.9);
    }
}

/* Matching category (proposed menu location) - green scheme when on different menu */
.menu-outline-category.matching-category {
    background-color: rgba(34, 197, 94, 0.15) !important;
    border-left-color: #22c55e !important;
    color: #22c55e !important;
}

.matching-category-close-btn {
    display: inline-block;
    margin-left: 0.5rem;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    animation: jiggle 0.6s ease-in-out infinite;
    vertical-align: middle;
}

.matching-category-close-btn:hover {
    background-color: rgba(239, 68, 68, 0.4);
    animation: none;
    transform: scale(1.2);
}

/* Menu indicator on small sticky card */
.category-header-sticky .menu-indicator {
    font-size: 0.6rem;
    color: #6f4e37;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
    margin-top: 0;
    opacity: 0.7;
    line-height: 1;
}

/* Scroll marker for precise category scrolling */
.category-scroll-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    visibility: hidden;
    z-index: -1;
}

.category {
    position: relative; /* Ensure marker positioning works */
}

/* Selected menu chip in expanded sticky - green scheme */
.expanded-sticky-menu-type.selected-menu {
    background-color: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
    border-left-color: #22c55e !important;
}

/* ITEM IMAGE */
.item-image-container {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px 2px 8px 2px;
    overflow: hidden;
    order: 2;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.menu-item:hover .item-image {
    transform: scale(1.02);
}

/* MODIFIERS */
.item-modifiers {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(139, 117, 93, 0.15);
}

.modifier-group {
    margin-bottom: 0.5rem;
}

.modifier-group:last-child {
    margin-bottom: 0;
}

.modifier-group-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.3rem;
}

.modifier-list {
    font-size: 0.8rem;
    color: #64748b;
    margin-left: 1rem;
}

/* FOOTER */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

@media print {
    /* Footer positioning for print */
    .footer {
        margin-top: auto;
        padding-top: 2rem;
    }
    
    /* Ensure footer is at bottom of last page */
    @page {
        size: auto;
        margin: 0.5in;
    }
    
    /* Use flexbox to push footer to bottom */
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    .main-content {
        flex: 1;
    }
    
    .footer {
        margin-top: auto;
    }
}

.footer-content p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-warning {
    display: block;
    margin-top: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #fbbf24;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem !important;
    line-height: 1.5;
    max-width: 800px;
    width: fit-content;
}

.footer-warning i {
    margin-right: 0.5rem;
    color: #fbbf24;
}

.footer-warning strong {
    font-weight: 500;
    color: #fef3c7;
}

.footer-warning-small {
    display: block;
    margin-top: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #fbbf24;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem !important;
    line-height: 1.5;
    max-width: 800px;
    width: fit-content;
}

.footer-warning-small i {
    margin-right: 0.5rem;
    color: #fbbf24;
}

/* STICKY STATUS BAR */
.status-bar {
    display: none; /* Hidden - replaced by floating menu */
}

/* Floating Menu Container (Top Right) */
.floating-view-style-button {
    display: none;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
    border: 2px solid #0f766e;
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.2);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.floating-view-style-button:hover {
    background: #f0fdfa;
    border-color: #0d9488;
    color: #0d9488;
}

.floating-view-style-button i {
    font-size: 0.95rem;
}

.floating-view-style-label {
    line-height: 1;
}

.floating-menu-container {
    position: fixed;
    top: 10px; /* Higher to avoid obscuring header emails */
    right: 20px;
    z-index: 10000;
}

.floating-menu-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.floating-menu-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.floating-menu-button.active {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.floating-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

.floating-menu-dropdown.show {
    display: flex;
}

.floating-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    color: #1e293b;
    font-size: 0.9rem;
}

.floating-menu-item:hover {
    background: #f8fafc;
}

.floating-menu-item i {
    font-size: 1.1rem;
    color: #667eea;
    width: 20px;
    text-align: center;
}

.floating-menu-item i + i {
    margin-left: -8px;
}

.floating-menu-item span {
    flex: 1;
    font-weight: 500;
}

.mobile-view-mode-content {
    max-width: 720px;
}

.mobile-view-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-view-mode-card {
    border: 1px solid #dbe1ea;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-view-mode-card:hover {
    border-color: #f97316;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.15);
}

.mobile-view-mode-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.mobile-view-mode-desc {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.45;
}

.simple-view-wrapper {
    max-width: 100%;
}

.simple-view-body.print-preview-content {
    background: #fff;
    border-radius: 8px;
    padding: 12px 10px 24px;
}

.simple-view-body .preview-category-title,
.simple-view-body .preview-menu-title {
    text-align: center !important;
}

.simple-view-body .category-section-bg.simple-view-category-banner {
    margin-bottom: 1rem;
    border-radius: 8px;
    min-height: 100px;
    max-height: 180px;
}

.simple-view-body .category-section-bg.simple-view-category-banner .category-title {
    padding-top: 0.5rem;
    margin-bottom: 0.4rem;
}

.simple-view-body .category-section-bg.simple-view-category-banner .category-description {
    margin-bottom: 0.5rem;
}

.simple-view-body .preview-category-header-with-first-item {
    margin-top: 0;
}

.simple-view-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 0 2px 10px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.simple-view-chip {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.simple-view-chip.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.floating-menu-toggle-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 16px;
}

.floating-menu-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* FA/FT Mode toggle - uses standard admin UI green toggle */
.floating-menu-toggle-item .toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #cbd5e1;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
    flex-shrink: 0;
}

.floating-menu-toggle-item .toggle-switch.active {
    background: #10b981; /* Standard green from admin UI */
}

.floating-menu-toggle-item .toggle-switch-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.floating-menu-toggle-item .toggle-switch.active .toggle-switch-slider {
    transform: translateX(22px);
}

.info-icon {
    font-size: 0.75rem;
    cursor: help;
    color: #94a3b8;
    margin-left: 4px;
}

.info-icon:hover {
    color: #667eea;
}

.status-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: 40px;
}

.status-bar-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.toggle-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.info-icon {
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    margin-left: 0.2rem;
}

.info-icon:hover {
    opacity: 1;
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-value {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
    min-width: 28px;
}

.toggle-switch.active {
    background: #3b82f6;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(22px);
}

.menu-action-button {
    padding: 8px 12px;
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: fit-content;
    height: 36px;
}

.menu-action-button:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.menu-action-button i {
    font-size: 0.875rem;
}

.menu-action-button i + i {
    margin-left: 2px;
}

/* Print menu dropdown */
.print-menu-dropdown {
    position: relative;
    display: inline-block;
}

.print-menu-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    bottom: 100%;
    margin-bottom: 8px;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    padding: 8px 0;
}

.print-menu-dropdown-content.show {
    display: block;
}

.print-menu-dropdown-content .print-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    color: var(--text-color);
}

.print-menu-dropdown-content .print-option:hover {
    background: #f1f5f9;
}

.print-menu-dropdown-content .print-option i {
    width: 16px;
    color: #64748b;
}

.print-menu-dropdown-content .print-option.active {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 500;
}

.print-menu-dropdown-content .print-option.active i {
    color: #1e40af;
}

.print-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: #cbd5e1;
    border-radius: 6px;
    padding: 2px;
    overflow: hidden;
}

.segmented-option {
    background: transparent;
    border: none;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.segmented-option.active {
    background: #3b82f6;
    color: white;
    border-radius: 4px;
}

.segmented-option:hover:not(.active) {
    background: rgba(59, 130, 246, 0.1);
}

/* Order Mode Styles */
.order-mode .menu-item {
    position: relative;
}

.quantity-controls {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.order-mode .quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: #ff8c42;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #e67e22;
    transform: scale(1.1);
}

.qty-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.qty-input {
    width: 40px;
    height: 24px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    font-size: 14px;
    font-weight: 500;
    background: white !important;
    color: #1e293b !important;
    line-height: normal;
}

.qty-input:focus {
    outline: none;
    border-color: #ff8c42;
}

/* Cart Banner */
.cart-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #374151;
    padding: 12px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.cart-banner.visible {
    transform: translateY(0);
    display: block;
}

.cart-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cart-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cart-icon {
    font-size: 18px;
    color: #6b7280;
}

.cart-text {
    font-weight: 500;
    font-size: 15px;
    color: #6b7280;
}

.cart-item-count {
    background: #f3f4f6;
    color: #374151;
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.cart-btn-primary {
    background: #ff8c42;
    color: white;
}

.cart-btn-primary:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.cart-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.cart-btn-secondary:hover {
    background: #e5e7eb;
}

/* Floating Cart Icon */
.floating-cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-cart-icon.visible {
    display: flex;
}

.floating-cart-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.floating-cart-icon i {
    color: white;
    font-size: 24px;
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Floating Back to Top Button */
.floating-back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.1rem;
}

.floating-back-to-top.visible {
    display: flex;
}

.floating-back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tab-navigation-card {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .tab-navigation-card .print-button {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .menu-type-section {
        padding: 0;
    }

    .menu-item-carousel-card {
        max-width: 120px;
    }

    .menu-item-carousel-name {
        font-size: 0.62rem;
        line-height: 1.1;
        padding: 0.28rem 0.28rem 0.42rem;
        max-height: calc(1.1em * 4);
    }
    
    .menu-type-toggle {
        gap: 0.4rem;
        margin-bottom: 0.25rem;
        padding: 0;
    }
    
    .menu-type-button.menu-type-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
        border-width: 1.5px;
    }
    
    .menu-type-button.menu-type-chip.active {
        font-size: 0.825rem;
    }
    
    .tab-navigation-divider {
        margin: 0.75rem 0;
    }
    
    .tab-list-section {
        padding: 0;
    }
    
    .tab-list {
        gap: 0.4rem;
    }
    
    /* Legacy classes - now transparent */
    .menu-type-card {
        padding: 0;
        margin-bottom: 0;
    }
    
    .tab-list-card {
        padding: 0;
        margin-bottom: 0;
    }
    
    .menu-type-description {
        margin: 0.25rem auto 0;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .header {
        min-height: auto;
        padding: 0.75rem 0;
    }
    
    .header-content {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        height: auto;
        padding: 0 15px;
        overflow: hidden; /* Contain all content */
    }
    
    .logo-container {
        position: static;
        margin-bottom: 0.5rem;
        order: 1;
    }
    
    .corporate-info {
        order: 2;
        grid-row: auto;
        grid-column: auto;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .restaurant-tagline {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .phone-info {
        order: 3;
        grid-row: auto;
        grid-column: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .email-info {
        order: 4;
        grid-row: auto;
        grid-column: auto;
        text-align: center;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: hidden; /* Prevent overflow */
    }
    
    .email-item {
        align-items: center;
        width: 100%;
    }
    
    .email-address {
        font-size: 0.75rem;
        word-break: break-word; /* Allow wrapping if needed */
    }
    
    .airport-codes {
        order: 5;
        grid-row: auto;
        grid-column: auto;
        width: 100%;
        overflow: hidden; /* Prevent overflow */
        padding-top: 0.25rem;
    }
    
    .airport-codes-text {
        font-size: 0.65rem;
        white-space: normal; /* Allow wrapping */
        word-break: break-word;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    /* Status bar responsive adjustments */
    .status-bar-content {
        gap: 0.4rem;
        padding: 4px 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        align-items: center;
    }
    
    .status-bar-divider {
        height: 32px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .toggle-container {
        flex-direction: column;
        gap: 2px;
        align-items: center;
        flex-shrink: 0;
    }
    
    .toggle-label {
        font-size: 0.55rem;
        white-space: nowrap;
        margin: 0;
        line-height: 1;
    }
    
    .toggle-switch-container {
        gap: 4px;
    }
    
    .toggle-switch {
        width: 32px;
        height: 16px;
    }
    
    .toggle-slider {
        width: 12px;
        height: 12px;
    }
    
    .toggle-switch.active .toggle-slider {
        transform: translateX(16px);
    }
    
    .toggle-value {
        font-size: 0.5rem;
        min-width: 20px;
        line-height: 1;
    }
    
    .segmented-control {
        padding: 1px;
    }
    
    .segmented-option {
        padding: 3px 8px;
        font-size: 0.55rem;
    }
    
    .menu-action-button {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        flex-shrink: 0;
        padding: 6px;
    }
    
    .info-icon {
        font-size: 0.6rem;
    }
    
    /* Mobile print dropdown */
    .print-menu-dropdown-content {
        right: auto;
        left: 0;
        min-width: 180px;
    }
}

/* Mobile View Mode Modal */
#mobile-view-mode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

#mobile-view-mode-modal.show {
    display: flex !important;
}

#mobile-view-mode-modal .modal-content {
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Print/Download Modal Styles */
#print-download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#print-download-modal.show {
    display: flex !important;
}

#print-download-modal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#print-download-modal .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 16px 20px;
}

/* Print Preview Modal */
#print-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Backdrop on desktop */
    z-index: 20000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

#print-preview-modal.show {
    display: flex !important;
}

.tour-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(111, 78, 55, 0.25); /* Lighter brown overlay to match menu theme */
    z-index: 25000;
}

.tour-modal-content {
    max-width: 480px;
    width: 90%;
    background: var(--color-classic-primary); /* #FAF9F6 - cream background */
    border: 3px solid var(--color-classic-dark); /* #6F4E37 - brown border */
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(111, 78, 55, 0.3);
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tour-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-classic-dark); /* Brown text */
    font-weight: 600;
}

.tour-modal-body p {
    margin: 6px 0;
    color: #4B4B4B; /* Darker neutral gray to match menu description */
    font-size: 0.95rem;
    line-height: 1.5;
}

.tour-modal-footer {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(111, 78, 55, 0.2); /* Much lighter brown overlay - allows blue highlights to show through */
    z-index: 24000;
    pointer-events: none;
}

.tour-tooltip {
    position: absolute;
    max-width: 340px;
    background: var(--color-classic-primary); /* Cream background */
    border: 3px solid var(--color-classic-dark); /* Brown border */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(111, 78, 55, 0.3);
    padding: 16px 18px;
    z-index: 26000;
    display: none;
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(111, 78, 55, 0.15);
}

.tour-tooltip-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-classic-dark); /* Brown text */
    font-weight: 600;
}

.tour-tooltip-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-classic-dark);
    line-height: 1;
    transition: color 0.2s ease;
    padding: 2px 4px;
}

.tour-tooltip-close:hover {
    color: #ff6b35; /* Orange on hover */
}

.tour-tooltip-body p {
    margin: 0;
    font-size: 0.9rem;
    color: #4B4B4B; /* Darker gray to match menu description */
    line-height: 1.5;
}

.tour-tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 8px;
    padding-top: 8px;
    border-top: 2px solid rgba(111, 78, 55, 0.15);
}

.tour-progress {
    font-size: 0.8rem;
    color: var(--color-classic-dark);
    font-weight: 500;
}

.tour-nav {
    display: flex;
    gap: 8px;
}

.tour-highlight {
    position: relative;
    z-index: 25500 !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.95), 0 0 0 8px rgba(255, 107, 53, 0.4), 0 0 30px rgba(255, 107, 53, 0.6);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98) !important; /* Slight white overlay to make it pop */
}

body.tour-active {
    overflow: hidden;
}

/* Tour Button Styles - Matching Menu Chip Design */
.tour-modal-footer .btn,
.tour-nav .btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.tour-modal-footer .btn-primary,
.tour-nav .btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border-color: #ff6b35;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.tour-modal-footer .btn-primary:hover,
.tour-nav .btn-primary:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff6b35 100%);
    border-color: #ff5722;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.tour-modal-footer .btn-secondary,
.tour-nav .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--color-classic-dark);
    color: var(--color-classic-dark);
}

.tour-modal-footer .btn-secondary:hover,
.tour-nav .btn-secondary:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-1px);
}

.tour-nav .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Skip Reminder Modal - Appears next to floating menu button */
.skip-reminder-modal {
    position: fixed;
    z-index: 25001;
    display: none;
}

.skip-reminder-content {
    position: relative;
    background: var(--color-classic-primary);
    border: 3px solid var(--color-classic-dark);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(111, 78, 55, 0.3);
    width: 280px;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skip-reminder-arrow {
    font-size: 1.5rem;
    color: #ff6b35;
    flex-shrink: 0;
    transform: rotate(-45deg); /* Point up and to the right (45 degrees) */
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: rotate(-45deg) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: rotate(-45deg) translate(6px, -6px); /* Move diagonally up-right towards button */
        opacity: 0.7;
    }
}

.skip-reminder-text {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
}

.skip-reminder-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-classic-dark);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.skip-reminder-text strong {
    color: #ff6b35;
    font-weight: 600;
}

.skip-reminder-close {
    background: none;
    border: none;
    color: var(--color-classic-dark);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.skip-reminder-close:hover {
    color: #ff6b35;
}

/* Pulsing animation for floating menu button */
.floating-menu-button.pulse-animation {
    animation: buttonPulse 1.5s ease-in-out infinite;
    border: 3px solid #ff6b35 !important; /* Orange circular border */
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 107, 53, 0.7);
        border-width: 3px;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5), 0 0 0 8px rgba(255, 107, 53, 0.3);
        border-width: 4px;
    }
}

/* Tour Menu Modal - Similar styling to skip reminder modal */
.tour-menu-modal {
    position: fixed;
    z-index: 25001;
    display: none;
}

.tour-menu-content {
    position: relative;
    background: var(--color-classic-primary);
    border: 3px solid var(--color-classic-dark);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(111, 78, 55, 0.3);
    width: 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tour-menu-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tour-menu-text {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.tour-menu-text p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: var(--color-classic-dark);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tour-menu-text strong {
    color: #ff6b35;
    font-weight: 600;
}

.tour-menu-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
    color: var(--color-classic-dark);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tour-menu-list li {
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


.tour-menu-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid rgba(111, 78, 55, 0.15);
}

.tour-menu-next {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.tour-menu-close {
    background: none;
    border: none;
    color: var(--color-classic-dark);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
    align-self: flex-start;
    position: absolute;
    top: 12px;
    right: 12px;
}

.tour-menu-close:hover {
    color: #ff6b35;
}

/* Tour Menu Choices Modal */
.tour-menu-choices-modal {
    position: fixed;
    z-index: 25002;
    display: none;
}

.tour-menu-choices-content {
    position: relative;
    background: var(--color-classic-primary);
    border: 3px solid var(--color-classic-dark);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(111, 78, 55, 0.3);
    width: 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tour-menu-choices-text {
    flex: 1;
    min-width: 0;
}

.tour-menu-choices-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-classic-dark);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tour-menu-choices-footer {
    display: none; /* Hidden by default, shown in toggle step */
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid rgba(111, 78, 55, 0.15);
}

.tour-menu-choices-next {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Dynamic Tour Arrow */
.tour-dynamic-arrow {
    position: fixed;
    z-index: 25003;
    font-size: 2rem;
    color: #ff6b35;
    pointer-events: none;
    display: none;
}

.tour-dynamic-arrow.tour-arrow-pulse {
    animation: arrowPulseDynamic 1.5s ease-in-out infinite;
}

@keyframes arrowPulseDynamic {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .tour-menu-choices-content {
        width: min(280px, calc(100vw - 40px));
        max-width: min(280px, calc(100vw - 40px));
    }
}

/* Responsive adjustments for skip reminder modal */
@media (max-width: 768px) {
    .skip-reminder-content {
        width: min(280px, calc(100vw - 40px));
        max-width: min(280px, calc(100vw - 40px));
    }
    
    .skip-reminder-arrow {
        transform: rotate(-45deg); /* Point up and to the right (45 degrees) */
    }
    
    @keyframes arrowPulse {
        0%, 100% {
            transform: rotate(-45deg) translate(0, 0);
            opacity: 1;
        }
        50% {
            transform: rotate(-45deg) translate(6px, -6px); /* Move diagonally up-right towards button */
            opacity: 0.7;
        }
    }
    
    .tour-menu-content {
        width: min(280px, calc(100vw - 40px));
        max-width: min(280px, calc(100vw - 40px));
    }
}

/* Print preview pages container - wraps all pages */
.print-preview-pages-container {
    width: 100%;
    height: calc(100vh - 90px); /* Account for actions bar (90px height) */
    margin-top: 90px; /* Position right under actions bar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto; /* Allow scrolling */
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
    background: #f5f5f5; /* Light gray background to show page boundaries */
    position: relative;
}

/* Pages wrapper - contains the actual page content */
.print-preview-pages-wrapper {
    width: 8.5in;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
    position: relative;
    margin: 0 auto;
}

/* Mobile: Scale pages to fit viewport */
@media (max-width: 600px) {
    .print-preview-pages-container {
        padding: 10px;
        overflow-x: hidden; /* Prevent horizontal scroll */
        /* Account for taller actions bar when display card stacks vertically */
        margin-top: 140px !important; /* Increased from 90px to accommodate stacked layout */
        height: calc(100vh - 140px) !important; /* Adjusted for taller actions bar */
    }
    
    .print-preview-pages-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        zoom: calc((100vw - 20px) / 816px);
    }
    
    /* Pages stay at original size - zoom scales them - no properties needed, zoom handles scaling */
    
    /* Adjust page arrows position for scaled content */
    .print-preview-page-arrow-left {
        left: 5px !important;
    }
    
    .print-preview-page-arrow-right {
        right: 5px !important;
    }
}

/* Footer space - spacer element that pushes footer to bottom */
.footer-space {
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Print preview content - always Letter size (8.5" x 11") regardless of device */
.print-preview-content.print-preview-page {
    padding: 20px;
    width: 8.5in !important; /* Fixed Letter width */
    height: 11in !important; /* Fixed Letter height */
    min-height: 11in !important;
    max-height: 11in !important;
    max-width: 8.5in !important;
    min-width: 8.5in !important;
    margin: 0 0 20px 0;
    background-color: #efefef !important;
    /* Linen texture - exact from original (crossstitch pattern) */
    background-image:
        url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAC5JREFUeNpi/P//P8OAAzAwAARiYGFgZGRgqAgSgADGQGZmBgYGMABQYGFgAADAAAD/xS4Q+yEAAAAASUVORK5CYII='),
        repeating-linear-gradient(
            -45deg,
            #f5f4f21a 2px,
            rgba(200, 190, 170, 0.1) 4px,
            transparent 4px,
            transparent 8px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(200, 190, 170, 0.1) 2px,
            rgba(200, 190, 170, 0.1) 4px,
            transparent 4px,
            transparent 8px
        ) !important;
    background-size: 2px 2px, auto, auto !important;
    /* Soft, organic edges with gentle fade */
    box-shadow: 
        inset 15px 0 25px -15px rgba(0, 0, 0, 0.08),
        inset -15px 0 25px -15px rgba(0, 0, 0, 0.08),
        inset 0 15px 25px -15px rgba(0, 0, 0, 0.08),
        inset 0 -15px 25px -15px rgba(0, 0, 0, 0.08) !important;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #ccc;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden !important; /* Hide overflow - content must fit within 11in */
    flex-shrink: 0 !important; /* Prevent page from shrinking */
}

/* Page navigation arrows - positioned on left and right sides */
.print-preview-page-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    color: #475569;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    z-index: 20002;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.print-preview-page-arrow:hover:not(:disabled) {
    background: white;
    border-color: #64748b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.print-preview-page-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.print-preview-page-arrow-left {
    left: 20px;
}

.print-preview-page-arrow-right {
    right: 20px;
}

/* Page info display */
.print-preview-page-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 20001;
    pointer-events: none;
}

/* On mobile devices, scale the content to fit but maintain aspect ratio */
@media (max-width: 768px) {
    .print-preview-page-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .print-preview-page-arrow-left {
        left: 10px;
    }
    
    .print-preview-page-arrow-right {
        right: 10px;
    }
}

.print-preview-content * {
    color: inherit;
}

/* Bespoke Classic Header Design (Warm, Airy Design) - Used for both main menu and print preview */
:root {
    --color-classic-primary: #FAF9F6; /* Off-White/Cream */
    --color-classic-dark: #6F4E37; /* Espresso Brown */
}

.bespoke-classic-header {
    background-color: var(--color-classic-primary) !important;
    border-bottom: 5px solid var(--color-classic-dark) !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
    position: relative;
}

/* General print preview header - but print-preview-modal has its own rules */
body:not(#print-preview-modal) .print-preview-header.bespoke-classic-header {
    margin-bottom: 15px !important;
    /* Ensure it uses the same styles as main header */
    background-color: var(--color-classic-primary) !important;
    border-bottom: 5px solid var(--color-classic-dark) !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
    position: relative;
}

/* Smaller logo in print preview (8.5" width constraint) */
.print-preview-header .bespoke-classic-logo-image {
    max-height: 35px;
    width: auto;
}

/* Ensure print preview header content follows same rules as main header */
.print-preview-header .bespoke-classic-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    position: relative;
}

/* Apply responsive rules for print preview header - ONLY applies to main menu, NOT print preview modal */
@media (max-width: 600px) {
    body:not(.print-preview-open) .print-preview-header .bespoke-classic-header-content {
        flex-direction: column;
        align-items: center;
        padding: 8px 12px;
        gap: 6px;
    }
}

/* Under 920px: hide text logo, move logo to right header - ONLY applies to main menu, NOT print preview modal */
@media (max-width: 920px) {
    body:not(.print-preview-open) .print-preview-header .bespoke-classic-logo-block {
        display: none !important;
    }
    
    body:not(.print-preview-open) .print-preview-header .bespoke-classic-logo-center {
        display: none !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body:not(.print-preview-open) .print-preview-header .bespoke-classic-right .bespoke-classic-logo-image.bespoke-classic-logo-right {
        display: block !important;
        max-height: 40px !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        order: -1;
        align-self: flex-end;
    }
    
    body:not(.print-preview-open) .print-preview-header .bespoke-classic-left {
        max-width: calc(50% - 5px) !important;
        padding-right: 5px !important;
    }
    
    body:not(.print-preview-open) .print-preview-header .bespoke-classic-right {
        max-width: calc(50% - 5px) !important;
        padding-left: 5px !important;
    }
}

/* CRITICAL: Override ALL responsive rules inside print-preview-modal to maintain Letter-size dimensions */
/* Print preview modal must ALWAYS show Letter size (8.5" x 11") regardless of device */
/* Use desktop layout (1200px wide, then scaled to fit 8.5 inches) */
/* Header is inside page with 20px padding on each side */
/* To make header extend to full page width (816px), we use negative margin */
/* Header-content is 1200px, scaled to 816px by transform (0.68 scale) */
/* CRITICAL: All @media queries are disabled for print preview modal - we use transform scaling instead */
#print-preview-modal .print-preview-header.bespoke-classic-header {
    width: 816px !important; /* Full page width (8.5in) */
    height: 105px !important; /* Fixed height */
    max-width: 816px !important; /* Match page width */
    max-height: 105px !important; /* Fixed height */
    overflow: visible !important; /* Allow scaled content to be visible */
    position: relative !important;
    margin-left: -20px !important; /* Negative margin to extend to page edge */
    margin-right: -20px !important; /* Negative margin to extend to page edge */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    /* Use padding-top to vertically center the content */
    /* Content scales to ~82px height, so (105 - 82) / 2 ≈ 11.5px padding */
    padding-top: 11.5px !important;
    padding-bottom: 11.5px !important;
    box-sizing: border-box !important;
    /* Header-content is 1200px, will be scaled to 816px by transform */
}

/* Header wrapper - Scale from 1200px to 816px (8.5in) */
/* The header is inside a page that is 8.5in (816px) wide */
/* Scale factor: 816/1200 = 0.68 */
/* CRITICAL: The page wrapper will also scale this, so we need to account for that */
#print-preview-modal .print-preview-header .bespoke-classic-header-content {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 24px !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
    max-width: 1200px !important; /* Original desktop width */
    width: 1200px !important;
    margin: 0 !important; /* Remove auto margin - align left instead of center */
    margin-left: 0 !important; /* Explicitly set to 0 to prevent centering */
    box-sizing: border-box !important;
    position: relative !important;
    /* Scale down from 1200px to fit 8.5 inches (816px) */
    /* Page is 816px wide with 20px padding each side = 776px usable width */
    /* User wants desktop layout (1200px) scaled down to full page width (816px) */
    /* Scale factor: 816/1200 = 0.68 */
    transform: scale(0.68) !important; /* Scale to 816px to match page width */
    transform-origin: top left !important; /* Scale from top-left - items maintain relative positions within scaled container */
    /* Ensure the scaled element doesn't overflow its container */
    overflow: visible !important;
}

/* DISABLE ALL @MEDIA QUERY RULES FOR PRINT PREVIEW MODAL HEADER */
/* Force desktop layout regardless of viewport size - we handle scaling via transform */
/* Treat header like a scaled image - no layout changes, no wrapping, just pure scaling */
@media (max-width: 920px) {
    #print-preview-modal .print-preview-header .bespoke-classic-logo-block {
        display: flex !important; /* Keep visible - override media query */
    }
    
    #print-preview-modal .print-preview-header .bespoke-classic-logo-center {
        display: flex !important; /* Keep visible - override media query */
        position: absolute !important; /* Maintain absolute positioning */
    }
    
    #print-preview-modal .print-preview-header .bespoke-classic-right .bespoke-classic-logo-image.bespoke-classic-logo-right {
        display: none !important; /* Keep hidden - desktop layout */
    }
    
    /* Override all responsive rules for print preview modal */
    #print-preview-modal .print-preview-header .bespoke-classic-left,
    #print-preview-modal .print-preview-header .bespoke-classic-right {
        display: flex !important;
    }
}

@media (max-width: 600px) {
    /* Force desktop layout - ignore all mobile responsive rules */
    #print-preview-modal .print-preview-header .bespoke-classic-header-content {
        flex-direction: row !important; /* Keep horizontal layout */
        align-items: center !important;
        justify-content: space-between !important;
        padding: 12px 24px !important; /* Desktop padding */
        gap: 20px !important; /* Desktop gap */
        width: 1200px !important;
    }
    
    #print-preview-modal .print-preview-header .bespoke-classic-left {
        width: auto !important; /* Desktop sizing */
        max-width: calc(50% - 100px) !important;
        flex: 0 1 auto !important;
        align-items: flex-start !important;
        text-align: left !important;
        order: 1 !important;
        display: flex !important; /* Keep as flex, not contents */
    }
    
    #print-preview-modal .print-preview-header .bespoke-classic-logo-center {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        order: 2 !important;
        width: auto !important;
        display: flex !important; /* Keep visible */
    }
    
    #print-preview-modal .print-preview-header .bespoke-classic-right {
        width: auto !important; /* Desktop sizing */
        max-width: calc(50% - 100px) !important;
        flex: 0 1 auto !important;
        align-items: flex-end !important;
        text-align: right !important;
        order: 3 !important;
        display: flex !important; /* Keep as flex, not contents */
    }
}

/* Prevent text wrapping - treat header like a scaled image */
/* All text elements must not wrap - they scale with the container */
#print-preview-modal .print-preview-header .bespoke-classic-description,
#print-preview-modal .print-preview-header .bespoke-classic-tagline,
#print-preview-modal .print-preview-header .bespoke-classic-airports,
#print-preview-modal .print-preview-header .bespoke-classic-contact,
#print-preview-modal .print-preview-header .bespoke-classic-contact-emails,
#print-preview-modal .print-preview-header .bespoke-classic-contact-phone,
#print-preview-modal .print-preview-header .bespoke-classic-left *,
#print-preview-modal .print-preview-header .bespoke-classic-right * {
    white-space: nowrap !important; /* Prevent wrapping - scale like image */
    overflow: visible !important;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    text-overflow: clip !important;
}

/* Force desktop font sizes - no responsive changes */
@media (max-width: 600px) {
    #print-preview-modal .print-preview-header .bespoke-classic-description,
    #print-preview-modal .print-preview-header .bespoke-classic-tagline,
    #print-preview-modal .print-preview-header .bespoke-classic-airports,
    #print-preview-modal .print-preview-header .bespoke-classic-contact,
    #print-preview-modal .print-preview-header .bespoke-classic-contact-emails,
    #print-preview-modal .print-preview-header .bespoke-classic-contact-phone,
    #print-preview-modal .print-preview-header .bespoke-classic-logo-text,
    #print-preview-modal .print-preview-header .bespoke-classic-plane-icon {
        font-size: inherit !important; /* Use desktop sizes, don't scale down */
    }
}

@media (max-width: 920px) {
    /* Override ALL responsive logo rules - keep desktop layout */
    #print-preview-modal .print-preview-header .bespoke-classic-logo-block,
    #print-preview-modal .print-preview-header .bespoke-classic-logo-center,
    #print-preview-modal .print-preview-header .bespoke-classic-logo-center .bespoke-classic-logo-image {
        display: flex !important; /* Keep visible - desktop layout */
    }
    
    #print-preview-modal .print-preview-header .bespoke-classic-right .bespoke-classic-logo-image.bespoke-classic-logo-right {
        display: none !important; /* Keep hidden - desktop layout */
    }
}

#print-preview-modal .print-preview-header .bespoke-classic-logo-block {
    display: flex !important;
    margin-left: 50px !important;
}

/* Center logo - positioned absolutely in center */
/* Logo is inside header-content which is already scaled, so it scales automatically */
#print-preview-modal .print-preview-header .bespoke-classic-logo-center {
    display: flex !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 120px !important;
    z-index: 2 !important;
    order: 2 !important; /* Center comes between left and right */
}

#print-preview-modal .print-preview-header .bespoke-classic-logo-image {
    max-height: 80px !important; /* Desktop size */
}

/* Hide right-side logo image (only show center logo) */
#print-preview-modal .print-preview-header .bespoke-classic-right .bespoke-classic-logo-image.bespoke-classic-logo-right {
    display: none !important;
}

/* Left side - left-justified */
#print-preview-modal .print-preview-header .bespoke-classic-left {
    max-width: calc(50% - 100px) !important;
    padding-right: 20px !important;
    flex: 0 1 auto !important; /* Can shrink if needed, but size to content */
    align-items: flex-start !important;
    text-align: left !important;
    justify-content: flex-start !important;
    order: 1 !important; /* Ensure left comes first */
    min-width: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Right side - right-justified - ensure it's visible and not cut off */
/* These are inside header-content which is scaled, so they scale proportionally */
#print-preview-modal .print-preview-header .bespoke-classic-right {
    max-width: calc(50% - 100px) !important;
    padding-left: 20px !important;
    flex: 0 1 auto !important; /* Can shrink if needed, but size to content */
    align-items: flex-end !important;
    text-align: right !important;
    justify-content: flex-end !important;
    gap: 16px !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
    order: 3 !important; /* Ensure right comes last */
    min-width: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    /* Ensure content doesn't get cut off */
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Ensure right side content (logo block) doesn't get cut off */
#print-preview-modal .print-preview-header .bespoke-classic-right > * {
    overflow: visible !important;
    max-width: 100% !important;
    white-space: normal !important; /* Allow text wrapping within right side */
}

/* CRITICAL: Header container must accommodate the scaled header-content */
/* Header-content is 1200px, scaled to 816px by transform */
/* But page has 20px padding on each side, so usable width is 816px - 40px = 776px */
/* So header-content at 816px will overflow! We need to scale it to fit 736px instead */
/* New scale: 736/1200 = 0.613 */
/* Actually, let's make the header fit within the page padding: 816px - 80px = 736px */
/* But we want it to be 816px wide to match page width, so we need to account for padding */
/* Solution: Header should be 736px wide (to fit in padding), scaled from 1200px = 0.613 */
/* OR: Make header 816px wide and reduce padding, or make header-content smaller */
/* Let's recalculate: If we want header to be 736px (to fit in padding), scale = 736/1200 = 0.613 */
/* But user wants it to look like desktop at 1200px scaled down, so let's keep 0.68 and adjust container */

.bespoke-classic-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    position: relative;
}

@media (max-width: 600px) {
    .bespoke-classic-header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        gap: 0; /* Remove gap, we'll use margins */
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .exec-min-header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 8px;
        gap: 10px;
    }
}

/* Left Group: Tagline and Service Info */
.bespoke-classic-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 1;
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(50% - 100px); /* Prevent overlap with center logo (100px buffer) */
    padding-right: 20px; /* Add padding to prevent text from getting too close to logo */
}

@media (max-width: 600px) {
    .bespoke-classic-left {
        width: 100% !important; /* Full width on mobile */
        max-width: none !important; /* Remove all max-width constraints */
        flex: none !important; /* Don't use flex sizing */
        flex-basis: auto !important;
        flex-grow: 0 !important;
        flex-shrink: 0 !important;
        align-items: center !important; /* Override flex-start from base */
        order: 1; /* After right section (logo) */
        display: contents; /* Flatten so children participate in parent flex */
        padding-right: 0;
        padding-left: 0;
        text-align: center;
        margin: 0 auto;
        min-width: 0; /* Allow shrinking */
    }
    
    /* Ensure all children are centered, but let them size to content */
    .bespoke-classic-left > * {
        text-align: center !important;
        max-width: none !important; /* Remove max-width constraint */
        width: auto !important; /* Let content determine width */
        box-sizing: border-box;
        margin-left: auto;
        margin-right: auto;
        flex-shrink: 0 !important; /* Don't shrink children */
    }
}

.bespoke-classic-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-classic-dark);
    font-style: italic;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.bespoke-classic-description {
    font-size: 0.75rem;
    font-weight: 400;
    color: #4B4B4B; /* Darker neutral gray */
    margin: 4px 0 0 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 600px) {
    .bespoke-classic-description {
        margin: 0;
        order: 2; /* After logo */
        text-align: center !important;
        font-size: 0.7rem;
        white-space: normal; /* Allow wrapping only if needed */
        word-wrap: normal !important; /* Don't force word breaking */
        overflow-wrap: normal !important; /* Don't force word breaking */
        width: auto !important; /* Size to content */
        min-width: 0 !important; /* Allow shrinking */
        max-width: none !important; /* Remove max-width constraint */
        box-sizing: border-box;
        overflow: visible;
        display: inline-block; /* Inline-block sizes to content */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px; /* 10px gap after description */
    }
}

@media (max-width: 600px) {
    .bespoke-classic-tagline {
        font-size: 0.9rem;
        margin: 0;
        order: 6; /* After phone, before airports */
        text-align: center !important;
        white-space: normal; /* Allow wrapping only if needed */
        overflow: visible;
        width: auto !important; /* Size to content */
        min-width: 0 !important; /* Allow shrinking */
        max-width: none !important; /* Remove max-width constraint */
        box-sizing: border-box;
        word-wrap: normal !important; /* Don't force word breaking */
        overflow-wrap: normal !important; /* Don't force word breaking */
        display: inline-block; /* Inline-block sizes to content */
        margin-left: auto;
        margin-right: auto;
        margin-top: 10px; /* 10px gap before tagline */
    }
}

.bespoke-classic-airports {
    font-size: 0.625rem;
    color: var(--color-classic-dark);
    margin-top: 4px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 600px) {
    .bespoke-classic-airports {
        font-size: 0.55rem;
        margin-top: 0;
        order: 7; /* Last */
        text-align: center !important;
        white-space: nowrap; /* Keep on one line unless overflow */
        width: auto !important; /* Size to content */
        min-width: 0 !important; /* Allow shrinking */
        max-width: none !important; /* Remove max-width constraint */
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
        overflow-wrap: break-word; /* Wrap if needed when it overflows */
        word-wrap: break-word; /* Wrap if needed when it overflows */
        overflow: visible;
        display: inline-block; /* Inline-block sizes to content */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Center Logo Block */
.bespoke-classic-logo-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Higher z-index to ensure logo stays on top */
    pointer-events: none; /* Allow clicks to pass through to elements below */
    min-width: 120px; /* Reserve space for logo */
}

.bespoke-classic-logo-image {
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

/* Responsive logo sizing */
/* Between 1065px and 920px: shrink logo by 35% */
@media (max-width: 1065px) and (min-width: 921px) {
    .bespoke-classic-logo-image {
        max-height: 52px; /* 80px * 0.65 = 52px (35% reduction) */
    }
}

/* Under 920px: hide text logo, move logo to right header */
@media (max-width: 920px) {
    /* Hide text logo + plane icon */
    .bespoke-classic-logo-block {
        display: none !important;
    }
    
    /* Hide center logo container completely - remove from layout flow */
    .bespoke-classic-logo-center {
        display: none !important;
    }
    
    /* Hide center logo image */
    .bespoke-classic-logo-center .bespoke-classic-logo-image {
        display: none !important;
    }
    
    /* Adjust header content - center logo is absolute so doesn't affect flex */
    /* But exclude mobile (600px and below) where we want no gap */
    @media (min-width: 601px) {
        .bespoke-classic-header-content {
            justify-content: space-between !important;
            gap: 20px !important; /* Keep gap between left and right */
        }
    }
    
    /* Ensure left and right can use more space since center logo is hidden */
    /* But exclude mobile (600px and below) where we want full width */
    @media (min-width: 601px) {
        .bespoke-classic-left {
            max-width: calc(50% - 10px) !important;
            flex: 1 1 auto !important;
            padding-right: 10px !important;
        }
        
        .bespoke-classic-right {
            max-width: calc(50% - 10px) !important;
            flex: 1 1 auto !important;
            padding-left: 10px !important;
        }
    }
    
    /* Show logo in right header above contact emails */
    .bespoke-classic-right .bespoke-classic-logo-image.bespoke-classic-logo-right {
        display: block !important;
        max-height: 40px !important;
        width: auto;
        height: auto;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        order: -1; /* Place above contact info */
        align-self: flex-end; /* Align to right */
    }
}

/* Hide right header logo by default (above 920px) */
.bespoke-classic-right .bespoke-classic-logo-image.bespoke-classic-logo-right {
    display: none;
}

@media (max-width: 600px) {
    .bespoke-classic-logo-center {
        position: static;
        transform: none;
        order: -1; /* Put logo at the very top */
        margin-bottom: 0;
        width: 100%;
        justify-content: center;
    }
    
    .bespoke-classic-logo-image {
        max-height: 50px;
    }
}

/* Right Group: Contact Info */
.bespoke-classic-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(50% - 100px); /* Prevent overlap with center logo (100px buffer) */
    padding-left: 20px; /* Add padding to prevent text from getting too close to logo */
}

/* Under 920px: adjust right header layout for logo */
@media (max-width: 920px) {
    .bespoke-classic-right {
        gap: 8px; /* Reduce gap when logo is present */
    }
}

@media (max-width: 600px) {
    .bespoke-classic-right {
        width: 100% !important; /* Full width on mobile */
        max-width: 100% !important; /* Override any max-width constraints */
        flex: 0 0 auto;
        align-items: center !important; /* Override flex-end from base */
        margin-top: 0;
        order: 0; /* Put right section first (it contains the logo) */
        gap: 0;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        margin: 0 auto;
        justify-content: center;
        min-width: 0; /* Allow shrinking */
        display: contents; /* Flatten so children participate in parent flex */
    }
    
    /* Center logo image - don't force 100% width */
    .bespoke-classic-right .bespoke-classic-logo-image.bespoke-classic-logo-right {
        width: auto !important; /* Size to image, not 100% */
        max-width: 100% !important; /* But don't exceed container */
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        order: 1 !important; /* Logo first */
        margin-bottom: 0;
    }
    
    /* Contact appears after description */
    .bespoke-classic-right .bespoke-classic-contact {
        order: 3 !important; /* After description (order 2) */
        width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.bespoke-classic-logo-block {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 50px;
}

/* Prevent logo text from being obscured by floating menu button on screens < 1320px */
@media (max-width: 1320px) and (min-width: 921px) {
    .bespoke-classic-logo-block {
        margin-right: 90px; /* Space for floating menu button (48px) + right margin (20px) + padding */
    }
}

/* Hide logo block under 920px - placed here to ensure it overrides */
@media (max-width: 920px) {
    .bespoke-classic-logo-block {
        display: none !important;
    }
}

.bespoke-classic-plane-icon {
    width: 24px;
    height: 24px;
    transform: rotate(40deg);
    fill: var(--color-classic-dark);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .bespoke-classic-plane-icon {
        width: 20px;
        height: 20px;
    }
}

.bespoke-classic-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-classic-dark);
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .bespoke-classic-logo-text {
        font-size: 1.25rem;
    }
}

.bespoke-classic-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--color-classic-dark);
    font-weight: 500;
}

@media (max-width: 600px) {
    .bespoke-classic-contact {
        align-items: center;
        font-size: 0.65rem;
        flex-direction: column;
        gap: 4px;
        justify-content: center;
        width: 100%;
        text-align: center;
        order: 3; /* After description, before tagline */
    }
}

.bespoke-classic-contact-emails {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; /* Prevent unnecessary wrapping */
}

/* Between 705px and 600px: split emails into two lines, remove pipe separators */
@media (max-width: 705px) and (min-width: 601px) {
    .bespoke-classic-contact-emails {
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }
    
    /* Hide pipe separators */
    .bespoke-classic-contact-emails span:nth-child(2) {
        display: none !important;
    }
    
    /* Adjust left and right max-widths to prevent word-wrapping */
    .bespoke-classic-left {
        max-width: calc(50% - 5px) !important;
        padding-right: 5px !important;
    }
    
    .bespoke-classic-right {
        max-width: calc(50% - 5px) !important;
        padding-left: 5px !important;
    }
}

@media (max-width: 600px) {
    .bespoke-classic-contact-emails {
        gap: 4px;
        flex-wrap: nowrap !important; /* Keep on one line */
        justify-content: center !important; /* Center the emails */
        width: auto !important; /* Size to content */
        max-width: 100% !important;
        text-align: center !important;
        display: flex;
        align-items: center;
        font-size: 0.75rem !important; /* Slightly larger */
        white-space: nowrap; /* Prevent wrapping */
    }
}

.bespoke-classic-contact-phone {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .bespoke-classic-contact-phone {
        width: auto !important; /* Size to content */
        max-width: 100% !important;
        text-align: center !important;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.75rem !important; /* Slightly larger */
        white-space: nowrap; /* Prevent wrapping */
    }
    
    .bespoke-classic-contact-phone::before {
        content: none; /* Remove pipe separator */
        margin: 0;
    }
}

/* Print preview footer styling */
.print-preview-footer {
    height: auto;
    min-height: auto;
    margin-top: 15px !important;
    padding: 8px 10px !important;
    max-height: none;
}

.print-preview-footer .footer-content {
    text-align: center;
    line-height: 1.2;
}

.print-preview-footer .footer-content p {
    margin: 0.15rem 0;
    font-size: 0.55rem;
    line-height: 1.2;
    color: #1e293b !important;
}

.print-preview-footer .footer-content p:first-child {
    font-size: 0.6rem;
    font-weight: 600;
    color: #1e293b !important;
}

.print-preview-footer .footer-content p strong {
    font-size: 0.6rem;
    color: #1e293b !important;
}

.print-preview-footer .footer-content p#menu-timestamp {
    font-size: 0.5rem;
    color: #94a3b8;
}

.print-preview-footer .footer-warning {
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.5rem;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fef3c7 !important;
    border-left: 2px solid #fbbf24;
}

.print-preview-footer .footer-warning strong {
    color: #fef3c7 !important;
    font-weight: 600;
}

.print-preview-footer .footer-warning i {
    color: #fbbf24 !important;
}

.print-preview-footer .footer-warning-small {
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.5rem;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fef3c7 !important;
    border-left: 2px solid #fbbf24;
}

.print-preview-footer .footer-warning-small i {
    color: #fbbf24 !important;
}

/* Print preview actions - same for all screen sizes */
#print-preview-modal {
    padding: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Override - ensure Letter size is maintained */
#print-preview-modal .print-preview-content {
    width: 8.5in !important;
    max-width: 8.5in !important;
    margin-top: 120px;
    max-height: calc(100vh - 140px);
    border-radius: 12px;
    padding: 40px !important;
    overflow-y: auto;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Position actions at top, 90px total height, 100% width */
.print-preview-actions {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100% !important;
        max-width: 100% !important;
        height: 90px;
        min-height: 90px;
        max-height: 90px;
        display: flex;
        flex-direction: column;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #e5e7eb;
        border-bottom: 2px solid #d1d5db;
        z-index: 20001;
        overflow: hidden;
    }
    
    /* Row 1: 30px high - Back, Compact, Cancel */
    .print-preview-row-1 {
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        display: grid !important;
        grid-template-columns: 75px 1fr 40px;
        align-items: center;
        padding: 4px 8px;
        margin: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    /* Back button - left-justified, 75px wide */
    .print-preview-row-1 .print-preview-btn-back {
        width: 75px;
        min-width: 75px;
        max-width: 75px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
        padding: 2px 6px;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        font-size: 0.7rem;
        color: #64748b;
        cursor: pointer;
        grid-column: 1;
        justify-self: start;
    }
    
    .print-preview-row-1 .print-preview-btn-back i {
        font-size: 0.7rem;
    }
    
    .print-preview-row-1 .print-preview-btn-back span {
        font-size: 0.7rem;
    }
    
    /* Compact button - center-justified, wider to fit text */
    .print-preview-row-1 .print-preview-btn-compact {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 2px 8px;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        font-size: 0.7rem;
        color: #64748b;
        cursor: pointer;
        grid-column: 2;
        justify-self: center;
        margin: 0;
    }
    
    .print-preview-row-1 .print-preview-btn-compact i {
        font-size: 0.7rem;
    }
    
    .print-preview-row-1 .print-preview-btn-compact span {
        font-size: 0.65rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Cancel X button - right-justified, container 75px wide */
    .print-preview-row-1 .print-preview-close-btn {
        width: 75px;
        min-width: 75px;
        max-width: 75px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0;
        background: transparent;
        border: none;
        color: white;
        cursor: pointer;
        grid-column: 3;
        justify-self: end;
        margin: 0;
    }
    
    .print-preview-row-1 .print-preview-close-btn i {
        font-size: 0.7rem;
        width: 40px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #dc2626;
        border-radius: 4px;
        margin: 0;
        padding: 0;
    }
    
    /* Row 2: 50px high - Display card (more space for better appearance) */
    .print-preview-row-2 {
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 3px 8px;
        margin: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    /* Mobile: Allow actions container and row 2 to grow taller */
    @media (max-width: 600px) {
        /* Allow actions container to grow to accommodate stacked display card */
        .print-preview-actions {
            height: auto !important;
            min-height: 90px !important;
            max-height: none !important;
            overflow: visible !important; /* Allow content to be visible when stacked */
        }
        
        .print-preview-row-2 {
            height: auto !important;
            min-height: auto !important;
            max-height: none !important;
            padding: 6px 8px !important;
        }
        
        /* Display card responsive on mobile - stack vertically */
        .print-preview-row-2 .print-preview-display-card {
            width: 100% !important;
            max-width: 100% !important;
            padding: 6px 8px !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 6px !important;
            align-items: stretch !important;
            justify-content: flex-start !important;
            height: auto !important;
            min-height: auto !important;
            max-height: none !important;
            box-sizing: border-box !important;
            grid-template-columns: none !important;
            grid-template-rows: none !important;
        }
        
        /* Column 1 - menu info - full width on mobile */
        .print-preview-card-col1 {
            width: 100% !important;
            flex: 0 0 auto !important;
            grid-column: unset !important;
            grid-row: unset !important;
            padding-right: 0 !important;
            order: 1 !important;
        }
        
        /* Column 2 - download button - full width on mobile */
        .print-preview-card-col2 {
            width: 100% !important;
            flex: 0 0 auto !important;
            grid-column: unset !important;
            grid-row: unset !important;
            padding: 0 !important;
            order: 2 !important;
            display: flex !important;
            justify-content: center !important;
        }
        
        .print-preview-card-col2 .print-preview-download-btn {
            width: 100% !important;
            max-width: 100% !important;
            padding: 6px 12px !important;
            font-size: 0.75rem !important;
            justify-content: center !important;
        }
        
        .print-preview-card-col2 .print-preview-download-btn span {
            font-size: 0.75rem !important;
        }
        
        /* Column 3 - checkbox - full width, centered on mobile */
        .print-preview-card-col3 {
            width: 100% !important;
            flex: 0 0 auto !important;
            grid-column: unset !important;
            grid-row: unset !important;
            padding: 0 !important;
            order: 3 !important;
            display: flex !important;
            justify-content: center !important;
        }
        
        .print-preview-card-col3 .print-preview-images-checkbox {
            flex-direction: row !important;
            gap: 6px !important;
        }
        
        /* Remove grid row constraints on mobile */
        .print-preview-card-row1,
        .print-preview-card-row2,
        .print-preview-card-row3 {
            grid-row: unset !important;
            height: auto !important;
            min-height: auto !important;
            max-height: none !important;
        }
        
        /* Allow menu name to wrap on mobile */
        .print-preview-card-row2 .print-preview-menu-name {
            overflow: visible !important;
            text-overflow: clip !important;
            white-space: normal !important;
            word-wrap: break-word !important;
            max-width: 100% !important;
        }
    }
    
    /* Display card - light grey background, dark-grey border, center-justified, 80% width */
    .print-preview-row-2 .print-preview-display-card {
        width: 80%;
        max-width: 80%;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        background: #f8fafc;
        border: 1px solid #475569;
        border-radius: 8px;
        padding: 2px 0 2px 12px;
        display: grid;
        grid-template-columns: 45% 40% 15%;
        grid-template-rows: 11px 18px 11px;
        gap: 0;
        align-items: center;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* Column 1 - 85% wide */
    .print-preview-card-col1 {
        grid-column: 1;
        grid-row: 1 / 4;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        height: 100%;
        padding-right: 4px;
    }
    
    /* Column 2 - 30% wide - Download button (centered) */
    .print-preview-card-col2 {
        grid-column: 2;
        grid-row: 1 / 4;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .print-preview-card-col2 .print-preview-download-btn {
        height: 22px;
        padding: 2px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        cursor: pointer;
        border: none;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .print-preview-card-col2 .print-preview-download-btn i {
        font-size: 0.7rem;
    }
    
    .print-preview-card-col2 .print-preview-download-btn span {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    /* Column 3 - 15% wide - Show Images checkbox */
    .print-preview-card-col3 {
        grid-column: 3;
        grid-row: 1 / 4;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding-left: 4px;
        padding-right: 4px;
    }
    
    /* Row 1 Col1: "Printing Menu:" */
    .print-preview-card-row1 {
        grid-row: 1;
        display: flex;
        align-items: center;
        height: 11px;
        min-height: 11px;
        max-height: 11px;
    }
    
    .print-preview-card-row1 .print-preview-label {
        font-size: 0.7rem;
        color: #475569;
        font-weight: normal;
        margin: 0;
        padding: 0;
        line-height: 1;
    }
    
    /* Row 2 Col1: Menu name - bigger */
    .print-preview-card-row2 {
        grid-row: 2;
        display: flex;
        align-items: center;
        height: 18px;
        min-height: 18px;
        max-height: 18px;
    }
    
    .print-preview-card-row2 .print-preview-menu-name {
        font-size: 0.9rem;
        color: #000000;
        font-weight: bold;
        margin: 0;
        padding: 0;
        line-height: 1;
    }
    
    /* Row 3 Col1: Format */
    .print-preview-card-row3 {
        display: flex;
        align-items: center;
        height: 11px;
        min-height: 11px;
        max-height: 11px;
    }
    
    .print-preview-card-row3 .print-preview-format-label {
        font-size: 0.65rem;
        color: #475569;
        font-weight: normal;
        margin: 0;
        padding: 0;
    }
    
    .print-preview-card-row3 .print-preview-format-value {
        font-size: 0.65rem;
        color: #3b82f6;
        font-weight: normal;
        margin: 0;
        padding: 0;
    }
    
    /* Checkbox in Col3 - spans all rows */
    .print-preview-card-col3 .print-preview-images-checkbox {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-size: 0.6rem;
        color: #475569;
        margin: 0;
        padding: 0;
        cursor: pointer;
    }
    
    .print-preview-card-col3 .print-preview-images-checkbox input[type="checkbox"] {
        width: 14px;
        height: 14px;
        cursor: pointer;
        order: 1; /* Checkbox appears first (row 1) */
    }
    
    .print-preview-card-col3 .print-preview-images-checkbox span {
        font-size: 0.6rem;
        white-space: nowrap;
        order: 2; /* Text appears second (row 2) */
    }
    
    /* Row 3: 40px high - Download and Print buttons */
    .print-preview-row-3 {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 4px 8px;
        margin: 0 !important;
        box-sizing: border-box;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .print-preview-row-3 .print-preview-btn-primary {
        height: 22px;
        padding: 2px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        cursor: pointer;
        border: none;
        flex: 0 0 auto;
    }
    
    .print-preview-row-3 .print-preview-btn-primary i {
        font-size: 0.7rem;
    }
    
    .print-preview-row-3 .print-preview-btn-primary span {
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    /* ALL buttons in row 1 - MUST fit in 24px height */
    .print-preview-row-1 .print-preview-btn,
    .print-preview-row-1 .print-preview-close-btn {
        padding: 2px 4px !important;
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.65rem !important;
        flex-shrink: 0 !important;
    }
    
    .print-preview-row-1 .print-preview-btn i,
    .print-preview-row-1 .print-preview-close-btn i {
        font-size: 0.7rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Close button inline in row 1 - container stays 75px for grid alignment */
    .print-preview-row-1 .print-preview-close-btn {
        width: 75px !important;
        min-width: 75px !important;
        max-width: 75px !important;
    }
    
    
/* Hide old top-row */
.print-preview-top-row {
    display: none !important;
}

/* Push content below fixed header - handled by main .print-preview-content rule above */

/* Close button is now inline in row 1 for both mobile and desktop */
.print-preview-close-btn {
    position: static;
    width: 75px;
    min-width: 75px;
    max-width: 75px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
}

.print-preview-close-btn i {
    font-size: 0.7rem;
    width: 40px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    border-radius: 4px;
    margin: 0;
    padding: 0;
}

.print-preview-close-btn:hover i {
    background: #b91c1c;
}

.print-preview-close-btn i {
    color: white !important;
}

/* Hide old top-row - using row-1 instead */
.print-preview-top-row {
    display: none !important;
}

/* Row 1 replaces top-row on mobile */
.print-preview-row-1 {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.print-preview-compact-btn {
    flex: 2;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
}

.print-preview-btn-circle {
    flex: 1;
    min-width: 0;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    height: 48px;
    width: 48px;
    max-width: 48px;
    box-sizing: border-box;
    background: white !important; /* Ensure button has background */
    border: 2px solid #e2e8f0 !important; /* Add border for visibility */
    color: #1e293b !important; /* Set text color */
}

.print-preview-btn-circle:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.print-preview-btn-circle i {
    display: inline-block !important;
    font-size: 1.1rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #1e293b !important; /* Darker color for better visibility */
    width: auto !important;
    height: auto !important;
}

/* Ensure Font Awesome solid icons render correctly */
.print-preview-btn-circle .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important; /* Solid icons need 900 weight */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block !important;
}

/* Rotate-left icon (back arrow alternative) */

.print-preview-btn-circle:hover i {
    color: #0f172a !important; /* Even darker on hover */
}

/* Desktop display card - keep existing styles for desktop */

.print-preview-display-info {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 0.9rem;
    color: #3730a3;
    font-weight: 500;
}

.print-preview-display-info i {
    color: #6366f1;
    flex-shrink: 0;
}

.print-preview-display-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.print-preview-images-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #64748b;
    user-select: none;
    width: 100%;
    justify-content: center;
    padding-top: 4px;
}

.print-preview-images-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.print-preview-images-checkbox:hover {
    color: #475569;
}

.print-preview-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.print-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.print-preview-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.print-preview-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}

.print-preview-btn-secondary {
    background: white;
    color: #64748b !important;
    border: 2px solid #e2e8f0;
}

.print-preview-btn-secondary span {
    color: #64748b !important;
}

.print-preview-btn-secondary i {
    color: #64748b !important;
}

.print-preview-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.print-preview-btn-secondary:hover span,
.print-preview-btn-secondary:hover i {
    color: #475569 !important;
}

.print-preview-btn-info {
    background: #e0e7ff;
    color: #3730a3;
    border: 2px solid #c7d2fe;
    cursor: default;
}

.print-preview-btn-info:disabled {
    opacity: 1;
    cursor: default;
}

.print-preview-btn-info:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Base preview menu item spacing and border styling */
.print-preview-content .preview-menu-item {
    margin-bottom: 5px !important;
    border: none !important;
    border-left: 3px solid rgba(139, 117, 93, 0.3) !important;
    border-radius: 4px !important;
    background: white !important;
}

/* Compact view styles */
.preview-compact .preview-menu-item {
    padding: 4px 8px !important;
    display: grid !important;
    grid-template-columns: 45px 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 6px !important;
    align-items: start !important;
    margin-bottom: 5px !important;
}

/* When images are hidden in compact view, remove image column */
.preview-compact.preview-no-images .preview-menu-item,
.preview-no-images.preview-compact .preview-menu-item {
    grid-template-columns: 1fr !important; /* Remove image column when images hidden */
}

.preview-compact .preview-menu-item img {
    width: 45px !important;
    height: 45px !important;
    margin-bottom: 0 !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    grid-row: 1 / 3 !important;
    grid-column: 1 !important;
}

/* Hide images in compact view when preview-no-images class is present */
.preview-compact.preview-no-images .preview-menu-item img,
#printPreviewContent.preview-compact.preview-no-images .preview-menu-item img,
.print-preview-content.preview-compact.preview-no-images .preview-menu-item img {
    display: none !important;
}

/* Adjust grid layout when images are hidden in compact view */
.preview-compact.preview-no-images .preview-menu-item,
#printPreviewContent.preview-compact.preview-no-images .preview-menu-item,
.print-preview-content.preview-compact.preview-no-images .preview-menu-item {
    grid-template-columns: 1fr !important;
}

.preview-compact.preview-no-images .preview-menu-item h3,
#printPreviewContent.preview-compact.preview-no-images .preview-menu-item h3,
.print-preview-content.preview-compact.preview-no-images .preview-menu-item h3 {
    grid-column: 1 !important;
}

.preview-compact.preview-no-images .preview-menu-item p,
#printPreviewContent.preview-compact.preview-no-images .preview-menu-item p,
.print-preview-content.preview-compact.preview-no-images .preview-menu-item p {
    grid-column: 1 !important;
}

.preview-compact .preview-menu-item h3 {
    font-size: 0.875rem !important;
    margin-bottom: 2px !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
    grid-row: 1 !important;
    grid-column: 2 !important;
    font-weight: 600 !important;
}

.preview-compact .preview-menu-item p {
    font-size: 0.75rem !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    display: block !important;
    overflow: visible !important;
    line-height: 1.25 !important;
    grid-row: 2 !important;
    grid-column: 2 !important;
    /* Remove line-clamp - descriptions should expand to show full text */
}

.preview-compact .preview-category-items,
.preview-compact .preview-subcategory-items {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
}

/* Category title spacing */
.print-preview-content .preview-category-title {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* Reduce spacing for category/subcategory titles in compact view */
.preview-compact .preview-category-title,
.preview-compact .preview-subcategory-title {
    font-size: 1.1rem !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
}

.preview-compact .preview-subcategory-description {
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
}

.preview-compact .preview-category,
.preview-compact .preview-subcategory {
    margin-bottom: 15px !important;
}

/* Expanded desktop view - 3 columns for print preview modal */
/* Always apply 3 columns in print preview modal for full view (not compact) */
/* Use attribute selector to override inline styles - must be very specific */
#print-preview-modal .print-preview-content:not(.preview-compact) .preview-category-items[style*="grid"],
#print-preview-modal .print-preview-content:not(.preview-compact) .preview-category-items,
#print-preview-modal .print-preview-content:not(.preview-compact) .preview-subcategory-items[style*="grid"],
#print-preview-modal .print-preview-content:not(.preview-compact) .preview-subcategory-items,
.print-preview-content:not(.preview-compact) .preview-category-items[style*="grid"],
.print-preview-content:not(.preview-compact) .preview-category-items,
.print-preview-content:not(.preview-compact) .preview-subcategory-items[style*="grid"],
.print-preview-content:not(.preview-compact) .preview-subcategory-items {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}

/* Ensure grid items properly fill rows in 3-column layout */
.print-preview-content:not(.preview-compact) .preview-category-items .preview-menu-item,
.print-preview-content:not(.preview-compact) .preview-subcategory-items .preview-menu-item {
    display: block !important;
    width: 100% !important;
}

/* Compact view - single column - override inline grid styles */
.print-preview-content.preview-compact .preview-category-items[style*="grid"],
.print-preview-content.preview-compact .preview-category-items,
.print-preview-content.preview-compact .preview-subcategory-items[style*="grid"],
.print-preview-content.preview-compact .preview-subcategory-items {
    display: block !important;
    grid-template-columns: none !important;
    gap: 8px !important;
}

/* For main menu (not print preview), use media query */
@media (min-width: 900px) {
    .preview-category-items:not(.preview-compact .preview-category-items):not(.print-preview-content .preview-category-items),
    .preview-subcategory-items:not(.preview-compact .preview-subcategory-items):not(.print-preview-content .preview-subcategory-items) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Hide images when checkbox is unchecked and collapse the space */
.preview-no-images .preview-menu-item img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* In compact view, when images are hidden, remove image column from grid */
.preview-compact.preview-no-images .preview-menu-item,
.preview-no-images.preview-compact .preview-menu-item {
    grid-template-columns: 1fr !important; /* Remove image column when images hidden */
    grid-template-rows: auto !important; /* Remove image row when images hidden */
}

.preview-no-images .preview-menu-item {
    min-height: auto !important;
}

/* Fix mobile/compact view formatting when images are hidden */
.preview-no-images .preview-menu-item h3 {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

.preview-no-images .preview-menu-item p {
    grid-column: 1 !important;
    grid-row: 2 !important;
}

/* Ensure proper block layout for mobile when images are hidden */
.mobile-preview.preview-no-images .preview-menu-item,
.preview-no-images.mobile-preview .preview-menu-item {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}

.print-preview-btn i {
    font-size: 1.1rem;
}

/* Print styles for preview */
@media print {
    /* Hide everything except preview content */
    body > *:not(#print-preview-modal) {
        display: none !important;
    }
    
    #print-preview-modal {
        position: static !important;
        background: white !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        display: block !important;
    }
    
    .print-preview-actions {
        display: none !important;
    }
    
    .print-preview-content {
        padding: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    /* Preserve compact view when printing - match on-screen styles */
    .print-preview-content.preview-compact .preview-menu-item {
        padding: 4px 8px !important;
        display: grid !important;
        grid-template-columns: 45px 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 6px !important;
        align-items: start !important;
        margin-bottom: 5px !important; /* Match on-screen spacing */
        border: none !important;
        border-left: 3px solid rgba(139, 117, 93, 0.3) !important;
        border-radius: 4px !important;
        background: white !important;
        page-break-inside: avoid !important;
    }
    
    /* Preserve non-compact view styles when printing - match on-screen styles */
    .print-preview-content:not(.preview-compact) .preview-menu-item {
        margin-bottom: 5px !important; /* Match on-screen spacing */
        border: none !important;
        border-left: 3px solid rgba(139, 117, 93, 0.3) !important;
        border-radius: 4px !important;
        background: white !important;
        page-break-inside: avoid !important;
    }
    
    /* When images are hidden in compact view, remove image column */
    .print-preview-content.preview-compact.preview-no-images .preview-menu-item,
    .print-preview-content.preview-no-images.preview-compact .preview-menu-item {
        grid-template-columns: 1fr !important; /* Remove image column when images hidden */
    }
    
    .print-preview-content.preview-compact .preview-menu-item img {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 0 !important;
        object-fit: cover !important;
        border-radius: 3px !important;
        grid-row: 1 / 3 !important;
        grid-column: 1 !important;
    }
    
    .print-preview-content.preview-compact .preview-menu-item h3 {
        font-size: 0.875rem !important;
        margin-bottom: 2px !important;
        margin-top: 0 !important;
        line-height: 1.2 !important;
        grid-row: 1 !important;
        grid-column: 2 !important;
        font-weight: 600 !important;
    }
    
    .print-preview-content.preview-compact .preview-menu-item p {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        display: block !important;
        overflow: visible !important;
        /* Remove line-clamp - descriptions should expand to show full text */
        line-height: 1.25 !important;
        grid-row: 2 !important;
        grid-column: 2 !important;
        max-height: none !important;
        height: auto !important;
        min-height: auto !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        -webkit-line-clamp: none !important;
        line-clamp: none !important;
    }
    
    .print-preview-content.preview-compact .preview-category-items,
    .print-preview-content.preview-compact .preview-subcategory-items {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }
    
    /* Preserve category/subcategory title spacing when printing - match on-screen styles */
    .print-preview-content .preview-category-title {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    /* Reduce spacing for category/subcategory titles in compact view when printing */
    .print-preview-content.preview-compact .preview-category-title,
    .print-preview-content.preview-compact .preview-subcategory-title {
        font-size: 1.1rem !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        padding-bottom: 4px !important;
    }
    
    .print-preview-content.preview-compact .preview-subcategory-description {
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
    }
    
    .print-preview-content.preview-compact .preview-category,
    .print-preview-content.preview-compact .preview-subcategory {
        margin-bottom: 15px !important;
    }
    
    /* Expanded view when printing (if not compact) */
    .print-preview-content:not(.preview-compact) .preview-category-items,
    .print-preview-content:not(.preview-compact) .preview-subcategory-items {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Ensure expanded menu items display properly in print - reduce padding to fit 3 columns */
    .print-preview-content:not(.preview-compact) .preview-menu-item {
        display: flex !important;
        flex-direction: column !important;
        padding: 8px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        max-height: none !important;
    }
    
    .print-preview-content:not(.preview-compact) .preview-menu-item img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 8px !important;
    }
    
    .print-preview-content:not(.preview-compact) .preview-menu-item p {
        overflow: visible !important;
        max-height: none !important;
        min-height: auto !important;
        height: auto !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        -webkit-line-clamp: none !important;
        line-clamp: none !important;
        display: block !important;
        flex: 1 !important;
    }
    
    body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Fix blank first page - prevent header from forcing page break */
    .print-preview-header.bespoke-classic-header {
        page-break-after: avoid !important; /* Keep header with content */
        page-break-inside: avoid !important;
        page-break-before: auto !important;
        height: auto !important;
        max-height: none !important;
    }
    .print-preview-body {
        page-break-before: auto !important;
    }
    .preview-menu-header,
    .preview-menu-title {
        page-break-after: avoid !important; /* Keep title with first category */
        page-break-inside: avoid !important;
        page-break-before: auto !important;
    }
    /* Prevent categories from forcing new pages - remove page-break-inside: avoid which might be causing issues */
    .preview-category {
        page-break-before: avoid !important; /* Don't start category on new page if there's room */
        page-break-inside: avoid !important;
        page-break-after: auto !important;
    }
    .preview-category:first-of-type {
        page-break-before: avoid !important; /* First category should stay with header */
    }
    /* Keep category/subcategory title with first item using wrapper containers */
    .preview-category-header-with-first-item,
    .preview-subcategory-header-with-items,
    .preview-subcategory-header-with-first-item {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .preview-category {
        orphans: 1 !important; /* Require at least 1 item before break */
        widows: 1 !important; /* Require at least 1 item after break */
    }
    
    /* Fix description text cutting off - ensure all preview menu items expand descriptions */
    .preview-menu-item {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        max-height: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .preview-menu-item p {
        overflow: visible !important;
        max-height: none !important;
        min-height: auto !important;
        height: auto !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        -webkit-line-clamp: none !important;
        line-clamp: none !important;
        display: block !important;
        flex: 1 !important;
    }
    /* Override any CSS that might limit description height */
    .preview-compact .preview-menu-item p,
    .preview-no-images .preview-menu-item p,
    .print-preview-content:not(.preview-compact) .preview-menu-item p {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        -webkit-line-clamp: none !important;
        line-clamp: none !important;
        display: block !important;
    }
    
    /* Ensure footer doesn't overlap content */
    .print-main-footer {
        margin-top: 40px !important;
        padding-top: 20px !important;
        page-break-inside: avoid !important;
    }
    
    /* Force 3 columns for full view in print (override inline auto-fill) */
    /* Use attribute selector to override inline styles */
    .full-preview .preview-category-items[style*="grid"],
    .full-preview .preview-subcategory-items[style*="grid"],
    .full-preview .preview-category-items,
    .full-preview .preview-subcategory-items {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    /* Mobile view - single column */
    .mobile-preview .preview-category-items[style*="block"],
    .mobile-preview .preview-subcategory-items[style*="block"],
    .mobile-preview .preview-category-items,
    .mobile-preview .preview-subcategory-items {
        display: block !important;
        grid-template-columns: none !important;
    }
    /* Prevent items from being cut off - preserve on-screen styles */
    .preview-menu-item {
        margin-bottom: 5px !important; /* Match on-screen spacing */
        border: none !important;
        border-left: 3px solid rgba(139, 117, 93, 0.3) !important;
        border-radius: 4px !important;
        background: white !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    /* Hide HTML footer element - footer is in page margin via @page @bottom-center */
    .print-main-footer {
        display: none !important;
    }
    
    @page {
        size: letter;
        margin: 0; /* Let printer drivers add their own margins */
    }
    
    /* Ensure container/wrapper don't clip pages when printing */
    .print-preview-pages-container {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
    
    .print-preview-pages-wrapper {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }
    
    /* Print preview pages - remove padding in print mode for edge-to-edge printing */
    /* Printer drivers will add their own margins when printing the PDF */
    .print-preview-content.print-preview-page {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        /* Remove on-screen chrome so printable area stays exactly Letter size */
        border: none !important;
        box-shadow: none !important;
        margin: 0 auto 0 auto !important;
        /* Preserve background texture */
        background-color: #efefef !important;
        background-image:
            url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAC5JREFUeNpi/P//P8OAAzAwAARiYGFgZGRgqAgSgADGQGZmBgYGMABQYGFgAADAAAD/xS4Q+yEAAAAASUVORK5CYII='),
            repeating-linear-gradient(
                -45deg,
                #f5f4f21a 2px,
                rgba(200, 190, 170, 0.1) 4px,
                transparent 4px,
                transparent 8px
            ),
            repeating-linear-gradient(
                45deg,
                rgba(200, 190, 170, 0.1) 2px,
                rgba(200, 190, 170, 0.1) 4px,
                transparent 4px,
                transparent 8px
            ) !important;
        background-size: 2px 2px, auto, auto !important;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 24px;
}

/* Item Modal Styles */
.item-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.item-modal.active {
    opacity: 1;
    visibility: visible;
}

.item-modal .modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.item-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.item-modal .modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-item-name {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.modal-item-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.modal-item-description {
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-item-tags {
    margin-bottom: 15px;
}

.modal-item-tags .tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.modal-item-prep-note {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-style: italic;
    color: #92400e;
}

.modal-item-cooking-method {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    border-left: 4px solid #3b82f6;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-style: italic;
    color: #1e40af;
}

.modal-item-special-instructions {
    background: #f0fdf4;
    border: 1px solid #16a34a;
    border-left: 4px solid #16a34a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #166534;
}

.modal-item-special-instructions strong {
    display: block;
    margin-bottom: 6px;
    color: #15803d;
}

.modal-instructions-textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid #16a34a;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    color: #166534;
    background: white;
    resize: vertical;
}

.modal-instructions-textarea:focus {
    outline: none;
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.modal-quantity-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
}

.modal-quantity-label {
    font-weight: 600;
    color: #1e293b;
}

.modal-quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #ff8c42;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-qty-btn:hover {
    background: #e67e22;
    transform: scale(1.1);
}

.modal-qty-edit {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-qty-edit:hover {
    color: #2563eb;
    transform: scale(1.1);
}

.modal-qty-delete {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-qty-delete:hover {
    color: #dc2626;
    transform: scale(1.1);
}

.modal-qty-input {
    width: 50px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.modal-qty-input:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.modal-modifiers-section {
    margin-bottom: 20px;
}

.modal-modifiers-section h4 {
    margin-bottom: 16px;
    font-weight: 600;
    color: #1e293b;
}

.modifier-group {
    margin-bottom: 20px;
}

.modifier-group-header {
    margin-bottom: 12px;
}

.modifier-group-title {
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

.modifier-group-required {
    color: #ef4444;
    font-size: 0.85rem;
    margin-left: 8px;
}

.modifier-group-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 4px;
}

.modifier-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modifier-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.modifier-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.modifier-option.selected {
    border-color: #10b981;
    background: #ecfdf5;
}

.modifier-option input[type="radio"],
.modifier-option input[type="checkbox"] {
    cursor: pointer;
}

.modifier-option-label {
    flex: 1;
    color: #1e293b;
    font-weight: 500;
}

.modifier-option-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.modifier-option-price.positive {
    color: #059669;
}

.modifier-option-price.negative {
    color: #dc2626;
}

/* Choice Cards - Enhanced Design */
.choice-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.choice-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.choice-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.choice-card:hover::before {
    transform: scaleX(1);
}

.choice-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

.choice-card.selected::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transform: scaleX(1);
}

.choice-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.choice-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.choice-card-icon {
    font-size: 20px;
    color: #667eea;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 6px;
    flex-shrink: 0;
}

.choice-card.selected .choice-card-icon {
    color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.choice-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.choice-card-description {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* Menu Selection - Card-based */
.menu-selection-section {
    margin-bottom: 16px;
}

.section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.menu-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.menu-selection-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-selection-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.menu-selection-card.selected {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.menu-selection-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.menu-selection-card input[type="checkbox"] {
    display: none;
}

.menu-selection-card label {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.menu-selection-card.selected label {
    color: #059669;
    font-weight: 600;
}

.menu-selection-card.menu-all-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    font-weight: 600;
}

.menu-selection-card.menu-all-card:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.menu-selection-card.menu-all-card.selected {
    border-color: #10b981;
    border-style: solid;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

/* Action Buttons */
.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-btn-primary {
    background: #1e40af;
    color: white;
}

.modal-btn-primary:hover {
    background: #1e3a8a;
}

.modal-btn-secondary {
    background: #64748b;
    color: white;
}

.modal-btn-secondary:hover {
    background: #475569;
}

.modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile print view styles */
body.print-mobile-view .menu-item-card,
body.print-mobile-view .category-items {
    font-size: 0.875rem;
}

body.print-mobile-view .menu-item-title {
    font-size: 1rem;
}

body.print-mobile-view .menu-item-description {
    font-size: 0.75rem;
}

/* Print-specific styles */
@media print {
    /* Hide all non-essential UI elements */
    .status-bar,
    .floating-menu-container,
    .floating-cart-icon,
    .floating-back-to-top,
    .cart-banner,
    .tab-navigation,
    .print-menu-dropdown,
    .menu-action-button,
    .toggle-container,
    .segmented-control {
        display: none !important;
    }
    
    /* Ensure content prints properly */
    body {
        background: white !important;
    }
    
    .container {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .main-content {
        background: white !important;
    }
    
    /* Ensure menu items print well */
    .menu-item-card,
    .category-items {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    /* Print headers and footers */
    .header {
        page-break-after: avoid;
    }
    
    .footer {
        page-break-before: avoid;
    }
    
    /* Remove shadows and borders for cleaner print */
    .item-card,
    .menu-item-card {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .restaurant-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .menu-items {
        padding: 0.75rem;
    }
    
    .menu-item {
        flex-direction: column;
    }
    
    .item-image-container {
        order: 0;
        width: 100%;
        height: 120px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 600px) {
    .mobile-view-mode-grid {
        grid-template-columns: 1fr;
    }
}

