
        /* ==========================================================================
   Viapol Product Rich Text Styles
   Use with: <div class="rte-product-details"> @Html.Raw(content) </div>
   ========================================================================== */

.rte-product-details {
    font-family: "Sora", system-ui, sans-serif;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.65;
    width: 100%;
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Base spacing
   -------------------------------------------------------------------------- */

.rte-product-details > *:first-child {
    margin-top: 0;
}

.rte-product-details > *:last-child {
    margin-bottom: 0;
}

.rte-product-details p {
    margin: 0 0 1.25em;
}

.rte-product-details strong,
.rte-product-details b {
    color: #17213a;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   Intro paragraph
   More product-like, less blog/editorial
   -------------------------------------------------------------------------- */

.rte-product-details > p:first-of-type {
    color: #344054;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.65;
    margin-bottom: 2em;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f7fbf7;
    border: 1px solid rgba(104, 186, 79, 0.16);
}

/* Remove blog-style drop cap */
.rte-product-details > p:first-of-type::first-letter {
    all: unset;
}

/* --------------------------------------------------------------------------
   Headings
   Smaller, more technical, closer to the product page
   -------------------------------------------------------------------------- */

.rte-product-details h2,
.rte-product-details h3,
.rte-product-details h4 {
    position: relative;
    color: #17213a;
    font-weight: 900;
    line-height: 1.25;
    margin: 2.2em 0 1em;
    padding-left: 18px;
}

.rte-product-details h1 {
    font-size: 24px;
}

.rte-product-details h2 {
    font-size: 20px;
}

.rte-product-details h3 {
    font-size: 17px;
}

.rte-product-details h4 {
    font-size: 15px;
}

.rte-product-details h2::before,
.rte-product-details h3::before,
.rte-product-details h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 4px;
    height: 1.2em;
    border-radius: 999px;
    background: linear-gradient(180deg, #68ba4f 0%, #0128b3 100%);
}

/* Optional eyebrow-like small titles if the RTE-product-details uses h5/h6 */
.rte-product-details h5,
.rte-product-details h6 {
    margin: 2em 0 0.8em;
    color: #40bf5b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.rte-product-details ul {
    list-style: none;
    padding-left: 0;
    margin: 1.25em 0 2em;
}

.rte-product-details ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    line-height: 1.55;
}

.rte-product-details ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background-color: rgba(104, 186, 79, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2368BA4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px;
}

.rte-product-details ol {
    padding-left: 1.3em;
    margin: 1.25em 0 2em;
}

.rte-product-details ol li {
    padding-left: 4px;
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Blockquote / technical note
   -------------------------------------------------------------------------- */

.rte-product-details blockquote {
    margin: 2em 0;
    padding: 20px 22px;
    border: 1px solid rgba(1, 40, 179, 0.1);
    border-left: 5px solid #0128b3;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(1, 40, 179, 0.055), rgba(104, 186, 79, 0.055));
    color: #344054;
}

.rte-product-details blockquote p {
    margin-bottom: 0.85em;
}

.rte-product-details blockquote p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

.rte-product-details a {
    color: #0128b3;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 180ms ease;
}

.rte-product-details a:hover {
    color: #68ba4f;
}

/* --------------------------------------------------------------------------
   Images
   -------------------------------------------------------------------------- */

.rte-product-details img {
    max-width: 100%;
    height: auto;
}

.rte-product-details figure {
    margin: 2em 0;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(14, 24, 52, 0.08);
}

.rte-product-details figure img {
    display: block;
    width: 100%;
}

.rte-product-details figcaption {
    padding: 12px 16px;
    background: #f8fbf8;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Tables
   Product technical style
   -------------------------------------------------------------------------- */

.rte-product-details table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2em 0;
    overflow: hidden;
    border: 1px solid #e6ebef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(14, 24, 52, 0.06);
}

.rte-product-details thead {
    background: linear-gradient(135deg, #f7fbf7 0%, #f4f7ff 100%);
}

.rte-product-details th {
    color: #17213a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #e6ebef;
}

.rte-product-details td {
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f4;
    vertical-align: top;
}

.rte-product-details tr:last-child td {
    border-bottom: 0;
}

.rte-product-details tbody tr:nth-child(even) {
    background: #fafcfb;
}

.rte-product-details tbody tr:hover {
    background: #f4faf4;
}

/* First column as label */
.rte-product-details td:first-child {
    color: #17213a;
    font-weight: 800;
}

/* Last column/value highlight */
.rte-product-details td:last-child {
    color: #16833a;
    font-weight: 800;
}

/* If table has only one column, avoid weird green all-column effect */
.rte-product-details tr td:only-child {
    color: #344054;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Table wrapper fallback
   Works even when Umbraco outputs table directly
   -------------------------------------------------------------------------- */

.rte-product-details {
    overflow-wrap: break-word;
}

.rte-product-details table {
    min-width: 620px;
}

.rte-product-details .table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* If the table is not wrapped manually, the RTE-product-details itself can scroll */
.rte-product-details {
    overflow-x: auto;
}

/* --------------------------------------------------------------------------
   Horizontal rule
   -------------------------------------------------------------------------- */

.rte-product-details hr {
    border: 0;
    height: 1px;
    margin: 2.5em 0;
    background: linear-gradient(90deg, transparent, #dfe6ea, transparent);
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .rte-product-details {
        font-size: 14px;
        line-height: 1.6;
    }

    .rte-product-details > p:first-of-type {
        font-size: 14px;
        padding: 16px;
        margin-bottom: 1.6em;
    }

    .rte-product-details h2 {
        font-size: 18px;
    }

    .rte-product-details h3 {
        font-size: 16px;
    }

    .rte-product-details h4 {
        font-size: 14px;
    }

    .rte-product-details h2,
    .rte-product-details h3,
    .rte-product-details h4 {
        margin-top: 2em;
        padding-left: 16px;
    }

    .rte-product-details ul li {
        padding-left: 30px;
        margin-bottom: 12px;
    }

    .rte-product-details blockquote {
        padding: 18px;
        border-radius: 16px;
    }

    .rte-product-details table {
        min-width: 560px;
        font-size: 13px;
    }

    .rte-product-details th,
    .rte-product-details td {
        padding: 12px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .rte-product-details table {
        min-width: 520px;
    }

    .rte-product-details th,
    .rte-product-details td {
        padding: 11px 12px;
    }
}
