/* TESVX semantic font families. Change a role here, never in individual plugins.
 * Family only: component sizes, spacing and responsive layouts remain their own.
 * --autoboss-font-mono is a legacy numeric alias, NOT the code font anymore.
 */
:root {
    --tesvx-font-default: 'Inter', sans-serif;
    --tesvx-font-mono: var(--tesvx-font-default);        /* Compatibility alias: all roles use Inter */
    --tesvx-font-body: var(--tesvx-font-default);       /* Paragraphs / general copy */
    --tesvx-font-heading: var(--tesvx-font-default);    /* H1-H6 / section headings */
    --tesvx-font-title: var(--tesvx-font-heading);      /* Product / card titles */
    --tesvx-font-price: var(--tesvx-font-default);      /* Prices / totals / discounts */
    --tesvx-font-label: var(--tesvx-font-mono);      /* Form labels / legends */
    --tesvx-font-button: var(--tesvx-font-mono);     /* Buttons / linked CTAs */
    --tesvx-font-input: var(--tesvx-font-default);      /* Text fields / selects */
    --tesvx-font-nav: var(--tesvx-font-default);        /* Menus / tabs / breadcrumbs */
    --tesvx-font-badge: var(--tesvx-font-mono);      /* Tags / stock / membership badges */
    --tesvx-font-meta: var(--tesvx-font-mono);       /* Dates / SKU / sales / footnotes */
    --tesvx-font-caption: var(--tesvx-font-default);    /* Image captions / helper text */
    --tesvx-font-spec: var(--tesvx-font-default);       /* Specifications / option values */
    --tesvx-font-number: var(--tesvx-font-default);     /* Quantities / counts / ratings */
    --tesvx-font-coupon: var(--tesvx-font-default);     /* Human-readable coupon codes */
    --tesvx-font-notice: var(--tesvx-font-default);     /* Toasts / errors / status */
    --tesvx-font-quote: var(--tesvx-font-body);         /* Quotes / editorial callouts */
    --tesvx-font-brand: var(--tesvx-font-default);      /* Text logos, not logo images */
    --tesvx-font-code: var(--tesvx-font-mono);

    /* Compatibility with the existing theme and custom plugins. */
    --autoboss-font-sans: var(--tesvx-font-body);
    --autoboss-font-mono: var(--tesvx-font-number);
    --theme-font-family: var(--tesvx-font-body);
    --theme-button-font-family: var(--tesvx-font-button);
    --theme-form-font-family: var(--tesvx-font-input);
    --abhf-font: var(--tesvx-font-body);
    --b2bking-font-family-a: var(--tesvx-font-body);
    --b2bking-font-family-b: var(--tesvx-font-body);
    --b2bking-font-family-c: var(--tesvx-font-body);
}

body, .editor-styles-wrapper { font-family: var(--tesvx-font-body); }
/* Local tokens must be rebound at the element declaring them, not just :root. */
html body :is(.abtd, .abtd-sheet, .abtd-viewer, .abtd-toast) {
    --abtd-font: var(--tesvx-font-body);
    --abtd-num: var(--tesvx-font-number);
}
html body .abpc-card { --abpc-font: var(--tesvx-font-body); --abpc-num: var(--tesvx-font-price); }
html body :is(.abtc, .abtc-layer) { --abtc-font: var(--tesvx-font-body); --abtc-num: var(--tesvx-font-number); }
html body :is(.abco, .abco-ty) { --abco-font: var(--tesvx-font-body); --abco-num: var(--tesvx-font-number); }
html body .abrv { --abrv-font: var(--tesvx-font-body); --abrv-num: var(--tesvx-font-number); }
html body #absa-page { --absa-font: var(--tesvx-font-body); }
html body .abspk-modal { --abspk-display-font: var(--tesvx-font-title); }
html body .abhf { --abhf-font: var(--tesvx-font-body); --af-mono: var(--tesvx-font-meta); }
html body .tvx-pd.tvx-pd { --tvx-sans: var(--tesvx-font-body); --tvx-mono: var(--tesvx-font-number); }
html body.ablg-login { --ablg-font-d: var(--tesvx-font-heading); --ablg-font-b: var(--tesvx-font-body); }
html body.abpd-page, html body .abde-ui { font-family: var(--tesvx-font-body); }

