/*
Challenge Status: the sides' totals, the meter and the end date (Templates/ChallengeStatus.tpl),
shared by the challenge detail page and the resolve page. Moved from ChallengeDetail.css.
 */


/*
Challenge Status Area
 */
.ChallengeStatusArea {
	--ChallengerOneTheme-Color:    var(--Colors-Secondary-Accent01);
	--ChallengerTwoTheme-Color:    var(--Colors-Secondary-Accent03);

	margin-bottom:                 24px;
}

.ChallengeStatusChallengers {
	--Typeface-FontWght:           700;

	display:                       flex;
	font-family:                   var(--Typeface01-FontFamily);
	font-size:                     18px;
	font-variation-settings:       var(--Typeface01-FontVariationSettings);
	font-weight:                   var(--Typeface-FontWght);
	justify-content:               space-between;
	line-height:                   20px;
	margin-bottom:                 10px;
}

.ChallengeStatusChallengerOne {
	--ChallengerTheme-Color:       var(--ChallengerOneTheme-Color);
}

.ChallengeStatusChallengerTwo {
	--ChallengerTheme-Color:       var(--ChallengerTwoTheme-Color);

	text-align:                    right;
}

.ChallengeStatusChallengerTitleText {
	color:                         var(--ChallengerTheme-Color);
}

.ChallengeStatusChallengerTitleIconArea {
	display:                       inline-block;
	margin-left:                   4px;
	padding-bottom:                1px;
	vertical-align:                bottom;
}

.ChallengeStatusChallengerTwo .ChallengeStatusChallengerTitleIconArea {
	margin-left:                   0;
	margin-right:                  4px;
}

.ChallengeStatusChallengerTitleIcon {
	display:                       block;
}

.ChallengeStatusChallengerDetails {
	--Typeface-FontWght:           700;

	font-size:                     18px;
	line-height:                   20px;
}

.ChallengeStatusChallengerTwo .ChallengeStatusChallengerDetails {
	text-align:                    right;
}

.ChallengeStatusMeterArea {
	margin-bottom:                 8px;
}

.ChallengeStatusMeter {
	border-radius:                 6px;
	display:                       flex;
	gap:                           4px;
	height:                        12px;
	overflow:                      hidden;
}

.ChallengeStatusMeterChallenger {
	flex:                          1 1 var(--Meter-FlexBasis, 50%);
}

.ChallengeStatusMeterChallenger[style*="--Meter-FlexBasis: 0%;"] {
	display:                       none;
}

/* No pledges yet: every side is 0%, so split the meter evenly rather than leave it empty. */
.ChallengeStatusMeterPledges0 .ChallengeStatusMeterChallenger {
	display:                       block;
	flex:                          1 1 0;
}

.ChallengeStatusMeterChallengerOne {
	background-color:              var(--ChallengerOneTheme-Color);
}

.ChallengeStatusMeterChallengerTwo {
	background-color:              var(--ChallengerTwoTheme-Color);
}

/*
Dates Area
 */
.ChallengeDatesArea {
	display:                       flex;
	flex-wrap:                     wrap;
	font-size:                     14px;
	gap:                           24px;
	justify-content:               space-between;
	line-height:                   18px;
}

.ChallengeDateText {
	--Typeface-FontWght:           700;

	font-weight:                   var(--Typeface-FontWght);
}
