@font-face {
  font-family: "saudi_riyal";
  src: url("../fonts/saudi_riyal/regular/saudi_riyal.woff2") format("woff2"),
    url("../fonts/saudi_riyal/regular/saudi_riyal.woff") format("woff"),
    url("../fonts/saudi_riyal/regular/saudi_riyal.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "saudi_riyal_bold";
  src: url("../fonts/saudi_riyal/bold/saudi_riyal.woff2") format("woff2"),
    url("../fonts/saudi_riyal/bold/saudi_riyal.woff") format("woff"),
    url("../fonts/saudi_riyal/bold/saudi_riyal.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* Legacy private-use-area codepoint (U+E900) - reliably supported today.
   The vendored glyph draws smaller within its em-box than surrounding text
   at the same font-size, so it's scaled up slightly to look consistent
   next to regular digits/currency symbols. */
.icon-saudi_riyal::before {
  content: "\e900";
  font-family: "saudi_riyal" !important;
  font-size: 1.3em;
  color: inherit;
}

.icon-saudi_riyal_bold::before {
  content: "\e900";
  font-family: "saudi_riyal_bold" !important;
  font-size: 1.3em;
  color: inherit;
}

/* The riyal sign (U+20C1) written as plain text (receipts, PDFs) is wrapped by __riyal_glyphs() in functions.js. */
.riyal-glyph {
  font-family: "saudi_riyal" !important;
  font-style: normal;
  font-size: 1.3em;
}

/* Standard codepoint (U+20C1), scheduled for Unicode 17 - not yet broadly
   supported by other fonts, kept here for forward compatibility only. */
.icon-saudi_riyal_new::after {
  content: "\20c1";
  font-family: "saudi_riyal" !important;
  font-size: inherit;
  color: inherit;
}

.icon-saudi_riyal_bold_new::after {
  content: "\20c1";
  font-family: "saudi_riyal_bold" !important;
  font-size: inherit;
  color: inherit;
}
