// ------------------------------------------------------------------------------------------------
// XTS UPLOAD
// ------------------------------------------------------------------------------------------------

@if $cont-upload {

	.xts-upload-preview {
		display: inline-flex;
		flex-wrap: wrap;
		vertical-align: top;
		cursor: pointer;

		img {
			display: inline-block;
			padding: 2px;
			// max-width: 100%;
			max-height: 35px;
			width: 100%;
			border: 1px solid var(--xts-option-border-color);
			border-radius: var(--xts-option-border-radius);
			// background-color: #FFF;
			background-color: #F9F9F9;
			object-fit: contain;
			transition: all .2s ease-in-out;
		}

		.xts-remove {
			position: absolute;
			top: 8px;
			right: 8px;
			color: var(--xts-btn-warning-color);
			text-decoration: none;
			opacity: 0;

			&:hover {
				opacity: 1;
			}
		}

		&:hover {

			img {
				border-color: var(--xts-option-border-color-darker-10);
			}
		}
	}

	.xts-upload-btns {
		display: inline-flex;
		margin-top: 0 !important;
		vertical-align: top;

		.xts-btn {

			&:first-child {
				margin-inline-end: calc(var(--xts-option-space) / 2);
			}
		}
	}

	.xts-remove-upload-btn {
		display: none;

		&.xts-active {
			display: inline-flex;
		}
	}

	.xts-bg-source {
		display: flex;

		:is(
		.xts-upload-preview img,
		.xts-upload-btns ){
			margin-inline-start: calc(var(--xts-option-space) / 2);
		}
	}

} // END IF

// ------------------------------------------------------------------------------------------------
// WHB UPLOAD
// ------------------------------------------------------------------------------------------------

@if $whb-cont-upload {

	.whb-imagepicker {

		.xts-btn {
			margin-inline-end: 8px;
		}
	}

	.whb-imagepicker-preview {
		display: inline-block;
		margin-inline-end: 8px;
		padding: 2px;
		max-height: var(--xts-input-height);
		border: 1px solid var(--xts-option-border-color);
		border-radius: var(--xts-option-border-radius);
		background-color: #F9F9F9;
		cursor: pointer;

		&:hover {
			color: var(--xts-option-border-color-darker-10);
		}
	}

} // END IF