/* "Free Engraving" product-card badge. Rendered inside Blocksy's <figure> badge
   stack (via the blocksy:woocommerce:product-card:badges filter); colours are set
   inline from the module. Same pill shape as the Best Seller badge so a product
   carrying both shows a consistent, stacked pair. Blocksy positions its badges at
   top:15px/left:15px. */
li.product figure .dn-tanc-fe-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    padding: 6px 15px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    pointer-events: none;
}

/* Free Engraving is prepended after Best Seller (filter priority 21 vs 20), so it
   sits first in the DOM. When a Best Seller badge follows it, push that — and any
   native Blocksy badge after them — down by one pill row each (15 + 26 + 8 = 49).
   ponytail: covers the realistic max of two custom badges + native; add a row if a
   third custom card badge is ever introduced. */
li.product figure .dn-tanc-fe-badge ~ .dn-tanc-bs-badge {
    top: 49px;
}

li.product figure .dn-tanc-fe-badge ~ :is(.onsale, .out-of-stock-badge, [class*="ct-woo-badge-"]) {
    top: 49px;
}

li.product figure .dn-tanc-fe-badge ~ .dn-tanc-bs-badge ~ :is(.onsale, .out-of-stock-badge, [class*="ct-woo-badge-"]) {
    top: 83px;
}
