.topic-rating-container {
	position: relative;
	display: inline-block;
}
h3.rate {
	text-transform: none;
	font-size: 1.4em;
	margin-top: 0;
}
.topic-rating-display {
	display: flex;
	align-items: center;
	gap: 8px;
}
.topic-rating-inline {
	float: right;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	vertical-align: middle;
	margin-top: -6px;
}
.rating-stars {
	position: relative;
	display: inline-block;
	font-size: 30px;
	line-height: 30px;
	height: 30px;
	cursor: pointer;
}
.rating-stars-small {
	font-size: 14px;
	height: 14px;
	line-height: 0.9;
	cursor: not-allowed;
	pointer-events: none;
	margin-top: 2px;
}
.stars-empty,
.stars-filled {
	display: inline-block;
	white-space: nowrap;
}
.stars-empty {
	color: #d9d9d9;
}
.stars-empty .icon {
	padding: 0;
	margin: 0;
	width: auto;
	font-size: inherit;
}
.stars-filled {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
}
.stars-filled .icon {
	padding: 0;
	margin: 0;
	width: auto;
	font-size: inherit;
}
/* User rating checkmark indicator */
.user-rating-indicator {
	position: absolute;
	font-size: 10px !important;
	padding: 2px;
	padding-left: 4px;
	color: #4caf50;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	width: 8px;
	height: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	pointer-events: none;
	z-index: 10;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.rating-stars .user-rating-indicator {
	top: 20px;
}
.rating-stars-small .user-rating-indicator {
	font-size: 9px !important;
	width: 12px;
	height: 12px;
	top: -2px;
}
/* Position checkmark above the rated star */
.user-rating-indicator[data-star="1"] { left: 9%; }
.user-rating-indicator[data-star="2"] { left: 29%; }
.user-rating-indicator[data-star="3"] { left: 49%; }
.user-rating-indicator[data-star="4"] { left: 69%; }
.user-rating-indicator[data-star="5"] { left: 88%; }
/* Star color schemes */
.rating-stars-gold .stars-filled { color: #ffbf00; }
.rating-stars-blue .stars-filled { color: #4a90e2; }
.rating-stars-red .stars-filled { color: #e74c3c; }
.rating-stars-green .stars-filled { color: #2ecc71; }
.rating-stars-purple .stars-filled { color: #9b59b6; }
.rating-stars-black .stars-filled { color: #333; }
.rating-text,
.rating-text-small {
	font-size: 13px;
	color: #666;
}
.rating-bold {
	font-weight: bold;
}
.rating-text-small {
	font-size: 11px;
}
.rating-star {
	font-size: 28px;
	cursor: pointer;
	color: #ddd;
	margin: 0;
	margin-bottom: 2px;
	padding: 0;
	line-height: 1;
}
.rating-star:hover,
.rating-star.hover,
.rating-star.selected {
	color: #ffbf00;
}
/* Loading state */
.topic-rating-container.loading {
	opacity: 0.6;
	pointer-events: none;
}
/* No permission state */
.topic-rating-container.rating-no-permission .rating-stars,
.topic-rating-container.rating-no-permission .vote-button,
.topic-rating-container.rating-no-permission .minivote {
	cursor: not-allowed !important;
	opacity: 0.6;
	pointer-events: none;
}
.topic-rating-container.rating-no-permission .rating-stars * {
	cursor: not-allowed !important;
}
/* Fade effect for rating text only */
.topic-rating-display .rating-text {
	transition: opacity 0.3s ease-in-out;
}
/* Upvote/Downvote button styles */
.topic-rating-upvote {
	display: flex;
	align-items: center;
	gap: 8px;
}
/* Vote buttons */
.minivote {
	line-height: normal;
	white-space: nowrap;
	border-radius: 6px;
	color: #ffffff !important;
	position: relative;
	display: inline-block;
	float: left;
	box-sizing: border-box;
	width: 80px;
	margin-right: 10px;
	padding: 6px 10px;
	text-decoration: none;
}
.minivote:hover,
.minivote:focus,
.minivote:active {
	text-decoration: none;
}
.minivote .icon {
	font-size: 16px;
	padding-right: 0;
	padding-left: 0;
}
.minivote .vote-count {
	font-family: Verdana, Arial, sans-serif;
	font-size: 14px;
	margin-left: 10px;
	display: inline-block;
	width: 40px;
}
.rtl .minivote {
	float: right;
	margin-right: auto;
	margin-left: 10px;
}
.minivotevt {
	line-height: 1;
	white-space: nowrap;
	border-radius: 4px;
	color: #ffffff !important;
	position: relative;
	display: inline-block;
	float: left;
	box-sizing: border-box;
	width: 40px;
	margin-top: 2px;
	padding: 2px;
	text-decoration: none;
	cursor: not-allowed;
	pointer-events: none;
}
.minivotevt .icon {
	font-size: 12px;
	padding-right: 0;
	padding-left: 0;
}
.minivotevt .vote-count {
	font-family: Verdana, Arial, sans-serif;
	font-size: 10px;
	display: inline-block;
	width: 20px;
}
.rtl .minivotevt {
	float: right;
	margin-right: auto;
}
.vote-up,
.vote-up.vote-disabled:hover {
	background: #00a9e2;
	border: solid 1px #00a9e2;
}
.vote-up:hover {
	background: #009ad1;
}
.vote-up:active {
	background: #10b2e5;
}
.vote-down,
.vote-down.vote-disabled:hover {
	background: #f76c5e;
	border: solid 1px #f76c5e;
}
.vote-down:hover {
	background: #e56155;
}
.vote-down:active {
	background: #f87768;
}
.user-voted {
	font-size: 10px !important;
	color: #4caf50;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: -6px;
	right: -6px;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.rtl .user-voted {
	right: auto;
	left: -2px;
}
.vote-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}
.vote-disabled:hover {
	text-decoration: none;
}

/* Forum list upvote display */
.upvote-display {
	color: #666;
	font-weight: 500;
}