.rbf-cf7-upload {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 1.5rem 0;
}

.rbf-cf7-upload__group {
	padding: 1rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
}

.rbf-cf7-upload__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .75rem;
}

.rbf-cf7-upload__label {
	font-weight: 700;
}

.rbf-cf7-upload__status {
	font-size: .875rem;
	color: #666;
}

.rbf-cf7-upload__input {
	display: block;
	width: 100%;
	margin-bottom: .75rem;
}

.rbf-cf7-upload__progress {
	display: none;
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: #eee;
	margin-bottom: .75rem;
}

.rbf-cf7-upload__bar {
	width: 0;
	height: 100%;
	background: #2271b1;
	transition: width .2s ease;
}

.rbf-cf7-upload__preview {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: .75rem;
}

.rbf-cf7-upload__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .4rem;
	padding: .5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
}

.rbf-cf7-upload__tile.is-error {
	border-color: #b32d2e;
	background: #fff5f5;
}

.rbf-cf7-upload__tile-close {
	position: absolute;
	top: .35rem;
	right: .35rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.rbf-cf7-upload__tile-img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 6px;
	background: #eee;
}

.rbf-cf7-upload__tile-meta {
	display: block;
	font-size: .75rem;
	line-height: 1.3;
	color: #555;
	overflow-wrap: anywhere;
}

.rbf-cf7-upload__tile-status {
	font-size: .75rem;
	line-height: 1.3;
	color: #666;
}


.rbf-cf7-upload__debug {
	margin-top: 1rem;
	padding: 1rem;
	max-height: 360px;
	overflow: auto;
	background: #050505;
	color: #3cff6f;
	border-radius: 8px;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.45;
	white-space: pre-wrap;
}