/* Awesome Promotions storefront. Colours follow the theme where they can. */

.awpromo-badge {
	white-space: nowrap;
}

.awpromo-countdown {
	margin: 0.25em 0 0.75em;
	font-size: 0.95em;
	font-weight: 600;
}

.awpromo-messages {
	margin: 1em 0;
}

.awpromo-message {
	margin: 0 0 0.75em;
	padding: 0.6em 0.9em;
	border-left: 3px solid currentColor;
	background: rgba(0, 0, 0, 0.03);
}

.awpromo-message[hidden] {
	display: none;
}

.awpromo-message__text {
	margin: 0;
}

.awpromo-tiers {
	width: auto;
	margin: 0.5em 0 0;
	border-collapse: collapse;
	font-size: 0.95em;
}

.awpromo-tiers caption {
	padding-bottom: 0.3em;
	font-weight: 600;
	text-align: left;
}

.awpromo-tiers th,
.awpromo-tiers td {
	padding: 0.25em 1.2em 0.25em 0;
	border: 0;
	text-align: left;
}

.awpromo-notes:empty {
	display: none;
}

.awpromo-notes {
	margin: 0 0 1em;
}

.awpromo-notes--mini {
	margin: 0 0 0.75em;
	font-size: 0.9em;
}

.awpromo-bar {
	margin: 0 0 0.75em;
}

.awpromo-bar__text {
	margin: 0 0 0.35em;
}

.awpromo-bar__track {
	position: relative;
	height: 6px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.awpromo-bar__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-radius: 3px;
	background: currentColor;
	transition: width 0.3s ease;
}

.awpromo-bar--done .awpromo-bar__text {
	font-weight: 600;
}

.awpromo-hints {
	margin: 0;
	padding: 0;
	list-style: none;
}

.awpromo-hint {
	margin: 0 0 0.3em;
}

.awpromo-gifts {
	margin: 1.5em 0;
}

.awpromo-gift-title {
	margin: 0 0 0.5em;
	font-size: 1.1em;
}

.awpromo-gift-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.awpromo-gift-option {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-start;
}

.awpromo-gift-option img {
	max-width: 100px;
	height: auto;
}

.awpromo-gift-qty {
	display: inline-block;
	min-width: 2em;
	text-align: center;
}

/*
 * WC Price History's lowest-price block now sits inside the price paragraph
 * (AWPROMO_Frontend::inline_price_history). Keep the weight and spacing it
 * had outside, instead of taking on the bold, tight price style.
 */
.price .wc-price-history.prior-price.lowest {
	font-weight: 400;
	line-height: 1.5;
}
