/*
 * Orders history
 */

#dz-order-history .dz-order-reference {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

#dz-order-history .dz-order-reference p,
#dz-order-history .dz-order-payment {
    display: none;
}

#dz-order-history .dz-order-status {
    max-width: 200px;
}

#dz-order-history .dz-order-status span {
    display: flex;
    justify-content: center;
    max-width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    color: var(--white);
}

#dz-order-history .dz-order-status span.dark {
    color: var(--black);
}

#dz-order-history .dz-order-open {
    text-align: center;
}

#dz-order-history .dz-order-detail {
    max-height: 0;
    opacity: 0;
    transition: opacity 1s ease;
    overflow: hidden;
}

#dz-order-history .dz-order-detail > td {
    padding: 20px;
}

#dz-order-history .dz-order-detail.open {
    background-color: var(--secondary);
    opacity: 1;
}

#dz-order-history .dz-order-detail:not(.open) td {
    padding: 0 !important;
    display: none;
}

#dz-order-history .dz-show-order-detail {
    cursor: pointer;
}

.dz-order-product-detail {
    font-size:10px;
}

.dz-order-product-detail > span {
    width: 20px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
}

@media (min-width: 640px) {
    #dz-order-history .dz-order-reference {
        text-align: left;
    }
    #dz-order-history .dz-order-payment {
        display: table-cell;
    }
    #dz-order-history .dz-order-reference p {
        display: block;
        margin: 5px 0 0 0;
        font-size:11px;
        font-weight: normal;
        color: var(--dark-gray);
    }
}

/* Order detail */

.dz-order-detail-item {
    display: grid;
    grid-template-columns: 20px auto;
    grid-template-rows: auto;
    gap: 10px;
    margin-top: 10px;
}

.dz-order-detail-item i {
    display: flex;
    justify-content: center;
    color: var(--primary);
}

#dz-order-status-table {
    margin-bottom: 20px;
}

#dz-order-price-table .dz-order-product-detail span:not(:last-child)::after {
    content: '•';
    margin: 0 3px;
}

#dz-order-price-table .dz-order-price-unit {
    display: none;
}

#dz-order-price-table .dz-order-price-total {
    min-width: 110px;
}

#dz-order-price-table .dz-order-price-total {
    font-weight: 600;
}

@media (min-width: 640px) {
    #dz-order-status-table {
        width: max-content;
    }

    #dz-order-price-table .dz-order-price-unit {
        display: table-cell;
    }
}