/* Target text elements only. Never use '* { font-family: ... }': icon fonts
 * (Dashicons, WooCommerce stars, Font Awesome, payment icons) must survive. */
html body :is(h1,h2,h3,h4,h5,h6,.autoboss-heading,.autoboss-heading-bold,
    .abhf-af-title,.abhf-af-acc summary,.abhf-af-tile-t strong,.abms-reset-title),
.editor-styles-wrapper :is(h1,h2,h3,h4,h5,h6) {
    font-family: var(--tesvx-font-heading) !important;
}
html body :is(.product_title,.woocommerce-loop-product__title,.abtd .abtd-title,.abpc-card .abpc-title,
    .abtd-card-title,.abpc-title,.abtc-name,.abco-name,.absc__item-title,
    .absc__reco-title,.abspk-modal__title) { font-family: var(--tesvx-font-title) !important; }

html body :is(.price,.amount,.product-price,.ct-cart-total,.abtd-price-now,
    .abtd-price-was,.abtd-card-price,.abtd-card-price b,.abtd-sku-price,
    .abtd-offer-chip b,.abtd-offer-amt b,.abpc-price,.abtc-price,.abtc-cpn-v,
    .abco-price,.abco-was,.abco-total-was,.abco-ci-now,.abco-ci-was,.abco-cpn-v,
    .abco-saved-pill b,.absp-price,.abspk-picker-price,.absc__item-price,
    .absc__reco-price,.tb-price,.tb-was,.tb-right b,
    .abcp-ap.is-lead.is-detail,.abcp-ap.is-lead.is-sheet,.abpc-foot > .abcp-ap.is-lead) {
    font-family: var(--tesvx-font-price) !important;
}

html body :is(label,legend,.abtc-check-t,.abco-chk-t,.abcp-ap-label),
html body .abms-auth.abms-auth :is(label,.abms-check,.abms-check span,.abms-check strong),
html body .abms-acc.abms-acc .abms-field label,
html body.abms-focus.abms-focus .lost_reset_password label,
html body .abch .abch-form .fluentform .ff-el-input--label label,
html body .abch .abch-email-optin,
html body .abpvc-cat .abpvc-cat__label,
html body .abpvc-page .abpvc-request label,
html body .abtc :is(label,.abtc-check-t), html body .abtc-layer label,
html body .abco :is(label,.abco-chk-t) { font-family: var(--tesvx-font-label) !important; }

html body :is(input:where(:not([type=submit]):not([type=button]):not([type=reset])),textarea,select,
    .select2-selection,.select2-dropdown,.ff-el-form-control),
html body .abco.abco :is(input,select,textarea),
html body .abtc.abtc input, html body .abtc-layer.abtc-layer input,
html body .abrv.abrv :is(input,textarea,select),
html body .abch .abch-form .fluentform .ff-el-form-control,
html body .abch .abch-email-card .abch-email-row input {
    font-family: var(--tesvx-font-input) !important;
}

html body :is(button:where(:not(.dashicons):not(.fa):not(.fas):not(.far):not(.fab):not(.material-icons)),
    input[type=submit],input[type=button],input[type=reset],.button,.ct-button,
    .wp-element-button,.wp-block-button__link,.autoboss-action,.autoboss-cta,
    .abtd-btn,.abtd-pill-btn,.abtd-offer-btn,.abpc-btn,.abco-place,.abco-ty-btn,
    .absc__button,.absc__checkout,.abspk-open-picker,.abms-btn,.abms-pts-btn,
    .abpp-btn,.abpvc-btn,.abcp-btn,.ff-btn-submit,.checkout-button),
html body .abch .abch-email-card button.abch-email-save[type=submit],
html body .abch .abch-email-card button.abch-email-skip[type=button],
html body .abco button.abco-place,
html body .abch .abch-form .fluentform .ff-btn-submit:not(.ff_btn_no_style) {
    font-family: var(--tesvx-font-button) !important;
}

html body :is(nav a,.menu-item > a,.ct-breadcrumbs,.woocommerce-breadcrumb,
    .abhf-nav a,.abhf-af-legal a,.abtd-tabs a,.abtd-tabs button,
    .abhm-tab,.abnw-chip,.absa-pagination a,.absa-pagination button) {
    font-family: var(--tesvx-font-nav) !important;
}
html body :is(.tag-cloud-link,.ct-tag,.onsale,.out-of-stock-badge,.ct-woo-badges,
    .abpc-badge,.abpc-cat,.abtd-offer-chip,.abtd-buy-badge,.abtd-eta,.tb-tag,
    .abms-price-tag,.abms-chip span,.tvx-tag,.tvx-facts li),
