/*
 * Paresh Lafka Price Display Fix 1.0.4
 * Render one continuous strike-through across the original amount AND its
 * currency label (for example, "900 تومان"), with consistent vertical alignment.
 * No Lafka, Dokan or WooCommerce source files are modified.
 */

/* Original/regular amount: one continuous line over the complete del element. */
.prod_hold .price_hold del,
body.dokan-single-store .prod_hold .lafka-list-prod-summary .price_hold del,
body.single-product .woocommerce-Tabs-panel--more_seller_product .prod_hold .lafka-list-prod-summary .price_hold del {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    margin-inline-end: 5px;
    opacity: .68 !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* The pseudo-element spans the whole del box, including the currency symbol. */
.prod_hold .price_hold del::after,
body.dokan-single-store .prod_hold .lafka-list-prod-summary .price_hold del::after,
body.single-product .woocommerce-Tabs-panel--more_seller_product .prod_hold .lafka-list-prod-summary .price_hold del::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    top: 50%;
    height: 0;
    border-top: 1px solid currentColor;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Keep the amount and its currency text on one aligned line. */
.prod_hold .price_hold del .woocommerce-Price-amount,
.prod_hold .price_hold del .woocommerce-Price-amount bdi,
.prod_hold .price_hold del bdi {
    display: inline-flex !important;
    align-items: baseline !important;
    vertical-align: middle !important;
    line-height: inherit !important;
    white-space: nowrap !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* Avoid relative positioning of the smaller currency label shifting it off-line. */
.prod_hold .price_hold del .woocommerce-Price-currencySymbol {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    vertical-align: baseline !important;
    color: inherit !important;
    text-decoration: none !important;
}

/* No nested element may create its own separate strike-through. */
.prod_hold .price_hold del *,
body.dokan-single-store .prod_hold .lafka-list-prod-summary .price_hold del *,
body.single-product .woocommerce-Tabs-panel--more_seller_product .prod_hold .lafka-list-prod-summary .price_hold del * {
    text-decoration: none !important;
}

/* Current/sale amount remains unstruck and vertically aligned with the old price. */
.prod_hold .price_hold ins {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}

.prod_hold .price_hold ins,
.prod_hold .price_hold ins * {
    text-decoration: none !important;
}

/* Lafka's special variation-in-catalog rows: keep the same two-price alignment. */
.prod_hold .lafka-variations-in-catalog .lafka-list-variation-price del {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    opacity: .68 !important;
    color: inherit !important;
    text-decoration: none !important;
}

.prod_hold .lafka-variations-in-catalog .lafka-list-variation-price del::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    top: 50%;
    height: 0;
    border-top: 1px solid currentColor;
    transform: translateY(-50%);
    pointer-events: none;
}

.prod_hold .lafka-variations-in-catalog .lafka-list-variation-price del *,
.prod_hold .lafka-variations-in-catalog .lafka-list-variation-price ins,
.prod_hold .lafka-variations-in-catalog .lafka-list-variation-price ins * {
    text-decoration: none !important;
}

.prod_hold .lafka-variations-in-catalog .lafka-list-variation-price ins {
    vertical-align: middle !important;
    font-weight: 700;
}
