﻿.product-description-preview h2 {
    font-size: 20px;
    margin-top: 10px;
}

.product-description-preview h3 {
    font-size: 16px;
    margin-top: 10px;
}

.product-description-preview ul, .product-description-preview ol {
    padding-left: 20px;
}

.product-description-preview p {
    margin: 0 0 8px;
}

.product-description-preview[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

#descriptionPreview table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#descriptionPreview th, #descriptionPreview td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    vertical-align: top;
}

#descriptionPreview th {
    font-weight: bold;
}

/* Container that holds the description HTML */
.product-description,
#descriptionPreview {
    /* optional: keep text readable */
    line-height: 1.5;
}

    /* Tables inside description */
    .product-description table,
    #descriptionPreview table {
        width: 100%;
        max-width: 100%;
        border-collapse: collapse;
        margin: 10px 0 15px;
        background: #fff;
    }

    /* Cell borders and padding */
    .product-description th,
    .product-description td,
    #descriptionPreview th,
    #descriptionPreview td {
        border: 1px solid #ddd;
        padding: 8px 10px;
        vertical-align: top;
    }

    /* Header style */
    .product-description th,
    #descriptionPreview th {
        font-weight: 700;
        background: #f5f5f5;
    }

    /* Make long text wrap nicely */
    .product-description td,
    #descriptionPreview td {
        word-break: break-word;
    }

    /* Zebra rows (optional, subtle) */
    .product-description tbody tr:nth-child(odd),
    #descriptionPreview tbody tr:nth-child(odd) {
        background: #fcfcfc;
    }

/* Responsive: allow horizontal scroll on small screens */
.product-description,
#descriptionPreview {
    overflow-x: auto;
}