html body .abms-acc.abms-acc .abms-chip span { font-family: var(--tesvx-font-badge) !important; }
html body :is(.sku,.sku_wrapper,.product_meta,.product-categories,.product-categories a,
    .abpc-sold,.abpc-from,.abtd-card-sold,.abcp-ap-from,.abcp-ap-save,.abcp-ap-head,
    .abhf-ph-e,.abhf-dcard-k,.abhf-af-kicker,.abhf-af-copy,.abms-focus__foot,
    .abms-focus__secure,.entry-meta,time) { font-family: var(--tesvx-font-meta) !important; }
html body :is(figcaption,.wp-caption-text,.abrv .abrv-hint,.absp-desc,.description,.form-text),
html body .abch .abch-qr figcaption { font-family: var(--tesvx-font-caption) !important; }
html body :is(.woocommerce-product-attributes,.woocommerce-product-attributes p,
    .variations select,.ct-variation-swatches,.abtd-params,.abtd-params-list dt,
    .abtd-params-list dd,.abtd-params-tiles,.abtd-params-tiles b,.abtd-opt > span,.tvx-specs,.tvx-fitment) {
    font-family: var(--tesvx-font-spec) !important;
}
html body :is(input[type=number],.quantity input,.ct-dynamic-count,.abtd-counter,
    .abtd-cart-count,.abtd-qty input,.absc__qty-input,.abtc-qty-in,.abco-qty-in,
    .abco-qty-x,.abco-cd,.abco-ci-n,.abco-ty-num b,.abco-ty-qb,.abrv-score b,
    .abrv-bar em,.autoboss-mono,.tvx-qty),
html body .abtc.abtc .abtc-qty-in,html body .abtc-layer.abtc-layer .abtc-qdlg-step input,
html body .abco.abco .abco-qty-in { font-family: var(--tesvx-font-number) !important; }
html body .tvx-pd.tvx-pd :is(.tvx-features,.tvx-steps) li::before {
    font-family: var(--tesvx-font-number) !important;
}
html body :is(.abtd-toast,.woocommerce-message,.woocommerce-error,.woocommerce-info,
    .abrv .abrv-msg,.absa-request-note) { font-family: var(--tesvx-font-notice) !important; }
html body :is(blockquote,.wp-block-pullquote) { font-family: var(--tesvx-font-quote) !important; }
html body :is(.site-title,.abhf-logo-text,.ablg-sitebar-label) { font-family: var(--tesvx-font-brand) !important; }
html body :is(pre,code,kbd,samp) { font-family: var(--tesvx-font-code) !important; }
html body :is(.abcp-code code,.abcp-ap-code,.abms-coupon__code,.absc__coupon-input,
    input[name=coupon_code],input[name=coupon]) { font-family: var(--tesvx-font-coupon) !important; }

/* Old imported product descriptions can contain inline Arial/Helvetica families.
 * Normalize only explicit font-family spans; headings and code retain their roles. */
html body :is(.abtd-rich,.woocommerce-Tabs-panel--description,.entry-content)
    :is(p,span,div,td,li)[style*="font-family"] { font-family: var(--tesvx-font-body) !important; }

/* B2BKing legacy frontend: exact vendor text selectors, no icon/font-face overrides.
 * Keep this bridge in the child theme so vendor updates remain independent. */
