/* =====================================================
   DineQube QR Menu — Premium Mobile Ordering UI
   ===================================================== */

:root {
    --primary: #0F7B5A;
    --primary-dark: #075E45;
    --primary-hover: #0B6B4E;
    --primary-light: #E7F6F0;

    --cream: #FFF9EC;
    --cream-dark: #F8EED7;
    --white: #FFFFFF;

    --text: #102620;
    --text-soft: #5B7169;
    --muted: #8A9B95;
    --border: #DCEBE5;

    --veg-green: #159447;
    --nonveg-red: #D92D20;
    --warning: #E9A23B;
    --danger: #D92D20;

    --shadow-sm: 0 4px 14px rgba(7, 94, 69, 0.08);
    --shadow-md: 0 12px 32px rgba(7, 94, 69, 0.12);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #EDEDE8;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
}

img {
    display: block;
    max-width: 100%;
}

input,
textarea {
    font-family: inherit;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

:focus-visible {
    outline: 3px solid rgba(15, 123, 90, 0.45);
    outline-offset: 2px;
}

/* =====================================================
   Layout / App Shell
   ===================================================== */

.app-root {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(16, 38, 32, 0.12);
    position: relative;
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

/* =====================================================
   Offline Banner
   ===================================================== */

.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--warning);
    color: #2D1B00;
    font-weight: 700;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* =====================================================
   Skeleton Loader
   ===================================================== */

.skeleton-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    animation: skeleton-fade 1.2s ease-in-out infinite;
}

.skeleton-header {
    padding: calc(env(safe-area-inset-top) + 12px) 16px 16px;
    border-bottom: 1px solid var(--border);
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #E8F0ED;
    flex-shrink: 0;
}

.skeleton-lines {
    flex: 1;
    display: grid;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    border-radius: 20px;
    background: #E8F0ED;
}

.skeleton-line--title {
    width: 70%;
    height: 16px;
}

.skeleton-line--short {
    width: 45%;
}

.skeleton-badge {
    width: 64px;
    height: 28px;
    border-radius: 20px;
    background: #E8F0ED;
    flex-shrink: 0;
}

.skeleton-search {
    height: 44px;
    border-radius: 14px;
    background: #E8F0ED;
    margin-bottom: 14px;
}

.skeleton-chips {
    display: flex;
    gap: 8px;
    overflow: hidden;
}

.skeleton-chip {
    width: 78px;
    height: 36px;
    border-radius: 22px;
    background: #E8F0ED;
    flex-shrink: 0;
}

.skeleton-menu {
    padding: 20px 16px;
    display: grid;
    gap: 14px;
}

.skeleton-card {
    height: 150px;
    border-radius: var(--radius-md);
    background: #F2F7F4;
    box-shadow: var(--shadow-sm);
}

@keyframes skeleton-fade {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* =====================================================
   Sticky Restaurant Header
   ===================================================== */

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: calc(env(safe-area-inset-top) + 8px) 0 0;
    transition: box-shadow 0.2s ease;
}

.app-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-row {
    padding-left: 16px;
    padding-right: 16px;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}

.restaurant-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.rest-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.rest-meta {
    min-width: 0;
    flex: 1;
}

.rest-name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.rest-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 7px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 123, 90, 0.16);
}

.rest-cuisine {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.table-badge {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 22px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.order-status-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.status-icon-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--warning);
    border: 2px solid var(--white);
}

.status-icon-dot.status-pending {
    background: var(--warning);
}

.status-icon-dot.status-accepted,
.status-icon-dot.status-preparing {
    background: var(--primary);
}

.status-icon-dot.status-ready {
    background: #1DB954;
    animation: pulse-dot 1.4s infinite;
}

.status-icon-dot.status-served,
.status-icon-dot.status-rejected,
.status-icon-dot.status-cancelled {
    background: var(--muted);
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.45); }
    70% { box-shadow: 0 0 0 8px rgba(29, 185, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

/* =====================================================
   Search
   ===================================================== */

.search-row {
    padding-bottom: 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: #FAFCFB;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input::placeholder {
    color: var(--muted);
    font-weight: 500;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 123, 90, 0.12);
    outline: none;
}

/* =====================================================
   Category Chips
   ===================================================== */

.category-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-top: 2px;
    padding-bottom: 12px;
}

.category-row::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 22px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-chip.active,
.category-chip:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* =====================================================
   Restaurant Intro Section
   ===================================================== */

.restaurant-intro {
    background: var(--cream);
    margin: 12px 16px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.restaurant-cover {
    width: 100%;
    height: 148px;
    object-fit: cover;
    background: var(--cream-dark);
}

.intro-body {
    padding: 14px 16px 16px;
}

.intro-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.intro-title-row h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: var(--text);
}

.pure-veg-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 20px;
    flex-shrink: 0;
}

.intro-cuisines {
    margin: 6px 0 10px;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 14px;
}

.intro-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.prep-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.open-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-dark);
    font-weight: 800;
}

.open-status.closed {
    color: var(--danger);
}

.dineqube-brand {
    margin-left: auto;
    font-weight: 800;
    color: var(--primary);
    background: rgba(15, 123, 90, 0.08);
    padding: 4px 8px;
    border-radius: 20px;
    letter-spacing: 0.2px;
    font-size: 11px;
}

/* =====================================================
   Menu Filters
   ===================================================== */

.menu-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px 4px;
}

.menu-filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 20px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.filter-chip.filter-veg.active {
    background: var(--veg-green);
    border-color: var(--veg-green);
    color: var(--white);
}

.filter-chip.filter-nonveg.active {
    background: var(--nonveg-red);
    border-color: var(--nonveg-red);
    color: var(--white);
}

/* =====================================================
   Menu List
   ===================================================== */

.menu-list {
    display: grid;
    gap: 14px;
    padding: 14px 16px 40px;
}

.menu-card {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 150px;
}

.menu-card:active {
    transform: scale(0.985);
}

.menu-card--unavailable {
    opacity: 0.58;
    pointer-events: none;
}

.menu-card-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.veg-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid currentColor;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.veg-indicator.veg {
    color: var(--veg-green);
}

.veg-indicator.nonveg {
    color: var(--nonveg-red);
}

.veg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: block;
}

.item-name {
    margin: 2px 0 4px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--text);
    line-height: 1.3;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 14px;
    width: fit-content;
}

.badge.bestseller {
    background: #FFF4D8;
    color: #8A5B00;
}

.item-desc {
    margin: 5px 0 7px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    margin-top: auto;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.customisable {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-dark);
}

.menu-card-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: start;
}

.food-image {
    width: 110px;
    height: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--cream-dark);
    position: relative;
    flex-shrink: 0;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.food-image.placeholder::before {
    content: 'DineQube';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    background: var(--cream-dark);
}

.card-action {
    width: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
}

.add-btn {
    width: 100%;
    height: 44px;
    border-radius: 14px;
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: var(--primary-light);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-dark);
    border-radius: 22px;
    padding: 4px;
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
}

.qty-control--sm {
    gap: 6px;
    padding: 2px;
    min-height: 38px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qty-control button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.qty-control span {
    color: var(--white);
    font-weight: 800;
    font-size: 14px;
    min-width: 18px;
    text-align: center;
}

.unavailable-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.empty-state {
    text-align: center;
    padding: 50px 24px;
    color: var(--text-soft);
    font-weight: 600;
}

/* =====================================================
   Sticky Cart Bar
   ===================================================== */

.cart-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    z-index: 95;
    background: var(--cream);
    border: 2px solid var(--primary);
    border-bottom: none;
    border-radius: 18px 18px 0 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -8px 30px rgba(7, 94, 69, 0.15);
    animation: slide-up 0.3s ease;
    cursor: pointer;
}

@keyframes slide-up {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.cart-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
    font-size: 15px;
}

.cart-bag-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-bar-right {
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 16px;
    white-space: nowrap;
    font-size: 14px;
}

/* =====================================================
   Order Status Floating Icon
   ===================================================== */

