#table .mz-mobile-only,
#table .mz-product-details {
    display: none;
}

#table .mz-product-action {
    width: 142px;
    white-space: nowrap;
}

#table .mz-product-action .heart {
    display: inline-flex;
    margin-inline-start: 6px;
}

#table .mz-product-action form {
    display: none;
}

#table .table_count :is(.minus, .plus, .remove_product) {
    border: 0;
    background-color: transparent;
}

.mz-cart-action {
    min-height: 34px;
    padding: 5px 11px;
    border: 1px solid var(--mz-action);
    border-radius: 7px;
    background: var(--mz-action);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.mz-cart-action:hover {
    border-color: var(--mz-action-hover);
    background: var(--mz-action-hover);
}

#table :is(button, input, summary):focus-visible,
.mz-wholesale :is(a, button):focus-visible {
    outline: 2px solid var(--mz-focus);
    outline-offset: 3px;
}

.mz-search-empty {
    margin: 16px 0 45px;
    padding: 22px;
    border: 1px solid var(--mz-border);
    border-radius: 10px;
    background: var(--mz-surface);
    color: var(--mz-text);
}

.mz-search-empty h2 {
    font-size: 19px;
    font-weight: 700;
}

.mz-search-empty a {
    display: block;
    width: fit-content;
    color: var(--mz-link);
    margin-block-start: 8px;
}

@media (max-width: 767px) {
    #table.mz-parts-table,
    #table.mz-parts-table tbody {
        display: block;
        width: 100%;
    }

    #table.mz-parts-table thead,
    #table .mz-desktop-code {
        display: none;
    }

    #table.mz-parts-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "name name"
            "brand article"
            "price stock"
            "action action"
            "quantity quantity"
            "details details";
        column-gap: 10px;
        padding: 14px;
        margin-bottom: 10px;
        border: 1px solid var(--mz-border);
        border-radius: 10px;
        background: var(--mz-surface);
        color: var(--mz-text);
    }

    #table.mz-parts-table td {
        display: block;
        width: auto;
        height: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: inherit;
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    #table.mz-parts-table .mz-desktop-code {
        display: none;
    }

    #table span.mz-mobile-only {
        display: inline;
    }

    #table.mz-parts-table .mz-product-name {
        grid-area: name;
        margin-bottom: 6px;
        font-size: 16px;
        font-weight: 700;
    }

    #table.mz-parts-table .mz-product-brand {
        grid-area: brand;
        color: var(--mz-muted);
    }

    #table.mz-parts-table .mz-product-code {
        grid-area: article;
        color: var(--mz-muted);
        text-align: end;
    }

    #table.mz-parts-table .table_price {
        grid-area: price;
        align-self: center;
        margin-top: 9px;
        font-size: 18px;
        font-weight: 700;
    }

    #table.mz-parts-table .mz-product-stock {
        grid-area: stock;
        align-self: center;
        margin-top: 9px;
        color: var(--mz-muted);
        text-align: end;
    }

    #table.mz-parts-table .mz-product-action {
        display: flex;
        grid-area: action;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

    #table .mz-product-action .mz-cart-action {
        flex: 1;
        min-height: 42px;
    }

    #table .table_count {
        grid-area: quantity;
    }

    #table .table_count > div {
        justify-content: flex-start !important;
        gap: 8px;
        padding-top: 8px;
    }

    #table .table_count input {
        width: 54px;
        min-height: 42px;
        font-size: 14px;
    }

    #table .table_count :is(.minus, .plus, .remove_product) {
        min-width: 40px;
        min-height: 42px;
    }

    #table.mz-parts-table .mz-product-details {
        grid-area: details;
    }

    #table .mz-product-details > details {
        display: block;
        margin-top: 8px;
        color: var(--mz-link);
    }

    #table .mz-product-details summary {
        width: fit-content;
        padding-block: 4px;
        cursor: pointer;
    }

    #table .mz-product-details dl {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4px 10px;
        margin: 6px 0 2px;
        color: var(--mz-text);
    }

    #table .mz-product-details dd {
        margin: 0;
    }
}
