.article-rich-text,
.faq-answer,
.questions,
.problem-content {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-rich-text img,
.faq-answer img,
.questions img,
.problem-content img {
    display: block;
    max-width: 100% !important;
    min-width: 0 !important;
    width: auto;
    height: auto !important;
    box-sizing: border-box;
    object-fit: contain;
}

.article-rich-text figure,
.article-rich-text picture,
.article-rich-text video,
.article-rich-text iframe,
.article-rich-text table,
.faq-answer figure,
.faq-answer picture,
.faq-answer video,
.faq-answer iframe,
.faq-answer table,
.questions figure,
.questions picture,
.questions video,
.questions iframe,
.questions table,
.problem-content figure,
.problem-content picture,
.problem-content video,
.problem-content iframe,
.problem-content table {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.article-rich-text table,
.faq-answer table,
.questions table,
.problem-content table {
    display: block;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .article-rich-text,
    .faq-answer,
    .questions,
    .problem-content {
        overflow-x: hidden;
    }
}

/* Keep rich text media and long content inside its container. */
.article-rich-text,
.article_content,
.article-content,
.article_content,
.art-content,
.page-content,
.notice-detail-content,
.agreement-content,
.style8-help-article,
.edit-text,
.problem-content,
.faq-answer,
.partner-faq__answer {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-rich-text *,
.article_content *,
.article-content *,
.art-content *,
.page-content *,
.notice-detail-content *,
.agreement-content *,
.style8-help-article *,
.edit-text *,
.problem-content *,
.faq-answer *,
.partner-faq__answer * {
    max-width: 100%;
    box-sizing: border-box;
}

.article-rich-text img,
.article-rich-text video,
.article-rich-text iframe,
.article-rich-text embed,
.article-rich-text object,
.article_content img,
.article_content video,
.article_content iframe,
.article_content embed,
.article_content object,
.article-content img,
.article-content video,
.article-content iframe,
.article-content embed,
.article-content object,
.art-content img,
.art-content video,
.art-content iframe,
.art-content embed,
.art-content object,
.page-content img,
.page-content video,
.page-content iframe,
.page-content embed,
.page-content object,
.notice-detail-content img,
.notice-detail-content video,
.notice-detail-content iframe,
.notice-detail-content embed,
.notice-detail-content object,
.agreement-content img,
.agreement-content video,
.agreement-content iframe,
.agreement-content embed,
.agreement-content object,
.style8-help-article img,
.style8-help-article video,
.style8-help-article iframe,
.style8-help-article embed,
.style8-help-article object,
.edit-text img,
.edit-text video,
.edit-text iframe,
.edit-text embed,
.edit-text object {
    display: block;
    max-width: 100% !important;
    width: auto;
    height: auto !important;
}

.article-rich-text iframe,
.article-rich-text embed,
.article-rich-text object,
.article_content iframe,
.article_content embed,
.article_content object,
.article-content iframe,
.article-content embed,
.article-content object,
.page-content iframe,
.page-content embed,
.page-content object,
.notice-detail-content iframe,
.notice-detail-content embed,
.notice-detail-content object,
.style8-help-article iframe,
.style8-help-article embed,
.style8-help-article object {
    width: 100% !important;
    min-height: 0;
}

.article-rich-text table,
.article_content table,
.article-content table,
.art-content table,
.page-content table,
.notice-detail-content table,
.agreement-content table,
.style8-help-article table,
.edit-text table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.article-rich-text th,
.article-rich-text td,
.article_content th,
.article_content td,
.article-content th,
.article-content td,
.art-content th,
.art-content td,
.page-content th,
.page-content td,
.notice-detail-content th,
.notice-detail-content td,
.agreement-content th,
.agreement-content td,
.style8-help-article th,
.style8-help-article td,
.edit-text th,
.edit-text td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-rich-text pre,
.article_content pre,
.article-content pre,
.art-content pre,
.page-content pre,
.notice-detail-content pre,
.agreement-content pre,
.style8-help-article pre,
.edit-text pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
