/* Stling for wp-rating */
.wp-rating {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    font-size: 0;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 10px 10px 8px 10px;
	overflow: hidden;
	width: fit-content;
	--lwd-icon-color: var(--e-global-color-accent);
}
.wp-rating .rating {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}
.wp-rating .rating-item {
    display: inline-block;
    margin-right: 5px;
    font-size: 20px;
    color: #ccc;
}
.wp-rating .rating-item.selected {
    color: var(--lwd-icon-color );
}

.wp-rating .rating-item.rating-total {
	color: var(--e-global-color-text );
	margin-left: .5rem;
}

.wp-rating .rating-item.selected.half {
    /*opacity: 0.5;*/
}
.wp-rating .rating-link {
    display: block;
    width: 20px;
    height: 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
	  transition: all .5s ease-in-out;
		position: relative;
}
.wp-rating .rating-link:hover {
    color: var(--lwd-icon-color );
}
.wp-rating .rating-item.selected .rating-link.checked {
    color: var(--lwd-icon-color );
}
.wp-rating .rating-item:not(.selected)  .rating-link.checked {
    
}
.wp-rating .rating-link i {
	  transition: all .5s ease-in-out;
}
.wp-rating:not(.rated) .rating-link:hover i,
.wp-rating .rating-link.checked i {
	/*transform: scale(1.125);*/
	animation: jump-up 1s ease-in-out;
}
.wp-rating .rating-link.checked:hover i {
	animation: restartHack;
	animation-duration: .5s;
}
.wp-rating.rated .rating-link:not(.checked):hover i {
	transform: scale(1.125);
}

.wp-rating:not(.rated) .rating-link:hover:before,
.wp-rating.rated .rating-link.checked:hover:before,
.wp-rating .rating-link.active:before {
    content: '+1';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    font-size: 12px;
    color: var(--e-global-color-text );
    text-align: center;
    animation: flying-up 1s ease-in-out;
    z-index: 2;
		width: 25px;
    height: 15px;
    font-size: 15px;
    font-weight: bold;
		opacity: 0;
}

.wp-rating.use-stars .rating-link .fa.fa-heart:before {
	content: "\f005"!important;
}

.wp-rating .half .rating-link .fa {
    background: linear-gradient(to right, var(--lwd-icon-color ) 50%, #ccc 50%);
    background-clip: text;
	-webkit-background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .wp-rating {
        width: 100%;
    }
}

@keyframes flying-up {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -50px, 0);
    }
}

@keyframes jump-up {
    0% {
        transform: translate3d(0, 0, 0);
    }
    90% {
        transform: translate3d(0, -10px, 0);
    }
	  100% {
        transform: translate3d(0, 0x, 0);
    }
}
