/* ================================================================
   WooCommerce Bundle Plugin – Frontend CSS v3.4
   Fully scoped. Responsive: mobile / tablet / desktop.
   Elementor overrides included for cart page.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Poppins:wght@400;600;700&display=swap');

/* ══════════════════════════════════════════════════════════════════
   CSS VARIABLES
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section {
	--sbp-text:       #121212;
	--sbp-accent:     #F5A623;
	--sbp-border:     #E8EAED;
	--sbp-item-bg:    #F3F5F7;
	--sbp-select-bg:  #1D1D1D;
	--sbp-img-size:   90px;
	font-family: 'Manrope', sans-serif;
	color: var(--sbp-text);
	margin: 32px 0;
	width: 100%;
	box-sizing: border-box;
}
.sbp-bundle-section *,
.sbp-bundle-section *::before,
.sbp-bundle-section *::after { box-sizing: border-box; }

/* ══════════════════════════════════════════════════════════════════
   OUTER BOX
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-box {
	background: #fff;
	border: 1px solid var(--sbp-border);
	border-top: 3px solid var(--sbp-accent);
	padding: 24px;
}

/* ══════════════════════════════════════════════════════════════════
   HEADER — "WHAT'S IN THIS BUNDLE"
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-header { margin-bottom: 16px; }
.sbp-bundle-section .sbp-bundle-title {
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.1em;
	color: var(--sbp-text);
	text-transform: uppercase;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	display: block;
}

/* ══════════════════════════════════════════════════════════════════
   ITEM LIST
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ══════════════════════════════════════════════════════════════════
   SINGLE ITEM CARD — identical on every item
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-item {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 14px;
	padding: 14px;
	background: var(--sbp-item-bg);
	border: 1px solid var(--sbp-border);
}

/* ══════════════════════════════════════════════════════════════════
   IMAGE — same size every item
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-img {
	width: var(--sbp-img-size);
	min-width: var(--sbp-img-size);
	height: var(--sbp-img-size);
	flex-shrink: 0;
	align-self: flex-start;
	background: #fff;
	border: 1px solid var(--sbp-border);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sbp-bundle-section .sbp-bundle-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sbp-bundle-section .sbp-no-img { font-size: 22px; opacity: 0.3; }

/* ══════════════════════════════════════════════════════════════════
   INFO COLUMN
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-info {
	flex: 1;
	min-width: 0;
	width: 0;            /* forces correct text wrapping in flex */
	display: flex;
	flex-direction: column;
}

/* ══════════════════════════════════════════════════════════════════
   ITEM TITLE — forced identical, kills h3/h4/p theme overrides
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-title,
.sbp-bundle-section .sbp-bundle-item h4.sbp-bundle-item-title,
.sbp-bundle-section .sbp-bundle-item h3.sbp-bundle-item-title {
	font-family: 'Manrope', sans-serif !important;
	font-weight: 700 !important;
	font-size: 17px !important;
	line-height: 1.35 !important;
	color: var(--sbp-text) !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	border: none !important;
	background: none !important;
	word-break: break-word;
	overflow-wrap: break-word;
	white-space: normal !important;
}

/* ══════════════════════════════════════════════════════════════════
   DESCRIPTION — clamped 2 lines
   Typography: Manrope 400, 14px, line-height 26px, #121212
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc {
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 26px;
	color: #121212;
	margin: 0 !important;
	padding: 0 !important;
	word-break: break-word;
	overflow-wrap: break-word;
	white-space: normal;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
/* Expanded state — JS adds .sbp-desc-open */
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc.sbp-desc-open {
	display: block !important;
	-webkit-line-clamp: unset !important;
	overflow: visible !important;
	max-height: none !important;
}

