/**
 * Rich text / UEditor content styles
 * Preserve font-family, font-size, bold, colors from backend editor
 */

.cms-content {
    font-size: 16px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-synthesis: weight style;
}

.cms-content p,
.cms-content span,
.cms-content div,
.cms-content font,
.cms-content li,
.cms-content td,
.cms-content th,
.cms-content strong,
.cms-content b,
.cms-content em,
.cms-content i,
.cms-content u,
.cms-content sub,
.cms-content sup {
    font-size: unset;
    font-family: unset;
    font-weight: unset;
    font-style: unset;
    line-height: unset;
    vertical-align: baseline;
}

.cms-content p {
    margin: 0 0 1em;
}

.cms-content p:last-child {
    margin-bottom: 0;
}

.cms-content strong,
.cms-content b {
    font-weight: 700 !important;
}

.cms-content em,
.cms-content i:not([class*="icon"]) {
    font-style: italic !important;
}

.cms-content u,
.cms-content ins {
    text-decoration: underline !important;
}

.cms-content s,
.cms-content strike,
.cms-content del {
    text-decoration: line-through !important;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4,
.cms-content h5,
.cms-content h6 {
    font-weight: 700 !important;
    font-style: normal !important;
    margin: 0.8em 0 0.5em;
    line-height: 1.4 !important;
}

.cms-content h1 { font-size: 2em !important; }
.cms-content h2 { font-size: 1.75em !important; }
.cms-content h3 { font-size: 1.5em !important; }
.cms-content h4 { font-size: 1.25em !important; }
.cms-content h5 { font-size: 1.1em !important; }
.cms-content h6 { font-size: 1em !important; }

.cms-content img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.cms-content video,
.cms-content iframe {
    max-width: 100%;
}

.cms-content table {
    border-collapse: collapse;
    max-width: 100%;
    margin: 1em auto;
}

.cms-content table td,
.cms-content table th {
    border: 1px solid rgba(128, 128, 128, 0.35);
    padding: 8px 12px;
    vertical-align: middle;
}

.cms-content ul,
.cms-content ol {
    list-style-position: outside;
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.cms-content ul {
    list-style-type: disc;
}

.cms-content ol {
    list-style-type: decimal;
}

.cms-content li {
    list-style-type: inherit;
}

.cms-content a {
    color: #3fa9e2;
    text-decoration: underline;
}

.cms-content a:hover {
    color: #163c6d;
}

/* Product detail dark section */
.pro3 .info.cms-content {
    font-size: 16px;
    line-height: 1.8;
    color: #cccccc;
    text-align: left;
    width: 100%;
    max-width: 1200px;
}

.pro3 .info.cms-content *:not([style*="color"]) {
    color: inherit;
}

.pro10 .tableauto.cms-content {
    color: #cccccc;
}

.pro10 .tableauto.cms-content table td,
.pro10 .tableauto.cms-content table th {
    color: #cccccc;
    border-color: rgba(255, 255, 255, 0.15);
}

/* News detail */
.news_info2 .cms-content {
    color: #333333;
    font-size: 16px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .cms-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .pro3 .info.cms-content {
        font-size: 15px;
        padding: 0 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 1440px) {
    .pro3 .info.cms-content {
        font-size: 16px;
        line-height: 1.8;
    }
}
