.tm-re-submission-form {
	span.error {
		font-size: .75rem;
	}
	&.processing {
		* {
			cursor: wait;
			pointer-events: none;
		}
	}
	&__group {
		margin-bottom: $gap-size / 2;
	}
}

/* Uploader */
.tm-re-uploaded {
	&-images {
		@media (min-width: 1200px) {
			display: flex;
			flex-wrap: wrap;
			margin-left: $gap-size / -2;
			margin-right: $gap-size / -2;
		}
		&__item {
			@media (min-width: 1200px) {
				flex: 1 0 33.33334%;
				max-width: 33.33334%;
				padding-left: $gap-size / 2;
				padding-right: $gap-size / 2;
				padding-bottom: $gap-size / 2;
			}
		}
	}
	&-image {
		&__preview {
			position: relative;
			display: inline-block;
			vertical-align: middle;
		}
		&__remove {
			display: block;
			position: absolute;
			top: 10px;
			right: 10px;
			width: 30px;
			height: 30px;
			line-height: 30px;
			text-align: center;
			background-color: $black;
			color: $white;
			box-shadow: none;

			&:before {
				content: '\00D7';
			}
		}
		&__btn {
			margin: $gap-size / 4 0 0;
		}
	}
	&-btn {
		position: relative;
		overflow: hidden;
		display: inline-block;
		vertical-align: middle;

		span {
			display: inline-block;
			vertical-align: middle;
			margin-right: $gap-size / 3;
		}
		&__field {
			position: absolute;
			top: 0;
			right: 0;
			margin: 0;
			opacity: 0;
			font-size: 200px;
			direction: ltr;
			cursor: pointer;
		}
	}
}


/* Status */
$green: #008744;
$blue: #0057e7;
$red: #d62d20;
$yellow: #ffa700;
$white: #eee;

.tm-re-status {
	&__item {
		position: relative;
		display: block;
		width: 28px;
		height: 28px;
	}
	&--process {
		&:before {
			display: block;
			padding-top: 100%;
			content: '';
		}
		.circular {
			position: absolute;
			top: 0;
			right: 0;
			bottom: 0;
			left: 0;
			width: 100%;
			height: 100%;
			margin: auto;
			transform-origin: center center;
			animation: rotate 2s linear infinite;
		}
		.path {
			animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;

			stroke-dasharray: 1, 200;
			stroke-dashoffset: 0;
			stroke-linecap: round;
		}
	}
	&--success {
		position: relative;
		&:before {
			position: absolute;
			top: 50%;
			left: 0px;
			display: block;
			width: 10px;
			height: 20px;
			content: '';
			box-sizing: content-box;
			transform: scaleX(-1) rotate(135deg);
			transform-origin: left top;
			border-top: 5px solid $green;
			border-right: 5px solid $green;
			animation: check .8s;
		}
	}
	&--error {
		&:before {
			position: absolute;
			left: 0;
			top: -50%;
			content: '\00D7';
			color: $red;
			font-size: 2.5em;
		}
	}
}


/* Animations */

// Uploading
@keyframes rotate {
	100% {
		transform: rotate(360deg);
	}
}
@keyframes dash {
	0% {
		stroke-dasharray: 1, 200;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 89, 200;
		stroke-dashoffset: -35px;
	}
	100% {
		stroke-dasharray: 89, 200;
		stroke-dashoffset: -124px;
	}
}
@keyframes color {
	100%,
	0% {
		stroke: $red;
	}
	40% {
		stroke: $blue;
	}
	66% {
		stroke: $green;
	}
	80%,
	90% {
		stroke: $yellow;
	}
}

// Checking
@keyframes check {
	0% {
		width: 0;
		height: 0;
	}

	33.3333% {
		width: 10px;
		height: 0;
	}
}