/* Shared by the public rich text areas and the admin editor iframe. */
:root {
    --store-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --store-body-size: 16px;
    --store-h1-size: 32px;
    --store-h2-size: 25px;
    --store-h3-size: 20px;
    --store-h4-size: 18px;
    --store-copy-line: 1.75;
    --store-heading-line: 1.35;
}
:is(.ts-richtext, body#tinymce) {
    font-family:var(--store-font) !important;
    font-size:var(--store-body-size) !important;
    line-height:var(--store-copy-line) !important;
    color:#334155;
    overflow-wrap:anywhere;
}
body#tinymce { padding:16px 20px; margin:0; background:#fff; }
:is(.ts-richtext, body#tinymce) :is(p,li,td,th,blockquote,div) {
    font-family:var(--store-font) !important;
    font-size:var(--store-body-size) !important;
    line-height:var(--store-copy-line) !important;
}
:is(.ts-richtext, body#tinymce) :is(span,font,strong,b,em,i,u,a,small)[style],
:is(.ts-richtext, body#tinymce) font {
    font-family:inherit !important;
    font-size:inherit !important;
    line-height:inherit !important;
}
:is(.ts-richtext, body#tinymce) :is(h1,h2,h3,h4,h5,h6) {
    font-family:var(--store-font) !important;
    font-weight:650;
    line-height:var(--store-heading-line) !important;
    color:#17221d;
    margin:1.4em 0 .6em;
    text-transform:none;
    letter-spacing:normal;
}
:is(.ts-richtext, body#tinymce) h1 { font-size:var(--store-h1-size) !important; }
:is(.ts-richtext, body#tinymce) h2 { font-size:var(--store-h2-size) !important; }
:is(.ts-richtext, body#tinymce) h3 { font-size:var(--store-h3-size) !important; }
:is(.ts-richtext, body#tinymce) h4 { font-size:var(--store-h4-size) !important; }
:is(.ts-richtext, body#tinymce) :is(h5,h6) { font-size:var(--store-body-size) !important; }
:is(.ts-richtext, body#tinymce) p { margin:0 0 18px; }
:is(.ts-richtext, body#tinymce) :is(ul,ol) { margin:0 0 18px; padding-left:24px; }
:is(.ts-richtext, body#tinymce) li { margin:0 0 6px; }
:is(.ts-richtext, body#tinymce) > :first-child { margin-top:0; }
:is(.ts-richtext, body#tinymce) :is(h1,h2,h3,h4,h5,h6):empty { display:none; }
:is(.ts-richtext, body#tinymce) table { max-width:100%; }
.ts-richtext table { display:block; overflow-x:auto; }
:is(.ts-richtext, body#tinymce) :is(img,iframe,video) { max-width:100%; }
@media(max-width:768px) {
    :root { --store-h1-size:28px; --store-h2-size:23px; --store-h3-size:20px; }
}
/* Consistent page hierarchy; compact controls and promotional cards keep their roles. */
body:not(#tinymce) { font-size:var(--store-body-size); }
.content > h1,
.ts-category-hero h1,
.refurb-heading h1,
.ts-sale .ts-sale-config h1,
.ts-repair .ts-repair-intro h1,
.ts-appointment .ts-appointment-intro h1 {
    font-size:var(--store-h1-size) !important;
    line-height:var(--store-heading-line) !important;
    font-family:var(--store-font);
}
.ts-category-hero p, .ts-repair-intro p, .ts-sale-intro, .ts-appointment-intro p {
    font-size:var(--store-body-size) !important;
    line-height:var(--store-copy-line) !important;
}
