body:is(.wp-theme-shopping,.wp-theme-maxstore) {
    --gtt-reading-size: 17px;
    --gtt-reading-leading: 1.62;
    --gtt-reading-title: clamp(25px, 2vw, 30px);
    --gtt-reading-h2: clamp(22px, 2vw, 27px);
    --gtt-reading-h3: 20px;
    --gtt-reading-h4: 18px;
    --gtt-reading-ink: #283743;
    --gtt-heading-ink: #182a37;
}

body.wp-theme-maxstore {
    --gtt-reading-size: 16px;
    --gtt-reading-leading: 1.58;
    --gtt-reading-title: 24px;
    --gtt-reading-h2: clamp(20px, 5.65vw, 23px);
    --gtt-reading-h3: 18px;
    --gtt-reading-h4: 16px;
}

body:is(.wp-theme-shopping,.wp-theme-maxstore).single-post h1.blog-title,
body.wp-theme-shopping.gtt-pdp-desktop #single-product .wrap-product-title .contain_product_title h1.product-title,
body.wp-theme-maxstore.single-product #main-content h1.product_title {
    font-size: var(--gtt-reading-title);
    line-height: 1.25;
    font-weight: 650;
    letter-spacing: -.016em;
    overflow-wrap: anywhere;
}

body:is(.wp-theme-shopping,.wp-theme-maxstore) :is(.single-product #tab-description,.single-post #ftwp-postcontent,.single-post .entry-content,.single-post .rsrc-post-content,.page .entry-content)
    :is(p,ul:not([class]) > li,ol:not([class]) > li,dd,dt,td,th):not(:where(.wp-caption-text,.post-meta,.sc_post_title,.sc_post_date,.products *,#ftwp-container *,.ftwp-wrap *,.gtt-post-related *,.gtt-blog-comments *,.woocommerce form *,.tm-seo-dm *,.wp-block-buttons *)) {
    font-size: var(--gtt-reading-size);
    line-height: var(--gtt-reading-leading);
    letter-spacing: -.006em;
    color: var(--gtt-reading-ink);
}

/* Legacy editor snippets set point sizes directly on paragraphs and headings. */
body:is(.wp-theme-shopping,.wp-theme-maxstore):is(.single-post,.single-product) :is(#tab-description,#ftwp-postcontent,.entry-content,.rsrc-post-content)
    :is(p,ul:not([class]) > li,ol:not([class]) > li)[style*="font-size" i]:not(:where(.wp-caption-text,.post-meta,.sc_post_title,.products *,#ftwp-container *,.ftwp-wrap *,.gtt-post-related *,.gtt-blog-comments *,.tm-seo-dm *,.wp-block-buttons *)) {
    font-size: var(--gtt-reading-size) !important;
    line-height: var(--gtt-reading-leading) !important;
}

body:is(.wp-theme-shopping,.wp-theme-maxstore):is(.single-post,.single-product) :is(#tab-description,#ftwp-postcontent,.entry-content,.rsrc-post-content)
    :is(h2,h3,h4):not(:where(.products *,#ftwp-container *,.ftwp-wrap *,.gtt-post-related *,.gtt-blog-comments *,.tm-seo-dm *,.section_title,.sc_post_title,.woocommerce-loop-product__title,.page-header)) {
    font-size: var(--gtt-reading-heading-size) !important;
    line-height: 1.34 !important;
    color: var(--gtt-heading-ink);
    font-weight: 620;
    letter-spacing: -.016em;
    overflow-wrap: break-word;
}

:is(#tab-description,#ftwp-postcontent,.entry-content,.rsrc-post-content) h2 { --gtt-reading-heading-size: var(--gtt-reading-h2); }
:is(#tab-description,#ftwp-postcontent,.entry-content,.rsrc-post-content) h3 { --gtt-reading-heading-size: var(--gtt-reading-h3); }
:is(#tab-description,#ftwp-postcontent,.entry-content,.rsrc-post-content) h4 { --gtt-reading-heading-size: var(--gtt-reading-h4); }

body.single-post .gtt-blog-content details + :is(h2,h3,h4) {
    margin-block-start: clamp(20px, 2vw, 24px);
}

body:is(.wp-theme-shopping,.wp-theme-maxstore):is(.single-post,.single-product) :is(#tab-description,#ftwp-postcontent,.entry-content,.rsrc-post-content)
    :is(p,li,h2,h3,h4):not(:where(.products *,#ftwp-container *,.ftwp-wrap *,.gtt-post-related *,.gtt-blog-comments *,.tm-seo-dm *,.wp-caption *,.sc_post_title))
    :is(span,font,a,strong,b,em)[style*="font-size" i]:not(:where(.fa,[aria-hidden=true])) {
    font-size: inherit !important;
    line-height: inherit !important;
}

@media (min-width: 992px) {
    body.wp-theme-shopping :is(.single-product #tab-description,.single-post #ftwp-postcontent) > p:not(:where(.wp-caption-text,.has-text-align-center,[style*="center"])):not(:has(img,iframe,video,svg,button)) {
        max-width: 76ch;
        margin-inline: auto;
    }
}

body:is(.wp-theme-shopping,.wp-theme-maxstore) :is(.single-product #tab-description,.single-post #ftwp-postcontent,.single-post .entry-content,.page .entry-content)
    p[style*="justify"]:not(:where(.products *,.woocommerce form *,.tm-seo-dm *)) {
    text-align: start !important;
}

body:is(.wp-theme-shopping,.wp-theme-maxstore) :is(.single-product #tab-description,.single-post #ftwp-postcontent,.single-post .entry-content)
    p:not(:where(.wp-caption-text,.post-meta,.sc_post_title,.products *,#ftwp-container *,.ftwp-wrap *,.gtt-post-related *,.gtt-blog-comments *,.tm-seo-dm *)) :is(strong,b) {
    font-weight: 620;
}

body:is(.wp-theme-shopping,.wp-theme-maxstore) :is(.single-product #tab-description,.single-post #ftwp-postcontent,.single-post .entry-content)
    p:not(:where(.wp-caption-text,.post-meta,.sc_post_title,.products *,#ftwp-container *,.ftwp-wrap *,.gtt-post-related *,.gtt-blog-comments *,.tm-seo-dm *)) a {
    color: #1e648c;
    text-decoration: underline;
    text-decoration-thickness: .065em;
    text-underline-offset: .15em;
}

body.wp-theme-shopping.single-product div:has(> img[src*="/icon-quay.gif"]) > div {
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.34;
    letter-spacing: -.016em;
    color: var(--gtt-heading-ink);
    margin-bottom: 10px;
}

body.wp-theme-shopping :is(h1.page-title,h1.blog-title,.section_product_slider .section_title),
body.wp-theme-maxstore #main-content :is(h1.page-title,h1.blog-title,.section_title),
body:is(.wp-theme-shopping,.wp-theme-maxstore) :is(.tm-heading-03,.tm-heading-04,.tm-heading-05,.tm-heading-06,.tm-heading-07,.tm-heading-08) h2 {
    letter-spacing: -.016em;
}

body:is(.wp-theme-shopping,.wp-theme-maxstore) :is(.tm-heading-03,.tm-heading-04,.tm-heading-05,.tm-heading-06,.tm-heading-07,.tm-heading-08) p,
body:is(.wp-theme-shopping,.wp-theme-maxstore) :is(.tm-seo-dm-text,.gtt-cabinet-intro) {
    letter-spacing: -.006em;
}

body.wp-theme-shopping .product-block .name a,
body.wp-theme-maxstore #main-content .woocommerce-loop-product__title,
body:is(.wp-theme-shopping,.wp-theme-maxstore) :is(.archive-article .page-header,.new-blog h2.entry-title,.sc_post_title) a {
    letter-spacing: -.009em;
}

body.wp-theme-maxstore .archive-article .page-header a { text-transform: none; }
body:is(.wp-theme-shopping,.wp-theme-maxstore) .dreamhouse-title { letter-spacing: -.015em; }
body:is(.wp-theme-shopping,.wp-theme-maxstore) .dreamhouse-list li { letter-spacing: -.005em; }
body.wp-theme-shopping #wpo-footer .newsletter .text-banner h3 { letter-spacing: -.017em !important; }
body.wp-theme-maxstore #colophon :is(.global-shippment,.addr_cnt h3) { letter-spacing: -.013em; }
