.jet-review {

	&__header {

		&-top {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}
	}

	&__title {
		margin: 0 30px 0 0;

		.rtl & {
			margin: 0 0 0 30px;
		}
	}

	&__item {
		position: relative;
		display: flex;
		flex-flow: row wrap;

		&:last-child {
			margin-bottom: 0;
		}

		&-remove {
			position: absolute;
			top: -35px;
			right: 0;
			display: flex;
			justify-content: center;
			align-items: center;
			color: #ff735d;
			font-size: 16px;
			margin-top: 10px;
			align-self: flex-end;
			cursor: pointer;

			.jet-review-remove-spinner {
				display: none;
			}

			&.load-state {
				.jet-review-remove-spinner {
					display: block;
				}

				i {
					display: none;
				}
			}
		}
	}

	&__fields {
		flex: 1 1 auto;
	}

	&__field {
		&-heading {
			display: flex;
			align-items: center;

			.jet-review__field-label {
				display: flex;
			}

			.jet-review__field-label-suffix {
				white-space: break-spaces;
			}

			.jet-layout-stars:not(.jet-stars-position-left) & {
				justify-content: flex-end;

				.jet-review__field-label {
					margin-right: 10px;
				}

				.rtl & {
					justify-content: flex-start;

					.jet-review__field-label {
						order: 1;
						margin-right: 10px;
					}
				}
			}

			.jet-layout-stars:not(.jet-stars-position-right) & {
				justify-content: flex-start;

				.rtl & {
					justify-content: flex-end;

					.jet-review__field-label {
						order: -1;
						margin-left: 10px;
					}
				}
			}

			.jet-layout-percentage &,
			.jet-layout-points & {
				.jet-review__field-val {
					.rtl & {
						margin-right: 5px;
						margin-left: 0;
					}
				}
			}
		}
		&-val {
			margin-left: 5px;
		}
	}

	&__stars {
		display: inline-flex;
		position: relative;
		line-height: 1em;
		.jet-stars-position-left & {
			order: -1;
			margin-right: 15px;

			.rtl & {
				margin-right: 0;
			}
		}
		&-filled,
		&-empty {
			white-space: nowrap;
			overflow: hidden;
		}
		&-filled {
			position: absolute;
			top: 0;
			left: 0;

			.rtl & {
				left: auto;
				right: 0;
			}
		}
		&-empty {
			position: absolute;
			top: 0;
			right: 0;
			transform: scale( -1, 1 );

			.rtl & {
				left: 0;
				right: auto;
			}
		}
		&-adjuster {
			opacity: 0;
		}
	}

	&__progress {
		box-sizing: border-box;
		width: 100%;
		background-color: #7a7a7a;

		&-bar {
			display: flex;
			justify-content: flex-end;
			align-items: center;
			height: 30px;
			box-sizing: border-box;
			padding: 5px 10px;
			background-color: #6ec1e4;
		}
	}

	&__user {
		display: flex;
		flex-flow: row wrap;
		justify-content: flex-start;
		align-items: center;
		overflow: hidden;

		margin-right: 30px;

		.rtl & {
			margin-right: 0;
			margin-left: 30px;
		}

		&-inner {
			display: flex;
			flex-flow: row wrap;
			justify-content: flex-start;
			align-items: center;
		}

		&-avatar {
			margin-right: 20px;

			.rtl & {
				margin-right: 0;
				margin-left: 20px;
			}

			img.avatar {
				width: 60px;
				height: 60px;
				border-radius: 50%;

			}
		}

		&-info {
			flex: 1 1 auto;
		}

		&-name {
			font-size: 16px;
		}

		&-mail {
			font-size: 12px;
		}

		&-date {
			font-size: 12px;
		}
	}

	&__total-average {
		flex: 1 1 auto;
		display: flex;
		flex-flow: column nowrap;
		justify-content: center;
		align-items: flex-end;
	}

	&__summary {
		display: flex;
		width: 100%;

		&.jet-review-summary-bottom,
		&.jet-review-summary-top {
			flex-wrap: wrap;
		}
		@media ( max-width: 1024px ) {
			flex-wrap: wrap;
		}
		&-content {
			flex: 1 1 auto;
			box-sizing: border-box;
			margin-top: 10px;
			padding: 20px;
			background: #fafafa;
			.jet-review-summary-bottom &,
			.jet-review-summary-top & {
				flex: 1 1 100%;
				width: 100%;
			}
		}
		&-data {
			box-sizing: border-box;
			margin-top: 10px;
			padding: 20px;
			background: #eee;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			.jet-review-summary-left & {
				order: -1;
			}
			.jet-review-summary-top & {
				flex: 1 1 100%;
				width: 100%;
				order: -1;
			}
			.jet-review-summary-bottom & {
				flex: 1 1 100%;
				width: 100%;
			}
			.jet-review-summary-align-left & {
				align-items: flex-start;
			}
			.jet-review-summary-align-center & {
				align-items: center;
			}
			.jet-review-summary-align-right & {
				align-items: flex-end;
			}
			@media ( max-width: 1024px ) {
				flex: 1 1 100%;
				width: 100%;
			}
		}
	}

	&__form {
		margin-top: 30px;
		margin-bottom: 30px;

		&-inner {
			flex-flow: column nowrap;
			justify-content: center;
			align-items: stretch;
		}

		label {
		}

		&-title {
			margin: 0 0 20px 0;
		}

		&-fields {
			display: flex;
			flex-flow: row wrap;
			justify-content: flex-start;
			align-items: flex-start;
			overflow: hidden;
		}

		&-field {
			width: 100%;
			margin-bottom: 10px;
			overflow: hidden;

			&.type-range {

				display: flex;
				flex-flow: row nowrap;
				justify-content: flex-start;
				align-items: center;

				label {
					margin-right: 10px;
					min-width: 100px;
				}

				input {
					flex: 1 1 auto;
					padding: 10px 0;
					border: none;
					background-color: transparent;
					-webkit-appearance: slider-horizontal;
				}

				span {
					margin-left: 10px;
					min-width: 30px;
					text-align: right;
				}
			}

			&.title-field {
				margin-top: 20px;
			}

			input[type="text"], textarea {
				width: 100%;
				background-color: transparent;

				&:focus {
					box-shadow: none;
				}
			}
		}

		&-submit-container{
			display: flex;
			justify-content: flex-start;
			align-items: center;
		}

		a.jet-review__form-submit {
			font-size: 15px;
			padding: 12px 24px;
			border-radius: 3px;
			margin-top: 20px;
			display: flex;
			justify-content: center;
			align-items: center;

			.jet-review-spinner {
				display: none;
			}

			&.load-state {
				.jet-review-spinner {
					display: block;
				}
			}
		}

		&-message {
			width: 100%;
			color: #ff735d;
			display: flex;
			justify-content: center;
			margin-top: 30px;
			display: none;

			&.visible-state {
				display: block;
			}
		}
	}
}