html body .b2bking_bulkorder_form_container_content_line_livesearch,
html body .b2bking_bulkorder_form_container_top,
html body .b2bking_conversation_message,
html body .b2bking_myaccount_individual_conversation_content_item,
html body .b2bking_myaccount_individual_conversation_top,
html body .b2bking_myaccount_individual_offer_custom_text,
html body .b2bking_myaccount_individual_offer_element_line_item,
html body .b2bking_myaccount_individual_offer_top,
html body .b2bking_myaccount_new_conversation_top,
html body .b2bking_subaccounts_account_name,
html body .b2bking_subaccounts_account_phone_email_text,
html body .b2bking_subaccounts_account_top,
html body .b2bking_subaccounts_new_account_container_top { font-family: var(--tesvx-font-body) !important; }
html body #b2bking_myaccount_bulkorder_title,
html body #b2bking_myaccount_conversation_endpoint_container_top_header,
html body #b2bking_myaccount_conversation_endpoint_title,
html body #b2bking_myaccount_conversations_title,
html body #b2bking_myaccount_offers_title,
html body .b2bking_purchase_lists_top_title,
html body .b2bking_subaccounts_account_title,
html body .b2bking_subaccounts_container_top_title,
html body .b2bking_subaccounts_new_account_container_content_large_title { font-family: var(--tesvx-font-heading) !important; }
html body .b2bking_bulkorder_form_container_content_header_product,
html body .b2bking_bulkorder_form_container_content_header_qty,
html body .b2bking_myaccount_individual_offer_header_line,
html body .b2bking_subaccounts_new_account_container_content_element_checkbox_name,
html body .b2bking_subaccounts_new_account_container_content_element_label { font-family: var(--tesvx-font-label) !important; }
html body #b2bking_myaccount_bulkorder_container .b2bking_bulkorder_form_container_content_line_subtotal,
html body .b2bking_bulkorder_form_container_bottom_total,
html body .b2bking_bulkorder_form_container_content_header_subtotal,
html body .b2bking_bulkorder_form_container_content_line_subtotal,
html body .b2bking_myaccount_individual_offer_bottom_line_total { font-family: var(--tesvx-font-price) !important; }
html body #b2bking_myaccount_bulkorder_container .b2bking_bulkorder_form_container_newline_button,
html body #b2bking_myaccount_conversation_endpoint_container_top button,
html body #b2bking_myaccount_conversations_container_top button,
html body .b2bking_bulkorder_clear,
html body .b2bking_bulkorder_form_container_newline_button,
html body .b2bking_myaccount_conversation_endpoint_button,
html body .b2bking_myaccount_individual_offer_bottom_line_add button.b2bking_myaccount_individual_offer_bottom_line_button,
html body button#b2bking_purchase_list_new_button,
html body button.b2bking_bulkorder_form_container_bottom_add_button,
html body button.b2bking_bulkorder_form_container_bottom_delete_button,
html body button.b2bking_bulkorder_form_container_bottom_save_button,
html body button.b2bking_bulkorder_form_container_bottom_update_button,
html body button.b2bking_myaccount_start_conversation_button,
html body button.b2bking_myaccount_view_conversation_button,
html body button.b2bking_purchase_lists_add_to_cart,
html body button.b2bking_purchase_lists_view_list,
html body button.b2bking_subaccounts_account_button,
html body button.b2bking_subaccounts_container_top_button,
html body button.b2bking_subaccounts_edit_account_container_content_bottom_button,
html body button.b2bking_subaccounts_edit_account_container_content_bottom_button_delete,
html body button.b2bking_subaccounts_new_account_container_content_bottom_button { font-family: var(--tesvx-font-button) !important; }
html body .b2bking_myaccount_conversations_pagination_button a { font-family: var(--tesvx-font-nav) !important; }
html body #b2bking_myaccount_bulkorder_container .b2bking_bulkorder_form_container_content_line input.b2bking_bulkorder_form_container_content_line_product,
html body #b2bking_myaccount_textarea_conversation_start,
html body .b2bking_bulkorder_form_container_content_line input.b2bking_bulkorder_form_container_content_line_product,
html body .b2bking_myaccount_new_conversation_content_element_text,
html body .b2bking_subaccounts_new_account_container_content_element input.b2bking_subaccounts_new_account_container_content_element_text,
html body input#b2bking_myaccount_title_conversation_start,
html body select#b2bking_bulkorder_searchby_select,
html body select#b2bking_myaccount_conversation_type { font-family: var(--tesvx-font-input) !important; }
html body .b2bking_conversation_message_time { font-family: var(--tesvx-font-meta) !important; }
html body #b2bking_myaccount_bulkorder_container .b2bking_bulkorder_form_container_content_line input.b2bking_bulkorder_form_container_content_line_qty,
html body .b2bking_bulkorder_form_container_content_line input.b2bking_bulkorder_form_container_content_line_qty { font-family: var(--tesvx-font-number) !important; }
