/* "Complete seu desconto" — classic cart, below the items (inside the cart form). */
.tebrand-upsell {
	box-sizing: border-box;
	margin: 20px 0 10px;
	padding: 16px 0 0;
	border-top: 1px solid #e5e5e5;
	color: #333;
	text-align: left;
	white-space: normal;
}
.tebrand-upsell__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.tebrand-upsell__message {
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 500;
}
.tebrand-upsell__note {
	margin: 0 0 12px;
	color: #666;
	font-size: 12px;
	line-height: 1.4;
}
.tebrand-upsell--done {
	padding: 10px 12px;
	border: 1px solid #e5e5e5;
	background: #f7f7f7;
}
.tebrand-upsell--done .tebrand-upsell__message { margin: 0; font-size: 13px; }

.tebrand-upsell__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.tebrand-upsell__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.tebrand-upsell__image { display: block; margin-bottom: 6px; }
.tebrand-upsell__image img { display: block; width: 100%; height: auto; }
.tebrand-upsell__name {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}
.tebrand-upsell__name a { color: inherit; }
.tebrand-upsell__labels {
	margin: 2px 0 0;
	color: #666;
	font-size: 12px;
	line-height: 1.3;
}
/* Selector and button sit at the bottom of every card, aligned across the row. */
.tebrand-upsell__size-label { display: block; margin: auto 0 0; padding-top: 8px; }
.tebrand-upsell .tebrand-upsell__size {
	width: 100%;
	height: 34px;
	margin: 0;
	padding: 0 8px;
	font-size: 13px;
}
.tebrand-upsell .tebrand-upsell__button {
	width: 100%;
	min-height: 34px;
	margin: 8px 0 0;
	padding: 0 8px;
	font-size: 12px;
	line-height: 1.2;
	white-space: normal;
}
.tebrand-upsell__card .tebrand-upsell__labels + .tebrand-upsell__button,
.tebrand-upsell__card .tebrand-upsell__name + .tebrand-upsell__button { margin-top: auto; }
.tebrand-upsell__status:empty { display: none; }
.tebrand-upsell__status {
	margin: 10px 0 0;
	font-size: 13px;
}
.tebrand-upsell__status.is-error { color: #b20000; }

@media (max-width: 849px) {
	/* Two cards visible, the others reachable by horizontal scroll. */
	.tebrand-upsell__list {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
	}
	.tebrand-upsell__card {
		flex: 0 0 calc(50% - 5px);
		scroll-snap-align: start;
	}
	.tebrand-upsell__title { font-size: 14px; }
	.tebrand-upsell__message { font-size: 13px; }
}

/* 0.9.2 — Cart block: rendered in the order summary (SlotFill ExperimentalOrderMeta),
   a narrower column than the classic cart table. */
.tebrand-upsell--blocks {
	margin: 12px 0 4px;
	padding-top: 12px;
}
.tebrand-upsell--blocks.tebrand-upsell--done { padding: 10px 12px; }
.tebrand-upsell--blocks .tebrand-upsell__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.tebrand-upsell--blocks .tebrand-upsell__title { font-size: 14px; }
.tebrand-upsell--blocks .tebrand-upsell__message { font-size: 13px; }

/* 0.9.3 — Cart block: hide the per-item "Economize R$ X" sale badge (WooCommerce
   ProductSaleBadge in the line total). Strikethrough and current prices are kept;
   the checkout order summary and Flycart's total savings are not targeted. */
body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-badge.wc-block-components-sale-badge {
	display: none;
}
