.ptik-rating {
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.ptik-rating__stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	direction: rtl;
}

.ptik-rating__star {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 1;
	transition: transform 0.15s ease;
}

.ptik-rating__star-shell {
	position: relative;
	display: block;
	width: 32px;
	height: 32px;
}

.ptik-rating__star-inactive {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ptik-rating__star-active-wrap {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	height: 32px;
	width: var(--star-fill, 0%);
	overflow: hidden;
	z-index: 1;
	transition: width 0.15s ease;
}

.ptik-rating__star-active {
	position: absolute;
	top: 0;
	right: 0;
	width: 32px;
	height: 32px;
}

.ptik-rating__star-inactive svg,
.ptik-rating__star-active svg {
	width: 32px;
	height: 32px;
	display: block;
}

.ptik-rating__star-num {
	position: absolute;
	inset: 0;
	top: 12px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	font-size: 12px;
	font-weight: 400;
	color: #000;
	text-shadow: none;
	pointer-events: none;
	z-index: 2;
	line-height: 1;
}

.ptik-rating__star:hover,
.ptik-rating__star:focus-visible {
	transform: scale(1.04);
}

.ptik-rating.is-voted .ptik-rating__star {
	cursor: default;
}

.ptik-rating.is-voted .ptik-rating__star:hover,
.ptik-rating.is-voted .ptik-rating__star:focus-visible {
	transform: none;
}

.ptik-rating__legend {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text, #444);
	text-align: center;
}

.ptik-rating.is-loading {
	opacity: 0.7;
	pointer-events: none;
}
