:root {
	--ywar-rp-star: 25px;
	--ywar-star-size: 25px;
	--esr-star-empty: url("images/rating-star-empty.png");
	--esr-star-full: url("images/rating-star-full.png");
}

.yith-ywar-product-rating .stars,
.yith-ywar-average-rating-box .stars,
.yith-ywar-loop .stars,
.yith-ywar-loop .star-rating,
.yith-ywar-product-rating-wrapper .star-rating,
.yith-ywar-product-rating .star-rating,
.yith-ywar-filter-data .review-rating,
.yith-ywar-review-attachments .review-rating,
.yith-ywar-single-review .review-rating,
.woocommerce-product-rating .star-rating,
.summary .star-rating,
.entry-summary .star-rating,
.et_pb_wc_rating .star-rating,
.et_pb_shop .star-rating,
.et_pb_gallery .star-rating,
.et_pb_wc_gallery .star-rating,
.et_pb_wc_shop .star-rating,
li.product .star-rating,
ul.products .star-rating,
.woocommerce .star-rating,
.esr-sim-stars {
	position: relative;
	overflow: hidden;
	height: var(--ywar-rp-star) !important;
	width: calc(var(--ywar-rp-star) * 5) !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	background: none !important;
	color: transparent !important;
	text-shadow: none !important;
	box-shadow: none !important;
	filter: none !important;
}

.yith-ywar-product-rating .stars > span,
.yith-ywar-average-rating-box .stars > span,
.yith-ywar-loop .stars > span,
.yith-ywar-loop .star-rating > span,
.yith-ywar-product-rating-wrapper .star-rating > span,
.yith-ywar-product-rating .star-rating > span,
.woocommerce-product-rating .star-rating > span,
.summary .star-rating > span,
.entry-summary .star-rating > span,
.et_pb_wc_rating .star-rating > span,
.et_pb_shop .star-rating > span,
.et_pb_gallery .star-rating > span,
.et_pb_wc_gallery .star-rating > span,
.et_pb_wc_shop .star-rating > span,
li.product .star-rating > span,
ul.products .star-rating > span,
.woocommerce .star-rating > span {
	background: none !important;
	color: transparent !important;
	text-shadow: none !important;
	box-shadow: none !important;
	filter: none !important;
}

.yith-ywar-product-rating .stars::before,
.yith-ywar-average-rating-box .stars::before,
.yith-ywar-loop .stars::before,
.yith-ywar-loop .star-rating::before,
.yith-ywar-product-rating-wrapper .star-rating::before,
.yith-ywar-product-rating .star-rating::before,
.yith-ywar-filter-data .review-rating::before,
.yith-ywar-review-attachments .review-rating::before,
.yith-ywar-single-review .review-rating::before,
.woocommerce-product-rating .star-rating::before,
.summary .star-rating::before,
.entry-summary .star-rating::before,
.et_pb_wc_rating .star-rating::before,
.et_pb_shop .star-rating::before,
.et_pb_gallery .star-rating::before,
.et_pb_wc_gallery .star-rating::before,
.et_pb_wc_shop .star-rating::before,
li.product .star-rating::before,
ul.products .star-rating::before,
.woocommerce .star-rating::before,
.esr-sim-stars::before {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	right: auto !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	text-indent: 0 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	filter: none !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	background-color: transparent !important;
	background-image: var(--esr-star-empty) !important;
	background-repeat: repeat-x !important;
	background-position: left center !important;
	background-size: var(--ywar-rp-star) var(--ywar-rp-star) !important;
	-webkit-clip-path: inset(0 0 0 var(--ywar-star-fill, 0%)) !important;
	clip-path: inset(0 0 0 var(--ywar-star-fill, 0%)) !important;
	pointer-events: none;
	z-index: 0;
}

