/* Cart / promo notices */
.k2i-vc-cart-notice {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	background-color: #f4fff8;
	border: 1px solid #007c30;
	border-radius: 4px;
	padding: 10px 15px;
	margin: 10px 0;
	color: #007c30;
	font-family: "Open Sans", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	text-align: left;
}

.k2i-vc-cart-notice .woocommerce-Price-amount,
.k2i-vc-cart-notice bdi,
.k2i-vc-cart-notice .amount {
	color: inherit;
	font-weight: inherit;
}

.k2i-vc-cart-notice__inner {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	text-align: left;
}

.k2i-vc-cart-notice__media {
	flex-shrink: 0;
	line-height: 0;
}

.k2i-vc-cart-notice__img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid rgba(0, 124, 48, 0.2);
	background: #fff;
}

.k2i-vc-cart-notice__text {
	flex: 1;
	min-width: 0;
}

/* Inside Elementor cart column — no floats or width overrides on .woocommerce */
.k2i-vc-pre-cart-notice {
	display: block;
	width: 100%;
	margin: 0 0 6px;
	padding: 0;
}

.k2i-vc-pre-cart-notice:empty {
	display: none;
	margin: 0;
}

.k2i-vc-mini-cart-notice {
	margin: 0 0 10px;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #007c30;
}

.k2i-vc-pre-cart-notice .k2i-vc-cart-notice {
	margin-top: 0;
	margin-bottom: 0;
}

/* Cart page: center only the banner above the cart table (not the gift line notice) */
.woocommerce-cart .k2i-vc-pre-cart-notice .k2i-vc-cart-notice {
	text-align: center;
}

.woocommerce-cart .k2i-vc-pre-cart-notice .k2i-vc-cart-notice__inner {
	justify-content: center;
}

.woocommerce-cart .k2i-vc-pre-cart-notice .k2i-vc-cart-notice__text {
	flex: 0 1 auto;
}

/* Gift row subtitle — matches product variation lines, not green banner */
.k2i-vc-line-subtitle {
	margin: 4px 0 0;
	padding: 0;
	border: none;
	background: transparent;
}

.k2i-vc-line-subtitle p {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	font-style: italic;
	color: #6b6c6c;
}

.k2i-vc-line-subtitle strong {
	font-weight: 700;
	font-style: italic;
}

.woocommerce-cart-form .product-name .k2i-vc-line-subtitle,
.woocommerce-mini-cart-item .k2i-vc-line-subtitle {
	display: block;
}

/* Opt-in gift offer (below cart table) */
.k2i-vc-gift-offer-host {
	display: block;
	width: 100%;
	margin: 16px 0 0;
	padding: 0;
	clear: both;
}

.k2i-vc-gift-offer-host:empty {
	display: none;
}

.k2i-vc-gift-offer {
	position: relative;
	border: 1px solid #007c30;
	border-radius: 4px;
	background: #fff;
	font-family: "Open Sans", sans-serif;
	overflow: hidden;
}

.k2i-vc-gift-offer--loading {
	min-height: 118px;
}

.k2i-vc-gift-offer--loading .k2i-vc-gift-offer__header--skeleton {
	background: linear-gradient(
		90deg,
		#f4fff8 0%,
		#e8f9ef 45%,
		#f4fff8 90%
	);
	background-size: 200% 100%;
	animation: k2i-vc-gift-offer-shimmer 1.4s ease-in-out infinite;
}

.k2i-vc-gift-offer--loading .k2i-vc-gift-offer__header--skeleton .k2i-vc-gift-offer__header-text {
	visibility: hidden;
}

.k2i-vc-gift-offer__loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 12px 18px;
	color: #007c30;
}

.k2i-vc-gift-offer__spinner {
	display: block;
	width: 28px;
	height: 28px;
	border: 2px solid rgba(0, 124, 48, 0.2);
	border-top-color: #007c30;
	border-radius: 50%;
	animation: k2i-vc-gift-offer-spin 0.75s linear infinite;
}

.k2i-vc-gift-offer__loader-text {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #007c30;
}

.k2i-vc-gift-offer--busy .k2i-vc-gift-offer__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(1px);
}

@keyframes k2i-vc-gift-offer-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes k2i-vc-gift-offer-shimmer {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

.k2i-vc-gift-offer__header {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 15px;
	border: 0;
	background: #f4fff8;
	color: #007c30;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
}

.k2i-vc-gift-offer__header-text strong {
	font-weight: 700;
}

.k2i-vc-gift-offer__panel {
	padding: 10px 12px 10px;
	border-top: 1px solid rgba(0, 124, 48, 0.2);
	background: #fff;
}

.k2i-vc-gift-offer__intro {
	display: flex;
	align-items: center;
	gap: 10px;
}

.k2i-vc-gift-offer__media {
	flex-shrink: 0;
	margin: 0;
}

.k2i-vc-gift-offer__media .k2i-vc-cart-notice__media {
	margin: 0;
	line-height: 0;
}

.k2i-vc-gift-offer__media img,
.k2i-vc-gift-offer__media .k2i-vc-cart-notice__img {
	display: block;
	max-width: 56px;
	max-height: 64px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 3px;
}

.k2i-vc-gift-offer__body {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 13px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	color: #515151;
}

.k2i-vc-gift-offer__body strong {
	font-weight: 700;
	color: #515151;
}

.k2i-vc-gift-offer__actions {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(0, 124, 48, 0.15);
}

.k2i-vc-gift-offer__checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
	color: #007c30;
	cursor: pointer;
}

.k2i-vc-gift-offer__checkbox-label strong {
	font-weight: 700;
}

.k2i-vc-gift-offer__checkbox {
	margin: 0;
	flex-shrink: 0;
}

.k2i-vc-widget > .k2i-vc-cart-notice {
	margin: 10px 0;
	width: 100%;
}
