@media screen and (width < 1024px) {
    :is(.html-product-details-page #tabSection1, :is(.html-category-page, .html-manufacturer-page) #details)
    > .details__body .ab-table-wrap {
        max-inline-size: 100%;
        overflow-x: auto;
    }

    :is(.html-product-details-page #tabSection1, :is(.html-category-page, .html-manufacturer-page) #details)
    > .details__body .ab-table-wrap > table {
        max-inline-size: none;
        table-layout: auto !important;
    }

    /* Saved HTML descriptions can also contain standalone tables. */
    :is(.html-product-details-page #tabSection1, :is(.html-category-page, .html-manufacturer-page) #details)
    > .details__body table:not(.ab-table-wrap table, table table) {
        display: block;
        min-inline-size: 0 !important;
        max-inline-size: 100% !important;
        overflow-x: auto;
    }

    :is(.html-product-details-page #tabSection1, :is(.html-category-page, .html-manufacturer-page) #details)
    > .details__body table :is(th, td) {
        min-inline-size: 9rem;
        word-break: normal;
        overflow-wrap: anywhere;
    }
}
