/* ==========================================
   ACCOUNT PAGE
========================================== */

.account-page {
    background: #f5f5f5;
    min-height: 70vh;
    padding: 45px 0 70px;
}


/* ==========================================
   ACCOUNT HEADER
========================================== */

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 30px;
}

.account-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 8px;

    color: #0D5CB6;

    font-size: 12px;
    font-weight: 700;
}

.account-header h1 {
    margin: 0 0 8px;

    color: #222;

    font-size: 32px;
}

.account-header p {
    margin: 0;

    color: #666;

    font-size: 14px;
}

.account-logout {
    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;
}

.account-logout:hover {
    color: #0D5CB6;
    border-color: #0D5CB6;
}


/* ==========================================
   ACCOUNT LAYOUT
========================================== */

.account-layout {
    display: grid;

    grid-template-columns: 250px 1fr;

    gap: 25px;

    align-items: start;
}


/* ==========================================
   SIDEBAR
========================================== */

.account-sidebar {
    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 8px;

    overflow: hidden;
}

.account-sidebar__customer {
    padding: 30px 20px;

    text-align: center;

    border-bottom: 1px solid #e5e5e5;
}

.account-sidebar__avatar {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    background: #eef5fc;

    border-radius: 50%;

    color: #0D5CB6;

    font-size: 28px;
}

.account-sidebar__customer h2 {
    margin: 0 0 6px;

    color: #222;

    font-size: 16px;
}

.account-sidebar__customer span {
    color: #777;

    font-size: 12px;
    font-weight: 600;
}


/* ==========================================
   ACCOUNT MENU
========================================== */

.account-menu {
    padding: 10px 0;
}

.account-menu__item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 20px;

    color: #555;

    font-size: 13px;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.account-menu__item:hover {
    background: #f5f8fc;

    color: #0D5CB6;
}

.account-menu__item.active {
    background: #eef5fc;

    color: #0D5CB6;

    font-weight: 700;

    border-left: 3px solid #0D5CB6;
}

.account-menu__item i {
    width: 18px;

    text-align: center;
}

.account-menu__logout {
    margin-top: 5px;

    border-top: 1px solid #eee;

    color: #777;
}


/* ==========================================
   DASHBOARD
========================================== */

.account-dashboard {
    min-width: 0;
}


/* ==========================================
   SUMMARY CARDS
========================================== */

.account-cards {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-bottom: 20px;
}

.account-card {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px;

    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.account-card__icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #eef5fc;

    border-radius: 50%;

    color: #0D5CB6;

    font-size: 18px;
}

.account-card span {
    display: block;

    margin-bottom: 5px;

    color: #888;

    font-size: 10px;
    font-weight: 700;
}

.account-card strong {
    display: block;

    color: #222;

    font-size: 15px;
}


/* ==========================================
   PANELS
========================================== */

.account-panel {
    background: #fff;

    border: 1px solid #e5e5e5;
    border-radius: 8px;

    margin-bottom: 20px;

    overflow: hidden;
}

.account-panel__header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 25px;

    border-bottom: 1px solid #e5e5e5;
}

.account-panel__header span {
    display: block;

    margin-bottom: 5px;

    color: #0D5CB6;

    font-size: 10px;
    font-weight: 700;
}

.account-panel__header h2 {
    margin: 0;

    color: #222;

    font-size: 19px;
}

.account-panel__header > a {
    color: #0D5CB6;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.account-panel__header > a:hover {
    text-decoration: underline;
}


/* ==========================================
   ACCOUNT DETAILS
========================================== */

.account-details {
    display: grid;

    grid-template-columns: repeat(2, 1fr);
}

.account-detail {
    padding: 20px 25px;

    border-bottom: 1px solid #eee;
}

.account-detail:nth-child(odd) {
    border-right: 1px solid #eee;
}

.account-detail span {
    display: block;

    margin-bottom: 7px;

    color: #888;

    font-size: 11px;
}

.account-detail strong {
    display: block;

    color: #333;

    font-size: 14px;

    word-break: break-word;
}


/* ==========================================
   QUICK ACTIONS
========================================== */

.account-actions {
    padding: 10px 25px;
}

.account-action {
    display: grid;

    grid-template-columns: 35px 1fr 20px;

    align-items: center;

    gap: 12px;

    padding: 18px 0;

    color: #444;

    text-decoration: none;

    border-bottom: 1px solid #eee;
}

.account-action:last-child {
    border-bottom: 0;
}

.account-action > i:first-child {
    color: #0D5CB6;

    font-size: 17px;
}

.account-action > i:last-child {
    color: #999;

    font-size: 12px;
}

.account-action strong {
    display: block;

    margin-bottom: 4px;

    color: #222;

    font-size: 13px;
}

.account-action small {
    display: block;

    color: #777;

    font-size: 11px;
}

.account-action:hover strong {
    color: #0D5CB6;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 850px) {

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        display: grid;

        grid-template-columns: 220px 1fr;
    }

    .account-sidebar__customer {
        border-bottom: 0;

        border-right: 1px solid #e5e5e5;
    }

}


@media (max-width: 650px) {

    .account-page {
        padding: 35px 0 55px;
    }

    .account-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .account-header h1 {
        font-size: 27px;
    }

    .account-sidebar {
        display: block;
    }

    .account-sidebar__customer {
        border-right: 0;

        border-bottom: 1px solid #e5e5e5;
    }

    .account-cards {
        grid-template-columns: 1fr;
    }

    .account-details {
        grid-template-columns: 1fr;
    }

    .account-detail:nth-child(odd) {
        border-right: 0;
    }

}

