/* ===== Price Text ===== */

.wpcdeck-price-text--before {
	text-transform: uppercase;
	padding: 4px;
	margin-bottom: 2px;
	background-color: #f47920;
	color: #fff;
	display: inline-block;
}

.wpcdeck-price-text--after {
	display: inline-block;
}

/* ===== Unit Price ===== */

.wpcdeck-unit-price {
	order: 99;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	margin-top: 0.5em;
	gap: 0.5em;
	white-space: normal;
}

.wpcdeck-unit-price__label {
	flex: 0 0 auto;
	font-weight: 600;
	margin-right: 0.5em;
	white-space: nowrap;
}

.wpcdeck-unit-price ins,
.wpcdeck-unit-price del {
	display: inline-block;
	margin-right: 4px;
}

.wpcdeck-unit-price__suffix {
	flex: 0 0 auto;
	display: inline-block;
	white-space: nowrap;
}

/* Variation price box overrides */
.ts-variation-price .wpcdeck-unit-price {
	display: block;
	margin-bottom: 8px;
	white-space: normal;
}

@media (max-width: 480px) {
	.ts-variation-price .wpcdeck-price-text--before {
		font-size: 15px;
		display: block;
		margin-bottom: 4px;
	}
}

/* ===== Sale End Date ===== */

.wpcdeck-sale-end-date {
	display: inline-block;
	margin: 8px 0 12px;
	padding: 8px 12px;
	background: #f7f7f7;
	border-left: 3px solid #f47920;
	border-radius: 3px;
	font-size: 14px;
	color: #555;
	line-height: 1.4;
}

.wpcdeck-sale-end-date strong {
	color: #1a1a1a;
	font-weight: 600;
}

/* ===== Swatches (related products by attribute) ===== */

.wpcdeck-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 10px 0 14px;
	font-size: 14px;
}

.wpcdeck-swatches__label {
	font-weight: 600;
	color: #1a1a1a;
	margin-right: 4px;
}

.wpcdeck-swatches__btn {
	display: inline-block;
	padding: 6px 12px;
	color: #1a1a1a;
	text-decoration: underline;
	background: transparent;
	border: 2px solid transparent;
	border-radius: 3px;
	transition: background 0.15s, border-color 0.15s;
}

.wpcdeck-swatches__btn:hover {
	text-decoration: none;
	background: #f7f7f7;
}

.wpcdeck-swatches__btn--active {
	text-decoration: none;
	border-color: #f47920;
	background: #f7f7f7;
	font-weight: 600;
	cursor: default;
}

.wpcdeck-swatches__btn--unavailable {
	color: #bbb;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* ===== Product Badges ===== */

.wpcdeck-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	line-height: 1.4;
}

/* Before-title badges */
.wpcdeck-badges-before-title {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 6px;
}

/* On-image badges — archive: injected span wrapper; single: absolute inside gallery */
.wpcdeck-badge-image-wrap {
	position: relative;
	display: block;
}

/* Single product gallery: ensure badges stay within image area */
.woocommerce-product-gallery {
	position: relative;
}

.wpcdeck-badge--on_image_lb {
	position: absolute;
	bottom: 8px;
	left: 8px;
	z-index: 5;
}

.wpcdeck-badge--on_image_rt {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
}
