.eafw-attachments-preview {
	display: grid;
	grid-template-columns: repeat(4, 85px);
	gap: 1rem;
	margin-bottom: 1rem;
}

.eafw-attachment-item {
	width: 85px;
	height: 85px;
	position: relative;
	border: 1px solid #e7e7e7;
	border-radius: 4px;
	overflow: hidden;
	background: #f7f7f7;
	transition: all 0.3s ease;
}

.eafw-attachment-item:hover {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.eafw-attachment-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eafw-attachment-item .eafw-file-icon {
	width: auto;
	height: auto;
	display: block;
	margin: 0 auto;
	padding-top: 10%;
}

.eafw-attachment-remove {
	position: absolute;
	top: 3px;
	right: 3px;
	padding: 3px 8px;
	display: flex;
	align-items: center;
	border-radius: 100%;
	background: rgba(220, 53, 95, 0.75);
	color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	z-index: -1;
}

.eafw-attachment-remove:hover {
	background: rgba(220, 53, 95, 1);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.eafw-attachment-item:hover .eafw-attachment-remove {
	z-index: 1;
}
