/**
 * HS Woo Bundle Offer — line badges + mini-cart bundle notices.
 *
 * @package Hs_Woo_Bundle_Offer
 */

/* Mini-cart bundle messages (before line items). */
.hs-woo-bundle-offer-mini-cart-notice--hidden {
	display: none !important;
}

.widget_shopping_cart_content .hs-woo-bundle-offer-mini-cart-notice:not(.hs-woo-bundle-offer-mini-cart-notice--hidden) {
	display: block;
	margin: 0.65rem 0 0;
	padding: 0.65rem 0.8rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	border-radius: 5px;
	border-width: 1px;
	border-style: solid;
	box-sizing: border-box;
}

.hs-woo-bundle-offer-mini-cart-notice--incomplete {
	color: #5c574f;
	background: #fbf9f4;
	border-color: #ddd8cf;
}

.hs-woo-bundle-offer-mini-cart-notice--discount {
	color: #3d4f63;
	background: #f0f5fa;
	border-color: #c5d4e3;
}

/* Mini-cart fee breakdown — Subtotal/Total neutral; Discount row uses “discount applied” notice colors. */
.widget_shopping_cart_content .woocommerce-mini-cart__total.total .hs-wbp-mini-cart-totals {
	--hs-wbp-mini-cart-totals-fg: #333;
	--hs-wbp-mini-cart-totals-muted: color-mix(in srgb, var(--hs-wbp-mini-cart-totals-fg) 58%, transparent);
	--hs-wbp-mini-cart-totals-divider: color-mix(in srgb, var(--hs-wbp-mini-cart-totals-fg) 14%, transparent);
	--hs-wbp-discount-row-fg: #3d4f63;
	--hs-wbp-discount-row-bg: #f0f5fa;
	--hs-wbp-discount-row-border: #c5d4e3;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	box-sizing: border-box;
	margin-block-start: 0.5rem;
	padding-block-start: 0.5rem;
	border-block-start: 1px solid var(--hs-wbp-mini-cart-totals-divider);
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.8125rem;
	line-height: 1.38;
	color: var(--hs-wbp-mini-cart-totals-fg) !important;
	background: transparent;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total.total .hs-wbp-mini-cart-totals__row--subtotal_before,
.widget_shopping_cart_content .woocommerce-mini-cart__total.total .hs-wbp-mini-cart-totals__row--total {
	color: #333 !important;
}

.widget_shopping_cart_content .woocommerce-mini-cart__total.total .hs-wbp-mini-cart-totals__row--subtotal_before strong,
.widget_shopping_cart_content .woocommerce-mini-cart__total.total .hs-wbp-mini-cart-totals__row--total strong,
.widget_shopping_cart_content .woocommerce-mini-cart__total.total .hs-wbp-mini-cart-totals__row--subtotal_before .woocommerce-Price-amount,
.widget_shopping_cart_content .woocommerce-mini-cart__total.total .hs-wbp-mini-cart-totals__row--total .woocommerce-Price-amount {
	color: inherit !important;
}

.widget_shopping_cart_content .hs-wbp-mini-cart-totals__row.hs-wbp-mini-cart-totals__row--subtotal_before,
.widget_shopping_cart_content .hs-wbp-mini-cart-totals__row.hs-wbp-mini-cart-totals__row--total {
	padding: 0 0.55rem;
}

.widget_shopping_cart_content .hs-wbp-mini-cart-totals__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	column-gap: 0.5rem;
	row-gap: 0.15rem;
	font-weight: 600;
}

.widget_shopping_cart_content .hs-wbp-mini-cart-totals__row--discount {
	margin-block: 0.05rem;
	padding: 0.4rem 0.55rem;
	border: 1px solid var(--hs-wbp-discount-row-border);
	border-radius: 5px;
	background-color: var(--hs-wbp-discount-row-bg);
	color: var(--hs-wbp-discount-row-fg) !important;
	font-size: 0.8125rem;
}

.widget_shopping_cart_content .hs-wbp-mini-cart-totals__row--discount .hs-wbp-mini-cart-totals__label,
.widget_shopping_cart_content .hs-wbp-mini-cart-totals__row--discount .hs-wbp-mini-cart-totals__value,
.widget_shopping_cart_content .hs-wbp-mini-cart-totals__row--discount .woocommerce-Price-amount {
	color: inherit !important;
}

.widget_shopping_cart_content .hs-wbp-mini-cart-totals__row--total {
	margin-block-start: 0.1rem;
	padding-block-start: 0.45rem;
	border-block-start: 1px solid var(--hs-wbp-mini-cart-totals-divider);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.widget_shopping_cart_content .hs-wbp-mini-cart-totals__label {
	flex: 1 1 auto;
	min-width: 0;
	text-align: start;
}

.widget_shopping_cart_content .hs-wbp-mini-cart-totals__value {
	flex: 0 0 auto;
	text-align: end;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.widget_shopping_cart_content .hs-wbp-mini-cart-totals__value .tax_label {
	font-weight: 500;
	font-size: 0.75rem;
	color: var(--hs-wbp-mini-cart-totals-muted) !important;
}

@media (prefers-color-scheme: dark) {
	.widget_shopping_cart_content .woocommerce-mini-cart__total.total .hs-wbp-mini-cart-totals {
		--hs-wbp-mini-cart-totals-fg: #e8e6e3;
		--hs-wbp-mini-cart-totals-muted: color-mix(in srgb, var(--hs-wbp-mini-cart-totals-fg) 62%, transparent);
		--hs-wbp-mini-cart-totals-divider: color-mix(in srgb, #fff 14%, transparent);
		--hs-wbp-discount-row-fg: #c8d6e8;
		--hs-wbp-discount-row-bg: #1f2830;
		--hs-wbp-discount-row-border: #3d4a5a;
	}

	.hs-woo-bundle-offer-mini-cart-notice--incomplete {
		color: #d8d3c9;
		background: #2a2824;
		border-color: #454039;
	}

	.hs-woo-bundle-offer-mini-cart-notice--discount {
		color: #c8d6e8;
		background: #1f2830;
		border-color: #3d4a5a;
	}
}

.hs-woo-bundle-offer-eligible-badge {
	display: inline-block;
	margin-inline-start: 0.3em;
	vertical-align: middle;
	padding: 0.12em 0.4em;
	font-size: 0.72em;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: #5c574f;
	background: #f7f5f1;
	border: 1px solid #e8e4dc;
	border-radius: 3px;
	white-space: nowrap;
}

.hs-woo-bundle-offer-in-bundle-badge {
	display: inline-block;
	margin-inline-start: 0.3em;
	vertical-align: middle;
	padding: 0.12em 0.4em;
	font-size: 0.72em;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: #4f5c4e;
	background: #f1f4ef;
	border: 1px solid #dde3d8;
	border-radius: 3px;
	white-space: nowrap;
}

.hs-woo-bundle-offer-in-bundle-count {
	display: inline-block;
	margin-inline-start: 0.25em;
	font-size: 0.72em;
	font-weight: 400;
	font-style: normal;
	color: #6b7268;
	opacity: 1;
}

@media (prefers-color-scheme: dark) {
	.hs-woo-bundle-offer-eligible-badge {
		color: #c9c4ba;
		background: #2f2d29;
		border-color: #45423b;
	}

	.hs-woo-bundle-offer-in-bundle-badge {
		color: #bcc4b8;
		background: #2a2f28;
		border-color: #3d453c;
	}

	.hs-woo-bundle-offer-in-bundle-count {
		color: #9aa396;
	}
}
