/* American Creamery — Customer Menu App (Zomato/Swiggy style) */

:root {
    --customer-content-padding: clamp(16px, 3vw, 40px);
}

html:has(body.customer-body) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

body.customer-body {
    display: block;
    background: #0f0c08;
    color: #fdfbf7;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    overflow-x: hidden;
}

.customer-app {
    width: 100%;
    min-height: 100vh;
    background: #0f0c08;
}

/* Onboarding — focused table picker with optional About/FAQ below */
.customer-onboard {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    width: 100%;
    background: #0f0c08;
}

.customer-onboard .customer-header {
    flex-shrink: 0;
    padding: 16px 28px;
    background: linear-gradient(180deg, #1a1510, #0f0c08);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.customer-onboard-main {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.customer-onboard .customer-hero {
    margin: 0;
    border-radius: 0;
    min-height: 100%;
    height: 100%;
}

.customer-onboard .customer-card {
    margin: 0;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 32px;
    background: rgba(18, 15, 12, 0.98);
    max-width: none;
    overflow-y: auto;
}

.customer-onboard-features {
    gap: 8px;
}

.customer-onboard-features .customer-feature {
    font-size: 0.68rem;
}

.customer-onboard-location {
    padding: 12px 14px;
}

.customer-onboard-location .customer-location-row {
    font-size: 0.78rem;
}

.customer-onboard-staff-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: #a69f92;
    text-decoration: none;
    transition: color 0.2s ease;
}

.customer-onboard-staff-link:hover {
    color: #d4af37;
}

.customer-onboard-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.customer-onboard-divider::before,
.customer-onboard-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.customer-scan-hint {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    line-height: 1.45;
}

.customer-qr-scan-modal {
    background: #1a1714;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    color: #fdfbf7;
}

.customer-qr-scan-modal .modal-title {
    color: #e8c96a;
    font-weight: 600;
}

.customer-scan-modal-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.customer-qr-reader {
    width: 100%;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f0c08;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.customer-qr-reader video {
    border-radius: 16px;
}

.customer-scan-status {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    min-height: 1.2em;
}

.customer-scan-status.is-error {
    color: #f5a3a3;
}

.customer-scan-status.is-success {
    color: #8fd9a8;
}

.btn-outline-gold {
    color: #e8c96a;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.06);
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
    color: #1a1714;
    background: #d4af37;
    border-color: #d4af37;
}

.customer-onboard-more {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 10, 8, 0.98);
}

.customer-onboard-more > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 24px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #d4af37;
    text-align: center;
    user-select: none;
}

.customer-onboard-more > summary::-webkit-details-marker {
    display: none;
}

.customer-onboard-more > summary::after {
    content: ' ▾';
    font-size: 0.75rem;
}

.customer-onboard-more[open] > summary::after {
    content: ' ▴';
}

.customer-onboard-more[open] > summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.customer-onboard-seo {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px 40px;
    border-top: none;
    background: transparent;
}

@media (max-width: 992px) {
    .customer-onboard-main {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .customer-onboard .customer-hero {
        min-height: 260px;
        height: auto;
    }

    .customer-onboard .customer-card {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding: 24px 20px;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .customer-onboard .customer-header {
        padding: 14px 16px;
    }

    .customer-onboard .customer-hero {
        min-height: 200px;
        margin: 12px 16px 0;
        border-radius: 18px;
    }

    .customer-onboard .customer-card {
        margin: 12px 16px 16px;
        border-radius: 20px;
        border: 1px solid rgba(212, 175, 55, 0.15);
    }

    .customer-onboard-seo {
        padding: 20px 16px 32px;
    }

    .customer-onboard-more > summary {
        padding: 12px 16px;
        font-size: 0.78rem;
    }
}

.customer-header {
    padding: 16px 20px;
    background: linear-gradient(180deg, #1a1510, #0f0c08);
}

.customer-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.customer-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.customer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #f3e5ab;
    margin: 0;
}

.customer-tagline {
    margin: 0;
    font-size: 0.78rem;
    color: #a69f92;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.customer-hero {
    position: relative;
    height: 200px;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

.customer-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.75));
}

.customer-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.customer-hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f3e5ab;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.customer-hero-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 4px;
}

.customer-hero-text p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
}

.customer-card {
    margin: 20px 16px;
    padding: 24px;
    background: rgba(24, 20, 16, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 22px;
}

.customer-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f3e5ab;
    margin: 0 0 6px;
}

