/**
 * Saudi Riyals Symbol CSS
 *
 * This file defines the custom font-face for the Saudi Riyal symbol.
 * Font created by Emran Al-Haddad.
 */

@font-face {
  font-family: 'saudi-riyals';
  /*
   * تحديد مسار ملفات الخطوط نسبةً لمجلد الـ css
   * The font files path is relative to the css folder.
   */
  src: url('../fonts/saudi-riyals.eot?v=1.0.0');
  src: url('../fonts/saudi-riyals.eot?#iefix&v=1.0.0') format('embedded-opentype'),
       url('../fonts/saudi-riyals.woff2?v=1.0.0') format('woff2'),
       url('../fonts/saudi-riyals.woff?v=1.0.0') format('woff'),
       url('../fonts/saudi-riyals.ttf?v=1.0.0') format('truetype'),
       url('../fonts/saudi-riyals.svg?v=1.0.0#saudi-riyals') format('svg');
  font-weight: normal;
  font-style: normal;
  /* تحسين أداء تحميل الخط */
  font-display: swap; 
}

/*
 * الكلاس الذي سيتم تطبيقه على العنصر الذي سيحمل الرمز
 * This class will be applied to the element holding the symbol.
 */
.saudi-riyals-symbol {
  font-family: 'saudi-riyals', sans-serif; /* إضافة خط احتياطي */
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  display: inline-block; /* لضمان ظهوره بشكل جيد مع النص */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * استخدام العنصر الزائف :before لإدراج الرمز من ملف الخط
 * Using the :before pseudo-element to insert the symbol from the font file.
 */
.saudi-riyals-symbol:before {
  content: "\e900";
}
