/* BYN stays readable if CSS masks are unavailable. The vector inherits the surrounding price colour and size. */
@supports (mask-image: url('assets/media/currency/byn.svg')) {
  .tf-byn-sign {
    position: relative;
    display: inline-block;
    width: .7em;
    height: .8em;
    vertical-align: -.02em;
    background-color: currentColor;
    mask: url('assets/media/currency/byn.svg') center / contain no-repeat;
  }
  .tf-byn-sign > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  :is(strong, b, .tf-pdp-sticky-price, .bx-soa-cart-total-line-total) .tf-byn-sign {
    mask-image: url('assets/media/currency/byn-bold.svg');
  }
  /* Old prices normally use regular digits, even inside a bold price container. */
  del .tf-byn-sign {
    mask-image: url('assets/media/currency/byn.svg');
  }
  /* Match the medium font used by the main product price and purchase totals. */
  :is(.tf-product-detail-price, .tf-live-price, .tf-purchase-totals dd) .tf-byn-sign,
  .tf-cart-line__price > .tf-byn-sign,
  .tf-cart-total del .tf-byn-sign {
    mask-image: url('assets/media/currency/byn-medium.svg');
  }
  :is(.tf-catalog-card, .tf-related-products) .tf-product-price del .tf-byn-sign {
    mask-image: url('assets/media/currency/byn-bold.svg');
  }
}
