/**
 * BOX NOW "free delivery" product-page banner.
 *
 * @package BoxNowDelivery
 */

.bnd-free-delivery {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 14px 0;
	padding: 10px 16px;
	border-radius: 10px;
	background: linear-gradient(90deg, #6fbf3f 0%, #a8d65c 100%);
	box-shadow: 0 2px 6px rgba(31, 138, 59, 0.18);
	max-width: 360px;
	box-sizing: border-box;
}

.bnd-free-delivery__mark {
	flex: 0 0 auto;
	display: inline-flex;
}

.bnd-free-delivery__mark img {
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 8px;
}

.bnd-free-delivery__sep {
	flex: 0 0 auto;
	width: 2px;
	align-self: stretch;
	min-height: 38px;
	background: rgba(20, 20, 60, 0.25);
	border-radius: 2px;
}

.bnd-free-delivery__text {
	flex: 1 1 auto;
	color: #14143c;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0.01em;
}

@media (max-width: 480px) {
	.bnd-free-delivery {
		max-width: 100%;
		gap: 10px;
		padding: 9px 12px;
	}
	.bnd-free-delivery__mark img {
		width: 40px;
		height: 40px;
	}
	.bnd-free-delivery__text {
		font-size: 16px;
	}
}

/* Uploaded official banner image: the image is the full banner, so drop the
   built-in green box and just size the image. */
.bnd-free-delivery--image {
	display: block;
	padding: 0;
	background: none;
	box-shadow: none;
}

.bnd-free-delivery__img {
	display: block;
	width: 100%;
	max-width: 360px;
	height: auto;
	border-radius: 8px;
}

/* Hide the banner inside theme sticky add-to-cart bars: some themes render or
   clone the add-to-cart form into a compact sticky bar where the banner does
   not fit (WoodMart, Flatsome, Astra, generic). */
.wd-sticky-btn .bnd-free-delivery,
.sticky-add-to-cart .bnd-free-delivery,
.ast-sticky-add-to-cart .bnd-free-delivery,
.storefront-sticky-add-to-cart .bnd-free-delivery {
	display: none !important;
}

/* Checkout context. */
.bnd-free-delivery--checkout {
	margin: 14px 0;
}

.bnd-free-delivery--checkout.bnd-free-delivery--image .bnd-free-delivery__img {
	max-width: 100%;
}
