/*
 * Rich text from Filament editor / CMS.
 * The storefront uses Tailwind CDN preflight, which strips list markers and table borders.
 */

.rich-html-content ol,
.legal-document-content ol,
.product-description-content ol {
    list-style-type: decimal;
    padding-inline-start: 1.5rem;
    margin-bottom: 0.75rem;
}

.rich-html-content ul,
.legal-document-content ul,
.product-description-content ul {
    list-style-type: disc;
    padding-inline-start: 1.5rem;
    margin-bottom: 0.75rem;
}

.rich-html-content li,
.legal-document-content li,
.product-description-content li {
    display: list-item;
    margin-block: 0.25rem;
}

.rich-html-content li > ol,
.rich-html-content li > ul,
.legal-document-content li > ol,
.legal-document-content li > ul,
.product-description-content li > ol,
.product-description-content li > ul {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.rich-html-content table,
.legal-document-content table,
.product-description-content table {
    display: table;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    margin: 0.75rem 0;
    font-size: inherit;
}

.rich-html-content thead,
.legal-document-content thead,
.product-description-content thead {
    display: table-header-group;
}

.rich-html-content tbody,
.legal-document-content tbody,
.product-description-content tbody {
    display: table-row-group;
}

.rich-html-content tr,
.legal-document-content tr,
.product-description-content tr {
    display: table-row;
}

.rich-html-content th,
.rich-html-content td,
.legal-document-content th,
.legal-document-content td,
.product-description-content th,
.product-description-content td {
    display: table-cell;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    text-align: inherit;
}

.rich-html-content th,
.legal-document-content th,
.product-description-content th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.rich-html-content th p,
.rich-html-content td p,
.legal-document-content th p,
.legal-document-content td p,
.product-description-content th p,
.product-description-content td p {
    margin: 0;
}

.rich-html-content blockquote,
.legal-document-content blockquote,
.product-description-content blockquote {
    border-inline-start: 4px solid #d1d5db;
    padding-inline-start: 1rem;
    margin: 0.75rem 0;
    color: #4b5563;
}

.rich-html-content pre,
.legal-document-content pre,
.product-description-content pre {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
}

.rich-html-content code,
.legal-document-content code,
.product-description-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
}

.rich-html-content hr,
.legal-document-content hr,
.product-description-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0;
}

.rich-html-content img,
.legal-document-content img,
.product-description-content img {
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0;
}
