/**
 * http://new-dev.ru/
 * author GoldSoft <newdevexpert@gmail.com>
 * Copyright (c) New-Dev.ru
 */

.ratings .stars {
	position: relative;
	height: 15px;
	width: 91px;
	min-width: 91px;
    margin-bottom: 5px;
}
.ratings .star-grey, .ratings .star-gold{
	height: 15px;
	width: 91px;
	background: url(/engine/modules/postreviews/site/images/stars.png) no-repeat;
	position: absolute;
	z-index: 1
}
.ratings .star-gold{
	z-index: 2;
	-webkit-filter: hue-rotate(185deg);
	-moz-filter: hue-rotate(185deg);
	filter: hue-rotate(185deg);
}
.ratings .star-grey {
	background-position: 0 -19px;
}



/* set direction to row-reverse so 5th star is at the end and ~ can be used to fill all sibling stars that precede last starred element*/
.star-container {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	padding: 10px 0;
}

.star-container .pr-caption {
	padding: 0.4rem 1rem 0.4rem 0;
}

.star-container label {
	cursor: pointer;
}

.star-container svg {
	width: 2rem;
	height: 2rem;
	padding: 0.01rem;
}

/* hide radio buttons */
.star-container input[name="star"] {
	display: inline-block;
	width: 0;
	opacity: 0;
	margin-left: -2px;
}

/* set initial color to transparent so fill is empty*/
.star-container .star {
	color: transparent;
	transition: color 0.2s ease-in-out;
}

.star-container label:hover ~ label .star,
.star-container svg.star:hover,
.star-container input[name="star"]:focus ~ label .star,
.star-container input[name="star"]:checked ~ label .star {
	color: #6CAFFF;
}

.star-container input[name="star"]:checked + label .star {
	animation: starred 0.5s;
}

.star-container input[name="star"]:checked + label {
	animation: scaleup 1s;
}

/* hide source svg */
.star-source {
	width: 0;
	height: 0;
	visibility: hidden;
}

@keyframes scaleup {
	from {
		transform: scale(1.2);
	}
	to {
		transform: scale(1);
	}
}

@keyframes starred {
	from {
		color: #3394E6;/*3394E6*/
	}
	to {
		color: #6CAFFF;
	}
}