.order-status-icon.floating {
    position: fixed;
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 85;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   Bottom Sheets
   ===================================================== */

.sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(16, 38, 32, 0.48);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fade-in 0.2s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sheet {
    background: var(--white);
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow-y: auto;
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    animation: sheet-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 40px rgba(7, 94, 69, 0.18);
}

@keyframes sheet-slide-up {
    from { transform: translateY(60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.sheet--full {
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 20px;
    background: var(--border);
    margin: 0 auto 12px;
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sheet-header h2,
.sheet-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #F2F7F4;
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--primary-light);
}

/* =====================================================
   Item Detail Sheet
   ===================================================== */

.item-detail-body {
    display: grid;
    gap: 18px;
}

.item-detail-hero {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
}

.item-detail-hero .food-image {
    width: 120px;
    height: 110px;
    border-radius: var(--radius-md);
}

.item-detail-info h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
}

.item-detail-info p {
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

.item-detail-price {
    font-size: 18px;
    font-weight: 800;
}

.modifier-group {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.modifier-group-header {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.required {
    color: var(--danger);
    font-weight: 800;
}

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

.modifier-option {
    min-height: 44px;
    padding: 8px 13px;
    border-radius: 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modifier-option.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.modifier-price {
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 600;
}

.item-instruction label,
.customer-details label,
.order-instruction label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.item-instruction textarea,
.order-instruction textarea,
.form-field input,
.form-field textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--text);
    background: #FAFCFB;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.item-instruction textarea:focus,
.order-instruction textarea:focus,
.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 123, 90, 0.1);
    outline: none;
}

.item-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 800;
}

.btn-primary {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.2px;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    background: var(--muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* =====================================================
   Cart Sheet / Checkout
   ===================================================== */

.cart-items {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.cart-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background: #FDFEFD;
}

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

.cart-item-name {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.cart-item-mods,
.cart-item-inst {
    font-size: 12px;
    color: var(--text-soft);
    font-weight: 500;
    line-height: 1.4;
    margin-top: 3px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.remove-item {
    background: transparent;
    border: none;
    color: var(--danger);
    font-weight: 700;
    font-size: 12px;
    min-height: 30px;
    padding: 0 4px;
}

.cart-item-price {
    font-weight: 800;
    font-size: 15px;
    min-width: 64px;
    text-align: right;
}

.order-instruction,
.customer-details {
    margin-bottom: 20px;
}

.customer-details h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}

.form-field {
    margin-bottom: 14px;
}

.required-star {
    color: var(--danger);
    font-weight: 800;
}

.inline-error {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
}

.input-error {
    border-color: var(--danger) !important;
}

.cart-totals {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 10px;
    font-size: 14px;
}

.total-row.grand-total {
    font-weight: 800;
    color: var(--text);
    font-size: 17px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-bottom: 0;
}

/* Place order button */
.place-order-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    background: var(--cream);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    font-weight: 800;
    font-size: 16px;
    transition: all 0.2s ease;
}

.place-order-btn:hover {
    background: var(--cream-dark);
}

.place-order-btn:disabled {
    background: #F2F7F4;
    color: var(--muted);
    border-color: var(--border);
    cursor: not-allowed;
}

/* =====================================================
   Active Order Prompt
   ===================================================== */

.active-order-prompt {
    text-align: center;
    padding: 10px 0;
}

.active-order-number {
    font-size: 22px;
    font-weight: 800;
    margin: 10px 0 4px;
}

.active-order-table {
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 20px;
}

.prompt-actions {
    display: grid;
    gap: 10px;
}

.prompt-btn {
    min-height: 50px;
    border-radius: 16px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-weight: 800;
    font-size: 15px;
}

.prompt-btn.primary {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   Success Screen
   ===================================================== */

.success-screen {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--cream);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.success-content {
    width: 100%;
    max-width: 400px;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.success-check {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: check-pulse 1.2s ease;
}

.success-check svg {
    width: 46px;
    height: 46px;
    color: var(--white);
    stroke-width: 3;
}

@keyframes check-pulse {
    0% { transform: scale(0.6); opacity: 0.4; }
    60% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
}

.success-subtitle {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 22px;
}

.success-order-info {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 14px;
    font-weight: 800;
    margin-bottom: 22px;
}

.success-actions {
    display: grid;
    gap: 10px;
}

.success-btn {
    min-height: 50px;
    border-radius: 16px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 15px;
}

.success-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.celebration-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: 10%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: float-particle 2s ease-out forwards;
}

.particle:nth-child(2n) {
    background: #D4AF37;
}

.particle:nth-child(3n) {
    background: var(--warning);
}

@keyframes float-particle {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-170px) scale(0.3); opacity: 0; }
}

/* =====================================================
   Tracking Sheet
   ===================================================== */

.tracking-summary {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.confirmation-card,
.ready-card,
.served-card,
.status-alert {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--primary-dark);
}

.ready-card {
    border-left-color: #1DB954;
}

.served-card {
    border-left-color: var(--muted);
    color: var(--text);
}

.status-alert.rejected,
.status-alert.cancelled {
    background: #FFF0EF;
    border-left-color: var(--danger);
    color: var(--danger);
}

.timeline {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.timeline-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--muted);
}

.timeline-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
    background: #F2F7F4;
}

.timeline-step.done {
    color: var(--primary);
}

.timeline-step.done .timeline-icon {
    background: var(--primary-light);
    color: var(--primary);
}

.timeline-step.active {
    color: var(--text);
}

.timeline-step.active .timeline-icon {
    background: var(--primary);
    color: var(--white);
    animation: pulse-dot 1.6s infinite;
}

.timeline-label {
    font-weight: 800;
    font-size: 14px;
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 500;
    margin-top: 2px;
}

.tracking-items {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-bottom: 16px;
}

.tracking-items h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
}

.tracking-item-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.addon-batch {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 10px;
}

.addon-batch h5 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.tracking-total {
    font-weight: 800;
    font-size: 17px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    text-align: right;
    margin-bottom: 16px;
}

.tracking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tracking-action-btn {
    min-height: 46px;
    border-radius: 14px;
    border: 1.5px solid var(--primary);
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 13px;
}

.tracking-action-btn:active {
    background: var(--primary-light);
}

.tracking-add-more-btn {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 2px 0 12px;
    padding: 10px 14px;
    border: 0;
    border-radius: 16px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(7, 94, 69, 0.2);
    text-align: left;
}

.tracking-add-more-btn > span:first-child {
    font-size: 24px;
    line-height: 1;
}

.tracking-add-more-btn strong,
.tracking-add-more-btn small {
    display: block;
}

.tracking-add-more-btn strong {
    font-size: 14px;
    font-weight: 800;
}

.tracking-add-more-btn small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 9px;
    font-weight: 650;
}

/* =====================================================
   DineQube Product Branding
   ===================================================== */

.dineqube-footer {
    margin: 8px 16px 30px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--white), var(--primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.dineqube-footer-label,
.success-brand span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.dineqube-footer-name {
    margin-top: 2px;
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.dineqube-footer-tagline {
    margin-top: 3px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.35px;
}

.success-brand {
    position: relative;
    z-index: 2;
    width: fit-content;
    margin: 0 auto 22px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.success-brand strong {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.15px;
}

.tracking-powered {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-soft);
    text-align: center;
    font-size: 11px;
    font-weight: 600;
}

.tracking-powered strong {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.tracking-powered small {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* =====================================================
   Toast
   ===================================================== */

.toast-container {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(110px + env(safe-area-inset-bottom));
    z-index: 500;
    width: calc(100% - 32px);
    max-width: 420px;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: #102620;
    color: var(--white);
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-md);
    animation: toast-in 0.3s ease, toast-out 0.3s ease 2.6s forwards;
    pointer-events: auto;
}

@keyframes toast-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
    to { transform: translateY(12px); opacity: 0; }
}

/* =====================================================
   Error / Initial States
   ===================================================== */

.error-state {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    text-align: center;
    background: var(--cream);
}

.error-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.error-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.4px;
}

.error-message {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 300px;
}

.retry-btn {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-weight: 800;
    font-size: 15px;
}

/* =====================================================
   QR Menu V2 — Compact discovery experience
   ===================================================== */

body {
    background: #F1F4F1;
}

body.overlay-open {
    overflow: hidden;
}

.app-shell {
    min-height: 100vh;
    background: var(--white);
}

.restaurant-hero {
    padding: calc(18px + env(safe-area-inset-top)) 18px 18px;
    background:
        radial-gradient(circle at 92% 0%, rgba(15, 123, 90, 0.12), transparent 34%),
        linear-gradient(180deg, #FFFFFF 0%, #FFFDF7 100%);
    border-bottom: 1px solid var(--border);
}

.hero-toolbar,
.hero-title-row,
.hero-actions,
.hero-brand-lockup,
.compact-header-inner,
.compact-search,
.hero-meta {
    display: flex;
    align-items: center;
}

.hero-toolbar {
    justify-content: space-between;
    gap: 12px;
}

.hero-brand-lockup {
    gap: 9px;
    min-width: 0;
}

.hero-powered {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.1px;
}

.hero-actions {
    gap: 8px;
    flex-shrink: 0;
}

.rest-logo,
.compact-logo {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #128A65, var(--primary-dark));
    color: var(--white);
    font-weight: 800;
    flex-shrink: 0;
}

.rest-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 19px;
}

.hero-search-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
}

.hero-search-btn svg {
    width: 18px;
    height: 18px;
}

.table-badge,
.compact-table-badge {
    white-space: nowrap;
    color: var(--white);
    background: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0.25px;
}

.table-badge {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 22px;
    font-size: 12px;
}

.hero-copy {
    margin-top: 22px;
}

.hero-title-row {
    min-width: 0;
    gap: 10px;
}

.hero-restaurant-name {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    font-size: clamp(23px, 7vw, 31px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
}

.hero-open-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 123, 90, 0.12);
}

.hero-open-badge.closed {
    color: var(--danger);
    background: #FFF0EE;
}