/* Rich text from admin editor — bold, italic, combined */
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc strong,
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc b {
	font-weight: 600 !important;
	font-style: normal;
}
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc em,
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc i {
	font-style: italic !important;
	font-weight: inherit;
}
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc strong em,
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc em strong,
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc b i,
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc i b {
	font-weight: 600 !important;
	font-style: italic !important;
}
/* All inline children inherit font-family + size — never override */
.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc * {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

/* ══════════════════════════════════════════════════════════════════
   READ MORE / READ LESS
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-item .sbp-read-more {
	display: none;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	color: var(--sbp-text);
	text-decoration: underline;
	background: none;
	border: none;
	padding: 0;
	margin-top: 6px;
	cursor: pointer;
	text-align: left;
	transition: color 0.15s;
}
.sbp-bundle-section .sbp-bundle-item .sbp-read-more.sbp-rm-visible {
	display: inline-block !important;
}
.sbp-bundle-section .sbp-bundle-item .sbp-read-more:hover { color: var(--sbp-accent); }

/* ══════════════════════════════════════════════════════════════════
   SPACER — pushes selects to bottom
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-info-spacer { flex: 1; min-height: 8px; }

/* ══════════════════════════════════════════════════════════════════
   SELECT DROPDOWNS — side by side, SVG arrow, exact spec
   Width: 174px | Height: 45px | Poppins Regular 14px | #fff
   Shadow: X0 Y2 Blur4 Spread0 rgba(0,0,0,0.06)
   Focus: no stroke, no box-shadow
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-bundle-selects {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}
.sbp-bundle-section .sbp-select-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	/* Drop shadow: X0 Y2 Blur4 Spread0 #000 6% */
	filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.06));
}
.sbp-bundle-section .sbp-select {
	/* Typography: Poppins Regular 14px #fff */
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #ffffff;
	/* Dimensions */
	width: 174px;
	height: 45px;
	/* Background */
	background-color: var(--sbp-select-bg);
	/* No border */
	border: none;
	outline: none;
	/* Padding: leave room for SVG arrow on right */
	padding: 0 44px 0 16px;
	/* Remove native arrow */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	line-height: 45px;
	/* SVG arrow via background-image */
	background-image: url("data:image/svg+xml,%3Csvg width='22' height='11' viewBox='0 0 22 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.165 9.14573L5.07124 4.05196L6.34445 2.77875L10.8016 7.23591L15.2588 2.77875L16.532 4.05196L11.4382 9.14573C11.2694 9.31453 11.0404 9.40936 10.8016 9.40936C10.5628 9.40936 10.3339 9.31453 10.165 9.14573Z' fill='%23ffffff'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px 7px;
	transition: background-color 0.15s;
}
/* Focus: no yellow stroke, no box-shadow */
.sbp-bundle-section .sbp-select:focus {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
	background-color: #2a2a2a;
	background-image: url("data:image/svg+xml,%3Csvg width='22' height='11' viewBox='0 0 22 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.165 9.14573L5.07124 4.05196L6.34445 2.77875L10.8016 7.23591L15.2588 2.77875L16.532 4.05196L11.4382 9.14573C11.2694 9.31453 11.0404 9.40936 10.8016 9.40936C10.5628 9.40936 10.3339 9.31453 10.165 9.14573Z' fill='%23ffffff'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px 7px;
}
/* Override any theme/Elementor focus ring */
.sbp-bundle-section .sbp-select:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
.sbp-bundle-section .sbp-select option {
	background: var(--sbp-select-bg);
	color: #ffffff;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
}
/* Hide the old text-based arrow span — SVG now in background-image */
.sbp-bundle-section .sbp-select-arrow { display: none !important; }

/* ══════════════════════════════════════════════════════════════════
   PRICE LINE — below all items
   ══════════════════════════════════════════════════════════════════ */
.sbp-bundle-section .sbp-price-line {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--sbp-border);
}
.sbp-bundle-section .sbp-price-text {
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 26px;
	color: #121212;
	margin: 0 !important;
	padding: 0 !important;
}
/* Regular price — plain inline */
.sbp-bundle-section .sbp-price-regular { font-weight: 600; color: #121212; }
.sbp-bundle-section .sbp-price-regular .woocommerce-Price-amount,
.sbp-bundle-section .sbp-price-regular bdi,
.sbp-bundle-section .sbp-price-regular *,
.sbp-bundle-section .sbp-price-regular .woocommerce-Price-currencySymbol {
	font-weight: 600 !important;
	font-size: 14px !important;
	font-family: 'Manrope', sans-serif !important;
	color: #121212 !important;
}
/* Sale price — Bold 700 */
.sbp-bundle-section .sbp-price-sale { font-weight: 700; color: #121212; }
.sbp-bundle-section .sbp-price-sale .woocommerce-Price-amount,
.sbp-bundle-section .sbp-price-sale bdi,
.sbp-bundle-section .sbp-price-sale *,
.sbp-bundle-section .sbp-price-sale .woocommerce-Price-currencySymbol {
	font-weight: 700 !important;
	font-size: 14px !important;
	font-family: 'Manrope', sans-serif !important;
	color: #121212 !important;
}

/* ══════════════════════════════════════════════════════════════════
   CART PAGE — Bundle Contents meta display
   Elementor override: kills .elementor .cart td span font rules
   ══════════════════════════════════════════════════════════════════ */
.sbp-cart-bundle-info {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #ddd;
}
.sbp-cart-bundle-title {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 13px;
	color: #121212;
	margin-bottom: 6px;
	display: block;
	letter-spacing: 0.02em;
}
.sbp-cart-bundle-info ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.sbp-cart-bundle-info li {
	padding: 1px 0 1px 16px;
	position: relative;
	margin-bottom: 4px;
	list-style: none !important;
}
.sbp-cart-bundle-info li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0;
	color: #F5A623;
	font-size: 14px;
	line-height: 1.6;
}
/* Item name — scoped to .sbp-cart-item-name span only */
.sbp-cart-bundle-info li {
	font-family: 'Manrope', sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #333 !important;
	line-height: 1.5 !important;
}
.sbp-cart-bundle-info .sbp-cart-item-name {
	display: block;
	font-family: 'Manrope', sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #333 !important;
	line-height: 1.5 !important;
}

/* ── Size / Color — same line style as item name, value bold ── */
/* ── Variants: nuclear specificity — beats ALL Elementor/theme rules ── */
[data-sbp-variant],
span.sbp-cart-item-variants,
.sbp-cart-bundle-info span.sbp-cart-item-variants,
.sbp-cart-bundle-info li span.sbp-cart-item-variants,
.woocommerce-cart span.sbp-cart-item-variants,
.woocommerce-checkout span.sbp-cart-item-variants,
td.product-name span.sbp-cart-item-variants,
.cart_item span.sbp-cart-item-variants,
table.cart span.sbp-cart-item-variants,
.elementor span.sbp-cart-item-variants,
.e-con span.sbp-cart-item-variants {
	display: block !important;
	font-family: 'Manrope', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #333 !important;
	line-height: 1.5 !important;
	margin-top: 1px !important;
	margin-bottom: 0 !important;
}

span.sbp-variant-val {
    font-size: 13px !important;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (max 768px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
	.sbp-bundle-section {
		--sbp-img-size: 72px;
		margin: 24px 0;
	}
	.sbp-bundle-section .sbp-bundle-box  { padding: 18px; }
	.sbp-bundle-section .sbp-bundle-item { gap: 12px; padding: 12px; }
	.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-title {
		font-size: 15px !important;
		line-height: 1.3 !important;
	}
	.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc {
		font-size: 13px;
		line-height: 22px;
	}
	.sbp-bundle-section .sbp-bundle-selects { gap: 8px; margin-top: 10px; flex-wrap: wrap; }
	.sbp-bundle-section .sbp-select {
		width: 160px;
		height: 42px;
		font-size: 13px;
		padding: 0 40px 0 14px;
		line-height: 42px;
		background-size: 13px 6px;
		background-position: right 12px center;
	}
	.sbp-bundle-section .sbp-price-text { font-size: 13px; line-height: 22px; }
	.sbp-bundle-section .sbp-price-regular .woocommerce-Price-amount,
	.sbp-bundle-section .sbp-price-regular bdi,
	.sbp-bundle-section .sbp-price-sale .woocommerce-Price-amount,
	.sbp-bundle-section .sbp-price-sale bdi { font-size: 13px !important; }
	.sbp-cart-item-variants { font-size: 12px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (max 480px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
	.sbp-bundle-section {
		--sbp-img-size: 60px;
		margin: 18px 0;
	}
	.sbp-bundle-section .sbp-bundle-box  { padding: 14px; }
	.sbp-bundle-section .sbp-bundle-item { gap: 10px; padding: 10px; }
	.sbp-bundle-section .sbp-bundle-title { font-size: 12px; letter-spacing: 0.08em; }
	.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-title {
		font-size: 14px !important;
		line-height: 1.3 !important;
		margin-bottom: 4px !important;
	}
	.sbp-bundle-section .sbp-bundle-item .sbp-bundle-item-desc {
		font-size: 12.5px;
		line-height: 20px;
	}
	.sbp-bundle-section .sbp-bundle-selects { gap: 8px; margin-top: 10px; flex-wrap: wrap; }
	.sbp-bundle-section .sbp-select {
		width: calc(50% - 4px);
		min-width: 140px;
		height: 42px;
		font-size: 13px;
		padding: 0 38px 0 13px;
		line-height: 42px;
		background-size: 12px 6px;
		background-position: right 11px center;
	}
	.sbp-bundle-section .sbp-price-line { margin-top: 14px; padding-top: 12px; }
	.sbp-bundle-section .sbp-price-text { font-size: 12.5px; line-height: 20px; }
	.sbp-bundle-section .sbp-price-regular .woocommerce-Price-amount,
	.sbp-bundle-section .sbp-price-regular bdi,
	.sbp-bundle-section .sbp-price-sale .woocommerce-Price-amount,
	.sbp-bundle-section .sbp-price-sale bdi { font-size: 12.5px !important; }
	.sbp-cart-item-variants { font-size: 13px !important; }
}
