  .sc-selected-currency-label,
        .sc-selected-currency-label-inline {
            display: inline-block;
            margin-inline-start: 0.35em;
            white-space: nowrap;
        }

        #sc-currency-confirm-overlay {
            position: fixed;
            inset: 0;
            z-index: 1000001;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(0, 0, 0, 0.58);
        }

        #sc-currency-confirm-overlay.is-open {
            display: flex;
        }

        .sc-currency-confirm-modal {
            width: min(560px, 100%);
            max-height: 85vh;
            overflow-y: auto;
            padding: 22px;
            border-radius: 14px;
            background: #ffffff;
            color: #1f2937;
            box-shadow: 0 18px 55px rgba(0, 0, 0, 0.3);
            direction: rtl;
        }

        .sc-currency-confirm-modal h3 {
            margin: 0 0 14px;
            font-size: 21px;
        }

        .sc-currency-confirm-modal ul {
            margin: 10px 0 16px;
            padding-inline-start: 24px;
        }

        .sc-currency-confirm-modal hr {
            margin: 18px 0;
            border: 0;
            border-top: 1px solid #e5e7eb;
        }

        .sc-currency-confirm-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 18px;
        }

        .sc-currency-confirm-actions button {
            min-height: 42px;
            padding: 9px 16px;
            border: 0;
            border-radius: 9px;
            font: inherit;
            cursor: pointer;
        }

        #sc-currency-confirm-cancel {
            background: #f1f5f9;
            color: #111827;
        }

        #sc-currency-confirm-continue {
            background: #111827;
            color: #ffffff;
        }

        #sc-jod-payment-notice {
            position: absolute !important;
            left: -99999px !important;
            width: 1px !important;
            height: 1px !important;
            overflow: hidden !important;
        }

/*
|--------------------------------------------------------------------------
| MH PRICE STYLE — V2
| استهداف مباشر لسعر WooCommerce + المحددات الخاصة بالموقع
|--------------------------------------------------------------------------
*/

:root {
    --mh-price-style-version: MH-20260819-V2;
    --mh-old-border: #d71920;
    --mh-old-bg: #fff7f7;
    --mh-old-text: #222222;
    --mh-new-price: #188038;
    --mh-currency: #6b7280;
}

/*
|--------------------------------------------------------------------------
| حاوية السعر
|--------------------------------------------------------------------------
*/
body .woocommerce .price,
body .woocommerce-page .price,
body .price.mh-unified-price,
body .best-product-price.price,
body .discount-products .discount-item .price,
body .my-home-products .product-item .price,
body .mh-product-price.price {
    width: 100% !important;
    margin: 8px 0 12px !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    line-height: 1.15 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/*
|--------------------------------------------------------------------------
| منع WooCommerce / Elementor / القالب من إعادة الشطب الافتراضي
|--------------------------------------------------------------------------
*/
body .woocommerce .price del,
body .woocommerce-page .price del,
body .price del,
body .woocommerce .price ins,
body .woocommerce-page .price ins,
body .price ins {
    margin: 0 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    white-space: nowrap !important;
}

/*
|--------------------------------------------------------------------------
| السعر قبل الخصم
|--------------------------------------------------------------------------
*/
body .woocommerce .price del,
body .woocommerce-page .price del,
body .price del {
    position: relative !important;
    isolation: isolate !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: fit-content !important;
    min-width: 92px !important;
    min-height: 44px !important;
    padding: 8px 16px !important;

    background: var(--mh-old-bg) !important;
    border: 2px solid var(--mh-old-border) !important;
    border-radius: 12px !important;

    color: var(--mh-old-text) !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    box-sizing: border-box !important;
    overflow: hidden !important;

    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.10) !important;
}

