/* TuServerMu - Buy Thanks entry points (Sources/ThanksPay/Subs-ThanksPayEntry.php).
   Loaded on every page where the entry points are visible. */

/* Gold menu button, next to the orange Thanks Shop button (Steyle_V2 menu markup). */
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks .p-navEl > a,
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks .p-navEl:hover > a,
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks > .p-navEl a:focus,
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks a.active {
	color: #3b2500;
	background: linear-gradient(180deg, #ffe08a 0%, #f5b81c 100%);
	border-color: rgba(255, 247, 214, 0.9);
	box-shadow: 0 10px 22px rgba(146, 94, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	text-shadow: none;
}
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks .p-navEl:hover > a,
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks > .p-navEl a:focus {
	background: linear-gradient(180deg, #ffd45e 0%, #eaa60c 100%);
	transform: translateY(-1px);
}
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks .p-navEl > a i.fa {
	color: inherit;
}
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks .p-navEl > a i.fa::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	background: url("../../images/thankspay/coin-64.png") center / contain no-repeat;
	vertical-align: -3px;
}
.horizontal-menu .sidebar .sidebar-menu > li.button_buythanks .p-navEl > a .textmenu::after {
	display: inline-flex;
	align-items: center;
	min-height: 16px;
	margin-left: 7px;
	padding: 0 6px;
	border-radius: 999px;
	color: #fff;
	background: #7c2d12;
	font-size: 9px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.04em;
	vertical-align: middle;
}

/* Download Wait button (saythanks.js): "00:49:12  Skip the wait ->".
   The button turns gold while the wait runs (browsers without :has keep the theme colour). */
.quickbuttons > li > a:has(.tsmu-bt-wait) {
	background: linear-gradient(180deg, #ffe08a 0%, #f5b81c 100%) !important;
	border-color: rgba(183, 121, 31, 0.45) !important;
	box-shadow: 0 6px 14px rgba(245, 184, 28, 0.35) !important;
	animation: none !important;
}
.tsmu-bt-wait {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #3b2500 !important;
	font-weight: 900 !important;
	text-shadow: none !important;
	cursor: pointer !important;
}
.tsmu-bt-wait-time {
	padding: 2px 6px;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.14);
	font-variant-numeric: tabular-nums;
}

/* Hidden download box. */
.tsmu-bt-hide-hint {
	display: block;
	margin-top: 6px;
	font-size: 0.95em;
}
a.tsmu-bt-hide-skip {
	color: #b7791f;
	font-weight: 800;
	white-space: nowrap;
}

/* Profile popup: link under the Wait Time note. */
a.profile_wait_skip {
	display: inline-block;
	margin-top: 2px;
	color: #b7791f;
	font-size: 11px;
	font-weight: 800;
	text-decoration: none;
}
a.profile_wait_skip:hover {
	text-decoration: underline;
}

/* Ratio Breakdown (own profile). */
.tsmu-bt-rb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: linear-gradient(180deg, #fffbeb 0%, #fff7d6 100%);
	color: #78350f;
	font-size: 0.86em;
	font-weight: 700;
}
.tsmu-bt-rb span {
	flex: 1 1 260px;
}
a.tsmu-bt-rb-btn,
a.tsmu-bt-rb-btn:visited {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 9px;
	background: linear-gradient(180deg, #ffe08a 0%, #f5b81c 100%);
	color: #3b2500;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 6px 14px rgba(245, 184, 28, 0.35);
}
a.tsmu-bt-rb-btn:hover {
	background: linear-gradient(180deg, #ffd45e 0%, #eaa60c 100%);
}

/* Thanks Shop banner. */
a.tsmu-bt-shop-banner,
a.tsmu-bt-shop-banner:visited {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	overflow: hidden;
	padding: 16px 20px;
	border-radius: 16px;
	background: #0b1f3a url("../../images/thankspay/offer-bg.webp") center / cover no-repeat;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 12px 26px rgba(11, 31, 58, 0.22);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.tsmu-bt-shop-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 22, 44, 0.92), rgba(8, 22, 44, 0.6) 65%, rgba(8, 22, 44, 0.8));
}
a.tsmu-bt-shop-banner > * {
	position: relative;
}
a.tsmu-bt-shop-banner:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(11, 31, 58, 0.3);
}
.tsmu-bt-shop-coin {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	background: url("../../images/thankspay/coin.webp") center / contain no-repeat;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.tsmu-bt-shop-copy {
	flex: 1 1 auto;
	min-width: 0;
}
.tsmu-bt-shop-copy strong {
	display: block;
	color: #ffd774;
	font-size: 17px;
	font-weight: 900;
}
.tsmu-bt-shop-copy span {
	display: block;
	color: #d4e4fb;
	font-size: 13px;
	font-weight: 600;
}
.tsmu-bt-shop-btn {
	flex: 0 0 auto;
	padding: 10px 16px;
	border-radius: 10px;
	background: linear-gradient(180deg, #ffe08a 0%, #f5b81c 100%);
	color: #3b2500;
	font-size: 13px;
	font-weight: 900;
	white-space: nowrap;
}
@media (max-width: 600px) {
	a.tsmu-bt-shop-banner {
		flex-wrap: wrap;
	}
	.tsmu-bt-shop-copy {
		flex-basis: calc(100% - 70px);
	}
	.tsmu-bt-shop-btn {
		width: 100%;
		text-align: center;
	}
}

/* Thanks Shop: "You need N more Thanks - Buy now" under a product's buy button
   (the product form is a grid with a 12px gap). */
a.tsmu-bt-need,
a.tsmu-bt-need:visited {
	display: block;
	padding: 9px 12px;
	border: 1px solid #fde68a;
	border-radius: 10px;
	background: linear-gradient(180deg, #fffbeb 0%, #fff3c4 100%);
	color: #78350f;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}
a.tsmu-bt-need[hidden] {
	display: none;
}
a.tsmu-bt-need strong {
	color: #92400e;
	font-weight: 900;
}
a.tsmu-bt-need span {
	color: #b45309;
	font-weight: 900;
	white-space: nowrap;
}
a.tsmu-bt-need:hover,
a.tsmu-bt-need:focus {
	border-color: #f5b81c;
	background: linear-gradient(180deg, #fff7d6 0%, #ffe9a0 100%);
}