.hero-open-badge.closed span {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

.hero-cuisine {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.hero-meta {
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 13px;
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.hero-meta-item b {
    color: var(--primary);
}

.hero-meta-item.pure-veg b {
    color: var(--veg-green);
}

.restaurant-offer {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    padding: 13px 14px 13px 46px;
    border: 1px solid #E7DFC8;
    border-radius: 16px;
    background: var(--cream);
    color: var(--text);
}

.restaurant-offer::before {
    content: '%';
    position: absolute;
    left: 13px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
}

.restaurant-offer strong,
.restaurant-offer small {
    display: block;
}

.restaurant-offer-icon {
    display: none;
}

.restaurant-offer-copy {
    display: block;
}

.restaurant-offer-code {
    display: inline-block;
    margin-top: 7px;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.restaurant-offer strong {
    font-size: 13px;
    font-weight: 800;
}

.restaurant-offer small {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
}

.restaurant-offer em {
    display: inline-block;
    margin-top: 7px;
    color: var(--primary-dark);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.compact-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 150;
    width: 100%;
    max-width: 480px;
    transform: translate(-50%, -115%);
    opacity: 0;
    pointer-events: none;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(16, 38, 32, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.compact-header.is-active {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.compact-header-inner {
    gap: 8px;
}

.compact-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
}

.compact-search {
    flex: 1;
    min-width: 0;
    height: 42px;
    gap: 8px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: 15px;
    background: #F8FAF8;
}

.compact-search svg {
    width: 19px;
    height: 19px;
    color: var(--primary);
    flex-shrink: 0;
}

.compact-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
}

.compact-search input::placeholder {
    color: #84948F;
}

.compact-table-badge {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 38px;
    padding: 0 8px;
    border-radius: 13px;
    font-size: 11px;
}

.compact-header .order-status-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    background: var(--white);
    color: var(--primary-dark);
}

.menu-main {
    padding-top: 0;
}

.menu-filters {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #EEF3F0;
    background: var(--white);
}

.filter-chip {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 14px;
    font-size: 12px;
}

.filter-chip.filter-popular::before {
    content: '↻';
    margin-right: 5px;
    color: var(--veg-green);
    font-weight: 900;
}

.filter-chip.filter-offers::before {
    content: '%';
    margin-right: 5px;
}

.menu-list {
    display: block;
    padding: 0 16px 42px;
}

.menu-section {
    scroll-margin-top: calc(72px + env(safe-area-inset-top));
    padding: 24px 0 4px;
}

.menu-section + .menu-section {
    border-top: 9px solid #F6F7F5;
    margin-inline: -16px;
    padding-inline: 16px;
}

.menu-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}

.menu-section-heading span {
    display: block;
    margin-bottom: 2px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.menu-section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.55px;
}

.menu-section-heading > strong {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
}

.menu-section-items {
    display: block;
}

.menu-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 14px;
    min-height: 186px;
    padding: 20px 0;
    border: 0;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
}

.menu-card + .menu-card {
    border-top: 1px dashed #E3EAE6;
}

.menu-card:active {
    transform: none;
}

.menu-card-left {
    align-items: flex-start;
}

.veg-indicator {
    width: 17px;
    height: 17px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.veg-dot {
    width: 7px;
    height: 7px;
}

.item-name {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: -0.25px;
}

.item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge.offer {
    color: var(--primary-dark);
    background: var(--primary-light);
}

.reorder-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #71827C;
    font-size: 11px;
    font-weight: 700;
}

.reorder-signal i {
    position: relative;
    display: block;
    width: 42px;
    height: 5px;
    overflow: hidden;
    border-radius: 5px;
    background: #E2E7E4;
}

.reorder-signal i::before {
    content: '';
    position: absolute;
    inset: 0 35% 0 0;
    border-radius: inherit;
    background: var(--veg-green);
}

.item-price-stack {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 10px;
}

.item-price-stack del {
    color: #8B9994;
    font-size: 12px;
    font-weight: 650;
}

.item-price-stack strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.item-desc {
    margin: 9px 0 0;
    color: #6E7E78;
    font-size: 12px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
}

.item-desc button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 800;
}

.menu-card-right {
    position: relative;
    width: 126px;
    gap: 0;
}

.food-image {
    width: 126px;
    height: 118px;
    border-radius: 17px;
    border: 1px solid #EDF1EF;
    background: var(--cream);
    box-shadow: 0 6px 18px rgba(16, 38, 32, 0.08);
}

.card-action {
    position: relative;
    z-index: 2;
    width: 104px;
    min-height: 42px;
    margin-top: -20px;
}

.add-btn,
.qty-control {
    min-height: 42px;
    border-radius: 13px;
    box-shadow: 0 6px 14px rgba(7, 94, 69, 0.16);
}

.add-btn {
    height: 46px;
    border-width: 1.5px;
    background: #FFFDF7;
    font-size: 14px;
}

.customisable {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 9px;
    text-align: center;
}

.menu-fab {
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 280;
    transform: translateX(86px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 17px;
    background: #102620;
    color: var(--white);
    box-shadow: 0 12px 30px rgba(16, 38, 32, 0.24);
    font-size: 14px;
    font-weight: 800;
    transition: bottom 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.menu-fab svg {
    width: 18px;
    height: 18px;
}

.menu-fab.with-cart {
    bottom: calc(88px + env(safe-area-inset-bottom));
}

.menu-fab.is-open {
    background: var(--primary);
}

body.overlay-open .menu-fab,
body.overlay-open .cart-bar {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.menu-navigator-overlay {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    background: rgba(8, 28, 22, 0.52);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.menu-navigator {
    width: calc(100% - 28px);
    max-width: 446px;
    max-height: min(70vh, 620px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: #102620;
    color: var(--white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    animation: menu-pop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menu-pop {
    from { transform: translateY(22px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.menu-navigator-handle {
    width: 42px;
    height: 4px;
    margin: 9px auto 4px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.3);
}

.menu-navigator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px 10px;
}

.menu-navigator-eyebrow {
    color: #8FD7C1;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-navigator-header h2 {
    margin: 3px 0 0;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.menu-navigator-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 24px;
}

.menu-navigator-body {
    max-height: calc(min(70vh, 620px) - 128px);
    overflow-y: auto;
    padding: 4px 10px 12px;
}

.menu-navigator-row {
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #EAF5F1;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.menu-navigator-row + .menu-navigator-row {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.menu-navigator-row strong {
    color: #A7B9B2;
    font-size: 12px;
}

.menu-navigator-row.featured,
.menu-navigator-row.active {
    background: rgba(27, 173, 126, 0.14);
    color: #74E1BE;
}

.menu-navigator-row.featured strong,
.menu-navigator-row.active strong {
    color: #74E1BE;
}

.menu-navigator-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #91A9A0;
    font-size: 10px;
    font-weight: 700;
}

.menu-navigator-brand strong {
    color: #74E1BE;
}

.cart-bar {
    z-index: 200;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--primary-dark);
    border: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(7, 94, 69, 0.22);
}

.cart-bar-left,
.cart-bar-left small {
    color: var(--white);
}

.cart-bag-icon {
    background: rgba(255, 255, 255, 0.15);
}

.cart-bar-right {
    background: var(--cream);
    color: var(--primary-dark);
}

.dineqube-footer {
    margin: 10px 16px 35px;
    border-radius: 18px;
    background: linear-gradient(180deg, #FBFDFB, #F0F7F4);
}

.success-screen {
    background:
        radial-gradient(circle at 50% 25%, rgba(15, 123, 90, 0.12), transparent 34%),
        var(--cream);
}

.success-content {
    border: 1px solid var(--border);
}

.success-live-status {
    display: inline-block;
    margin: 0 0 18px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
}

.success-live-status[data-status='READY_TO_SERVE'],
.success-live-status[data-status='SERVED'] {
    background: #FFF0CB;
    color: #72500A;
}

@media (max-width: 360px) {
    .restaurant-hero {
        padding-inline: 14px;
    }

    .hero-powered,
    .hero-search-btn span {
        display: none;
    }

    .hero-search-btn {
        width: 40px;
        justify-content: center;
        padding: 0;
    }

    .hero-restaurant-name {
        font-size: 22px;
    }

    .compact-logo {
        display: none;
    }

    .compact-table-badge {
        min-width: 38px;
        padding-inline: 6px;
    }

    .menu-card {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 11px;
    }

    .menu-card-right,
    .food-image {
        width: 112px;
    }

    .food-image {
        height: 108px;
    }

    .card-action {
        width: 94px;
    }

    .menu-fab {
        transform: translateX(64px);
    }
}

/* =====================================================
   Mobile-safe ordering sheets and demo testing
   ===================================================== */

.item-detail-sheet {
    height: min(92dvh, 760px);
    max-height: 92dvh;
    overflow: hidden;
    padding-bottom: 0;
}

#itemSheetContent {
    display: flex;
    flex: 1;
    min-height: 0;
    height: 100%;
    flex-direction: column;
}

.item-detail-sheet > #itemSheetContent > .sheet-handle,
.item-detail-sheet > #itemSheetContent > .sheet-header {
    flex-shrink: 0;
}

.item-detail-body {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    gap: 0;
}

.item-detail-scroll {
    display: grid;
    gap: 18px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 2px 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.item-instruction label > span {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 650;
}

.item-detail-footer {
    position: relative;
    z-index: 3;
    display: grid;
    flex-shrink: 0;
    gap: 10px;
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 24px rgba(16, 38, 32, 0.08);
}

.item-detail-footer .item-qty-row {
    min-height: 44px;
}

.item-detail-footer .qty-control--lg {
    width: min(68%, 290px);
}

.item-detail-footer .btn-primary {
    min-height: 54px;
    box-shadow: 0 8px 20px rgba(7, 94, 69, 0.2);
}

.checkout-sheet {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checkout-sheet > .sheet-handle,
.checkout-sheet > .sheet-header {
    flex-shrink: 0;
}

#cartSheetBody {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.cart-sheet-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 2px 18px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.checkout-footer {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 1.15fr);
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin: 0 -16px calc(-28px - env(safe-area-inset-bottom));
    padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -10px 24px rgba(16, 38, 32, 0.09);
}

.checkout-footer-summary {
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.checkout-footer .place-order-btn {
    min-height: 52px;
    border: 0;
    background: var(--cream);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.demo-tracking-controls {
    margin: 18px 0 6px;
    padding: 12px;
    border: 1px dashed rgba(15, 123, 90, 0.35);
    border-radius: 16px;
    background: #F7FBF9;
}

.demo-tracking-controls summary {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.demo-tracking-controls p {
    margin: 8px 0 10px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 650;
}

.demo-tracking-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.demo-tracking-actions button {
    min-height: 38px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 380px) {
    .item-detail-sheet {
        height: 94dvh;
        max-height: 94dvh;
    }

    .item-detail-hero {
        grid-template-columns: 96px 1fr;
        gap: 12px;
    }

    .item-detail-hero .food-image {
        width: 96px;
        height: 96px;
    }

    .item-detail-info h3 {
        font-size: 18px;
    }

    .item-detail-info p {
        font-size: 12px;
    }

    .checkout-footer {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .checkout-footer-summary {
        text-align: center;
    }
}

/* =====================================================
   Reduced Motion
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .particle,
    .success-check,
    .timeline-step.active .timeline-icon,
    .status-icon-dot.status-ready {
        animation: none !important;
    }
}

/* V5.2: restaurant logo uses the existing V2.2 logo surfaces without changing the layout. */
.rest-logo img,.compact-logo img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}

/* =====================================================
   DineQube V5.3 Guest Experience
   ===================================================== */
.order-progress-bar{margin:12px -18px -18px;padding:12px 18px 14px;border-top:1px solid #E3EEE8;background:#F7FCF9}
.progress-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.progress-title b{font-size:12px;color:#102D24}.progress-title span{font-size:9px;color:#6B8077;font-weight:750}
.progress-line{display:flex;align-items:flex-start}
.progress-line>em{height:2px;background:#D8E7DF;flex:1;margin-top:10px;min-width:8px}.progress-line>em:has(+.done){background:#0F7B5A}
.progress-step{border:0;background:transparent;padding:0;min-width:42px;max-width:62px;display:grid;justify-items:center;gap:5px;color:#7D9188}
.progress-step i{width:21px;height:21px;border-radius:50%;border:2px solid #C8DAD1;background:#fff;display:grid;place-items:center;font-style:normal;font-size:9px;font-weight:900}
.progress-step span{font-size:7.5px;line-height:1.2;text-align:center;font-weight:800}
.progress-step.done i,.progress-step.active i{border-color:#0F7B5A;background:#0F7B5A;color:#fff}.progress-step.done span,.progress-step.active span{color:#075E45}
.order-status-icon{width:auto!important;min-width:40px!important;padding:0 7px!important;gap:4px!important}.status-icon-text{font-size:7px;font-weight:850;max-width:44px;overflow:hidden;text-overflow:ellipsis}
.tracking-add-more-btn{width:100%;border:1px solid #B9DCCA;border-radius:12px;background:#F3FBF7;color:#075E45;display:flex;gap:10px;align-items:center;padding:12px;margin:10px 0;text-align:left}
.tracking-add-more-btn strong{display:block;font-size:11px}.tracking-add-more-btn small{display:block;font-size:8px;color:#6D8177;margin-top:2px}
.tracking-bill-breakdown{border:1px solid #E0EAE5;border-radius:11px;padding:10px 12px;margin:12px 0}.tracking-bill-breakdown>div{display:flex;justify-content:space-between;padding:5px 0;font-size:10px}.tracking-bill-breakdown .grand{border-top:1px solid #DCE8E2;margin-top:4px;padding-top:9px;font-size:12px}
.served-payment-card{margin:13px 0;padding:14px;border-radius:13px;background:linear-gradient(135deg,#F0FBF5,#FFF9EC);border:1px solid #CFE4D9}.served-payment-card h4{font-size:15px;margin:5px 0}.served-payment-card p{font-size:9.5px;line-height:1.5;color:#62796F}.served-payment-card .eyebrow{font-size:8px;font-weight:900;color:#0F7B5A;letter-spacing:.09em}
.payment-primary-btn{width:100%;height:43px;border:0;border-radius:10px;background:#0F7B5A;color:#fff;font-size:11px;font-weight:850}
.paid-card{display:flex;gap:10px;align-items:flex-start;background:#EAF8F0;color:#075E45;border:1px solid #BCE0CC;border-radius:14px;padding:14px;margin:12px 0;flex-wrap:wrap}.paid-card small{display:block;font-size:8.4px;margin-top:3px}.paid-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}.receipt-mini-btn{border:1px solid #A9D8BE;background:#fff;color:#075E45;border-radius:11px;padding:9px 12px;font-size:8.8px;font-weight:900;min-height:38px}.receipt-mini-btn:hover{background:#f7fffb}
.dq-center-notice,.dq-order-tour,.dq-payment-overlay{position:fixed;z-index:900;inset:0;background:rgba(12,41,35,.42);backdrop-filter:blur(3px);display:grid;place-items:center;padding:18px}
.dq-center-card,.tour-card{width:min(355px,100%);background:#fff;border-radius:18px;padding:22px;text-align:center;box-shadow:0 28px 80px rgba(0,0,0,.22)}.dq-center-icon{width:52px;height:52px;border-radius:50%;margin:0 auto 12px;background:#E8F7EF;color:#0F7B5A;display:grid;place-items:center;font-size:20px}.dq-center-card h3,.tour-card h3{font-size:20px;margin:4px 0 7px}.dq-center-card p,.tour-card p{font-size:11px;line-height:1.6;color:#657A70}.dq-center-card button{height:42px;width:100%;border:0;border-radius:10px;background:#0F7B5A;color:white;font-weight:850}
.tour-card>span{font-size:9px;font-weight:850;color:#0F7B5A}.tour-card>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.tour-card button{height:41px;border:1px solid #CFE0D7;border-radius:9px;background:#fff;color:#466158;font-weight:800}.tour-card button:last-child{background:#0F7B5A;color:#fff;border-color:#0F7B5A}
.dq-payment-overlay{place-items:end center;padding:0}.dq-payment-sheet{position:relative;width:min(500px,100%);background:#fff;border-radius:22px 22px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -20px 70px rgba(0,0,0,.2)}.pay-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border:1px solid #DCE8E2;border-radius:10px;background:#fff;font-size:20px}.dq-payment-sheet .eyebrow{font-size:8px;color:#0F7B5A;font-weight:900;letter-spacing:.1em}.dq-payment-sheet h2{font-size:21px;margin:6px 40px 15px 0}.payment-bill{background:#F7FAF8;border:1px solid #E0EAE5;border-radius:11px;padding:10px}.payment-bill div{display:flex;justify-content:space-between;padding:5px;font-size:10px}.payment-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}.payment-choice button{min-height:74px;border:1px solid #CFE0D7;border-radius:12px;background:#fff;color:#173B2E;display:flex;gap:9px;align-items:center;text-align:left;padding:11px}.payment-choice button:first-child{background:#0F7B5A;color:#fff;border-color:#0F7B5A}.payment-choice i{font-size:18px}.payment-choice b{font-size:10px}.payment-choice small{display:block;font-size:7.5px;margin-top:3px;opacity:.8}.payment-total{margin-top:12px;text-align:center;font-size:12px;font-weight:900;color:#075E45}
@media(max-width:390px){.progress-step span{font-size:6.7px}.progress-step{min-width:36px}}

.payment-note-direct,.direct-payment-warning{display:flex;gap:9px;align-items:flex-start;margin:10px 0 13px;padding:10px 11px;border:1px solid #CFE4D9;border-radius:11px;background:#F2FAF6;color:#174A39}
.payment-note-direct i{margin-top:2px;color:#0F7B5A}.payment-note-direct b,.direct-payment-warning b{display:block;font-size:9.5px}.payment-note-direct small,.direct-payment-warning span{display:block;font-size:8px;line-height:1.45;color:#647D71;margin-top:3px}
.payment-bill .grand{border-top:1px solid #DCE8E2;margin-top:4px;padding-top:8px;font-size:11px}.payment-bill.compact{margin-top:12px}
.merchant-qr-box{margin:14px auto;width:min(230px,75vw);padding:12px;border:1px solid #D7E6DE;border-radius:15px;background:#fff;text-align:center}.merchant-qr-box img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:9px}.merchant-qr-box span{display:block;font-size:8px;font-weight:800;color:#5B7468;margin-top:8px}
.upi-copy-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid #D9E7E0;border-radius:11px;background:#F8FBF9}.upi-copy-row small{display:block;font-size:7px;color:#758B80;font-weight:800}.upi-copy-row b{display:block;font-size:12px;margin-top:3px;word-break:break-all}.upi-copy-row button{height:34px;border:1px solid #BFD9CC;border-radius:8px;background:#fff;color:#075E45;font-size:9px;font-weight:850;padding:0 12px}
.open-upi-btn{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:46px;border:0;border-radius:11px;background:#0F7B5A;color:#fff;text-decoration:none;font-size:11px;font-weight:900;margin-top:12px;cursor:pointer}.payment-secondary-btn{width:100%;height:43px;border:1px solid #CFE0D7;border-radius:10px;background:#fff;color:#294D40;font-size:10px;font-weight:850;margin-top:8px}.external-pay-copy{font-size:8.5px;line-height:1.5;color:#6A8075;text-align:center;margin:10px 4px 0}

/* =====================================================
   V5.5 Checkout: guest details + WhatsApp opt-in; payment after Served
   ===================================================== */
.field-hint{display:block;margin-top:5px;font-size:10px;line-height:1.4;color:#71847B}
.bill-preference-card{margin-top:14px;padding:14px;border:1px solid #D8E7DF;border-radius:14px;background:#FAFCFB}
.bill-preference-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.bill-preference-head h4{margin:4px 0 0;font-size:14px;color:#102D24}
.bill-preference-head>i{width:34px;height:34px;border-radius:10px;background:#E8F6F0;color:#0F7B5A;display:grid;place-items:center}
.checkout-eyebrow{font-size:8px;font-weight:900;letter-spacing:.10em;color:#0F7B5A}
.bill-preference-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.bill-choice{min-height:72px;border:1px solid #D5E5DD;border-radius:12px;background:#fff;padding:10px;display:flex;align-items:center;gap:9px;cursor:pointer;transition:.18s}
.bill-choice.selected{border-color:#0F7B5A;background:#EFF9F4;box-shadow:0 0 0 2px rgba(15,123,90,.07)}
.bill-choice input{position:absolute;opacity:0;pointer-events:none}
.bill-choice-icon{width:36px;height:36px;border-radius:10px;background:#F3F7F5;color:#0F7B5A;display:grid;place-items:center;flex:0 0 auto}
.bill-choice.selected .bill-choice-icon{background:#0F7B5A;color:#fff}
.bill-choice b{display:block;font-size:11px;color:#16372C}.bill-choice small{display:block;font-size:8.5px;line-height:1.35;color:#71847B;margin-top:3px}
.bill-preference-card>p{font-size:8.5px;line-height:1.5;color:#6E8178;margin:9px 0 0}
.whatsapp-update-box{margin-top:10px;padding:10px 12px;border:1px solid #BFE0CD;border-radius:14px;background:#F2FAF6;display:flex;align-items:center;gap:10px;cursor:pointer;min-height:48px;width:100%;box-shadow:0 1px 0 rgba(15,123,90,.03)}
.whatsapp-update-box>input{appearance:none;-webkit-appearance:none;margin:0;width:20px;height:20px;flex:0 0 20px;border:2px solid #15915f;border-radius:6px;background:#fff;display:grid;place-items:center;cursor:pointer;transition:.16s ease}
.whatsapp-update-box>input:checked{background:#15915f;border-color:#15915f}
.whatsapp-update-box>input:checked::after{content:'✓';color:#fff;font-size:13px;font-weight:900;line-height:1;transform:translateY(-.5px)}
.whatsapp-update-box>input:focus-visible{outline:3px solid rgba(15,123,90,.18);outline-offset:2px}
.whatsapp-check{width:28px;height:28px;border-radius:50%;background:#25D366;color:#fff;display:grid;place-items:center;flex:0 0 28px;box-shadow:0 3px 10px rgba(31,175,90,.18)}
.whatsapp-check svg{display:block;width:15px;height:15px;fill:currentColor}
.whatsapp-update-copy{min-width:0;display:flex;flex-direction:column;gap:1px;line-height:1.2}
.whatsapp-update-box b{display:block;font-size:11.5px;line-height:1.25;color:#113A2C;font-weight:850;white-space:normal}
.whatsapp-update-box small{display:block;font-size:9px;line-height:1.3;color:#6B837A}
@media(max-width:480px){.whatsapp-update-box{padding:9px 10px;gap:8px;border-radius:12px;min-height:46px}.whatsapp-update-box>input{width:19px;height:19px;flex-basis:19px}.whatsapp-update-box>input:checked::after{font-size:12px}.whatsapp-check{width:26px;height:26px;flex-basis:26px}.whatsapp-check svg{width:14px;height:14px}.whatsapp-update-box b{font-size:10.8px;line-height:1.2}.whatsapp-update-box small{font-size:8.6px}}
@media(max-width:390px){.bill-preference-options{grid-template-columns:1fr}}

/* V5.5 customer payment + recovery UX */
.payment-choice.vertical{grid-template-columns:1fr!important}
.upi-pay-button{background:#fff!important;color:#15251f!important;border:2px solid #6f3cc3!important;box-shadow:0 8px 22px rgba(111,60,195,.09)}
.upi-logo-mark{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:42px!important;height:30px!important;border-radius:7px!important;background:#fff!important;border:1px solid #e7e2ef!important;font-family:Arial,sans-serif!important;font-weight:900!important;font-style:italic!important;overflow:hidden}
.upi-logo-mark i{font-style:italic!important;color:#f58220!important;font-size:17px!important}.upi-logo-mark b{color:#6f3cc3!important;font-size:16px!important;letter-spacing:-1px!important}.upi-logo-mark.large{min-width:64px!important;height:42px!important}.upi-logo-mark.large i,.upi-logo-mark.large b{font-size:22px!important}
.original-upi{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;background:linear-gradient(90deg,#6236b8,#8147ca)!important;color:#fff!important;border-radius:13px!important;min-height:56px!important;text-decoration:none!important;font-size:11px!important;font-weight:900!important;padding:10px 14px!important;margin-top:14px!important}.original-upi .upi-logo-mark{border:0!important}
.upi-merchant-card{display:flex;align-items:center;gap:12px;background:#fbf9ff;border:1px solid #e3d9f3;border-radius:13px;padding:12px;margin:10px 0}.upi-merchant-card small{display:block;font-size:7.5px;letter-spacing:.08em;color:#84749b}.upi-merchant-card b{display:block;font-size:11px;margin-top:3px;word-break:break-all}
.upi-return-box{background:#fff9ec;border:1px solid #f1d9a7;border-radius:13px;padding:12px;margin-top:12px}.upi-return-box>b,.upi-return-box>span{display:block}.upi-return-box>b{font-size:11px}.upi-return-box>span{font-size:8.5px;color:#776943;margin:3px 0 9px}.attention{animation:dqPulse 1.1s ease-in-out infinite}@keyframes dqPulse{50%{box-shadow:0 0 0 5px rgba(15,123,90,.12)}}
.upi-unavailable{padding:12px;border:1px solid #e4e8e6;border-radius:12px;background:#f8faf9}.upi-unavailable b{display:block;font-size:10px}.upi-unavailable small{font-size:8px;color:#71827a}
.table-bill-choice{background:#fff!important;color:#173B2E!important}
.tracking-item-row span:first-child{display:flex;flex-direction:column;gap:2px}.tracking-item-row small{font-size:7.6px;color:#75887f;font-weight:600}
.addon-batch h5{display:flex;justify-content:space-between;gap:8px}.addon-batch h5 span{font-size:7px;text-transform:uppercase;color:#0f7b5a}
.status-alert b,.status-alert span,.status-alert small{display:block}.status-alert small{font-weight:800;margin:4px 0}.status-alert span{margin-top:3px}
.rejected-actions{display:grid;gap:8px;margin:12px 0}
.feedback-card textarea{width:100%;min-height:70px;border:1px solid #d6e4dd;border-radius:10px;padding:9px;margin:10px 0;resize:vertical}.star-rating{display:flex;justify-content:center;gap:6px;margin:12px 0}.star-rating button{border:0;background:none;color:#f4a51c;font-size:30px;padding:2px;cursor:pointer}
.payment-primary-btn .upi-mini{display:inline-block;background:#fff;color:#6f3cc3;border-radius:5px;padding:2px 5px;margin-right:5px;font-weight:900}
@media(max-width:480px){.dq-payment-sheet{max-height:92dvh;overflow:auto}.upi-pay-button{min-height:76px!important}}

.modifier-group.modifier-missing{border-color:#D54450!important;background:#FFF5F6!important;box-shadow:0 0 0 3px rgba(213,68,80,.08)!important}

/* ===== DineQube V5.5.6 · public dish ratings + payment confirmation ===== */
.dish-rating{display:inline-flex;align-items:center;gap:6px;margin:5px 0 1px;padding:4px 7px;border-radius:999px;background:#FFF7DE;color:#705400;font-size:10px;font-weight:800}
.dish-rating b{color:#8A6500}.dish-rating small{font-size:9px;color:#7D6D3D;font-weight:700}
.customer-payment-confirm-card{width:min(390px,100%)}
.customer-payment-confirm-card .payment-confirm-amount{font-size:24px;font-weight:900;color:#0F7B5A;margin:9px 0 5px}
.customer-payment-confirm-card .payment-confirm-actions{display:grid;gap:8px;margin-top:14px}
.customer-payment-confirm-card .payment-confirm-actions button.secondary{background:#F5F8F6;color:#415D52;border:1px solid #D6E4DE}
.customer-payment-confirm-card .payment-waiting-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#F3ECFF;color:#6B3FAD;font-size:10px;font-weight:850;margin-top:8px}
.feedback-card{width:min(430px,100%);max-height:86dvh;overflow:auto;text-align:left!important}
.feedback-card h3{text-align:center}.feedback-card>p{text-align:center}
.feedback-items{display:grid;gap:10px;margin:14px 0}.feedback-item{border:1px solid #E2ECE7;border-radius:12px;padding:11px;background:#FAFCFB}.feedback-item b{display:block;font-size:12px;color:#19382E}.feedback-item small{display:block;font-size:9px;color:#74867E;margin-top:2px}.feedback-stars{display:flex;gap:4px;margin-top:8px}.feedback-stars button{width:34px!important;height:34px!important;border-radius:8px!important;background:#fff!important;border:1px solid #E4D7A9!important;color:#D79B00!important;font-size:19px!important;padding:0!important}.feedback-stars button.on{background:#FFF4C9!important}
.feedback-overall{border-top:1px solid #E6EEE9;padding-top:12px;margin-top:10px}.feedback-overall label{display:block;font-size:10px;font-weight:850;color:#304D42;margin-bottom:6px}.feedback-card textarea{width:100%;min-height:78px;border:1px solid #D9E6E0;border-radius:10px;padding:10px;font:inherit;font-size:11px;resize:vertical}.feedback-submit-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.feedback-submit-row button.secondary{background:#F5F8F6!important;color:#415D52!important;border:1px solid #D6E4DE!important}
@media(max-width:480px){.feedback-card{padding:16px}.feedback-stars button{width:31px!important;height:31px!important}}

/* V5.5.8 master brand logo in guest footer */
.dineqube-footer-logo{display:block;width:152px;max-width:70%;height:auto;margin:5px auto 2px;object-fit:contain}.dineqube-footer{background:linear-gradient(145deg,#fff,#F1F8F5)!important}


/* ===== DineQube V5.7.1 · staged offline payment + fresh-session thank-you ===== */
.payment-instruction-card .eyebrow{display:block;margin-top:8px;font-size:8px;font-weight:900;letter-spacing:.10em;color:#0F7B5A}.payment-instruction-state{display:flex;align-items:center;gap:10px;margin:13px 0 2px;padding:11px 12px;border-radius:12px;background:#F1F8F5;border:1px solid #D8E8E0;text-align:left}.payment-instruction-state>i{width:34px;height:34px;border-radius:10px;background:#E1F4EB;color:#0F7B5A;display:grid;place-items:center;flex:0 0 auto}.payment-instruction-state b,.payment-instruction-state small{display:block}.payment-instruction-state b{font-size:11px;color:#17382D}.payment-instruction-state small{font-size:8.5px;line-height:1.45;color:#6A8075;margin-top:2px}.paid-thankyou-card{position:relative;overflow:hidden;width:min(410px,100%);padding-top:28px}.paid-thankyou-card h3{font-size:21px;line-height:1.25}.paid-thankyou-card p{font-size:11px;line-height:1.65}.paid-thankyou-brand{margin:17px auto 13px;padding:12px;border-radius:14px;background:#F5FAF7;border:1px solid #DDEBE4}.paid-thankyou-brand img{display:block;width:150px;max-width:70%;height:auto;margin:0 auto}.paid-thankyou-brand small{display:block;margin-top:7px;color:#5E776C;font-size:8px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.paid-confetti{position:absolute;inset:0;pointer-events:none}.paid-confetti i{position:absolute;width:8px;height:15px;border-radius:3px;background:#0F7B5A;animation:dqPaidConfetti 1.35s ease-out both}.paid-confetti i:nth-child(1){left:12%;top:-16px;transform:rotate(18deg);animation-delay:.05s}.paid-confetti i:nth-child(2){left:27%;top:-18px;background:#E0A21B;animation-delay:.13s}.paid-confetti i:nth-child(3){left:45%;top:-20px;background:#6B4BC3;animation-delay:.02s}.paid-confetti i:nth-child(4){left:61%;top:-14px;background:#1D9C73;animation-delay:.2s}.paid-confetti i:nth-child(5){left:78%;top:-19px;background:#EE765D;animation-delay:.08s}.paid-confetti i:nth-child(6){left:90%;top:-15px;background:#E0A21B;animation-delay:.16s}@keyframes dqPaidConfetti{0%{opacity:0;transform:translateY(0) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translateY(210px) rotate(410deg)}}

/* DineQube V5.11 — actual customer renderer used inside AI Menu Studio */
.ai-draft-preview-banner{position:sticky;top:0;z-index:120;display:flex;align-items:center;gap:8px;padding:8px 12px;background:#063f30;color:#fff;border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 4px 14px rgba(6,63,48,.12)}
.ai-draft-preview-banner>i{width:8px;height:8px;border-radius:50%;background:#65ddb7;box-shadow:0 0 0 4px rgba(101,221,183,.13)}.ai-draft-preview-banner span{display:flex;align-items:baseline;gap:7px}.ai-draft-preview-banner b{font-size:9px}.ai-draft-preview-banner small{font-size:7.5px;color:#bde2d5}
.preview-only-label{display:inline-flex;align-items:center;justify-content:center;min-width:68px;height:31px;border-radius:8px;background:#e9f7f2;border:1px solid #cde9df;color:#086b50;font-size:8px;font-weight:900;letter-spacing:.07em}
.veg-indicator.neutral{border-color:#91a49d;background:#fff}.veg-indicator.neutral .veg-dot{background:#91a49d}


/* ===== DineQube V5.12.26 · quick return to menu start ===== */
.optional-label{font-size:.78em;font-weight:700;color:#778b82;margin-left:3px}
.menu-top-button{
  position:fixed;left:50%;bottom:calc(116px + env(safe-area-inset-bottom));
  width:48px;height:48px;border:1px solid rgba(255,255,255,.18);border-radius:16px;
  background:#0b211b;color:#fff;z-index:520;display:grid;place-items:center;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translate(-50%,14px) scale(.92);
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
  -webkit-tap-highlight-color:transparent;cursor:pointer
}
.menu-top-button span{font-size:24px;line-height:1;font-weight:800;transform:translateY(-1px)}
.menu-top-button.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0) scale(1)}
.menu-top-button:active{transform:translate(-50%,1px) scale(.96)}
body.overlay-open .menu-top-button{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
@media(max-width:420px){.menu-top-button{bottom:calc(110px + env(safe-area-inset-bottom));width:46px;height:46px;border-radius:15px}}


/* V5.14.13 — Table QR dine-in payment selector. Takeaway unaffected. */
.dq-dinein-pay-choice{z-index:980!important;background:rgba(8,31,26,.56)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;padding:18px!important}
.dq-dinein-pay-card{width:min(318px,calc(100vw - 36px))!important;background:#fff!important;border:1px solid rgba(15,123,90,.14)!important;border-radius:24px!important;box-shadow:0 24px 70px rgba(3,28,21,.28)!important;padding:18px!important;display:grid!important;gap:12px!important}
.dq-dinein-table-label{width:100%!important;margin:0!important;padding:14px 16px!important;border-radius:15px!important;background:#eef8f4!important;border:1px solid #d8ebe3!important;color:#123b2f!important;font-size:16px!important;font-weight:850!important;text-align:center!important;letter-spacing:.01em!important;box-shadow:none!important}
.dq-dinein-pay-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:0!important}
.dq-dinein-pay-actions button{min-height:62px!important;width:100%!important;padding:0 16px!important;margin:0!important;border-radius:16px!important;display:grid!important;place-items:center!important;font:inherit!important;cursor:pointer!important;box-shadow:none!important}
.dq-dinein-pay-actions button b{font-size:16px!important;font-weight:850!important;line-height:1!important}
.dq-pay-now-choice{border:1px solid #0F7B5A!important;background:#0F7B5A!important;color:#fff!important;box-shadow:0 12px 28px rgba(15,123,90,.18)!important}
.dq-pay-now-choice:disabled{opacity:.5!important;cursor:not-allowed!important}
.dq-pay-later-choice{border:1px solid #d6e5df!important;background:#fff!important;color:#173b30!important}
@media(max-width:480px){.dq-dinein-pay-choice{padding:14px!important}.dq-dinein-pay-card{width:min(304px,calc(100vw - 28px))!important;padding:16px!important;border-radius:22px!important}.dq-dinein-table-label{font-size:15px!important;padding:13px 14px!important}.dq-dinein-pay-actions button{min-height:60px!important;border-radius:15px!important}}

/* V5.14.14 · Multi-offer customer menu (Table QR + Takeaway) */
.restaurant-offer{
    margin-top:16px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    overflow:visible;
}
.restaurant-offer::before{display:none!important;content:none!important}
.restaurant-offers-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 8px;color:var(--text)}
.restaurant-offers-head b{font-size:13px;font-weight:900}
.restaurant-offers-head span{font-size:10px;font-weight:800;color:var(--primary-dark);background:#EAF7F1;border:1px solid #CBE8DB;border-radius:999px;padding:5px 8px}
.restaurant-offers-list{display:grid;gap:9px}
.restaurant-offer-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid #E7DFC8;border-radius:15px;background:var(--cream);color:var(--text);transition:.18s ease}
.restaurant-offer-card.eligible{border-color:#BFDCCF;background:#F3FBF7}
.restaurant-offer-card.selected{border-color:var(--primary);box-shadow:0 0 0 1px rgba(15,123,90,.08)}
.restaurant-offer-card .restaurant-offer-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:var(--primary);color:#fff;font-size:12px;font-weight:900}
.restaurant-offer-card .restaurant-offer-copy{min-width:0}
.restaurant-offer-card .restaurant-offer-copy strong{display:block;font-size:12.5px;font-weight:850;line-height:1.25}
.restaurant-offer-card .restaurant-offer-copy small{display:block;margin-top:3px;color:var(--text-soft);font-size:10.5px;font-weight:600;line-height:1.35}
.restaurant-offer-action{display:flex;align-items:center;justify-content:flex-end}
.offer-apply-btn{border:1px solid var(--primary);border-radius:10px;background:#fff;color:var(--primary-dark);font-size:10.5px;font-weight:850;padding:8px 10px;cursor:pointer;white-space:nowrap}
.offer-apply-btn.selected{background:var(--primary);color:#fff}
.offer-auto,.offer-unlock{display:inline-flex;align-items:center;border-radius:999px;padding:6px 8px;font-size:9.5px;font-weight:850;white-space:nowrap}
.offer-auto{background:#E2F5EC;color:#0B6C50;border:1px solid #C3E7D8}
.offer-auto.selected{background:var(--primary);color:#fff;border-color:var(--primary)}
.offer-unlock{background:#F5F1E7;color:#776B4E;border:1px solid #E8DFC7}
@media(max-width:560px){
  .restaurant-offer-card{grid-template-columns:32px minmax(0,1fr);padding:10px}
  .restaurant-offer-card .restaurant-offer-icon{width:30px;height:30px;border-radius:9px}
  .restaurant-offer-action{grid-column:2;justify-content:flex-start;margin-top:2px}
  .offer-apply-btn,.offer-auto,.offer-unlock{font-size:9.5px}
}

/* V5.16.6 — compact single-row offer carousel. */
.restaurant-offers-list{display:flex!important;flex-wrap:nowrap!important;gap:10px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:2px 2px 9px;scrollbar-width:none;overscroll-behavior-inline:contain}
.restaurant-offers-list::-webkit-scrollbar{display:none}
.restaurant-offer-card{flex:0 0 284px;min-width:0;min-height:74px;scroll-snap-align:start;scroll-snap-stop:always;grid-template-columns:34px minmax(0,1fr)!important;align-content:center;box-shadow:0 6px 18px rgba(35,57,47,.05)}
.restaurant-offer-card .restaurant-offer-action{grid-column:2!important;justify-content:flex-start!important;margin-top:2px!important;min-width:0}
.restaurant-offer-card .offer-auto,.restaurant-offer-card .offer-unlock,.restaurant-offer-card .offer-apply-btn{max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media(max-width:560px){.restaurant-offers-list{margin-right:-18px;padding-right:36px}.restaurant-offer-card{flex-basis:min(270px,calc(100vw - 92px));padding:10px 11px!important;border-radius:14px}.restaurant-offers-head{margin-bottom:7px}}


/* V5.14.16 · Cart-level confirmation for eligible restaurant offers */
.cart-applied-offer{margin:14px 0 16px;border:1px solid #9fd1bd;background:linear-gradient(145deg,#effaf5,#f8fcfa);border-radius:18px;padding:14px 15px;color:#123b2f;box-shadow:0 8px 24px rgba(15,123,90,.06)}
.cart-applied-offer-head{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px}.cart-offer-check{width:34px;height:34px;border-radius:11px;background:#0F7B5A;color:#fff;display:grid;place-items:center;font-size:18px;font-weight:900}.cart-applied-offer-head>div{min-width:0}.cart-applied-offer-head small{display:block;font-size:8px;font-weight:900;letter-spacing:.11em;color:#298167;margin-bottom:2px}.cart-applied-offer-head b{display:block;font-size:13px;line-height:1.3}.cart-applied-offer-head em{font-style:normal;font-size:9px;font-weight:850;color:#087052;background:#dff4ea;border-radius:999px;padding:6px 8px;white-space:nowrap}.cart-offer-free-line,.cart-offer-saving-line{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #dcebe5;font-size:11.5px}.cart-offer-free-line span,.cart-offer-saving-line span{min-width:0}.cart-offer-free-line span b{display:inline-flex;margin-right:6px;padding:4px 6px;border-radius:7px;background:#0F7B5A;color:#fff;font-size:8px;letter-spacing:.08em}.cart-offer-free-line strong,.cart-offer-saving-line strong{color:#0F7B5A;white-space:nowrap}.cart-totals .offer-total-label{color:#0F7B5A;font-weight:800}
@media(max-width:480px){.cart-applied-offer{padding:12px;border-radius:16px}.cart-applied-offer-head{grid-template-columns:31px minmax(0,1fr);gap:9px}.cart-offer-check{width:31px;height:31px;border-radius:10px}.cart-applied-offer-head em{grid-column:2;justify-self:start;margin-top:2px}.cart-offer-free-line,.cart-offer-saving-line{font-size:10.5px}}



.success-secondary-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:14px}
.success-chip-btn{border:1px solid #B7D8C6;background:#fff;color:#0B4734;border-radius:999px;padding:10px 16px;font-size:11px;font-weight:900;min-width:138px;box-shadow:0 8px 18px rgba(12,41,35,.06)}
.success-chip-btn.primary{background:#0F7B5A;color:#fff;border-color:#0F7B5A}
.feedback-social-wrap{margin-top:14px}
.feedback-social-wrap label{display:block;font-size:12px;font-weight:800;color:#183F32;margin-bottom:8px}
.feedback-social-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.feedback-social-btn{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-size:11px;font-weight:900;line-height:1.3;border-radius:12px;border:1px solid #CFE4D9;padding:11px 10px;background:#F6FBF8;color:#113A2C}
.feedback-social-btn.primary{background:#0F7B5A;color:#fff;border-color:#0F7B5A}
@media(max-width:480px){.paid-actions{width:100%;margin-left:0}.receipt-mini-btn{flex:1 1 0}.success-secondary-actions{gap:8px}.success-chip-btn{flex:1 1 0;min-width:0}.feedback-social-links{grid-template-columns:1fr}}

/* V5.16.7 — payment actions + branded social CTAs (mobile-first) */
.paid-actions{
  width:100%;
  margin:8px 0 0!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px!important;
}
.receipt-mini-btn{
  width:100%;
  min-width:0;
  min-height:46px;
  padding:11px 12px;
  border:1px solid #07543F!important;
  border-radius:13px;
  background:#07543F!important;
  color:#fff!important;
  font-size:10.5px;
  font-weight:900;
  line-height:1.15;
  text-align:center;
  box-shadow:0 8px 18px rgba(7,84,63,.18);
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.receipt-mini-btn:hover{background:#064936!important;box-shadow:0 10px 22px rgba(7,84,63,.22)}
.receipt-mini-btn:active{transform:translateY(1px) scale(.985);box-shadow:0 5px 12px rgba(7,84,63,.16)}
.receipt-mini-btn:focus-visible{outline:3px solid rgba(15,123,90,.22);outline-offset:2px}

.success-secondary-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px!important;
  width:100%;
  margin-top:14px;
}
.success-chip-btn,
.success-chip-btn.primary{
  width:100%;
  min-width:0!important;
  min-height:46px;
  padding:11px 12px;
  border:1px solid #07543F!important;
  border-radius:13px!important;
  background:#07543F!important;
  color:#fff!important;
  font-size:10.5px;
  font-weight:900;
  line-height:1.15;
  box-shadow:0 8px 18px rgba(7,84,63,.18);
}
.success-chip-btn:hover,.success-chip-btn.primary:hover{background:#064936!important}
.success-chip-btn:active,.success-chip-btn.primary:active{transform:translateY(1px) scale(.985)}

.feedback-social-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px!important;
}
.feedback-social-btn{
  min-width:0;
  min-height:50px;
  padding:11px 12px!important;
  border-radius:13px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px;
  text-align:center;
  text-decoration:none!important;
  font-size:10.5px!important;
  font-weight:900!important;
  line-height:1.2;
  box-sizing:border-box;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.feedback-social-btn .feedback-brand-icon{
  flex:0 0 auto;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
}
.feedback-social-btn .feedback-brand-icon svg{display:block;width:100%;height:100%}
.feedback-social-btn.google-brand{
  background:#fff!important;
  color:#202124!important;
  border:1px solid #DADCE0!important;
  box-shadow:0 5px 14px rgba(60,64,67,.14);
}
.feedback-social-btn.google-brand:hover{background:#F8FAFD!important;box-shadow:0 7px 18px rgba(60,64,67,.18)}
.feedback-social-btn.instagram-brand{
  color:#fff!important;
  border:1px solid transparent!important;
  background:linear-gradient(135deg,#833AB4 0%,#C13584 34%,#E1306C 56%,#F56040 76%,#FCAF45 100%)!important;
  box-shadow:0 7px 18px rgba(193,53,132,.24);
}
.feedback-social-btn.instagram-brand .instagram-glyph{color:#fff}
.feedback-social-btn.instagram-brand:hover{filter:saturate(1.08) brightness(1.02)}
.feedback-social-btn.google-brand:active,.feedback-social-btn.instagram-brand:active{transform:translateY(1px) scale(.985)}
.feedback-social-btn.google-brand:focus-visible,.feedback-social-btn.instagram-brand:focus-visible{outline:3px solid rgba(15,123,90,.20);outline-offset:2px}

@media(max-width:360px){
  .paid-actions,.success-secondary-actions,.feedback-social-links{grid-template-columns:1fr!important;gap:9px!important}
}

/* V5.31.25 — completed-order recall + premium responsive tracking payment actions */
.paid-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
  align-items:stretch!important;
  padding:15px!important;
  border-radius:16px!important;
  background:#EAF8F0!important;
  border:1px solid #BCE0CC!important;
  color:#075E45!important;
}
.paid-card-copy{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
.paid-card-copy>i{
  flex:0 0 30px;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#0F7B5A;
  color:#fff;
  font-size:14px;
  margin-top:1px;
}
.paid-card-copy>div{min-width:0;flex:1 1 auto}
.paid-card-copy strong{
  display:block;
  font-size:17px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:-.02em;
}
.paid-card-copy small{
  display:block;
  margin-top:4px!important;
  font-size:10.5px!important;
  line-height:1.45;
  font-weight:650;
  color:#477365;
}
.paid-card>.paid-actions{
  width:100%!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
.paid-card>.paid-actions .receipt-mini-btn{
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:11px 10px!important;
  border:1px solid #07543F!important;
  border-radius:13px!important;
  background:#07543F!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-align:center!important;
  white-space:normal!important;
  box-shadow:0 7px 16px rgba(7,84,63,.18)!important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.paid-card>.paid-actions .receipt-mini-btn i{font-size:12px;flex:0 0 auto}
.paid-card>.paid-actions .receipt-mini-btn span{min-width:0}
.paid-card>.paid-actions .receipt-mini-btn:hover{background:#064936!important;box-shadow:0 9px 20px rgba(7,84,63,.22)!important}
.paid-card>.paid-actions .receipt-mini-btn:active{transform:translateY(1px) scale(.985)}
.paid-card>.paid-actions .receipt-mini-btn:focus-visible{outline:3px solid rgba(15,123,90,.22);outline-offset:2px}

@media(max-width:340px){
  .paid-card>.paid-actions{grid-template-columns:1fr!important;gap:9px!important}
}

/* ==========================================================
   V5.32.2 — RESTAURANT PREMIUM CART + UPSELL + WHATSAPP + TRACKING
   Mobile-first parity pass using the stable Hotel QR component language.
   ========================================================== */
.cart-items{gap:8px!important;margin-bottom:12px!important}
.cart-item.cart-item--compact{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"info price" "info actions"!important;
  align-items:center!important;
  gap:5px 10px!important;
  padding:10px 11px!important;
  min-height:66px!important;
  border-radius:14px!important;
  border:1px solid #DCE8E2!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(15,66,51,.035)!important;
}
.cart-item--compact .cart-item-info{grid-area:info!important;min-width:0!important}
.cart-item--compact .cart-item-name{margin:0!important;font-size:12px!important;line-height:1.25!important;font-weight:900!important;color:#173E34!important;white-space:normal!important;overflow-wrap:anywhere!important}
.cart-item--compact .cart-item-mods,.cart-item--compact .cart-item-inst{margin-top:3px!important;font-size:8.5px!important;line-height:1.3!important;color:#71837C!important}
.cart-item--compact .cart-item-price{grid-area:price!important;min-width:0!important;text-align:right!important;font-size:11px!important;line-height:1!important;font-weight:900!important;color:#173E34!important;white-space:nowrap!important}
.cart-item--compact .cart-item-actions{grid-area:actions!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important}
.cart-item--compact .qty-control--sm{display:grid!important;grid-template-columns:28px 24px 28px!important;align-items:center!important;height:30px!important;border:1px solid #CFE0D8!important;border-radius:10px!important;background:#F7FBF9!important;overflow:hidden!important}
.cart-item--compact .qty-control--sm button{width:28px!important;height:30px!important;min-width:28px!important;min-height:30px!important;border:0!important;background:transparent!important;color:#07543F!important;font-size:15px!important;font-weight:900!important;padding:0!important}
.cart-item--compact .qty-control--sm span{display:grid!important;place-items:center!important;font-size:10px!important;font-weight:900!important;color:#173E34!important}
.remove-item--minus{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin:0!important;padding:0!important;border:1px solid #F0C5C3!important;border-radius:10px!important;background:#FFF5F4!important;color:#C13E36!important;font-size:18px!important;line-height:1!important;font-weight:900!important;display:grid!important;place-items:center!important}
.order-instruction{margin:10px 0 12px!important;padding:10px!important;border:1px solid #E0E9E4!important;border-radius:14px!important;background:#FBFDFC!important}
.order-instruction label{display:block!important;margin-bottom:6px!important;font-size:9px!important;line-height:1.3!important;font-weight:900!important;color:#365C50!important}
.order-instruction textarea{min-height:58px!important;max-height:95px!important;padding:9px 10px!important;border-radius:11px!important;font-size:10px!important;line-height:1.4!important;resize:vertical!important}

.cart-upsell{margin:12px 0 14px!important;padding:12px!important;border:1px solid #CFE3D9!important;border-radius:17px!important;background:linear-gradient(145deg,#F3FAF6,#FFFAF1)!important;overflow:hidden!important}
.cart-upsell-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:10px!important;margin-bottom:9px!important}
.cart-upsell-head small{display:block!important;font-size:7px!important;letter-spacing:.12em!important;color:#0F7B5A!important;font-weight:900!important}
.cart-upsell-head h4{margin:2px 0 0!important;font-size:13px!important;line-height:1.2!important;color:#173E34!important}
.cart-upsell-head>span{font-size:8px!important;color:#71877E!important;font-weight:800!important;white-space:nowrap!important}
.cart-upsell-track{display:flex!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;overscroll-behavior-inline:contain!important;scrollbar-width:none!important;padding:1px 1px 5px!important;-webkit-overflow-scrolling:touch!important}
.cart-upsell-track::-webkit-scrollbar{display:none!important}
.cart-upsell-card{flex:0 0 min(76%,235px)!important;min-width:0!important;scroll-snap-align:start!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:10px!important;border:1px solid #DCE8E2!important;border-radius:13px!important;background:#fff!important;box-shadow:0 4px 12px rgba(12,65,50,.05)!important}
.cart-upsell-copy{min-width:0!important}
.cart-upsell-copy b{display:block!important;font-size:10px!important;line-height:1.25!important;color:#173E34!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.cart-upsell-copy span{display:block!important;margin-top:3px!important;font-size:9px!important;font-weight:900!important;color:#607873!important}
.cart-upsell-card button{min-width:58px!important;min-height:32px!important;border:0!important;border-radius:10px!important;background:#0F7B5A!important;color:#fff!important;font-size:9px!important;font-weight:900!important;padding:0 10px!important;box-shadow:0 5px 12px rgba(15,123,90,.15)!important}
.cart-upsell-card button:active{transform:translateY(1px) scale(.98)}

/* One-line WhatsApp consent: no oversized icon and no redundant second line. */
.whatsapp-update-box{min-height:48px!important;padding:9px 11px!important;border:1px solid #BFE0CD!important;border-radius:14px!important;background:linear-gradient(135deg,#F1FAF5,#F8FCFA)!important;gap:8px!important;box-shadow:0 4px 14px rgba(15,123,90,.06)!important;overflow:hidden!important}
.whatsapp-update-box>input{width:19px!important;height:19px!important;flex:0 0 19px!important;border-radius:6px!important}
.whatsapp-check{width:27px!important;height:27px!important;flex:0 0 27px!important;box-shadow:0 3px 10px rgba(37,211,102,.18)!important}
.whatsapp-check svg{width:15px!important;height:15px!important}
.whatsapp-update-copy{display:block!important;min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
.whatsapp-update-box b{display:block!important;font-size:clamp(9.5px,2.8vw,11px)!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#113A2C!important;font-weight:900!important}
.whatsapp-update-box small{display:none!important}

/* Premium order-tracking surface. */
#trackingSheetBody{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
.tracking-summary{padding:14px!important;border:1px solid #DCE8E2!important;border-radius:16px!important;background:linear-gradient(145deg,#F7FCF9,#FFFBF2)!important;box-shadow:0 7px 20px rgba(12,65,50,.05)!important}
.tracking-summary h3{font-size:17px!important;line-height:1.25!important;color:#123B2F!important}
.tracking-summary p{font-size:9.5px!important;line-height:1.45!important;color:#607873!important}
.confirmation-card,.ready-card,.served-card{border-radius:14px!important;padding:12px 13px!important;font-size:10px!important;line-height:1.45!important;font-weight:800!important}
.timeline{margin:13px 0!important;padding:13px!important;border:1px solid #DCE8E2!important;border-radius:16px!important;background:#fff!important}
.timeline-step{min-height:52px!important;gap:11px!important}
.timeline-icon{width:30px!important;height:30px!important;flex:0 0 30px!important;border-width:2px!important;box-shadow:0 0 0 4px #fff!important}
.timeline-step.done .timeline-icon,.timeline-step.active .timeline-icon{background:#0F7B5A!important;border-color:#0F7B5A!important;color:#fff!important}
.timeline-step.active .timeline-icon{box-shadow:0 0 0 4px #E8F6F0!important}
.timeline-label{font-size:11px!important;font-weight:900!important;color:#173E34!important}
.timeline-desc{font-size:8.7px!important;line-height:1.4!important;color:#71837C!important}
.tracking-items,.tracking-bill-breakdown{border-radius:14px!important;border-color:#E0EAE5!important;background:#fff!important}
.tracking-action-btn,.tracking-add-more-btn{min-height:44px!important;border-radius:12px!important;font-weight:900!important}
.order-progress-bar{border-top:1px solid #DDECE5!important;background:linear-gradient(180deg,#F8FCFA,#F1F9F5)!important}
.progress-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
.progress-title b{font-size:9.5px!important;color:#173E34!important}
.progress-title span{font-size:8px!important;color:#0F7B5A!important;font-weight:900!important;white-space:nowrap!important}

/* Keep completion actions aligned with the Hotel-quality component. */
.paid-card>.paid-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;margin-top:10px!important}
.paid-card>.paid-actions .receipt-mini-btn{min-height:48px!important;border-radius:13px!important;background:#07543F!important;border-color:#07543F!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:10.8px!important;font-weight:900!important;box-shadow:0 7px 17px rgba(7,84,63,.17)!important}

@media(max-width:350px){
  .cart-item.cart-item--compact{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"info" "price" "actions"!important;gap:6px!important}
  .cart-item--compact .cart-item-price{text-align:left!important}
  .cart-item--compact .cart-item-actions{justify-content:space-between!important}
  .cart-upsell-card{flex-basis:86%!important}
  .paid-card>.paid-actions{grid-template-columns:1fr!important;gap:9px!important}
  .whatsapp-update-box{gap:7px!important;padding:8px 9px!important}
  .whatsapp-update-box b{font-size:9.4px!important}
}


/* V5.32.3 · Restaurant QR responsive WhatsApp brand icon */
.whatsapp-update-box .whatsapp-check{
  width:clamp(29px,8vw,33px)!important;
  height:clamp(29px,8vw,33px)!important;
  flex:0 0 clamp(29px,8vw,33px)!important;
  border-radius:50%!important;
  background:#25D366!important;
  color:#fff!important;
  display:grid!important;
  place-items:center!important;
  border:2px solid rgba(255,255,255,.96)!important;
  box-shadow:0 0 0 1px rgba(37,211,102,.24),0 5px 12px rgba(37,211,102,.20)!important;
  overflow:hidden!important;
  transform:none!important;
}
.whatsapp-update-box .whatsapp-check .whatsapp-brand-svg{
  width:clamp(17px,4.8vw,19px)!important;
  height:clamp(17px,4.8vw,19px)!important;
  display:block!important;
  fill:#fff!important;
  flex:none!important;
}
.whatsapp-update-box:has(>input:checked) .whatsapp-check{
  box-shadow:0 0 0 2px rgba(37,211,102,.17),0 6px 14px rgba(37,211,102,.23)!important;
}
@media(max-width:360px){
  .whatsapp-update-box{gap:7px!important;padding-inline:9px!important}
  .whatsapp-update-box .whatsapp-check{width:29px!important;height:29px!important;flex-basis:29px!important}
  .whatsapp-update-box .whatsapp-check .whatsapp-brand-svg{width:17px!important;height:17px!important}
}

/* V5.38.0 — scheduled meal window */
.dq-meal-window{margin:0 14px 10px;padding:10px 12px;border:1px solid #b9dfd0;border-radius:14px;background:linear-gradient(135deg,#f4fbf8,#eef8ff);display:flex;align-items:center;justify-content:space-between;gap:10px;color:#0c4335;box-shadow:0 7px 20px rgba(15,123,90,.06)}
.dq-meal-window span{display:flex;align-items:center;gap:8px;min-width:0}.dq-meal-window i{color:#0f7b5a}.dq-meal-window b{font-size:12px;font-weight:850;line-height:1.3}.dq-meal-window em{flex:0 0 auto;font-style:normal;font-size:10.5px;font-weight:850;color:#07543f;background:#fff;border:1px solid #c9e7dc;border-radius:999px;padding:5px 8px}
@media(max-width:420px){.dq-meal-window{margin-left:10px;margin-right:10px;align-items:flex-start}.dq-meal-window b{font-size:11.5px}.dq-meal-window em{font-size:10px}}

/* V5.44.3.4 — compact one-line customer WhatsApp opt-in */
.whatsapp-update-box{
  display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
  min-height:52px!important;max-height:58px!important;padding:9px 12px!important;gap:9px!important;
  border:1px solid #BFE0CD!important;border-radius:14px!important;background:#F3FAF6!important;overflow:hidden!important;
}
.whatsapp-update-box>input{position:relative!important;inset:auto!important;opacity:1!important;visibility:visible!important;display:grid!important;flex:0 0 20px!important;width:20px!important;height:20px!important;margin:0!important}
.whatsapp-update-box .whatsapp-check{flex:0 0 30px!important;width:30px!important;height:30px!important;margin:0!important}
.whatsapp-update-box .whatsapp-update-copy{display:block!important;flex:1 1 auto!important;min-width:0!important;overflow:hidden!important}
.whatsapp-update-box .whatsapp-update-copy b{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:12px!important;line-height:1.2!important;margin:0!important}
@media(max-width:430px){
  .whatsapp-update-box{min-height:50px!important;max-height:54px!important;padding:8px 10px!important;gap:8px!important}
  .whatsapp-update-box .whatsapp-check{width:28px!important;height:28px!important;flex-basis:28px!important}
  .whatsapp-update-box .whatsapp-update-copy b{font-size:11px!important}
}


/* V5.44.3.5 — QR checkout WhatsApp icon + text hard-lock to one row */
.whatsapp-update-box{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:9px!important;
  width:100%!important;
  min-height:50px!important;
  padding:8px 11px!important;
  overflow:hidden!important;
}
.whatsapp-update-box>input{
  grid-column:1!important;
  grid-row:1!important;
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  margin:0!important;
  align-self:center!important;
}
.whatsapp-update-main{
  grid-column:2!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}
.whatsapp-update-main .whatsapp-check{
  display:grid!important;
  place-items:center!important;
  flex:0 0 28px!important;
  width:28px!important;
  height:28px!important;
  margin:0!important;
}
.whatsapp-update-main .whatsapp-brand-svg{
  display:block!important;
  width:16px!important;
  height:16px!important;
  flex:none!important;
}
.whatsapp-update-main .whatsapp-update-copy{
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
  overflow:visible!important;
}
.whatsapp-update-main .whatsapp-update-copy b{
  display:block!important;
  margin:0!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:clamp(10px,2.65vw,11.5px)!important;
  line-height:1.15!important;
  font-weight:900!important;
  color:#113A2C!important;
}
@media(max-width:360px){
  .whatsapp-update-box{grid-template-columns:19px minmax(0,1fr)!important;column-gap:7px!important;padding:8px 9px!important}
  .whatsapp-update-box>input{width:19px!important;height:19px!important;min-width:19px!important}
  .whatsapp-update-main{gap:6px!important}
  .whatsapp-update-main .whatsapp-check{width:26px!important;height:26px!important;flex-basis:26px!important}
  .whatsapp-update-main .whatsapp-brand-svg{width:15px!important;height:15px!important}
  .whatsapp-update-main .whatsapp-update-copy b{font-size:9.8px!important}
}
