.esi-bf-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: 4px;
    background: #171717;
    color: #ffe94b;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.esi-bf-old-price {
    display: inline-block;
    margin-right: 6px;
    color: #777;
    font-size: .9em;
    font-weight: 400;
    text-decoration: line-through;
    vertical-align: middle;
    white-space: nowrap;
}

/* Product page: the "before_price" hook is rendered outside .current-price,
   so lay the row out as flex to keep the struck price next to the price. */
body#product .product-prices .product-price:not(.has-discount) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
}

body#product .product-prices .product-price:not(.has-discount) > .esi-bf-old-price {
    margin-right: 0;
}

body#product .product-prices .product-price:not(.has-discount) > :not(.esi-bf-old-price):not(.current-price) {
    flex-basis: 100%;
}
