/* Presentation only: colours remain defined by each existing product component. */
body .onpc-price-current > .onpc-price-digits {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-size: var(--onpc-price-size, 34px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: normal;
    font-variant-numeric: tabular-nums;
}
body .onpc-price-current .onpc-price-symbol { font-size: 1em; margin-right: 0; }
body .onpc-price-current .onpc-price-whole { font-size: 1em; }
body .onpc-price-current .onpc-price-cents {
    align-self: flex-start;
    padding-top: .1em;
    margin-left: .04em;
    font-size: .6em;
    line-height: 1;
}
body .onpc-price-prior > .onpc-price-digits {
    font-size: inherit;
    font-weight: 400;
    text-decoration: line-through;
    white-space: nowrap;
}
body .product-price:has(> .new-price.onpc-price-current) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .15em .4em;
}
body .product-price > .old-price.onpc-price-prior {
    order: -1;
    flex-basis: 100%;
    margin: 0;
}
body .product-price-block > div:has(> .product-price.onpc-price-current):has(> .product-price-old.onpc-price-prior) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
body .product-price-block .product-price-label { order: -3; }
body .product-price-block .product-price-old.onpc-price-prior { order: -2; margin: .4em 0; }
body .product-price-block .product-price.onpc-price-current { order: -1; }

/* Poster purchase rows follow the same price scale as ordinary catalogue cards. */
body .product .poster-purchase > .product-price.poster-price {
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    align-self: center;
}
body .product .poster-purchase > .poster-price .new-price {
    font-size: 18px !important;
    line-height: 28px !important;
}

/* Dense summaries retain their layout while sharing the same amount typography. */
:is(.cart-price-current,.cart-dropdown-price,.cart-line-total-value,.checkout-summary-item-price,.ink-colour-price,.order-item-price,.account-return-product-price) {
    --onpc-price-size: 22px;
}
:is(.cart-shipping-price,.cart-txt,.table-summary td,.checkout-total-line > span,[data-onpc-price="compact"]) {
    --onpc-price-size: 1em;
}
:is(#cart-grand-total,#checkout-grand-total,.receipt-total,.cart-dropdown-total > span:last-child) { --onpc-price-size: 28px; }
