body.wp-theme-maxstore {
    --gtt-type-caption: 12px;
    --gtt-leading-caption: 16px;
    --gtt-type-label: 14px;
    --gtt-leading-label: 20px;
    --gtt-type-body: 16px;
    --gtt-leading-body: 24px;
    --gtt-type-section: 20px;
    --gtt-leading-section: 26px;
    --gtt-type-title: 24px;
    --gtt-leading-title: 30px;
}

/* Titles, article content and checkout headings. */
body.wp-theme-maxstore #main-content h1,
.single-product .woocommerce div.product .summary h1.product_title,
.single-product .woocommerce div.product .summary .product_price :is(p.price,.price) {
    font-size: var(--gtt-type-title);
    line-height: var(--gtt-leading-title);
    font-weight: 700;
}

body.wp-theme-maxstore #main-content :is(
    h2:not(.woocommerce-loop-product__title,.woocommerce-loop-category__title,.pt-cv-title),
    .section_title,
    .global-shippment,
    .dreamhouse-title,
    h3:has(+ .shortcode_posts)
),
body.wp-theme-maxstore #main-content .woocommerce form.checkout h3,
body.wp-theme-maxstore #order_review_heading {
    font-size: var(--gtt-type-section);
    line-height: var(--gtt-leading-section);
    font-weight: 700;
}

body.wp-theme-maxstore #main-content h3:not(.section_title,.global-shippment,.product_title,:has(+ .shortcode_posts)),
body.wp-theme-maxstore #main-content :is(.rsrc-post-content,.entry-content,.woocommerce-Tabs-panel) :is(h4,h5,h6) {
    font-size: var(--gtt-type-body);
    line-height: var(--gtt-leading-body);
    font-weight: 700;
}

body.wp-theme-maxstore:not(.single-post,.single-product) #main-content :is(.rsrc-post-content,.entry-content,.woocommerce-Tabs-panel,#tab-description) :is(p,li,dd,dt,td,th):not(.wp-caption-text,.sc_post_title,.sc_post_date,.post-meta),
body.wp-theme-maxstore #main-content :is(.tm-seo-dm-body,.tm-seo-dm-content) :is(p,li),
body.wp-theme-maxstore #main-content .tm-heading-03 p,
.woocommerce-checkout form.checkout .product-name,
body.wp-theme-maxstore #payment .payment_methods li > label {
    font-size: var(--gtt-type-body);
    line-height: var(--gtt-leading-body);
}

/* WordPress content may carry its own inline font size from the editor. */
body.wp-theme-maxstore:not(.single-post,.single-product) #main-content :is(.rsrc-post-content,.entry-content,#tab-description) :is(p,li,td,th)[style*="font-size" i]:not(.wp-caption-text,.post-meta) {
    font-size: var(--gtt-type-body) !important;
    line-height: var(--gtt-leading-body) !important;
}

body.wp-theme-maxstore:not(.single-post,.single-product) #main-content :is(.rsrc-post-content,.entry-content,#tab-description)
    :is(p,li,td,th,h2,h3,h4,figcaption) :is(span,a,strong,b,em)[style*="font-size" i]:not(.fa,[aria-hidden=true]) {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Repeated cards and controls. */
body.wp-theme-maxstore #main-content .woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    max-height: calc(2 * var(--gtt-leading-label));
    padding-bottom: 0;
    margin-bottom: 5px;
    font-size: var(--gtt-type-body);
    line-height: var(--gtt-leading-label);
    font-weight: 500;
}

body.wp-theme-maxstore #main-content .shortcode_posts .sc_post .sc_post_title,
body.wp-theme-maxstore #main-content .shortcode_posts .sc_post .sc_post_title > a,
body.wp-theme-maxstore #main-content .search_relative_post .pt-cv-title,
body.wp-theme-maxstore #main-content .search_relative_post .pt-cv-title > a,
body.wp-theme-maxstore #main-content .archive-article > .type-post .page-header,
body.wp-theme-maxstore #main-content .archive-article > .type-post .page-header > a {
    font-size: var(--gtt-type-body);
    line-height: var(--gtt-leading-label);
    font-weight: 500;
}

body.wp-theme-maxstore #main-content .woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce-cart .woocommerce-cart-form .cart_item .product_title,
.woocommerce-cart .woocommerce-cart-form .cart_item .product_title > a {
    font-size: var(--gtt-type-label);
    line-height: var(--gtt-leading-label);
    font-weight: 500;
}

