/**
 * ShareefCorner SaudiaSymbol Module
 *
 * @category   ShareefCorner
 * @package    ShareefCorner_SaudiaSymbol
 * @author     Ahmed Alhouidi
 */

@font-face {
    font-family: 'SaudiRiyal';
    src: url('../fonts/saudi_riyal.woff2') format('woff2'),
        url('../fonts/saudi_riyal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* IMPORTANT: Only apply :before in LTR mode */
body:not([class*="rtl"]) .price:before,
html:not([dir="rtl"]) .price:before {
    font-family: 'SaudiRiyal', 'Arial Unicode MS', sans-serif !important;
    content: '\E900';
    margin-right: 4px;
    display: inline-block;
    font-size: 1em;
}

.price .price-currency,
.product-info-price .price-currency,
.product-info-main .price-currency,
.product-options-bottom .price-currency,
.product-info-price .price-wrapper .price-currency,
.product-info-main .price-box .price-currency,
.product-options-bottom .price-box .price-currency {
    display: none !important;
    /* hide the default SAR everywhere */
}

/* Additional selectors for LTR mode */
html:not([dir="rtl"]) .old-price .price:before,
html:not([dir="rtl"]) .special-price .price:before,
html:not([dir="rtl"]) .minimal-price .price:before,
html:not([dir="rtl"]) .price-including-tax .price:before,
html:not([dir="rtl"]) .price-excluding-tax .price:before,
html:not([dir="rtl"]) .cart-price .price:before,
html:not([dir="rtl"]) .minicart-price .price:before,
html:not([dir="rtl"]) .product-price .price:before,
html:not([dir="rtl"]) .checkout-summary .price:before,
html:not([dir="rtl"]) .totals .price:before,
html:not([dir="rtl"]) .product-info-price .price:before {
    font-family: 'SaudiRiyal', 'Arial Unicode MS', sans-serif !important;
    content: '\E900';
    margin-right: 4px;
    display: inline-block;
    font-size: 1em;
}

/* CRITICAL: RTL support for Arabic stores */

/* COMPLETELY DISABLE all :before pseudo-elements in RTL mode with highest specificity */
html[dir="rtl"] .price:before,
html[dir="rtl"] .old-price .price:before,
html[dir="rtl"] .special-price .price:before,
html[dir="rtl"] .minimal-price .price:before,
html[dir="rtl"] .price-including-tax .price:before,
html[dir="rtl"] .price-excluding-tax .price:before,
html[dir="rtl"] .cart-price .price:before,
html[dir="rtl"] .minicart-price .price:before,
html[dir="rtl"] .product-price .price:before,
html[dir="rtl"] .checkout-summary .price:before,
html[dir="rtl"] .totals .price:before,
html[dir="rtl"] .product-info-price .price:before,
body.rtl .price:before,
body[class*="rtl"] .price:before {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Add the currency symbol AFTER the price for RTL mode with highest specificity */
html[dir="rtl"] .price:after,
html[dir="rtl"] .old-price .price:after,
html[dir="rtl"] .special-price .price:after,
html[dir="rtl"] .minimal-price .price:after,
html[dir="rtl"] .price-including-tax .price:after,
html[dir="rtl"] .price-excluding-tax .price:after,
html[dir="rtl"] .cart-price .price:after,
html[dir="rtl"] .minicart-price .price:after,
html[dir="rtl"] .product-price .price:after,
html[dir="rtl"] .checkout-summary .price:after,
html[dir="rtl"] .totals .price:after,
html[dir="rtl"] .product-info-price .price:after,
body.rtl .price:after,
body[class*="rtl"] .price:after {
    font-family: 'SaudiRiyal', 'Arial Unicode MS', sans-serif !important;
    content: '\E900' !important;
    margin-right: 0 !important;
    margin-left: 4px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 1em !important;
}