.customer-card-sub {
    font-size: 0.85rem;
    color: #a69f92;
    margin-bottom: 20px;
}

.customer-select {
    border-radius: 12px !important;
    padding: 12px 14px !important;
}

.customer-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .customer-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .customer-feature {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        font-size: 0.8rem;
    }

    .customer-feature i {
        margin-bottom: 0;
        font-size: 1.1rem;
    }
}

.customer-feature {
    text-align: center;
    font-size: 0.72rem;
    color: #a69f92;
}

.customer-feature i {
    display: block;
    font-size: 1.2rem;
    color: #d4af37;
    margin-bottom: 6px;
}

.customer-location {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.customer-location-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #c9c2b5;
    line-height: 1.45;
}

.customer-location-row + .customer-location-row {
    margin-top: 10px;
}

.customer-location-row i {
    color: #d4af37;
    margin-top: 2px;
    width: 14px;
    flex-shrink: 0;
}

.customer-location-row a {
    color: #e8d9a8;
    text-decoration: none;
}

.customer-location-row a:hover {
    color: #fff;
}

.customer-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    width: 100%;
    background: #0f0c08;
    background: rgba(12, 10, 8, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.customer-sticky-header--scrolled .customer-topbar {
    padding-top: 10px;
    padding-bottom: 10px;
}

.customer-sticky-header--scrolled .customer-topbar-logo {
    width: 36px;
    height: 36px;
}

.customer-topbar {
    position: relative;
    top: auto;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px var(--customer-content-padding);
    background: transparent;
    border-bottom: none;
    width: 100%;
    transition: padding 0.25s ease;
}

.customer-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-topbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    transition: width 0.25s ease, height 0.25s ease;
}

.customer-topbar-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fdfbf7;
}

.customer-topbar-table {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 2px;
}

.customer-change-table-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: rgba(212, 175, 55, 0.9);
    text-decoration: none;
}

.customer-change-table-link:hover {
    color: #e8c96a;
    text-decoration: underline;
}

.customer-topbar-actions {
    display: flex;
    gap: 8px;
}

.customer-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fdfbf7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.customer-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fdfbf7;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.customer-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 var(--customer-content-padding) 10px;
    width: 100%;
    max-height: none;
    opacity: 1;
}

.customer-highlights::-webkit-scrollbar { display: none; }

.customer-highlight-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    font-size: 0.75rem;
    padding: 8px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #d4cfc4;
    white-space: nowrap;
    text-align: center;
}

@media (max-width: 900px) {
    .customer-highlights {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .customer-highlight-chip {
        flex: 0 0 auto;
    }
}

@media (max-width: 640px) {
    .customer-highlights {
        max-height: 48px;
    }

    .customer-highlight-chip {
        padding: 6px 12px;
    }
}

.customer-highlight-chip.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.customer-cat-nav {
    position: relative;
    top: auto;
    z-index: auto;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    padding: 0 0 10px;
}

.customer-cat-nav-inner {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 0 var(--customer-content-padding);
    overflow-x: auto;
    scrollbar-width: none;
}

.customer-cat-nav-inner::-webkit-scrollbar { display: none; }

.customer-cat-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #a69f92;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.customer-cat-pill:hover:not(.active) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #d4cfc4;
}

.customer-cat-pill.active {
    background: rgba(212, 175, 55, 0.22);
    border-color: rgba(212, 175, 55, 0.55);
    color: #f3e5ab;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
}

/* Active menu session — full width, readable content inside */
#customerMenuApp {
    width: 100%;
}

.customer-menu-main {
    padding: 16px var(--customer-content-padding) calc(72px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: none;
    margin: 0;
}

#customerMenuApp .customer-menu-main {
    padding-top: calc(var(--customer-sticky-header-height, 170px) + 16px);
}

.customer-topbar-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-section {
    margin-bottom: 32px;
    scroll-margin-top: calc(var(--customer-sticky-header-height, 180px) + 12px);
}

.menu-section-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu-section-photo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.menu-section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
}

.menu-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #f3e5ab;
    margin: 0 0 4px;
}

.menu-section-desc {
    font-size: 0.82rem;
    color: #d4cfc4;
    margin: 0 0 4px;
    line-height: 1.45;
}