/* الرقم داخل السعر القديم */
body .woocommerce .price del .woocommerce-Price-amount,
body .woocommerce-page .price del .woocommerce-Price-amount,
body .price del .woocommerce-Price-amount,
body .woocommerce .price del bdi,
body .woocommerce-page .price del bdi,
body .price del bdi {
    color: var(--mh-old-text) !important;
    font-size: 23px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

/* خط الشطب في منتصف الإطار */
body .woocommerce .price del::after,
body .woocommerce-page .price del::after,
body .price del::after {
    content: "" !important;
    position: absolute !important;
    z-index: 10 !important;

    top: 50% !important;
    left: 9px !important;
    right: 9px !important;

    height: 2px !important;
    margin: 0 !important;

    background: var(--mh-old-border) !important;
    border: 0 !important;
    border-radius: 999px !important;

    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

/* إخفاء رمز/اسم العملة من السعر القديم فقط */
body .price del .woocommerce-Price-currencySymbol,
body .price del .mc-currency-label,
body .price del .mc-cur,
body .woocommerce .price del .woocommerce-Price-currencySymbol,
body .woocommerce-page .price del .woocommerce-Price-currencySymbol {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| السعر بعد الخصم
|--------------------------------------------------------------------------
*/
body .woocommerce .price ins,
body .woocommerce-page .price ins,
body .price ins {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: fit-content !important;
    padding: 0 !important;

    color: var(--mh-new-price) !important;
    background: transparent !important;

    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;

    opacity: 1 !important;
}

/* رقم السعر الجديد */
body .woocommerce .price ins .woocommerce-Price-amount,
body .woocommerce-page .price ins .woocommerce-Price-amount,
body .price ins .woocommerce-Price-amount,
body .woocommerce .price ins bdi,
body .woocommerce-page .price ins bdi,
body .price ins bdi {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    color: var(--mh-new-price) !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/*
|--------------------------------------------------------------------------
| العملة تحت السعر الجديد
|--------------------------------------------------------------------------
*/
body .price ins .woocommerce-Price-currencySymbol,
body .price ins .mc-currency-label,
body .price ins .mc-cur,
body .woocommerce .price ins .woocommerce-Price-currencySymbol,
body .woocommerce-page .price ins .woocommerce-Price-currencySymbol {
    display: block !important;
    width: 100% !important;

    margin: 6px 0 0 !important;

    color: var(--mh-currency) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-align: center !important;
    white-space: nowrap !important;
}

/*
|--------------------------------------------------------------------------
| سعر المنتج غير المخفّض
|--------------------------------------------------------------------------
*/
body .woocommerce .price > .woocommerce-Price-amount,
body .woocommerce-page .price > .woocommerce-Price-amount,
body .price > .woocommerce-Price-amount {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    color: var(--mh-new-price) !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* bdi في المنتج غير المخفّض */
body .woocommerce .price > .woocommerce-Price-amount bdi,
body .woocommerce-page .price > .woocommerce-Price-amount bdi,
body .price > .woocommerce-Price-amount bdi {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* العملة في المنتج غير المخفّض */
body .price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
body .price > .mc-currency-label,
body .price > .mc-cur {
    display: block !important;
    width: 100% !important;

    margin: 6px 0 0 !important;

    color: var(--mh-currency) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-align: center !important;
    white-space: nowrap !important;
}

/*
|--------------------------------------------------------------------------
| الموبايل
|--------------------------------------------------------------------------
*/
@media (max-width: 600px) {

    body .woocommerce .price,
    body .woocommerce-page .price,
    body .price {
        gap: 6px !important;
    }

    body .woocommerce .price del,
    body .woocommerce-page .price del,
    body .price del {
        min-width: 78px !important;
        min-height: 40px !important;
        padding: 7px 12px !important;
        border-radius: 10px !important;
        font-size: 18px !important;
    }

    body .woocommerce .price del .woocommerce-Price-amount,
    body .woocommerce-page .price del .woocommerce-Price-amount,
    body .price del .woocommerce-Price-amount,
    body .woocommerce .price del bdi,
    body .woocommerce-page .price del bdi,
    body .price del bdi {
        font-size: 18px !important;
    }

    body .woocommerce .price ins,
    body .woocommerce-page .price ins,
    body .price ins,
    body .woocommerce .price ins .woocommerce-Price-amount,
    body .woocommerce-page .price ins .woocommerce-Price-amount,
    body .price ins .woocommerce-Price-amount,
    body .woocommerce .price ins bdi,
    body .woocommerce-page .price ins bdi,
    body .price ins bdi {
        font-size: 22px !important;
    }

    body .woocommerce .price > .woocommerce-Price-amount,
    body .woocommerce-page .price > .woocommerce-Price-amount,
    body .price > .woocommerce-Price-amount {
        font-size: 21px !important;
    }
}