.woocommerce table.shop_table_responsive tr.bfd-savings-row > td::before {
    content: none;
}

.bfd-savings-card,
.product-name dl.variation .bfd-item-discount {
    box-sizing: border-box;
    border-radius: 8px;
    background: #111;
    color: #fff;
    text-align: start;
    line-height: 1.35;
}

.bfd-savings-card {
    padding: 10px 14px;
}

.bfd-savings-card > span {
    font-weight: 600;
}

.product-name dl.variation .bfd-item-discount > strong,
.bfd-savings-card > strong,
.bfd-savings-card > strong .amount {
    color: #fff;
    font-weight: 700;
}

.product-name dl.variation .bfd-item-discount > strong,
.bfd-savings-card > strong {
    margin-inline-start: 0.15em;
    white-space: nowrap;
    text-decoration: underline 2px #ff4b55;
    text-underline-offset: 0.2em;
}

.bfd-savings-card > strong {
    font-size: 1.15em;
}

.product-name dl.variation dt:has(+ dd .bfd-item-discount) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.product-name dl.variation dd:has(.bfd-item-discount) {
    display: block;
    margin: 4px 0 0;
    padding: 0;
    clear: both;
}

.product-name dl.variation dd:has(.bfd-item-discount) > p {
    margin: 0;
}

.product-name dl.variation .bfd-item-discount {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-name dl.variation .bfd-item-discount::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    margin-inline-end: 0.25em;
}