/* ==========================================
   RECENT ORDERS
========================================== */

.account-recent-orders {
    padding: 0 22px;
}

.account-order-row {
    display: grid;

    grid-template-columns:
        1.3fr
        1fr
        1fr
        1.2fr
        auto;

    align-items: center;

    gap: 18px;

    padding: 17px 0;

    border-bottom: 1px solid #eee;
}

.account-order-row:last-child {
    border-bottom: 0;
}

.account-order-info {
    min-width: 0;
}

.account-order-info > span {
    display: block;

    margin-bottom: 5px;

    color: #999;

    font-size: 9px;

    font-weight: 700;
}

.account-order-info > strong {
    color: #333;

    font-size: 12px;
}

.account-order-action a {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #0D5CB6;

    font-size: 10px;

    font-weight: 700;

    text-decoration: none;

    white-space: nowrap;
}

.account-order-action a:hover {
    color: #08418D;
}


/* ==========================================
   ORDER STATUS
========================================== */

.account-order-status {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 3px;

    font-size: 9px !important;

    font-weight: 700 !important;
}

.account-order-status--pending {
    background: #fff8e6;

    color: #9a6700 !important;
}

.account-order-status--confirmed {
    background: #eef5fc;

    color: #0D5CB6 !important;
}

.account-order-status--preparing {
    background: #f2edff;

    color: #6541a5 !important;
}

.account-order-status--out-for-delivery {
    background: #eef8f7;

    color: #08756f !important;
}

.account-order-status--completed,
.account-order-status--delivered {
    background: #edf8f1;

    color: #217a3a !important;
}

.account-order-status--cancelled {
    background: #fff1f1;

    color: #b42323 !important;
}


/* ==========================================
   EMPTY ORDERS
========================================== */

.account-orders-empty {
    padding: 35px 22px;

    text-align: center;
}

.account-orders-empty i {
    display: block;

    margin-bottom: 10px;

    color: #bbb;

    font-size: 30px;
}

.account-orders-empty p {
    margin: 0 0 15px;

    color: #777;

    font-size: 12px;
}

.account-orders-empty a {
    color: #0D5CB6;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 850px) {

    .account-order-row {
        grid-template-columns: repeat(2, 1fr);

        gap: 15px;
    }

    .account-order-action {
        grid-column: 2;

        justify-self: end;
    }

}


@media (max-width: 550px) {

    .account-recent-orders {
        padding: 0 18px;
    }

    .account-order-row {
        grid-template-columns: 1fr 1fr;

        gap: 12px;
    }

    .account-order-info > strong {
        font-size: 11px;
    }

}

/* ==========================================================
   RECENT ORDERS
========================================================== */

.account-recent-orders {
    width: 100%;
}

.account-recent-order {
    display: grid;
    grid-template-columns: 50px 1fr auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 20px 25px;
    border-bottom: 1px solid #eeeeee;
}

.account-recent-order:last-child {
    border-bottom: 0;
}


/* ORDER ICON */

.account-recent-order__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6fd;
    color: #0d5cb6;
    font-size: 16px;
}


/* ORDER INFO */

.account-recent-order__info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-recent-order__info strong {
    color: #222;
    font-size: 14px;
}

.account-recent-order__info span {
    color: #777;
    font-size: 12px;
}


/* TOTAL */

.account-recent-order__total {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 90px;
}

.account-recent-order__total span {
    color: #888;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.account-recent-order__total strong {
    color: #222;
    font-size: 14px;
}


/* STATUS */

.account-recent-order__status {
    min-width: 120px;
}


/* VIEW */

.account-recent-order__view {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0d5cb6;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.account-recent-order__view:hover {
    color: #082c6c;
}


/* ==========================================================
   EMPTY ORDERS
========================================================== */

.account-orders-empty {
    text-align: center;
    padding: 55px 25px;
}

.account-orders-empty__icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6fd;
    color: #0d5cb6;
    border-radius: 50%;
    font-size: 24px;
}

.account-orders-empty h3 {
    margin: 0 0 8px;
    color: #222;
    font-size: 20px;
}

.account-orders-empty p {
    max-width: 480px;
    margin: 0 auto 22px;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.account-orders-empty a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 20px;
    background: #0d5cb6;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.account-orders-empty a:hover {
    background: #082c6c;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .account-recent-order {
        grid-template-columns: 45px 1fr auto auto;
    }

    .account-recent-order__view {
        grid-column: 4;
    }

}


@media (max-width: 800px) {

    .account-recent-order {
        grid-template-columns: 45px 1fr auto;
        gap: 14px;
    }

    .account-recent-order__status {
        grid-column: 2;
        grid-row: 2;
    }

    .account-recent-order__view {
        grid-column: 3;
        grid-row: 2;
    }

}


@media (max-width: 600px) {

    .account-recent-order {
        grid-template-columns: 45px 1fr;
        gap: 12px;
    }

    .account-recent-order__total {
        grid-column: 2;
    }

    .account-recent-order__status {
        grid-column: 2;
        grid-row: auto;
    }

    .account-recent-order__view {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
    }

}