/* ============================================================
   Mulke Legacy reactions 1.5.1
   - hide Thanks user counters from mini-profile
   - old-style user reputation +/- buttons
   - anonymous Thanks rating/stars under the message (no usernames)
   ============================================================ */

/* gfksx/thanksforposts: user totals are no longer shown in post profiles. */
.postprofile dd[data-user-give-id],
.postprofile dd[data-user-receive-id] {
	display: none !important;
}

/* Hide pico/reputation's modern mini-profile widget.
   We render the same data with the old Mulke layout. */
.postprofile .rs-miniprofile-block {
	display: none !important;
}

/* Keep post-content reputation widgets out of the top-right tool row.
   Old Mulke used +/- in the author column instead. */
.post .post-buttons .rs-widget {
	display: none !important;
}

.mulke-old-reputation {
	display: block !important;
	margin: 1px 0 0 !important;
	padding: 0 !important;
	font-size: 10px !important;
	line-height: 14px !important;
	order: 70 !important;
}

.mulke-old-reputation .rs-widget {
	display: block !important;
	float: none !important;
	position: static !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: left !important;
}

.mulke-reputation-line {
	display: block !important;
	clear: both !important;
	white-space: normal !important;
	color: inherit !important;
	font-size: 10px !important;
	line-height: 14px !important;
}

.mulke-reputation-line strong {
	display: inline !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 10px !important;
	line-height: 14px !important;
}

.mulke-reputation-line .post-reputation {
	display: inline !important;
	float: none !important;
	position: static !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 0 0 2px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 10px !important;
	font-weight: normal !important;
	line-height: 14px !important;
	vertical-align: baseline !important;
}

.mulke-old-reputation-buttons {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 2px !important;
	clear: both !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
}

.mulke-old-reputation-buttons a {
	display: block !important;
	float: none !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	min-height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.mulke-old-reputation-buttons img {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* ---------------- Thanks for posts: anonymity ----------------
   Never show the list/names of users who thanked a post.
   SQL also disables thanks_postlist_view; this CSS is a fallback.
*/
[id^="list_thanks"] {
	display: none !important;
}

/* Rating based on thanks: the original forum used gold stars over empty stars. */
[id^="div_post_reput"] {
	clear: both !important;
	margin: 3px 0 0 !important;
	padding: 0 !important;
}

[id^="div_post_reput"] > .notice {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #323D4F !important;
	font-size: 10px !important;
	line-height: 15px !important;
}

[id^="div_post_reput"] .notice dl,
[id^="div_post_reput"] .notice dt,
[id^="div_post_reput"] .notice dd {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

[id^="div_post_reput"] .notice dt.small {
	display: block !important;
	margin: 0 0 1px !important;
	font-size: 10px !important;
	line-height: 14px !important;
}

/* Outer star track. Inline width supplied by Thanks for posts is preserved. */
[id^="div_post_reput"] .notice dd > span {
	display: block !important;
	float: left !important;
	height: 14px !important;
	background-image: url("./images/reput_star_back.gif") !important;
	background-repeat: repeat-x !important;
	background-position: left top !important;
}

/* Filled gold portion. Inline percentage width is preserved. */
[id^="div_post_reput"] .notice dd > span > span {
	display: block !important;
	height: 14px !important;
	background-image: url("./images/reput_star_gold.gif") !important;
	background-repeat: repeat-x !important;
	background-position: left top !important;
}

/* The legacy star bar belongs in the post body, above the old footer buttons. */
.postbody [id^="list_thanks"],
.postbody [id^="div_post_reput"] {
	max-width: 100% !important;
}

/* Thanks button itself keeps the original small image in the lower-right tool row. */
.post .post-buttons a[id^="lnk_thanks_post"] {
	background-image: url("./images/thankposts.gif") !important;
	background-repeat: no-repeat !important;
	background-position: center center !important;
}

.post .post-buttons a[id^="lnk_thanks_post"]:has(.removethanks-icon) {
	background-image: url("./images/removethanks.gif") !important;
}
