.sts-deal-badge {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.7rem;
	border: none;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.15;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	white-space: nowrap;
	/* Let clicks fall through to the surrounding product-card link. */
	pointer-events: none;
}

.sts-deal-badge .sts-deal-badge__text {
	color: inherit;
}

.sts-deal-badge__icon {
	flex-shrink: 0;
}

.sts-deal-badge--image {
	padding: 0;
	background: none !important;
	box-shadow: none;
	border-radius: 0;
}

.sts-deal-badge__img {
	display: block;
	width: 72px;
	height: auto;
}

/* Single product: the wrapper anchors the badge over the gallery. */
.sts-deal-gallery-wrapper {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	z-index: 6;
	pointer-events: none;
}

.sts-deal-gallery-wrapper .sts-deal-badge {
	position: static;
	font-size: 0.95rem;
	padding: 0.45rem 0.9rem;
}

.sts-deal-gallery-wrapper .sts-deal-badge--image {
	padding: 0;
}

.sts-deal-gallery-wrapper .sts-deal-badge__img {
	width: 96px;
}

@media (max-width: 767px) {
	.sts-deal-badge {
		top: 0.4rem;
		right: 0.4rem;
		font-size: 0.75rem;
		padding: 0.3rem 0.55rem;
	}

	.sts-deal-gallery-wrapper {
		top: 0.6rem;
		right: 0.6rem;
	}

	.sts-deal-gallery-wrapper .sts-deal-badge {
		font-size: 0.85rem;
		padding: 0.35rem 0.7rem;
	}
}

/* "More of this sale" button on the single product page */
.sts-deal-more-wrap {
	margin: 1rem 0;
}

.sts-deal-more {
	display: inline-block;
	text-decoration: none;
}

/* Sales page + per-deal pages (generic template) */
.sts-deals-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.sts-deals-title {
	text-align: center;
	margin-bottom: 1rem;
}

.sts-deals-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.sts-deals-chip {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
}

.sts-deals-chip.is-active {
	background: #2a8c8d;
	border-color: #2a8c8d;
	color: #fff;
}

.sts-deals-description,
.sts-deals-empty {
	text-align: center;
	margin-bottom: 1.5rem;
}

/* Fallback grid in case the theme/WooCommerce does not style ul.products here. */
.sts-deals-wrap ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
