.vgp-plan-wrap {
	max-width: 100%;
	margin-bottom: 10px;
}

.vgp-plan-wrap svg {
	max-width: 100%;
	height: auto;
}

.vgp-zone {
	cursor: pointer;
	fill: rgba(0, 200, 83, 0.75) !important;
	stroke: #006e2e !important;
	stroke-width: 2.5px;
	vector-effect: non-scaling-stroke;
	transition: fill 0.15s ease;
}

.vgp-zone.vgp-instock:hover {
	fill: rgba(0, 230, 100, 0.95) !important;
	stroke-width: 3.5px;
}

.vgp-zone.vgp-selected {
	fill: rgba(255, 171, 0, 0.9) !important;
	stroke: #b34700 !important;
	stroke-width: 3.5px;
}

.vgp-zone.vgp-soldout {
	fill: rgba(120, 120, 120, 0.45) !important;
	stroke: #555 !important;
	stroke-width: 1.5px;
	cursor: not-allowed;
	pointer-events: none;
}

.vgp-plan-legend {
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.vgp-legend-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 2px;
	margin-left: 10px;
}
.vgp-legend-swatch:first-child {
	margin-left: 0;
}

.vgp-legend-free {
	background: rgba(0, 200, 83, 0.75);
	border: 2px solid #006e2e;
}

.vgp-legend-sold {
	background: rgba(120, 120, 120, 0.45);
	border: 1px solid #555;
}

.vgp-legend-selected {
	background: rgba(255, 171, 0, 0.9);
	border: 2px solid #b34700;
}

.vgp-label {
	fill: #111;
	font-family: sans-serif;
	font-weight: 600;
	paint-order: stroke;
	stroke: rgba(255, 255, 255, 0.8);
	stroke-width: 2px;
	user-select: none;
}

.vgp-cart { margin: 12px 0 40px !important; }
.vgp-hint { color: #666; font-size: 14px; margin: 0 0 8px; }
.vgp-selection { list-style: none; margin: 0 0 8px; padding: 0; }
.vgp-selection li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #eee; }
.vgp-remove { border: 0; background: none; cursor: pointer; color: #b32d2e; font-size: 14px; }
.vgp-total { font-weight: 700; margin: 8px 0; }
.vgp-add-to-cart[disabled] { opacity: .5; cursor: not-allowed; }
.vgp-message { margin: 10px 0 20px !important; }
.vgp-error { color: #b32d2e; margin-top: 6px; }

/* Spécificité renforcée (#top) pour passer devant les styles du thème (Enfold) */
#top .vgp-cart .vgp-add-to-cart,
body .vgp-cart .vgp-add-to-cart.single_add_to_cart_button {
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	float: none !important;
	display: inline-block !important;
	margin: 0 0 20px 0 !important;
	padding-left: 28px !important;
	padding-right: 28px !important;
}
#top .vgp-cart .vgp-checkout {
	width: auto !important;
	min-width: 0 !important;
	float: none !important;
	display: inline-block !important;
	margin: 0 0 20px 0 !important;
	padding-left: 28px !important;
	padding-right: 28px !important;
}
#top .vgp-cart .vgp-checkout[hidden] { display: none !important; }
.vgp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.vgp-zone.vgp-incart {
	fill: rgba(33, 150, 243, 0.8) !important;
	stroke: #0d47a1 !important;
	stroke-width: 3px;
	pointer-events: none;
	cursor: not-allowed;
}
.vgp-legend-incart { background: rgba(33, 150, 243, 0.8); border: 2px solid #0d47a1; }
.vgp-incart-box { margin: 8px 0 12px; padding: 10px 14px; border: 1px solid #90caf9; background: #e3f2fd; border-radius: 4px; }
.vgp-incart-box[hidden] { display: none; }
.vgp-incart-list { list-style: none; margin: 6px 0 0; padding: 0; }
.vgp-incart-list li { padding: 2px 0; }

/* Fiche produit à plan : pas d'images, contenu sur toute la largeur */
body.vgp-has-plan .single-product-main-image,
body.vgp-has-plan .woocommerce-product-gallery,
body.vgp-has-plan div.product div.images {
	display: none !important;
}
body.vgp-has-plan .single-product-summary,
body.vgp-has-plan div.product div.summary,
body.vgp-has-plan div.product .entry-summary {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
}
