/* Improved Badges v5.2.2-fa2: plugin-scoped Persian UI font. */
/* Private font-family and asset basename prevent CSS/font name collisions. */
@font-face {
    font-family: 'ISB-Localized-IranSans-2026';
    src: url('../fonts/isb-localized-iran-sans-2026.woff2') format('woff2'),
         url('../fonts/isb-localized-iran-sans-2026.woff') format('woff'),
         url('../fonts/isb-localized-iran-sans-2026.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Admin panel and its own controls only; do not apply to all of wp-admin. */
#svx-settings,
#svx-settings :not(.dashicons):not(.dashicons-before):not([class*="icon-"]):not(.fa):not(.fas):not(.far):not(.fab),
.svx .svx-selectize,
.svx .svx-selectize input,
.isb_preview,
.isb_preview :not(.dashicons):not([class*="icon-"]),
/* Storefront: badge-only font, not the WooCommerce theme's typography. */
.isb_sale_badge,
.isb_sale_badge :not(.dashicons):not([class*="icon-"]),
.isb_sale_badge svg text {
    font-family: 'ISB-Localized-IranSans-2026', Tahoma, sans-serif !important;
}

/* Make RTL controls legible while leaving badge shape and placement untouched. */
html[lang^="fa"] #svx-settings,
body.rtl #svx-settings { direction: rtl; }

/* Keep icon fonts (dashicons, Font Awesome, plugin SVG icons) intact. */
#svx-settings .dashicons,
#svx-settings .dashicons::before,
.isb_preview .dashicons,
.isb_sale_badge .dashicons { font-family: dashicons !important; }
#svx-settings .fa,
#svx-settings .fas,
#svx-settings .far,
#svx-settings .fab { font-family: 'Font Awesome 5 Free', FontAwesome !important; }