.menu-section-count {
    font-size: 0.72rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 900px) {
    .menu-item-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1400px) {
    .menu-item-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.menu-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    transition: border-color 0.2s ease;
}

.menu-item-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.menu-item-visual {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
}

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

.menu-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.menu-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fdfbf7;
    margin: 0;
}

.menu-item-price {
    font-weight: 700;
    color: #d4af37;
    font-size: 0.9rem;
    white-space: nowrap;
}

.menu-item-desc {
    font-size: 0.8rem;
    color: #d8d2c8;
    margin: 4px 0 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(52, 152, 219, 0.22);
    color: #85c1e9;
    margin-top: 4px;
    font-weight: 600;
}

.menu-item-add {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: #000;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-item-add:hover { transform: scale(1.08); }

.menu-item-actions {
    flex-shrink: 0;
    align-self: center;
}

.menu-item-stepper {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #b8860b, #d4af37);
    border-radius: 10px;
    overflow: hidden;
    min-width: 92px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

.menu-item-stepper-btn {
    width: 34px;
    height: 36px;
    border: none;
    background: transparent;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-item-stepper-count {
    min-width: 24px;
    text-align: center;
    font-weight: 800;
    color: #000;
    font-size: 0.92rem;
    line-height: 1;
}

.menu-item-card.has-cart-qty {
    border-color: rgba(212, 175, 55, 0.32);
    background: rgba(212, 175, 55, 0.04);
}

.pv-1 { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.pv-2 { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.pv-3 { background: linear-gradient(135deg, #2980b9, #3498db); }
.pv-4 { background: linear-gradient(135deg, #16a085, #1abc9c); }
.pv-5 { background: linear-gradient(135deg, #d35400, #e67e22); }
.pv-6 { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.pv-7 { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.pv-8 { background: linear-gradient(135deg, #f39c12, #f1c40f); }

.tbl-a { background: rgba(231,76,60,0.2); color: #e74c3c; border: 1px solid rgba(231,76,60,0.4); }
.tbl-b { background: rgba(52,152,219,0.2); color: #5dade2; border: 1px solid rgba(52,152,219,0.4); }
.tbl-c { background: rgba(46,204,113,0.2); color: #2ecc71; border: 1px solid rgba(46,204,113,0.4); }
.tbl-d { background: rgba(155,89,182,0.2); color: #bb8fce; border: 1px solid rgba(155,89,182,0.4); }
.tbl-e { background: rgba(241,196,15,0.2); color: #f4d03f; border: 1px solid rgba(241,196,15,0.4); }
.tbl-f { background: rgba(230,126,34,0.2); color: #eb984e; border: 1px solid rgba(230,126,34,0.4); }
.tbl-g { background: rgba(26,188,156,0.2); color: #48c9b0; border: 1px solid rgba(26,188,156,0.4); }
.tbl-h { background: rgba(236,112,99,0.2); color: #ec7063; border: 1px solid rgba(236,112,99,0.4); }

.customer-pay-note {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.85rem;
    color: #a69f92;
}

.customer-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    padding: 6px var(--customer-content-padding) calc(6px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent 0%, rgba(8, 7, 5, 0.75) 55%);
    z-index: 1030;
    pointer-events: none;
}

.customer-cart-bar-btn {
    width: 100%;
    max-width: min(420px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: #000;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.2;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.customer-cart-bar-count {
    background: rgba(0, 0, 0, 0.22);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    min-width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.customer-cart-bar-label {
    flex: 1;
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.customer-cart-bar-total {
    font-size: 0.88rem;
    flex-shrink: 0;
}

.customer-cart-drawer {
    background: #141210;
    z-index: 1100;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.cart-drawer-backdrop.active {
    z-index: 1095;
}

.cart-drawer.customer-cart-drawer.active {
    z-index: 1100;
    transform: translateX(0);
}

.customer-cart-drawer .customer-cart-header {
    flex-shrink: 0;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
}

.customer-cart-drawer .cart-items-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.customer-cart-drawer .customer-cart-footer {
    flex-shrink: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: #141210;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

body.customer-cart-open {
    overflow: hidden;
}

body.customer-order-celebrating {
    overflow: hidden;
}

body.customer-cart-open .customer-cart-bar {
    display: none !important;
}

@media (max-width: 768px) {
    .cart-drawer.customer-cart-drawer {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .cart-drawer.customer-cart-drawer {
        width: min(400px, 38vw);
    }
}

.customer-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.customer-cart-header h5 { margin: 0; color: #d4af37; }

.customer-cart-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.customer-cart-table-reminder {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-align: center;
}

.customer-cart-item {
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 10px;
}

.customer-cart-item-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.customer-cart-item-photo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.customer-cart-item-info {
    flex: 1;
    min-width: 0;
}

.customer-cart-item-name {
    color: #fdfbf7;
    font-size: 0.95rem;
}

.customer-cart-item-meta {
    font-size: 0.8rem;
    color: #c9c2b5;
    margin-top: 2px;
}

.customer-cart-item-total {
    color: #d4af37;
}

.customer-cart-totals span {
    color: #e8e4dc;
}

.customer-cart-footer .text-muted,
.customer-cart-drawer .text-muted {
    color: #b8b0a3 !important;
}

#alertBox.alert-custom-success {
    color: #6ee7a0;
    font-weight: 600;
}

/* Cart add / remove feedback toast */
.cart-feedback-toast {
    position: fixed;
    top: calc(var(--customer-sticky-header-height, 150px) + 10px);
    left: 50%;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-16px) scale(0.96);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.cart-feedback-toast.cart-feedback-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.cart-feedback-toast.cart-feedback-add {
    background: linear-gradient(135deg, rgba(34, 88, 52, 0.95), rgba(22, 58, 36, 0.98));
    border-color: rgba(110, 231, 160, 0.35);
}

.cart-feedback-toast.cart-feedback-remove {
    background: linear-gradient(135deg, rgba(72, 42, 42, 0.95), rgba(48, 28, 28, 0.98));
    border-color: rgba(255, 140, 140, 0.3);
}

.cart-feedback-emoji {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.cart-feedback-add .cart-feedback-emoji {
    animation: cart-feedback-happy 0.7s ease;
}

.cart-feedback-remove .cart-feedback-emoji {
    animation: cart-feedback-sad 0.85s ease;
}

.cart-feedback-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cart-feedback-text strong {
    font-size: 0.92rem;
    color: #fdfbf7;
    line-height: 1.25;
}

.cart-feedback-text span {
    font-size: 0.8rem;
    color: rgba(253, 251, 247, 0.82);
    line-height: 1.35;
}

.cart-feedback-add .cart-feedback-text span {
    color: rgba(180, 245, 210, 0.95);
}

.cart-feedback-remove .cart-feedback-text span {
    color: rgba(255, 200, 200, 0.9);
}

.customer-icon-btn.cart-icon-bump,
.customer-cart-bar-btn.cart-icon-bump {
    animation: cart-icon-bump 0.55s ease;
}

.menu-item-stepper.cart-qty-bump {
    animation: cart-qty-bump 0.45s ease;
}

@keyframes cart-feedback-happy {
    0% { transform: scale(0.4) rotate(-20deg); opacity: 0; }
    40% { transform: scale(1.25) rotate(8deg); opacity: 1; }
    65% { transform: scale(0.95) rotate(-6deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes cart-feedback-sad {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(2px) scale(0.92); }
    45% { transform: translateY(6px) scale(0.88); }
    70% { transform: translateY(3px) scale(0.94); }
}

@keyframes cart-icon-bump {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.18); }
    60% { transform: scale(0.94); }
}

@keyframes cart-qty-bump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Order placed celebration */
.order-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 5, 4, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.order-success-overlay.order-success-show {
    opacity: 1;
    visibility: visible;
}

.order-success-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.order-success-confetti-piece {
    position: absolute;
    top: -12px;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    animation: order-confetti-fall linear forwards;
}

@keyframes order-confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0.85;
        transform: translateY(110vh) rotate(720deg);
    }
}

.order-success-card {
    position: relative;
    z-index: 2;
    width: min(380px, 100%);
    padding: 32px 28px 28px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(160deg, rgba(32, 28, 22, 0.98), rgba(18, 15, 12, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: scale(0.88) translateY(24px);
    opacity: 0;
}

.order-success-overlay.order-success-show .order-success-card {
    animation: order-success-pop 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

.order-success-ring {
    position: absolute;
    top: 28px;
    left: 50%;
    width: 88px;
    height: 88px;
    margin-left: -44px;
    border-radius: 50%;
    border: 3px solid rgba(212, 175, 55, 0.25);
    animation: order-success-ring 1.2s ease-out forwards;
}

.order-success-emoji {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 12px;
    animation: order-success-emoji 0.9s ease;
}

.order-success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    color: #f3e5ab;
    margin: 0 0 10px;
}

.order-success-message {
    font-size: 0.95rem;
    color: #d4cfc4;
    margin: 0 0 14px;
    line-height: 1.45;
}

.order-success-sub {
    font-size: 0.78rem;
    color: #d4af37;
    margin: 0;
    letter-spacing: 0.04em;
    animation: order-success-pulse 1.4s ease-in-out infinite;
}

@keyframes order-success-pop {
    0% {
        opacity: 0;
        transform: scale(0.82) translateY(28px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes order-success-ring {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@keyframes order-success-emoji {
    0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(8deg); opacity: 1; }
    75% { transform: scale(0.95) rotate(-4deg); }
    100% { transform: scale(1) rotate(0); }
}

@keyframes order-success-pulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

.customer-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
}

.customer-qty-control button {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #fdfbf7;
    cursor: pointer;
}

.customer-qty-control span {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
}

.customer-qty-control-sm button { width: 30px; height: 30px; }

.customer-modal {
    background: #1a1510;
    border: 1px solid rgba(212,175,55,0.2);
    color: #fdfbf7;
}

#optionsModal {
    z-index: 1060;
    overflow: hidden !important;
}

#optionsModal .modal-backdrop {
    z-index: 1055;
}

#optionsModal .customer-options-dialog {
    margin: 0;
    max-width: 520px;
    width: calc(100% - 24px);
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    top: auto;
    height: auto;
    max-height: none;
    transform: translateX(-50%) translateY(110%) !important;
    transition: transform 0.28s ease;
    display: flex;
    align-items: flex-end;
    pointer-events: auto;
}

#optionsModal.show .customer-options-dialog,
#optionsModal.showing .customer-options-dialog {
    transform: translateX(-50%) translateY(0) !important;
}

#optionsModal .customer-options-sheet {
    background: #1a1510;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: none;
    color: #fdfbf7;
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-height: min(88vh, 620px);
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}

#optionsModal .modal-content {
    max-height: min(88vh, 620px);
}

#optionsModal .customer-options-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#optionsModal .customer-options-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

#optionsModal .customer-options-footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(26, 21, 16, 0.92), #1a1510 30%);
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 12px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    position: relative;
    z-index: 2;
}

.customer-options-handle {
    width: 42px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    margin: 10px auto 0;
    flex-shrink: 0;
}

.customer-options-subtitle {
    font-size: 0.82rem;
    color: #d4af37;
    font-weight: 600;
}

#optionsModal .modal-header,
#optionsModal .customer-options-body,
#optionsModal .customer-options-footer {
    padding-left: 20px;
    padding-right: 20px;
}

#optionsModal .customer-variant-option {
    cursor: pointer;
}

#optionsModal .customer-variant-option:has(input:checked) {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.1);
}

@media (min-width: 576px) {
    #optionsModal .customer-options-dialog {
        bottom: 20px;
        width: min(520px, calc(100% - 32px));
    }

    #optionsModal .customer-options-sheet {
        border-radius: 22px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
}

.customer-variant-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.customer-variant-option input[type="radio"] {
    flex-shrink: 0;
    accent-color: #d4af37;
}

.customer-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.customer-empty-icon {
    font-size: 3rem;
    color: rgba(212,175,55,0.3);
    margin-bottom: 16px;
}

.order-history-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}

.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-status-visual {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    overflow: hidden;
}

.order-status-visual-media {
    flex-shrink: 0;
    width: 112px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.order-status-visual-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.order-status-visual-copy {
    flex: 1;
    min-width: 0;
}

.order-status-visual-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f3e5ab;
    line-height: 1.25;
}

.order-status-visual-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #c9c2b5;
}

.order-status-visual.status-pending {
    border-color: rgba(243, 156, 18, 0.22);
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(255, 255, 255, 0.02));
}

.order-status-visual.status-preparing {
    border-color: rgba(52, 152, 219, 0.22);
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(255, 255, 255, 0.02));
}

.order-status-visual.status-ready {
    border-color: rgba(46, 204, 113, 0.28);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(255, 255, 255, 0.02));
}

.order-status-visual.status-ready .order-status-visual-title {
    color: #7dcea0;
}

.order-status-visual.status-completed {
    border-color: rgba(212, 175, 55, 0.22);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.02));
}

.order-status-visual.status-cancelled {
    border-color: rgba(231, 76, 60, 0.22);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08), rgba(255, 255, 255, 0.02));
}

.order-status-visual.status-cancelled .order-status-visual-title {
    color: #ff8a8a;
}

.order-history-id { font-weight: 700; color: #f3e5ab; display: block; }
.order-history-time { font-size: 0.75rem; color: #a69f92; }

.order-status-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.06em;
}

.status-pending { background: rgba(243,156,18,0.15); color: #f39c12; }
.status-preparing { background: rgba(52,152,219,0.15); color: #5dade2; }
.status-ready { background: rgba(46,204,113,0.15); color: #2ecc71; }
.status-completed { background: rgba(149,165,166,0.15); color: #95a5a6; }
.status-cancelled { background: rgba(231,76,60,0.15); color: #e74c3c; }

.order-timeline {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    overflow-x: auto;
}

.order-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 70px;
}

.order-timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.08);
    color: #b8b0a3;
    border: 2px solid rgba(255,255,255,0.14);
}

.order-timeline-step.done .order-timeline-dot,
.order-timeline-step.active .order-timeline-dot {
    background: rgba(212,175,55,0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.order-timeline-label {
    font-size: 0.65rem;
    color: #b8b0a3;
    margin-top: 4px;
    text-align: center;
    line-height: 1.25;
}

.order-timeline-step.active .order-timeline-label { color: #f3e5ab; font-weight: 600; }
.order-timeline-step.done .order-timeline-label { color: #c9c2b5; }
.order-timeline-step.upcoming .order-timeline-label { color: #9a9488; }

.order-timeline-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.08);
    min-width: 16px;
    margin-bottom: 20px;
}

.order-timeline-line.done { background: #d4af37; }

.order-ready-banner {
    background: rgba(46,204,113,0.12);
    border: 1px solid rgba(46,204,113,0.3);
    color: #2ecc71;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.order-completed-banner {
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.3);
    color: #d4af37;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.order-cancelled-banner {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.25);
    color: #e74c3c;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

.order-item-qty { font-weight: 700; color: #d4af37; min-width: 28px; }
.order-item-name {
    flex: 1;
    min-width: 0;
    color: #fdfbf7;
    line-height: 1.4;
}

.order-item-variant {
    display: inline;
    color: #c9c2b5;
    font-size: 0.82rem;
    font-weight: 500;
}

.order-item-price {
    font-weight: 600;
    color: #d4af37;
    margin-left: auto;
    white-space: nowrap;
}

/* Order history page */
.customer-history-app .customer-history-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(12, 10, 8, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: calc(10px + env(safe-area-inset-top, 0px)) var(--customer-content-padding) 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.customer-history-app .customer-menu-main {
    padding-top: calc(76px + env(safe-area-inset-top, 0px));
}

.customer-history-app .customer-topbar-left {
    flex: 1;
    min-width: 0;
}

.customer-history-app .customer-topbar-name {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
}

.order-alert-unlock-bar {
    margin-bottom: 14px;
}

.order-alert-unlock-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
    color: #f3e5ab;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.order-alert-unlock-btn:hover {
    border-color: rgba(212, 175, 55, 0.7);
    transform: translateY(-1px);
}

.order-alert-unlock-btn i {
    color: #d4af37;
}

.global-order-alert-fab {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: rgba(18, 15, 12, 0.94);
    color: #f3e5ab;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.global-order-alert-fab i {
    color: #d4af37;
}

body.customer-cart-open .global-order-alert-fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.customer-history-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}

.customer-history-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    color: #1a1510;
    background: linear-gradient(135deg, #e8c547 0%, #d4af37 50%, #b8942e 100%);
    border: 1px solid rgba(212, 175, 55, 0.65);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.customer-history-add-btn:hover {
    color: #1a1510;
    filter: brightness(1.05);
}

.customer-history-add-btn i {
    font-size: 0.7rem;
}

.order-history-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7dcea0;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.28);
}

.order-history-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55);
    animation: order-live-pulse 1.8s ease-out infinite;
}

.order-history-synced {
    font-size: 0.65rem;
    color: #9a9488;
    white-space: nowrap;
}

@keyframes order-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.order-status-visual.order-status-visual--pulse {
    animation: order-status-pulse 0.65s ease;
}

@keyframes order-status-pulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.customer-history-app .btn-gold.btn-sm {
    white-space: nowrap;
    flex-shrink: 0;
}

.customer-history-app .customer-history-add-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.customer-history-app .text-muted {
    color: #c9c2b5 !important;
}

.customer-history-app .order-history-card {
    color: #fdfbf7;
}

.customer-history-app .order-total-row span:first-child {
    color: #d4cfc4;
}

.customer-history-app .order-history-footer .btn-outline-danger {
    color: #ff8a8a;
    border-color: rgba(255, 120, 120, 0.55);
}

.customer-history-app .order-history-footer .btn-outline-danger:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #ffb3b3;
    border-color: rgba(255, 120, 120, 0.75);
}

.customer-history-app .customer-empty-state h3 {
    color: #f3e5ab;
}

.customer-history-app .customer-empty-state p {
    color: #c9c2b5;
}

@media (max-width: 576px) {
    .customer-history-app .customer-history-topbar {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .customer-history-topbar-actions {
        width: auto;
        justify-content: flex-end;
        gap: 6px;
    }

    .order-history-synced {
        display: none;
    }

    .order-history-live-badge {
        padding: 3px 8px;
        font-size: 0.62rem;
    }

    .customer-history-add-label {
        display: none;
    }

    .customer-history-add-btn {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 10px;
    }

    .order-history-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .order-status-visual {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
        padding: 14px 12px;
    }

    .order-status-visual-media {
        width: 100%;
        max-width: 220px;
        height: 138px;
        margin: 0 auto;
    }

    .order-timeline {
        padding-bottom: 4px;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
        scrollbar-width: none;
    }

    .order-timeline::-webkit-scrollbar {
        display: none;
    }

    .order-timeline-step {
        width: 62px;
    }

    .order-timeline-label {
        font-size: 0.58rem;
        line-height: 1.2;
    }

    .order-item-row {
        flex-wrap: wrap;
        gap: 4px 8px;
    }

    .order-item-name {
        flex: 1 1 calc(100% - 40px);
    }

    .order-item-price {
        margin-left: 40px;
    }

    .order-history-card {
        padding: 14px;
    }

    .customer-empty-state {
        padding: 40px 16px;
    }

    .customer-empty-state h3 {
        font-size: 1.15rem;
    }
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    font-size: 1rem;
}

/* Kitchen table badges */
.kds-table-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 800;
}

.kds-table-number {
    font-size: 1.6rem;
    line-height: 1;
}

.kds-table-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    opacity: 0.8;
}

.menu-item-visual.menu-item-has-photo {
    width: 110px;
    height: 110px;
    padding: 0;
    background: #1a1714;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
    .menu-item-visual.menu-item-has-photo {
        width: 88px;
        height: 88px;
    }

    .menu-item-card {
        gap: 10px;
    }

    .menu-item-name {
        font-size: 0.92rem;
    }

    .menu-item-price {
        font-size: 0.88rem;
    }
}

.menu-item-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    transition: transform 0.25s ease;
}

.menu-item-card:hover .menu-item-photo {
    transform: scale(1.05);
}

.customer-main {
    min-height: 100vh;
}

.customer-seo-section {
    max-width: 720px;
    margin: 28px auto 40px;
    padding: 0 16px 24px;
}

.customer-onboard-seo.customer-seo-section {
    margin: 0 auto;
    max-width: 720px;
}

.customer-seo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #f3e5ab;
    margin-bottom: 12px;
}

.customer-seo-subtitle {
    font-size: 1rem;
    color: #e8d9a8;
    margin-bottom: 14px;
}

.customer-seo-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #b8b0a3;
    margin-bottom: 10px;
}

.customer-seo-link {
    color: #d4af37;
    text-decoration: none;
}

.customer-seo-link:hover {
    color: #f3e5ab;
    text-decoration: underline;
}

.customer-faq-list {
    margin: 0;
}

.customer-faq-item {
    padding: 14px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.customer-faq-item dt {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fdfbf7;
    margin-bottom: 6px;
}

.customer-faq-item dd {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #a69f92;
    font-weight: 400;
}

.customer-onboard-seo .customer-faq-item dd,
.customer-onboard-seo .customer-seo-text {
    font-size: 0.88rem;
    line-height: 1.65;
}
