/* Hide legacy inline icons on older links to avoid duplicates */
a.wf_file img.wf_file_icon {
  display: none;
}

/* Default file icon for all JCE File Manager links */
a[href].wf_file::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f15b";
  display: inline-block;
  margin-right: 0.4em;
}

/* Specific file-type icons */
a[href$=".pdf" i].wf_file::before { content: "\f1c1"; }
a[href$=".doc" i].wf_file::before,
a[href$=".docx" i].wf_file::before { content: "\f1c2"; }
a[href$=".xls" i].wf_file::before,
a[href$=".xlsx" i].wf_file::before { content: "\f1c3"; }
a[href$=".ppt" i].wf_file::before,
a[href$=".pptx" i].wf_file::before { content: "\f1c4"; }
a[href$=".csv" i].wf_file::before { content: "\f6dd"; }
a[href$=".zip" i].wf_file::before,
a[href$=".rar" i].wf_file::before { content: "\f1c6"; }
a[href$=".jpg" i].wf_file::before,
a[href$=".jpeg" i].wf_file::before,
a[href$=".png" i].wf_file::before,
a[href$=".webp" i].wf_file::before { content: "\f1c5"; }
a[href$=".mp3" i].wf_file::before { content: "\f1c7"; }
a[href$=".mp4" i].wf_file::before { content: "\f1c8"; }
