/* The existing retail price remains primary; its tax-exclusive companion is quiet. */
body .raimag-vat-prices {
    display: inline-flex;
    flex-direction: column;
    max-width: 100%;
    vertical-align: top;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-align: inherit;
    white-space: normal;
}

body .raimag-vat-prices > .raimag-vat-gross {
    display: block;
    color: inherit;
    font: inherit;
    line-height: inherit;
    white-space: normal;
}

body .raimag-vat-prices .woocommerce-Price-amount,
body .raimag-vat-prices bdi {
    white-space: nowrap;
}

body .raimag-vat-prices .raimag-vat-label {
    display: inline-block;
    margin-left: 4px;
    color: #667085;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    vertical-align: baseline;
    white-space: nowrap;
}

/* WooCommerce and Woodmart style nested amounts independently of their parent. */
body .raimag-vat-prices > .raimag-vat-net {
    display: block !important;
    margin: 3px 0 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: normal !important;
}

body .raimag-vat-prices > .raimag-vat-net .woocommerce-Price-amount,
body .raimag-vat-prices > .raimag-vat-net bdi,
body .raimag-vat-prices > .raimag-vat-net .woocommerce-Price-currencySymbol,
body .raimag-vat-prices > .raimag-vat-net .raimag-vat-label {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
}

body.single-product .summary .price > .raimag-vat-prices > .raimag-vat-net,
body.single-product .wd-single-price .price > .raimag-vat-prices > .raimag-vat-net,
body.single-product .woocommerce-variation-price .price > .raimag-vat-prices > .raimag-vat-net {
    font-size: clamp(12px, .72em, 16px) !important;
}

/* Narrow card, cart and comparison cells can wrap between complete amounts. */
body .raimag-vat-prices .raimag-price-unit,
body .raimag-vat-prices .raimag-vat-unit {
    display: inline;
    white-space: normal;
}

body .raimag-vat-prices .raimag-vat-gross .raimag-vat-unit {
    font-size: clamp(11px, .72em, 14px);
    font-weight: 400;
}

body .raimag-vat-prices .raimag-vat-net .raimag-vat-unit {
    font-size: inherit !important;
    font-weight: inherit !important;
}

body .raimag-whole-package-note {
    display: block;
    margin-top: 8px;
    color: #667085;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
}

body .raimag-whole-package-note .raimag-vat-prices {
    margin-top: 3px;
    font-size: inherit;
}

body .raimag-whole-package-note .raimag-vat-gross .woocommerce-Price-amount,
body .raimag-whole-package-note .raimag-vat-gross bdi {
    font-size: inherit !important;
    font-weight: 400 !important;
}

body .rc-line-total:has(.raimag-vat-prices),
body .rs-line-total:has(.raimag-vat-prices),
body .rs-line-bottom > strong:has(.raimag-vat-prices) {
    max-width: 100%;
    white-space: normal;
}

body .rc-total-value .raimag-vat-prices,
body .rs-total-value .raimag-vat-prices,
body .rpl-compare-total .raimag-vat-prices,
body .rc-mobile-summary .raimag-vat-prices,
body .rs-mobile-bar .raimag-vat-prices {
    line-height: 1.3;
}

body .rc-mobile-summary .raimag-vat-prices,
body .rs-mobile-bar .raimag-vat-prices {
    white-space: normal;
}

@media (max-width: 480px) {
    body .raimag-vat-prices > .raimag-vat-net {
        margin-top: 2px !important;
    }
}