.jet-review__form-field.type-range{
	input[type=range] {
		-webkit-appearance: none;
		width: 100%;
		margin: 0;
	}
	input[type=range]:focus {
		outline: none;
		box-shadow: none;
	}
	input[type=range]::-webkit-slider-runnable-track {
		width: 100%;
		height: 1px;
		cursor: pointer;
		background: #9da4a9;
		border-radius: 2px;
		border: 0px solid #010101;
	}
	input[type=range]::-webkit-slider-thumb {
		border: 2px solid #9da4a9;
		height: 10px;
		width: 10px;
		border-radius: 15px;
		background: #ffffff;
		cursor: pointer;
		-webkit-appearance: none;
		margin-top: -4px;
	}
	input[type=range]:focus::-webkit-slider-runnable-track {
		background: #9da4a9;
	}
	input[type=range]::-moz-range-track {
		width: 100%;
		height: 1px;
		cursor: pointer;
		background: #9da4a9;
		border-radius: 2px;
		border: 0px solid #010101;
	}
	input[type=range]::-moz-range-thumb {
		border: 2px solid #9da4a9;
		height: 10px;
		width: 10px;
		border-radius: 15px;
		background: #ffffff;
		cursor: pointer;
	}
	input[type=range]::-ms-track {
		width: 100%;
		height: 3px;
		cursor: pointer;
		background: transparent;
		border-color: transparent;
		color: transparent;
	}
	input[type=range]::-ms-fill-lower {
		background: #9da4a9;
		border: 0px solid #010101;
		border-radius: 4px;
		box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0px 0px 1px rgba(13, 13, 13, 0);
	}
	input[type=range]::-ms-fill-upper {
		background: #9da4a9;
		border: 0px solid #010101;
		border-radius: 4px;
		box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0px 0px 1px rgba(13, 13, 13, 0);
	}
	input[type=range]::-ms-thumb {
		box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.61), 0px 0px 1px rgba(13, 13, 13, 0.61);
		border: 2px solid rgba(255, 255, 255, 0);
		height: 10px;
		width: 10px;
		border-radius: 15px;
		background: #ffffff;
		cursor: pointer;
		height: 3px;
	}
	input[type=range]:focus::-ms-fill-lower {
		background: #9da4a9;
	}
	input[type=range]:focus::-ms-fill-upper {
		background: #9da4a9;
	}
}

.jet-review-spinner,
.jet-review-spinner:after {
	border-radius: 50%;
	width: 12px;
	height: 12px;
	margin-right: 10px;
}
.jet-review-spinner {
	font-size: 10px;
	position: relative;
	border-top: 2px solid rgba(255, 255, 255, 0.2);
	border-right: 2px solid rgba(255, 255, 255, 0.2);
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	border-left: 2px solid #ffffff;
	transform: translateZ(0);
	animation: load8 1.1s infinite linear;
}

.jet-review-remove-spinner,
.jet-review-remove-spinner:after {
	border-radius: 50%;
	width: 16px;
	height: 16px;
}
.jet-review-remove-spinner {
	font-size: 10px;
	position: relative;
	border-top: 2px solid rgba(255, 255, 255, 0.2);
	border-right: 2px solid rgba(255, 255, 255, 0.2);
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	border-left: 2px solid #ff735d;
	transform: translateZ(0);
	animation: load8 1.1s infinite linear;
}

@keyframes load8 {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}