/* ==========================================
   ORDERS PAGE
========================================== */

.orders-page {
    background: #f5f5f5;

    min-height: 70vh;

    padding: 45px 0 70px;
}


/* ==========================================
   HEADER
========================================== */

.orders-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 30px;
}

.orders-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 8px;

    color: #0D5CB6;

    font-size: 12px;

    font-weight: 700;
}

.orders-header h1 {
    margin: 0 0 8px;

    color: #222;

    font-size: 32px;
}

.orders-header p {
    margin: 0;

    color: #666;

    font-size: 14px;
}

.orders-back {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 11px 18px;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 4px;

    color: #444;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;
}

.orders-back:hover {
    color: #0D5CB6;

    border-color: #0D5CB6;
}


/* ==========================================
   TABLE
========================================== */

.orders-table-wrapper {
    overflow-x: auto;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 8px;
}

.orders-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 800px;
}

.orders-table th {
    padding: 16px 20px;

    background: #f8f9fa;

    border-bottom: 1px solid #e5e5e5;

    color: #777;

    font-size: 10px;

    font-weight: 700;

    text-align: left;

    white-space: nowrap;
}

.orders-table td {
    padding: 18px 20px;

    border-bottom: 1px solid #eee;

    color: #444;

    font-size: 13px;

    vertical-align: middle;
}

.orders-table tbody tr:last-child td {
    border-bottom: 0;
}

.orders-table tbody tr:hover {
    background: #fafcff;
}

.orders-number {
    color: #0D5CB6;

    font-size: 13px;
}

.orders-time {
    display: block;

    margin-top: 3px;

    color: #999;

    font-size: 11px;
}


/* ==========================================
   PAYMENT STATUS
========================================== */

.payment-status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 3px;

    font-size: 10px;

    font-weight: 700;
}

.payment-status--paid {
    background: #edf8f1;

    color: #217a3a;
}

.payment-status--pending {
    background: #fff8e6;

    color: #9a6700;
}

.payment-status--failed {
    background: #fff1f1;

    color: #b42323;
}

.payment-status--refunded {
    background: #f0f0f0;

    color: #666;
}


/* ==========================================
   ORDER STATUS
========================================== */

.order-status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 3px;

    font-size: 10px;

    font-weight: 700;
}

.order-status--pending {
    background: #fff8e6;

    color: #9a6700;
}

.order-status--confirmed {
    background: #eef5fc;

    color: #0D5CB6;
}

.order-status--preparing {
    background: #f2edff;

    color: #6541a5;
}

.order-status--out-for-delivery {
    background: #eef8f7;

    color: #08756f;
}

.order-status--completed {
    background: #edf8f1;

    color: #217a3a;
}

.order-status--cancelled {
    background: #fff1f1;

    color: #b42323;
}


/* ==========================================
   VIEW BUTTON
========================================== */

.orders-view {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #0D5CB6;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}

.orders-view:hover {
    text-decoration: underline;
}


/* ==========================================
   EMPTY STATE
========================================== */

.orders-empty {
    padding: 70px 25px;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 8px;

    text-align: center;
}

.orders-empty__icon {
    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 20px;

    background: #eef5fc;

    border-radius: 50%;

    color: #0D5CB6;

    font-size: 28px;
}

.orders-empty h2 {
    margin: 0 0 10px;

    color: #222;

    font-size: 21px;
}

.orders-empty p {
    margin: 0 0 25px;

    color: #777;

    font-size: 13px;
}

.orders-empty a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 13px 20px;

    background: #0D5CB6;

    border-radius: 4px;

    color: #fff;

    font-size: 12px;

    font-weight: 700;

    text-decoration: none;
}

.orders-empty a:hover {
    background: #08418D;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 700px) {

    .orders-page {
        padding: 35px 0 55px;
    }

    .orders-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .orders-header h1 {
        font-size: 27px;
    }

    .orders-table-wrapper {
        overflow: visible;

        background: transparent;

        border: 0;
    }

    .orders-table {
        min-width: 0;
    }

    .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: 15px;

        padding: 5px 0;

        background: #fff;

        border: 1px solid #e5e5e5;

        border-radius: 8px;
    }

    .orders-table td {
        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 20px;

        padding: 12px 18px;

        border-bottom: 1px solid #eee;

        text-align: right;
    }

    .orders-table td:last-child {
        border-bottom: 0;
    }

    .orders-table td::before {
        content: attr(data-label);

        color: #888;

        font-size: 10px;

        font-weight: 700;

        text-align: left;
    }

    .orders-table td > * {
        text-align: right;
    }

    .orders-table td[data-label="Date"] {
        color: #444;
    }

}