/*
 * UBUZIMA+ POS COUNTER TYPOGRAPHY UNIFIED R1
 *
 * One consistent typography hierarchy across:
 *
 * - Product Search
 * - Cart
 * - Transaction Set-up
 * - Payment Summary
 * - Recent Transactions
 *
 * Base text / fields / controls:
 *     .60rem
 *
 * Section headings:
 *     .68rem
 */

/* ------------------------------------------------------------
   Base typography for all five requested POS Counter areas.
   ------------------------------------------------------------ */

.pos-counter-page--dedicated
:is(
    .pos-product-stock-section,
    .pos-sale-cart-section,
    .pos-transaction-setup-section,
    .pos-payment-summary-section,
    .pos-sales-summary-table-card
) {
    font-family: inherit !important;
    font-size: .60rem !important;
    line-height: 1.15 !important;
}

/* ------------------------------------------------------------
   Same text/control scale across all five sections.
   ------------------------------------------------------------ */

.pos-counter-page--dedicated
:is(
    .pos-product-stock-section,
    .pos-sale-cart-section,
    .pos-transaction-setup-section,
    .pos-payment-summary-section,
    .pos-sales-summary-table-card
)
:is(
    label,
    span,
    small,
    strong,
    em,
    p,
    th,
    td,
    button,
    input,
    select,
    textarea
) {
    font-family: inherit !important;
    font-size: .60rem !important;
    line-height: 1.15 !important;
}

/* ------------------------------------------------------------
   Same section-heading scale everywhere.
   ------------------------------------------------------------ */

.pos-counter-page--dedicated
:is(
    .pos-product-stock-section,
    .pos-sale-cart-section,
    .pos-transaction-setup-section,
    .pos-payment-summary-section,
    .pos-sales-summary-table-card
)
:is(
    h2,
    h3,
    h4
) {
    font-family: inherit !important;
    font-size: .68rem !important;
    line-height: 1.12 !important;
}

/* ------------------------------------------------------------
   Product Search gets NO special larger scale.
   ------------------------------------------------------------ */

.pos-counter-page--dedicated
.pos-product-stock-section
:is(
    .pos-search-input,
    input,
    select,
    button,
    .pos-product-tile-v16,
    .pos-product-tile-v16 strong,
    .pos-product-tile-v16 span,
    .pos-product-tile-v16 small,
    .pos-product-card-name,
    .pos-product-card-row,
    .pos-product-card-metric
) {
    font-family: inherit !important;
    font-size: .60rem !important;
    line-height: 1.15 !important;
}

/* ------------------------------------------------------------
   Cart Remove action:
   full text on one line.
   No width manipulation.
   ------------------------------------------------------------ */

.pos-counter-page--dedicated
.pos-cart-remove-button {
    font-family: inherit !important;
    font-size: .60rem !important;
    line-height: 1.15 !important;

    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
