/* ==========================================================================
   Squidgy Promo Displays: category banner and product card tags
   ========================================================================== */

/* --------------------------------------------------------------------------
   Product card tags
   -------------------------------------------------------------------------- */

.sqpd-card-tags {
	display: flex;
	flex: 1 0 100%;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	align-items: center;
	gap: 6px;
	width: 100%;
	min-height: 28px;
	margin: 2px 0 10px;
	text-align: left;
}

.sqpd-card-tag {
	padding: 4px 9px;
	border: 1px solid #c5dccd;
	border-radius: 5px;
	background: #ecf5ee;
	color: #2c5a49;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.sqpd-card-tag--top {
	border-color: #1f2c28;
	background: #1f2c28;
	color: #e9b949;
}

.sqpd-card-mix {
	color: #5f6b65;
	font-size: 13px;
	line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Category banner
   -------------------------------------------------------------------------- */

.sqpd-cat {
	clear: both;
	margin: 32px 0;
	padding: 30px;
	border-radius: 14px;
	background: #1f2c28;
	color: #fff;
	text-align: left;
}

.sqpd-cat p {
	margin: 0;
}

.sqpd-cat__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
	align-items: center;
	gap: 24px 32px;
}

.sqpd-cat .sqpd-cat__eyebrow {
	color: #e9b949;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.sqpd-cat .sqpd-cat__heading {
	color: #fff;
	font-family: "Source Serif 4", serif;
	font-size: 29px;
	line-height: 1.2;
}

.sqpd-cat .sqpd-cat__tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	container-type: inline-size;
}

.sqpd-cat__tier {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px 12px;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
}

.sqpd-cat__text {
	display: flex;
	flex-direction: column;
}

.sqpd-cat__spend {
	font-size: 15px;
	line-height: 1.35;
	opacity: 0.9;
}

.sqpd-cat__offer {
	font-size: 21px;
	font-weight: 900;
	line-height: 1.2;
}

.sqpd-cat__code {
	padding: 7px 12px;
	border: 2px dashed #e9b949;
	border-radius: 7px;
	color: #e9b949;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	user-select: all;
}

.sqpd-cat__tier--top {
	border-color: #e9b949;
	background: #e9b949;
	color: #1f2c28;
}

.sqpd-cat__tier--top .sqpd-cat__code {
	border-color: #1f2c28;
	color: #1f2c28;
}

.sqpd-cat .sqpd-cat__note,
.sqpd-cat .sqpd-cat__charity {
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.45;
}

.sqpd-cat .sqpd-cat__note {
	margin-top: 24px;
}

.sqpd-cat .sqpd-cat__charity {
	margin-top: 4px;
}

/* Code box beside the offer once both tiles have room for it. */
@container (min-width: 760px) {
	.sqpd-cat__tier {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

@media (max-width: 921px) {
	.sqpd-cat__main {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 544px) {
	.sqpd-cat {
		margin-bottom: 24px;
		padding: 22px 18px;
	}

	.sqpd-cat .sqpd-cat__heading {
		font-size: 25px;
	}

	.sqpd-cat__offer {
		font-size: 20px;
	}

	.sqpd-card-tag,
	.sqpd-card-mix {
		font-size: 12px;
	}

	.sqpd-card-tag {
		padding: 3px 7px;
	}
}
