﻿.block-account-navigation ul li a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: .75rem 1rem;
    border-radius: .375rem;

    font-size: .875rem;
    font-weight: 500;

    color: var(--tertiary-color);
    transition: .25s all ease-in;
}

.block-account-navigation ul li a.active,
.block-account-navigation ul li a:hover {
    color: var(--white);
    background-color: var(--tertiary-color);
}

.block-account-navigation ul li svg {
    font-size: 1.75rem;
    margin: 0 .625rem 0 0;
}

.block-account-navigation ul li span {
    font-size: 1rem;
}

/* merchandise table */

.merchandise-table {
    display: flex;
    flex-direction: column;
    padding: 0 0 1.5625rem 0;
    position: relative;
}

.merchandise-table thead tr {
    display: flex;
    width: 100%;
    padding: 0 0 0 3.125rem;
    border: 0;
}

.merchandise-table thead th {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    min-width: 7.8125rem;
    display: flex;
    align-items: center;
    border-bottom: 0;
    border-top: 0;
}

.merchandise-table thead th:first-child {
    display: flex;
    align-items: center;
}

.merchandise-table tbody {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 100%;
}

.merchandise-table tbody tr:nth-child(1) {
    display: flex;
    flex-direction: column;
    min-width: 3.125rem;
}

.merchandise-table tbody tr:nth-child(1) td {
    height: 100%;
    padding: 0;
    border: 0;
}

.merchandise-table tbody tr:nth-child(1) td>div {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.merchandise-table tbody tr:nth-child(1) td>div>div {
    min-height: 6.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.merchandise-table tbody tr:nth-child(2) {
    width: calc(100% - 3.125rem);
}

.merchandise-table tbody tr:nth-child(2) td {
    display: inline-flex;
    width: 100%;
    padding: .75rem 0;
    height: 6.875rem;
}

.merchandise-table tbody tr:nth-child(2) td>div {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    padding: 0 .75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 7.8125rem;
}

.merchandise-table .product a {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.merchandise-table .field-validation-error {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
}

@media (max-width: 48rem) {
    .merchandise-table tbody tr:nth-child(2) td>div {
        max-width: 7.8125rem;
    }

    .merchandise-table {
        padding: 0 0 2.8125rem 0;
    }

    .merchandise-table .field-validation-error {
        font-size: .875rem;
    }
}

/* status */

table .status.badge {
    font-size: 1rem;
    padding: .375rem .5rem;
}

table .status.pending {
    background-color: #d1ecf1;
}

table .status.processing {
    background-color: #fff3cd;
}

table .status.complete {
    background-color: #d4edda;
}

table .status.cancelled {
    background-color: #f8d7da;
}

.pagination .current-page.page-item .page-link {
    color: var(--color-white);
    background-color: var(--dark-purple);
    border-color: var(--dark-purple);
    border-radius: 0.375rem;
}

/* dark customer */

[dark-theme="true"] .block-account-navigation ul li a.active,
[dark-theme="true"] .block-account-navigation ul li a:hover {
    color: #fff;
    border-color: #1fb0c7;
    background-color: #2d3133;
}

#block-account-navigation {
    position: sticky;
    top: 10.875rem;
    bottom: 2rem;
    transition: all 0.2s ease-in-out;
}

body.scroll-down #block-account-navigation {
    top: 8.25rem;
}

.account-page,
.account-page .account-order {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-page .account-order .order-card-wrapper {
    border-radius: 1rem;
    overflow: hidden;
}

.account-page .account-order .order-card-wrapper .order-content {
    display: flex;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
    background-color: var(--background);
}

.account-page .account-order .order-card-wrapper .order-content h4 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    color: var(--tertiary-color);
}

.account-page .account-order .order-card-wrapper .order-content .products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-page .account-order .order-card-wrapper .order-content .products-wrapper .order-details-step {
    display: flex;
    gap: 1.5rem;
}

.account-page .account-order .order-card-wrapper .order-content .products-wrapper .order-details-step .order-details-step-icon img {
    width: 7.5rem;
    height: 7.5rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.account-page .account-order .order-card-wrapper .order-content .products-wrapper .order-details-step .order-details-step-content {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 1.5rem;
    flex: 1;
}

.account-page .account-order .order-card-wrapper .order-content .products-wrapper .order-details-step .order-details-step-content .order-details-step-content-info {
    flex: 1;
}

.account-page .account-order .order-card-wrapper .order-content .products-wrapper .order-details-step .order-details-step-content .order-details-step-content-info h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: wrap;
    color: var(--grey-90);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.account-page .account-order .order-card-wrapper .order-content .products-wrapper .order-details-step .order-details-step-content .order-details-step-content-info p {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--grey-60);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

.account-page .account-order .order-card-wrapper .order-content .products-wrapper .order-details-step .order-details-step-content .order-details-step-content-info p span {
    color: var(--grey-90);
}

.account-page .account-order .order-card-wrapper .order-content .payment-notification {
    display: flex;
    gap: .75rem;
    align-items: flex-start;

    padding: .75rem 1rem;
    border-radius: .5rem;

    background-color: var(--sourcing-warning);
    box-shadow: inset 0 0 0 .0625rem #00000033;

    font-size: .875rem;
    color: var(--white);
}

.account-page .account-order .order-card-wrapper .order-content .payment-notification h5 {
    margin: 0 0 .25rem 0;
    font-size: 1em;
    font-weight: 500;
}

.account-page .account-order .order-card-wrapper .order-content .payment-notification p {
    margin: 0;
    font-size: 0.85em;
    opacity: 0.8;
}

.account-page .account-order .order-card-wrapper .order-content .payment-notification p .pay-now-button {
    font-size: 1em;
    text-decoration: underline;
    text-underline-position: from-font;
    padding: 0;
    color: inherit;
}

.account-page .account-order .order-card-wrapper .order-footer {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--light-grey);
}

.account-page .account-order .order-card-wrapper .order-footer .order-info-wrapper {
    display: flex;
    gap: inherit;
    flex-wrap: wrap;
    flex-grow: 1;
}

.account-page .account-order .order-card-wrapper .order-footer .order-info-wrapper .order-info {
    display: flex;
    gap: .5rem;

    font-size: .875rem;
    font-weight: 400;
    color: var(--tertiary-color);
}

.account-page .account-order .order-card-wrapper .order-footer .order-info-wrapper .order-info .order-info-value {
    color: var(--gray);
}

.account-page .account-order .order-card-wrapper .order-footer .order-info-wrapper .order-info .order-info-value.cancelled {
    color: var(--red-fill);
}

.account-page .account-order .order-card-wrapper .order-footer .order-info-wrapper .order-info .order-info-value.complete {
    color: var(--green-success);
}

.account-page .account-order .order-card-wrapper .order-footer .order-info-wrapper .order-info .order-info-value.pending,
.account-page .account-order .order-card-wrapper .order-footer .order-info-wrapper .order-info .order-info-value.processing {
    color: var(--sourcing-warning);
}

.account-page .account-order .order-card-wrapper .order-footer .order-actions-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.account-page .account-order .order-card-wrapper .order-footer .order-actions-wrapper .order-action {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--tertiary-color);
    text-decoration: none;
}