/* Restore rich text spacing after Speedy's global reset. The extra
   .description_block scope also overrides bulbul.categories_description.css
   regardless of the order in which the two modifiers register their styles. */
#product-category .description_block .description_content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

#product-category .description_block > img {
    flex-shrink: 0;
}

#product-category .description_block .description_text,
#corporate-category .description_content > div:first-child {
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    overflow-wrap: anywhere;
}

/* The theme sets font-size on every element and a separate size on p.
   Normalize the entire description, including lists, links, table cells and
   nested editor markup. Important also overrides pasted inline font styles. */
#product-category .description_block .description_text *,
#corporate-category .description_content > div:first-child * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

#product-category .description_block .description_text h1,
#corporate-category .description_content > div:first-child h1,
#product-category .description_block .description_text h2,
#corporate-category .description_content > div:first-child h2,
#product-category .description_block .description_text h3,
#corporate-category .description_content > div:first-child h3,
#product-category .description_block .description_text h4,
#corporate-category .description_content > div:first-child h4,
#product-category .description_block .description_text h5,
#corporate-category .description_content > div:first-child h5,
#product-category .description_block .description_text h6,
#corporate-category .description_content > div:first-child h6 {
    margin: 24px 0 12px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

/* Speedy applies font-size to every element, including strong/span inside
   headings. Keep nested markup at the heading's size instead of the body size. */
#product-category .description_block .description_text h1 *,
#corporate-category .description_content > div:first-child h1 *,
#product-category .description_block .description_text h2 *,
#corporate-category .description_content > div:first-child h2 *,
#product-category .description_block .description_text h3 *,
#corporate-category .description_content > div:first-child h3 *,
#product-category .description_block .description_text h4 *,
#corporate-category .description_content > div:first-child h4 *,
#product-category .description_block .description_text h5 *,
#corporate-category .description_content > div:first-child h5 *,
#product-category .description_block .description_text h6 *,
#corporate-category .description_content > div:first-child h6 * {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit !important;
}

#product-category .description_block .description_text p,
#corporate-category .description_content > div:first-child p,
#product-category .description_block .description_text ul,
#corporate-category .description_content > div:first-child ul,
#product-category .description_block .description_text ol,
#corporate-category .description_content > div:first-child ol,
#product-category .description_block .description_text blockquote,
#corporate-category .description_content > div:first-child blockquote,
#product-category .description_block .description_text table,
#corporate-category .description_content > div:first-child table {
    margin: 0 0 16px !important;
}

#product-category .description_block .description_text ul,
#corporate-category .description_content > div:first-child ul,
#product-category .description_block .description_text ol,
#corporate-category .description_content > div:first-child ol {
    padding-left: 24px;
}

#product-category .description_block .description_text ul > li,
#corporate-category .description_content > div:first-child ul > li {
    list-style: disc outside;
}

#product-category .description_block .description_text ol > li,
#corporate-category .description_content > div:first-child ol > li {
    list-style: decimal outside;
}

#product-category .description_block .description_text li,
#corporate-category .description_content > div:first-child li {
    margin-bottom: 6px;
}

#product-category .description_block .description_text li > ul,
#corporate-category .description_content > div:first-child li > ul,
#product-category .description_block .description_text li > ol,
#corporate-category .description_content > div:first-child li > ol {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

#product-category .description_block .description_text blockquote,
#corporate-category .description_content > div:first-child blockquote {
    padding-left: 16px;
    border-left: 3px solid #eee;
}

#product-category .description_block .description_text img,
#corporate-category .description_content > div:first-child img {
    max-width: 100%;
    height: auto;
    margin-right: 0;
}

#product-category .description_block .description_text table,
#corporate-category .description_content > div:first-child table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

#product-category .description_block .description_text > :first-child,
#corporate-category .description_content > div:first-child > :first-child {
    margin-top: 0 !important;
}

#product-category .description_block .description_text > :last-child,
#corporate-category .description_content > div:first-child > :last-child {
    margin-bottom: 0 !important;
}
