/* qr-table.css — storefront chrome for a guest seated at a table.

   Two jobs: the stripped QR header, and the order panel on the cart page,
   whose inputs had no styling at all and rendered as bare browser controls. */

/* ── Header ───────────────────────────────────────────────────────── */

.wo-qr-navbar {
    background: var(--wo-primary, #c25b5b);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 40;
}

.wo-qr-navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wo-qr-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The table is the guest's anchor — it reads as a fact about where they are,
   not as a nav item, so it gets a chip rather than link styling. */
.wo-qr-table {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: .9rem;
    flex: 0 0 auto;
}

.wo-qr-table-label {
    opacity: .8;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wo-qr-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 4px;
    flex: 0 0 auto;
}

.wo-qr-cart-count {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--wo-primary, #c25b5b);
    font-size: .72rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ── Cart order panel ─────────────────────────────────────────────── */

.wo-qr-place {
    margin-top: 12px;
}

.wo-qr-place-table {
    font-size: .95rem;
    color: #4b5563;
    margin-bottom: 10px;
}

    .wo-qr-place-table strong {
        color: #111827;
    }

/* These two were rendering as unstyled browser controls — monospace
   placeholder, hairline border, no sizing. */
#qrGuestName,
#qrNotes {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: .95rem;
}

    #qrGuestName:focus,
    #qrNotes:focus {
        outline: none;
        border-color: var(--wo-primary, #c25b5b);
        box-shadow: 0 0 0 3px rgba(194, 91, 91, .15);
    }

#qrNotes {
    min-height: 68px;
    resize: vertical;
}

#qrPlaceError {
    display: none;
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: .9rem;
}

#qrPlaceBtn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ── Confirmation page ────────────────────────────────────────────── */

.qr-placed {
    max-width: 520px;
    margin: 32px auto;
    padding: 28px 20px;
    text-align: center;
}

.qr-placed-icon {
    color: #6b7280;
    margin-bottom: 12px;
}

.qr-placed.is-accepted .qr-placed-icon {
    color: #059669;
}

.qr-placed.is-declined .qr-placed-icon {
    color: #dc2626;
}

.qr-placed h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.qr-placed p {
    margin: 0 0 6px;
    color: #4b5563;
}

.qr-placed-number {
    font-size: .9rem;
    color: #6b7280 !important;
}

.qr-placed-reason {
    margin-top: 10px !important;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c !important;
    border: 1px solid #fecaca;
    font-size: .92rem;
}

/* Dropped items: amber, not red. The order did go through — this is a
   correction to what the guest thinks they ordered, not a failure. */
.qr-placed-warn {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    text-align: left;
    font-size: .92rem;
}

.qr-placed-warn-head {
    font-weight: 600;
    margin-bottom: 6px;
}

.qr-placed-warn ul {
    margin: 0;
    padding-left: 18px;
}

.qr-placed-back {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}