body.wp-theme-maxstore #main-content .woocommerce ul.products li.product .price,
body.wp-theme-maxstore #main-content .woocommerce ul.products li.product .price .amount,
.woocommerce-cart .woocommerce-cart-form .cart_item .amount,
.woocommerce-checkout .woocommerce-checkout-review-order-table :is(.product-total,.order-total) .amount {
    font-size: var(--gtt-type-body);
    line-height: var(--gtt-leading-body);
    font-weight: 700;
}

body.wp-theme-maxstore #main-content .woocommerce ul.products li.product .price del .amount {
    font-size: var(--gtt-type-caption);
    line-height: var(--gtt-leading-caption);
    font-weight: 400;
}

.single-product .woocommerce div.product .summary .product_price .price del,
.single-product .woocommerce div.product .summary .product_price .price del .amount {
    font-size: var(--gtt-type-label);
    line-height: var(--gtt-leading-label);
    font-weight: 400;
}

body.wp-theme-maxstore #main-content .product_count_total .product_count_total_cnt :is(.prod_count > span:not([id]),.view_all) {
    font-size: var(--gtt-type-label);
    line-height: var(--gtt-leading-label);
}

#main-content .product.type-product form.mobile_variations_form .gtt-variation-radios > label:not(.image_label),
#main-content .woocommerce div.product form.mobile_variations_form .variations td.label label {
    font-size: var(--gtt-type-label) !important;
    line-height: var(--gtt-leading-label) !important;
}

.single-product .woocommerce div.product .summary form.cart :is(#add-to-cart-btn,.single_variation_wrap > button.single_add_to_cart_button,form.cart > button.single_add_to_cart_button),
body.wp-theme-maxstore #place_order,
.woocommerce-cart .woocommerce-cart-form .cart_item :is(a.remove,.remove_item),
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    font-size: var(--gtt-type-label) !important;
    line-height: var(--gtt-leading-label) !important;
}

.single-product .woocommerce div.product .summary form.cart .quantity .qty,
.woocommerce-cart .woocommerce-cart-form :is(input.qty,.plus_btn,.minus_btn),
body.wp-theme-maxstore #main-content .woocommerce form.checkout :is(input:not([type=hidden],[type=radio],[type=checkbox],[type=submit]),textarea,select),
.woocommerce :is(select.orderby, .woocommerce-ordering select),
#header .searchform .wrap_search_input #search_keyword,
#header.gtt-search-open .searchform .wrap_search_input #search_keyword {
    font-size: var(--gtt-type-body) !important;
    line-height: var(--gtt-leading-body);
}

.single-product .woocommerce div.product .summary form.cart:has(#add-to-cart-btn) .quantity button.gtt-qty-step {
    font-size: var(--gtt-type-body) !important;
}

.single-product .woocommerce div.product .summary .dreamhouse-list li,
.single-product .woocommerce div.product .summary .gtt-purchase-status,
.woocommerce-checkout form.checkout .payment_box p,
#colophon :is(p,.store-name,.top_button a,.nav-tabs a),
#header #search_head_mobile :is(#hint_keywords button,[role=status]) {
    font-size: var(--gtt-type-label);
    line-height: var(--gtt-leading-label);
}

#header #search_head_mobile #gtt-search-heading {
    font-size: var(--gtt-type-body);
    line-height: var(--gtt-leading-body);
}

/* Secondary labels. */
#colophon .wrap-fixed-footer :is(a.button,button.button),
body.wp-theme-maxstore #main-content .gtt_mobile_breadcrumb,
body.wp-theme-maxstore #main-content :is(.wp-caption-text,figcaption,.post-meta,.post-meta a,.post-meta time),
.single-product .woocommerce div.product .summary .product-sku,
#main-content .product.type-product form.mobile_variations_form .gtt-variation-radios > label.image_label::after {
    font-size: var(--gtt-type-caption);
    line-height: var(--gtt-leading-caption);
}

#header .header-logo .header-on-scroll .foot_shopping_cart #count-cart {
    font-size: var(--gtt-type-caption);
}

/* The logo is positioned separately. Anchor the label to the footer text row. */
#colophon .wrap-fixed-footer .fixed-footer-zalo > .button {
    display: grid;
    align-content: end;
    justify-items: center;
    padding: 0 0 6px;
    line-height: var(--gtt-leading-caption);
    white-space: nowrap;
}
