/* Farm2Kitchen Halal — shared mobile styling.
   Desktop (>= 768px) is intentionally untouched: everything mobile-specific
   lives inside the @media query below. */

/* Hero banner images on the order form — applies at all widths since this
   is new markup, not an override of anything that existed before. */
.hero-banner img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 767.98px) {

    /* --- Order form: sticky submit bar ---------------------------------- */
    .mobile-submit-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }

    /* Reserve space at the bottom of the form so the sticky bar never
       covers the last field. */
    .mobile-submit-spacer {
        height: 4.5rem;
    }

    /* --- Dashboard: orders table -> stacked cards ----------------------- */
    #orders-table thead {
        display: none;
    }

    #orders-table, #orders-table tbody, #orders-table tr, #orders-table td {
        display: block;
        width: 100%;
    }

    #orders-table tr {
        margin-bottom: 1rem;
        border: 1px solid rgba(0, 0, 0, 0.125);
        border-radius: 0.375rem;
        padding: 0.5rem 0.75rem;
    }

    #orders-table td {
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 0.5rem 0;
        text-align: left;
    }

    #orders-table td:last-child {
        border-bottom: none;
    }

    #orders-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #6c757d;
        margin-bottom: 0.15rem;
    }
}
