/* #theme-toggle {
    display: none;
} */

/* Mobile FAB */
.pos-fab {
    padding: 14px;
    touch-action: none;
    box-shadow: 0 6px 24px rgba(var(--color-base), 0.45);
}

/* Mobile FAB float animation */
@keyframes fab-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.fab-float {
    animation: fab-float 2.8s ease-in-out infinite;
}

/* POS footer: compact summary rows */
.pos-footer-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
}

/* POS footer: responsive action button rows */
.pos-btn-row {
    display: flex;
    gap: 4px;
}

.pos-btn-row > button {
    flex: 1;
    min-width: 0;
    padding: 5px 2px;
    font-size: 11px;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .pos-footer-summary {
        gap: 8px;
        padding: 16px;
    }

    .pos-btn-row {
        gap: 12px;
    }

    .pos-btn-row > button {
        padding: 8px;
        font-size: 14px;
    }
}

/* Cart item highlight animation */
.cart-item {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.cart-item-flash {
    background-color: rgba(var(--color-base), 0.08) !important;
    box-shadow: 0 0 0 2px rgba(var(--color-base), 0.5);
}

/* Mobile: page-level scroll, same pattern as daily/summary reports */
@media (max-width: 1023px) {
    .pos-two-col {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;   /* prevent Safari viewport auto-zoom */
    }

    /* No fixed height or overflow clip on mobile —
       let the page scroll naturally (reports method) */
    .pos-cart-panel {
        width: 100%;
        max-width: 100%;
        display: block;
        height: auto;
        overflow: visible;
    }

    /* Sticky footer so action buttons are always visible while scrolling */
    .pos-cart-footer {
        position: sticky;
        bottom: 0;
        z-index: 20;
    }
}

@media (min-width: 1024px) {
    .pos-two-col {
        height: calc(100vh - 4rem);
        overflow: hidden;
    }

    .pos-menu-panel {
        display: grid;
        grid-template-rows: auto 1fr;
        height: calc(100vh - 4rem);
        overflow: hidden;
    }

    .pos-menu-items {
        overflow-y: auto;
        min-height: 0;
    }

    .pos-cart-panel {
        overflow: hidden;
    }
}
