.file-upload-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.upload-area {
	width: 104px;
	height: 104px;
	border: 1px dashed #d9d9d9;
	border-radius: 6px;
	background-color: #fafafa;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.3s;
	position: relative;
	overflow: hidden;
}

.upload-area:hover {
	border-color: #1890ff;
}

.upload-icon {
	font-size: 24px;
	color: #999;
	margin-bottom: 8px;
}

.upload-text {
	color: #666;
	font-size: 14px;
}

.file-input {
	display: none;
}

.preview-container {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}

.preview-item {
	width: 104px;
	height: 104px;
	border-radius: 6px;
	position: relative;
	border: 1px solid #d9d9d9;
	overflow: hidden;
	transition: all 0.3s;
}

.preview-item:hover {
	border-color: #1890ff;
}

.preview-item.dragging {
	opacity: 0.5;
}

.preview-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.file-info {
	padding: 8px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
}

.file-icon {
	width: 32px;
	height: 32px;
	margin-bottom: 8px;
}

.file-name {
	font-size: 12px;
	color: #333;
	text-align: center;
	word-break: break-all;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.file-size {
	font-size: 10px;
	color: #999;
	margin-top: 4px;
}

.delete-btn {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	cursor: pointer;
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s;
}

.preview-item:hover .delete-btn {
	opacity: 1;
}

.delete-btn:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

.drag-handle {
	position: absolute;
	bottom: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	cursor: move;
	font-size: 10px;
	opacity: 0;
	transition: opacity 0.3s;
}

.preview-item:hover .drag-handle {
	opacity: 1;
}

.hidden-inputs {
	display: none;
}

.single-file-center {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}