.file {
	position: relative;
	text-align: left;
	display: inline-block;
}

.file input {
	position: absolute;
	top: 0 !important;
	left: 0 !important;
	opacity: 0.001 !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.file * { text-align: left !important; }

.file span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 30px;
}

.file span::before {
	content: 'Upload';
	display: inline-block;
	margin-right: 20px;
	padding: 5px 20px;
	text-align: center;
	vertical-align: middle;
	background-color: #ccc;
	cursor: pointer;
}

.file .remove {
	position: absolute;
	top: 0;
	right: 5px;
	
	background-color: #f00;
	width: 20px;
	height: 20px;
	
	line-height: 18px;
	text-align: center !important;
	font-family: sans-serif;
	font-size: 10px;
	color: #fff !important;
	
	border: 1px solid #777;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;

	cursor: pointer;
	display: none;

	-webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.file .remove:hover { text-decoration: none !important; }
.file .remove::after { content: '\2715'; }
.file.on .remove { display: block; }

.file.input-field-invalid { background: transparent !important; }
.file.input-field-invalid span:before { background: #fcc; }

@media only screen and (max-width: 768px) {
	.file .remove {
		width: 40px;
		height: 40px;
		line-height: 38px;
		font-size: 20px;
	}
}