/* VRU Free Gift section on cart page */
.vru-free-gift-section {
	margin-bottom: 2em;
	padding: 1.5em;
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
}

.vru-free-gift-message {
	margin-bottom: 1.5em;
}

.vru-free-gift-message p:last-child {
	margin-bottom: 0;
}

.vru-free-gift-heading {
	margin: 0 0 0.5em;
	font-size: 1.25em;
}

.vru-free-gift-limit {
	margin: 0 0 1em;
	color: #555;
	font-size: 0.95em;
}

.vru-free-gift-max-amount {
	font-weight: bold;
	color: #c00;
}

.vru-free-gift-eligible-yes {
	font-weight: bold;
	color: #c00;
}

.vru-free-gift-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1.25em;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Force equal-height cells and button at bottom; override theme .product rules */
.vru-free-gift-section .vru-free-gift-list .vru-free-gift-item {
	display: grid !important;
	grid-template-rows: auto 1fr auto !important;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
}

.vru-free-gift-item a img {
	display: block;
	width: 100%;
	height: auto;
}

.vru-free-gift-item-details {
	padding: 0.75em;
}

.vru-free-gift-item-title {
	display: block;
	margin: 0 0 0.5em;
	font-size: 0.8em;
	font-weight: normal;
	line-height: 1.3;
	text-decoration: none;
}

.vru-free-gift-item-price {
	display: block;
	margin-bottom: 0.5em;
	font-size: 0.9em;
}

.vru-free-gift-was-price {
	text-decoration: line-through;
	color: #c00;
}

.vru-free-gift-free-label {
	font-weight: bold;
	color: #c00;
}

.vru-free-gift-section .vru-add-free-gift {
	width: 100%;
	margin: 0;
	padding: 0 0.75em 0.75em;
	box-sizing: border-box;
	align-self: end;
}

.vru-add-free-gift.loading {
	opacity: 0.7;
	pointer-events: none;
}

.vru-free-gift-notice {
	margin-top: 0.5em;
	padding: 0.5em;
	font-size: 0.9em;
	border-radius: 3px;
}

.vru-free-gift-notice.success {
	background: #d4edda;
	color: #155724;
}

.vru-free-gift-notice.error {
	background: #f8d7da;
	color: #721c24;
}

@media (min-width: 768px) {
	.vru-free-gift-list.columns-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}