.yith-ywar-product-rating .stars::after,
.yith-ywar-average-rating-box .stars::after,
.yith-ywar-loop .stars::after,
.yith-ywar-loop .star-rating::after,
.yith-ywar-product-rating-wrapper .star-rating::after,
.yith-ywar-product-rating .star-rating::after,
.yith-ywar-filter-data .review-rating::after,
.yith-ywar-review-attachments .review-rating::after,
.yith-ywar-single-review .review-rating::after,
.woocommerce-product-rating .star-rating::after,
.summary .star-rating::after,
.entry-summary .star-rating::after,
.et_pb_wc_rating .star-rating::after,
.et_pb_shop .star-rating::after,
.et_pb_gallery .star-rating::after,
.et_pb_wc_gallery .star-rating::after,
.et_pb_wc_shop .star-rating::after,
li.product .star-rating::after,
ul.products .star-rating::after,
.woocommerce .star-rating::after,
.esr-sim-stars::after {
	content: "" !important;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: var(--ywar-star-fill, 0%) !important;
	background-color: transparent !important;
	background-image: var(--esr-star-full) !important;
	background-repeat: repeat-x !important;
	background-position: left center !important;
	background-size: var(--ywar-rp-star) var(--ywar-rp-star) !important;
	text-shadow: none !important;
	box-shadow: none !important;
	filter: none !important;
	pointer-events: none;
	z-index: 1;
}

.yith-ywar-product-rating .stars > span::before,
.yith-ywar-average-rating-box .stars > span::before,
.yith-ywar-loop .stars > span::before,
.yith-ywar-loop .star-rating > span::before,
.yith-ywar-product-rating-wrapper .star-rating > span::before,
.yith-ywar-product-rating .star-rating > span::before,
.woocommerce-product-rating .star-rating > span::before,
.summary .star-rating > span::before,
.entry-summary .star-rating > span::before,
.et_pb_wc_rating .star-rating > span::before,
.et_pb_shop .star-rating > span::before,
.et_pb_gallery .star-rating > span::before,
.et_pb_wc_gallery .star-rating > span::before,
.et_pb_wc_shop .star-rating > span::before,
li.product .star-rating > span::before,
ul.products .star-rating > span::before,
.woocommerce .star-rating > span::before {
	content: none !important;
	display: none !important;
	background: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	filter: none !important;
}

.yith-ywar-filter-data .review-rating.rating-1,
.yith-ywar-review-attachments .review-rating.rating-1,
.yith-ywar-single-review .review-rating.rating-1 {
	--ywar-star-fill: 20%;
}

.yith-ywar-filter-data .review-rating.rating-2,
.yith-ywar-review-attachments .review-rating.rating-2,
.yith-ywar-single-review .review-rating.rating-2 {
	--ywar-star-fill: 40%;
}

.yith-ywar-filter-data .review-rating.rating-3,
.yith-ywar-review-attachments .review-rating.rating-3,
.yith-ywar-single-review .review-rating.rating-3 {
	--ywar-star-fill: 60%;
}

.yith-ywar-filter-data .review-rating.rating-4,
.yith-ywar-review-attachments .review-rating.rating-4,
.yith-ywar-single-review .review-rating.rating-4 {
	--ywar-star-fill: 80%;
}

.yith-ywar-filter-data .review-rating.rating-5,
.yith-ywar-review-attachments .review-rating.rating-5,
.yith-ywar-single-review .review-rating.rating-5 {
	--ywar-star-fill: 100%;
}

.yith-ywar-edit-forms .form-review-rating .rating-wrapper,
.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars {
	height: var(--ywar-rp-star);
}

.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars span,
.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars span:before {
	height: var(--ywar-rp-star);
	width: var(--ywar-rp-star);
}

.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars span:before {
	-webkit-mask-image: none !important;
	mask-image: none !important;
	background: transparent var(--esr-star-empty) center / contain no-repeat !important;
}

.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars:hover span:before,
.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars.selected span.active:before,
.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars.selected span:not(.active):before {
	background-color: transparent !important;
	background-image: var(--esr-star-full) !important;
}

.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars span:hover ~ span:before,
.yith-ywar-edit-forms .form-review-rating .rating-wrapper .stars.selected span.active ~ span:before {
	background-color: transparent !important;
	background-image: var(--esr-star-empty) !important;
}

