
.fg-freebie-box {
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	padding: 1em;
	margin-bottom: 2em;
	border-radius: 5px;
}

.fg-freebie-box h3 {
	font-size: 1.1em;
	margin-bottom: 0.8em;
	text-align: center;
}

.fg-freebie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.fg-freebie-card {
	border: 1px solid #ddd;
	background: #fff;
	padding: 8px;
	text-align: center;
	border-radius: 5px;
	position: relative;
	transition: box-shadow 0.3s;
}

.fg-freebie-card:hover {
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.fg-freebie-card.selected {
	border: 2px solid #46b450;
}

.fg-thumb img {
	width: 100%;
	height: auto;
}

.fg-title {
	font-size: 0.9em;
	margin: 6px 0;
	line-height: 1.2em;
	height: 2.4em;
	overflow: hidden;
}

.fg-select-btn {
	background: #007cba;
	color: #fff;
	padding: 5px 10px;
	font-size: 0.85em;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}

.fg-select-btn:hover {
	background: #005f8d;
}

.fg-badge {
	background: #46b450;
	color: white;
	font-size: 0.75em;
	padding: 4px 6px;
	border-radius: 3px;
	position: absolute;
	top: 6px;
	right: 6px;
	animation: pulse 1.5s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.05); opacity: 0.8; }
	100% { transform: scale(1); opacity: 1; }
}


.fg-freebie-note {
	font-size: 0.85em;
	text-align: center;
	color: #555;
	margin-top: -0.5em;
	margin-bottom: 1em;
}

.animate-in {
	animation: fgFadeInSlide 0.6s ease-out;
}

@keyframes fgFadeInSlide {
	0% {
		opacity: 0;
		transform: translateY(-10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}


/* Small badge next to cart/checkout line item name */
.fg-line-badge {
	display: inline-block;
	background: #46b450;
	color: #fff;
	border-radius: 3px;
	padding: 2px 6px;
	font-size: 0.72em;
	margin-left: 6px;
	animation: pulse 1.5s infinite;
}


/* Inline badge next to product name in cart/checkout */
.fg-inline-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 6px;
	border-radius: 3px;
	background: #46b450;
	color: #fff;
	font-size: 0.75em;
	line-height: 1.2;
	animation: pulse 1.5s infinite;
}


/* Inline cart/checkout badge */
.fg-inline-badge{
	display:inline-block;
	margin-left:6px;
	padding:2px 6px;
	font-size:0.72em;
	background:#46b450;
	color:#fff;
	border-radius:3px;
	vertical-align:middle;
}
