.fileUploadWrap {
	outline: 1px solid var(--border-color);
	border-radius: var(--input-border-radius);
	text-align: center;
	cursor: pointer;
	transition: var(--bgl-transition);
	position: relative;
	font-size: var(--input-font-size);
	overflow-y: auto;
	background: var(--input-bg);
	height: 215px;
}

.bagel-input .fileUploadWrap.fileDropZone {
	background: var(--input-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bgl-gray);
	flex-direction: column;
}

.fileUploadWrap.dragover,
.fileUploadWrap:hover {
	box-shadow: inset 0 0 10px #00000012;
}

.fileUploadWrap[style*='height: auto;'] {
	min-height: 215px;
}

.multi-image-item-preview {
	border: 1px solid var(--border-color) !important;
	border-radius: var(--input-border-radius);
	margin: 0.5rem !important;
	background: var(--bgl-popup-bg);
	padding: 0;
	padding-inline-end: 1rem;
	padding-inline-start: 0.25rem;
	text-align: start;
	color: var(--input-color);
	display: grid;
	grid-template-columns: auto 1fr 22px;
	gap: 0.5rem;
	align-items: center;
	height: var(--btn-height);
	font-size: var(--label-font-size);
}

.multi-image-item-preview p {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.multi-preview {
	/* width: 40px; */
	height: calc(var(--btn-height) - 0.5rem);
	max-width: calc(var(--btn-height) - 0.5rem);
	border-radius: calc(var(--input-border-radius) / 2);
	object-fit: cover;
	background: var(--bgl-gray-light);
	text-align: center !important;
	justify-content: center;
	align-items: center;
	display: flex;
}

.bgl-single-preview {
	height: 100%;
	position: relative;
}

.bgl-single-preview + .fileUploadPlaceHolder {
	position: absolute;
	inset: 0;
	margin: auto;
	top: calc(50% - 2rem);
}

.single-image-item-preview {
	height: 100%;
	min-height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fileUploadWrap[style*='height: auto'] .single-image-item-preview {
	min-height: 215px;
}

.fileUploadWrap[style*='height: auto'] .single-preview {
	margin: 0rem !important;
}

.single-preview {
	margin: 1rem;
	padding: 0px;
	height: calc(100% - 2rem);
	max-height: calc(100% - 2rem);
	background: var(--bgl-gray-light);
	max-width: calc(100% - 2rem);
	object-fit: contain;
}

.single-image-item-preview:hover::after {
	content: 'zoom_in';
	font-size: 32px;
	font-family: 'Material Symbols Outlined', serif;
	position: absolute;
	border-radius: 100%;
	color: var(--bgl-white);
	z-index: 9;
	pointer-events: none;
}

.single-image-item-preview:hover img {
	filter: brightness(70%);
}

.bgl_fill-image.single-image-item-preview {
	height: 100%;
}

.bgl_fill-image.single-image-item-preview .single-preview {
	border-radius: unset;
	object-fit: cover;
	box-shadow: unset;
	width: 100%;
	height: auto;
}

.single-image-item-preview .pie {
	transform-origin: top;
	transform: scale(1.4);
	position: absolute;
	text-align: center;
	inset: 0;
	margin: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	background: transparent;
	border: none !important;
	padding: 0 !important;
}

.bgl_oval-upload {
	border-radius: 100% !important;
	overflow: hidden;
}

.bgl_oval-upload p {
	padding: 0.75rem !important;
	font-size: 12px;
}

.bgl_oval-upload .fileUploadPlaceHolder {
	top: 0;
}

.bgl_oval-upload .pie {
	transform: scale(1);
}

.bgl_oval-upload span.bgl_icon-font.color-primary {
	transform: scale(0.4) !important;
}

.bgl_oval-upload .single-image-item-preview {
	height: 100%;
}

.bgl_oval-upload .single-preview {
	margin: 0;
	height: 100% !important;
}

.pie {
	width: 30px;
	height: 30px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pie:before {
	content: '';
	position: absolute;
	border-radius: 50%;
	inset: 0;
	transition: all 0.2s ease-in-out;
	background: conic-gradient(var(--bgl-primary) calc(var(--p) * 1%), #0000 0);
	-webkit-mask: radial-gradient(
		farthest-side,
		#0000 calc(99% - var(--b)),
		#000 calc(100% - var(--b))
	);
	mask: radial-gradient(
		farthest-side,
		#0000 calc(99% - var(--b)),
		#000 calc(100% - var(--b))
	);
}

.pie .success {
	transform: scale(0);
	opacity: 0;
	transition: all 0.3s ease-in-out;
}

.pie .progress {
	position: absolute;
	font-size: 10px;
}

.pie.complete .progress {
	display: none;
}

.pie.complete .success {
	transform: scale(1.3);
	opacity: 1;
}

.pie.complete:before {
	background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
}

.pie.complete {
	color: var(--bgl-green);
}
