﻿/* ==========================================================================
   LE SELECT — Orders, tracking, login, shared customer surfaces
   ========================================================================== */

.ls-page-orders,
.ls-page-reservation,
.ls-page-login {
    padding-bottom: calc(var(--ls-dock-h) + 32px);
}

.ls-customer-stage {
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    padding: 18px 0 40px;
}

.ls-page-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.ls-back-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--ls-border);
    color: #fff;
    background: var(--ls-surface);
    transition: background 0.2s ease;
}

.ls-back-btn:hover {
    background: var(--ls-surface-hover);
}

.ls-page-top__titles {
    min-width: 0;
    flex: 1;
}

.ls-kicker {
    display: inline-block;
    margin-bottom: 4px;
    font-family: var(--ls-font-display);
    font-style: italic;
    color: var(--ls-ink-muted);
    font-size: 1rem;
}

.ls-page-top__title {
    margin: 0 0 4px;
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 800;
    line-height: 1.25;
}

.ls-page-top__subtitle {
    margin: 0;
    color: var(--ls-ink-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.ls-panel {
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    background: var(--ls-surface);
}

.ls-panel__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 800;
}

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

.ls-form-field > label,
.ls-form-field__label,
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ls-ink);
}

.ls-form-field__hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--ls-ink-muted);
    line-height: 1.45;
}

.ls-req {
    color: #ffd0e0;
    margin-inline-start: 2px;
}

.ls-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--ls-border);
    background: rgba(0, 0, 0, 0.12);
    color: #fff;
}

textarea.ls-input {
    min-height: 96px;
    resize: vertical;
}

.ls-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ls-input:focus {
    outline: none;
    border-color: #fff;
    background: var(--ls-surface-hover);
}

.ls-input:disabled {
    opacity: 0.55;
}

/* Auth bar */
.ls-auth-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: var(--ls-surface);
    font-size: 0.9rem;
}

.ls-auth-bar__logout {
    background: none;
    border: none;
    color: #ffd0e0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: underline;
}

/* Orders list */
.ls-orders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-order-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    background: var(--ls-surface);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ls-order-card:hover {
    background: var(--ls-surface-hover);
    border-color: var(--ls-border);
    transform: translateY(-1px);
}

.ls-order-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ls-order-card__number {
    font-size: 1.02rem;
    font-weight: 800;
}

.ls-order-card__status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: var(--ls-radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ls-order-card__status--pending {
    background: rgba(255, 255, 255, 0.16);
}

.ls-order-card__status--confirmed,
.ls-order-card__status--preparing,
.ls-order-card__status--ready {
    background: #fff;
    color: var(--ls-primary-deep);
    border-color: #fff;
}

.ls-order-card__status--served {
    background: rgba(232, 255, 232, 0.2);
    border-color: rgba(232, 255, 232, 0.55);
}

.ls-order-card__status--cancelled {
    background: rgba(255, 208, 224, 0.18);
    border-color: rgba(255, 208, 224, 0.45);
    color: #ffe6ec;
}

.ls-order-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ls-ink-muted);
    font-size: 0.82rem;
}

.ls-order-card__meta-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ls-order-card__table {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: var(--ls-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
}

.ls-order-card__price {
    flex-shrink: 0;
    font-weight: 800;
    color: #fff;
    font-size: 0.92rem;
}

.ls-empty-panel {
    text-align: center;
    padding: 40px 20px;
}

.ls-empty-panel img {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    opacity: 0.9;
}

.ls-empty-panel h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
}

.ls-empty-panel p {
    margin: 0 0 18px;
    color: var(--ls-ink-muted);
    font-size: 0.9rem;
}

/* Order tracking hero */
.ls-track-hero {
    text-align: center;
    padding: 28px 18px;
    margin-bottom: 16px;
}

.ls-track-hero__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--ls-border);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.6rem;
    color: #fff;
}

.ls-track-hero__icon.is-cancelled {
    color: #ffd0e0;
}

.ls-track-hero__icon.is-served {
    color: #e8ffe8;
}

.ls-track-hero__title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 900;
}

.ls-track-hero__desc {
    margin: 0;
    color: var(--ls-ink-muted);
    font-size: 0.9rem;
}

/* Timeline */
.ls-timeline {
    display: grid;
    gap: 0;
}

.ls-timeline-step {
    position: relative;
    padding: 0 0 18px 0;
    padding-inline-start: 44px;
}

.ls-timeline-step:last-child {
    padding-bottom: 0;
}

.ls-timeline-step::before {
    content: '';
    position: absolute;
    inset-inline-start: 15px;
    top: 30px;
    bottom: 0;
    width: 1.5px;
    background: rgba(255, 255, 255, 0.22);
}

.ls-timeline-step:last-child::before {
    display: none;
}

.ls-timeline-step__dot {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.12);
    color: var(--ls-ink-muted);
    font-size: 0.78rem;
}

.ls-timeline-step.is-done .ls-timeline-step__dot,
.ls-timeline-step.is-active .ls-timeline-step__dot {
    background: #fff;
    color: var(--ls-primary-deep);
    border-color: #fff;
}

.ls-timeline-step.is-done::before {
    background: rgba(255, 255, 255, 0.55);
}

.ls-timeline-step__title {
    margin: 4px 0 2px;
    font-size: 0.95rem;
    font-weight: 800;
}

.ls-timeline-step__desc {
    margin: 0;
    color: var(--ls-ink-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

/* Receipt */
.ls-receipt-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.ls-receipt-item:last-child {
    border-bottom: none;
}

.ls-receipt-item__info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.ls-receipt-item__qty {
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 800;
    font-size: 0.82rem;
}

.ls-receipt-item__name {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
}

.ls-receipt-item__variant {
    display: block;
    margin-top: 2px;
    color: var(--ls-ink-muted);
    font-size: 0.78rem;
}

.ls-receipt-item__price {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.88rem;
}

.ls-receipt-summary {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.ls-receipt-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--ls-ink-muted);
}

.ls-receipt-summary__row--total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 900;
}

.ls-order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ls-btn--danger {
    width: 100%;
    background: rgba(255, 208, 224, 0.12);
    color: #ffe6ec;
    border: 1px solid rgba(255, 208, 224, 0.4);
}

.ls-btn--danger:hover {
    background: rgba(255, 208, 224, 0.2);
}

.ls-order-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--ls-surface);
    font-size: 0.9rem;
}

.ls-order-alert--success {
    border-color: rgba(232, 255, 232, 0.45);
}

.ls-order-alert--error {
    border-color: rgba(255, 208, 224, 0.5);
    color: #ffe6ec;
}

.ls-order-alert.is-hidden {
    display: none !important;
}

.ls-link-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0;
}

.ls-link-btn--muted {
    color: var(--ls-ink-muted);
    display: block;
    margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .ls-order-card,
    .ls-back-btn {
        transition: none;
    }
}