.yith-ywar-main-wrapper .yith-ywar-graph-box .rating-group .rating-label:after,
.yith-ywar-product-rating .yith-ywar-graph-box .rating-group .rating-label:after,
.yith-ywar-main-wrapper .yith-ywar-multi-criteria-box .single-criterion .criterion-rating:after,
.yith-ywar-user-reviews .rating-wrapper .single-rating:after {
	-webkit-mask-image: none !important;
	mask-image: none !important;
	background: transparent var(--esr-star-full) center / contain no-repeat !important;
}

.yith-ywar-select2-stars .select2-star-rating:before,
.yith-ywar-select2-stars .select2-selection__rendered:before,
.filter-options-wrapper .select2-star-rating:before,
.filter-options-wrapper .select2-selection__rendered:before {
	-webkit-mask-image: none !important;
	mask-image: none !important;
	height: var(--ywar-rp-star);
	width: calc(var(--ywar-rp-star) * 5);
	background-color: transparent !important;
	background-image: var(--esr-star-empty) !important;
	background-repeat: repeat-x !important;
	background-size: var(--ywar-rp-star) var(--ywar-rp-star) !important;
	background-position: left center !important;
}

.yith-ywar-select2-stars .select2-star-rating[title*="1"]:before,
.yith-ywar-select2-stars .select2-selection__rendered[title*="1"]:before,
.filter-options-wrapper .select2-star-rating[title*="1"]:before,
.filter-options-wrapper .select2-selection__rendered[title*="1"]:before {
	background-image: var(--esr-star-full), var(--esr-star-empty) !important;
	background-repeat: no-repeat, repeat-x !important;
	background-position: 0 0, 0 0 !important;
	background-size: var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star) !important;
	background-color: transparent !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

.yith-ywar-select2-stars .select2-star-rating[title*="2"]:before,
.yith-ywar-select2-stars .select2-selection__rendered[title*="2"]:before,
.filter-options-wrapper .select2-star-rating[title*="2"]:before,
.filter-options-wrapper .select2-selection__rendered[title*="2"]:before {
	background-image: var(--esr-star-full), var(--esr-star-full), var(--esr-star-empty) !important;
	background-repeat: no-repeat, no-repeat, repeat-x !important;
	background-position: 0 0, var(--ywar-rp-star) 0, 0 0 !important;
	background-size: var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star) !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

.yith-ywar-select2-stars .select2-star-rating[title*="3"]:before,
.yith-ywar-select2-stars .select2-selection__rendered[title*="3"]:before,
.filter-options-wrapper .select2-star-rating[title*="3"]:before,
.filter-options-wrapper .select2-selection__rendered[title*="3"]:before {
	background-image: var(--esr-star-full), var(--esr-star-full), var(--esr-star-full), var(--esr-star-empty) !important;
	background-repeat: no-repeat, no-repeat, no-repeat, repeat-x !important;
	background-position: 0 0, var(--ywar-rp-star) 0, calc(var(--ywar-rp-star) * 2) 0, 0 0 !important;
	background-size: var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star) !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

.yith-ywar-select2-stars .select2-star-rating[title*="4"]:before,
.yith-ywar-select2-stars .select2-selection__rendered[title*="4"]:before,
.filter-options-wrapper .select2-star-rating[title*="4"]:before,
.filter-options-wrapper .select2-selection__rendered[title*="4"]:before {
	background-image: var(--esr-star-full), var(--esr-star-full), var(--esr-star-full), var(--esr-star-full), var(--esr-star-empty) !important;
	background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat-x !important;
	background-position: 0 0, var(--ywar-rp-star) 0, calc(var(--ywar-rp-star) * 2) 0, calc(var(--ywar-rp-star) * 3) 0, 0 0 !important;
	background-size: var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star), var(--ywar-rp-star) var(--ywar-rp-star) !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}

.yith-ywar-select2-stars .select2-star-rating[title*="5"]:before,
.yith-ywar-select2-stars .select2-selection__rendered[title*="5"]:before,
.filter-options-wrapper .select2-star-rating[title*="5"]:before,
.filter-options-wrapper .select2-selection__rendered[title*="5"]:before {
	background-image: var(--esr-star-full) !important;
	background-repeat: repeat-x !important;
	background-size: var(--ywar-rp-star) var(--ywar-rp-star) !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
}
