.wabou-vt-below {
	clear: both;
	margin: 30px 0 40px;
}

.wabou-vt-title {
	margin: 0 0 10px;
	font-size: 1.25em;
}

.wabou-vt-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 130px 120px minmax(190px, 240px);
	grid-template-areas: "info price qty buy" "msg msg msg msg";
	align-items: center;
	column-gap: 24px;
	row-gap: 6px;
	margin: 0;
	padding: 20px 10px;
	border-bottom: 1px solid #ddd;
}

.wabou-vt-row.has-image {
	grid-template-columns: 64px minmax(0, 1fr) 130px 120px minmax(190px, 240px);
	grid-template-areas: "image info price qty buy" "msg msg msg msg msg";
}

.wabou-vt-row:first-of-type {
	border-top: 1px solid #ddd;
}

.wabou-vt-image {
	grid-area: image;
}

.wabou-vt-image img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
}

.wabou-vt-info {
	grid-area: info;
	min-width: 0;
}

.wabou-vt-name {
	display: block;
	font-size: 1.1em;
	color: #222;
}

.wabou-vt-sku {
	display: block;
	margin-top: 2px;
	line-height: 1.4;
	font-size: 0.75em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #888;
}

.wabou-vt-desc {
	margin-top: 4px;
	font-size: 0.85em;
	color: #666;
}

.wabou-vt-desc p {
	margin: 0;
}

.wabou-vt-choice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	font-size: 0.9em;
}

.wabou-vt-choice select {
	max-width: 200px;
}

.wabou-vt-price {
	grid-area: price;
	font-weight: 600;
	font-size: 1.15em;
	white-space: nowrap;
	text-align: right;
}

.wabou-vt-qty {
	grid-area: qty;
}

.wabou-vt-qty .quantity {
	margin: 0 !important;
	float: none !important;
}

.wabou-vt-buy {
	grid-area: buy;
	display: flex;
	flex-direction: column;
}

.wabou-vt-row .wabou-vt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	text-transform: uppercase;
}

.wabou-vt-row .wabou-vt-button[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.wabou-vt-row .wabou-vt-button.loading {
	opacity: 0.7;
	cursor: wait;
}

/* Badge de disponibilité avec petite flèche vers le bouton */
.wabou-vt-stock {
	position: relative;
	margin-top: 10px;
	padding: 5px 8px;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	color: #fff;
	background: #2e7d32;
}

.wabou-vt-stock::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 50%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top: 0;
	border-bottom-color: inherit;
}

.wabou-vt-stock.is-in {
	background: #2e7d32;
	border-bottom-color: #2e7d32;
}

.wabou-vt-stock.is-backorder {
	background: #ef6c00;
	border-bottom-color: #ef6c00;
}

.wabou-vt-stock.is-out {
	background: #d32f2f;
	border-bottom-color: #d32f2f;
}

.wabou-vt-stock.is-in::before {
	border-bottom-color: #2e7d32;
}

.wabou-vt-stock.is-backorder::before {
	border-bottom-color: #ef6c00;
}

.wabou-vt-stock.is-out::before {
	border-bottom-color: #d32f2f;
}

.wabou-vt-message {
	grid-area: msg;
	font-size: 0.9em;
	text-align: right;
}

.wabou-vt-message:empty {
	display: none;
}

.wabou-vt-message.is-success {
	color: #2e7d32;
}

.wabou-vt-message.is-error {
	color: #d32f2f;
}

.wabou-vt-jump .button {
	margin-top: 10px;
}

/* Colonne étroite (résumé, aperçu rapide) et mobiles */
.summary .wabou-vt-row,
.yith-wcqv-main .wabou-vt-row {
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "info price" "qty buy" "msg msg";
	row-gap: 10px;
}

.summary .wabou-vt-row.has-image,
.yith-wcqv-main .wabou-vt-row.has-image {
	grid-template-columns: 56px minmax(0, 1fr) auto;
	grid-template-areas: "image info price" "qty qty buy" "msg msg msg";
}

@media (max-width: 767px) {
	.wabou-vt-row,
	.wabou-vt-row.has-image {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "info price" "qty buy" "msg msg";
		row-gap: 10px;
		column-gap: 12px;
		padding: 16px 4px;
	}

	.wabou-vt-row.has-image {
		grid-template-columns: 56px minmax(0, 1fr) auto;
		grid-template-areas: "image info price" "qty qty buy" "msg msg msg";
	}

	.wabou-vt-image img {
		width: 56px;
		height: 56px;
	}

	.wabou-vt-buy {
		min-width: 0;
	}
}

/* Thème Greenmart : avec une seule photo et une colonne de droite courte, la photo débordait
   sur le contenu placé dessous. */
.single-product .image-mains .woocommerce-product-gallery:not(:has(.flex-viewport)) {
	display: block;
}

/* Lien « Voir le panier » ajouté par WooCommerce : déjà présent dans le message de la ligne. */
.wabou-vt-buy .added_to_cart {
	display: none !important;
}
