/**
 * Bundle group styling: blocks cart/checkout rows, the theme cart drawer,
 * and the order-received/admin fallbacks. Dark design system:
 * bg #0a0a0a · cards #141414 · cream #f0ece4 · gold accents · green boost.
 */

/* ---------- shared chips ---------- */
.pf-bb-badge,
.pf-bb-partof {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	border-radius: 999px;
	padding: 0.15em 0.7em;
	margin: 0.25em 0 0;
	white-space: nowrap;
}
.pf-bb-badge {
	background: rgba(192, 132, 252, 0.14);
	color: #c084fc;
	border: 1px solid rgba(192, 132, 252, 0.45);
}
.pf-bb-badge.pf-bb-badge-boost {
	background: rgba(74, 222, 128, 0.12);
	color: #4ade80;
	border-color: rgba(74, 222, 128, 0.45);
}
.pf-bb-partof {
	background: none;
	border: none;
	padding: 0;
	color: rgba(240, 236, 228, 0.55);
	font-weight: 500;
	letter-spacing: 0.02em;
	display: block;
}

/* ---------- blocks cart / checkout rows ---------- */
.wc-block-cart-items__row.pf-bb-component-line,
.wc-block-components-order-summary-item.pf-bb-component-line {
	opacity: 0.78;
}
.wc-block-cart-items__row.pf-bb-component-line .wc-block-cart-item__image,
.wc-block-cart-items__row.pf-bb-component-line .wc-block-cart-item__wrap {
	transform: translateX(14px);
}
/* Component qty is managed on the bundle row (server enforces; this hides). */
.wc-block-cart-items__row.pf-bb-component-line .wc-block-components-quantity-selector,
.wc-block-cart-items__row.pf-bb-component-line .wc-block-cart-item__remove-link {
	display: none;
}
.wc-block-cart-items__row.pf-bb-container-line {
	border-top: 1px solid rgba(192, 132, 252, 0.3);
}
/* The container line is $0 — its "price"/"save" chips are noise (the money
   and the deal live on the component rows + the savings line). */
.pf-bb-container-line .wc-block-components-product-price,
.pf-bb-container-line .wc-block-components-sale-badge,
.pf-bb-container-line .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
.wc-block-components-order-summary-item.pf-bb-container-line .wc-block-components-order-summary-item__total-price {
	display: none;
}

/* Savings line in the totals sidebar */
.pf-bb-savings-line {
	display: flex;
	justify-content: space-between;
	padding: 12px 16px;
}
.pf-bb-savings-amount {
	color: #4ade80;
	font-weight: 700;
}

/* ---------- theme cart drawer ---------- */
.pf-drawer-group {
	border: 1px solid rgba(192, 132, 252, 0.35);
	border-radius: 10px;
	margin: 0 0 10px;
	padding: 8px;
	background: rgba(192, 132, 252, 0.05);
}
.pf-drawer-group .pf-drawer-item {
	border: none;
	margin: 0;
}
.pf-drawer-group-components {
	margin: 2px 0 0 18px;
	padding-left: 8px;
	border-left: 2px solid rgba(240, 236, 228, 0.12);
}
.pf-drawer-group-components .pf-drawer-item {
	opacity: 0.75;
	padding-top: 4px;
	padding-bottom: 4px;
}
.pf-drawer-group-components .pf-drawer-thumb {
	width: 34px;
	height: 34px;
}
.pf-drawer-item .pf-bb-was {
	color: rgba(240, 236, 228, 0.45);
	text-decoration: line-through;
	font-size: 0.8em;
	margin-right: 0.4em;
}
.pf-drawer-savings {
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	color: #4ade80;
	padding: 6px 0 0;
}
.pf-drawer-qty-note {
	font-size: 0.72rem;
	color: rgba(240, 236, 228, 0.5);
}

/* ---------- bundle PDP "what's inside" ---------- */
.pf-bb-pdp-includes {
	border: 1px solid rgba(192, 132, 252, 0.3);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 14px 0;
	background: rgba(192, 132, 252, 0.05);
}
.pf-bb-pdp-includes-head {
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.pf-bb-pdp-components {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.pf-bb-pdp-components li a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.pf-bb-pdp-components li a:hover .pf-bb-pdp-component-name {
	text-decoration: underline;
}
.pf-bb-pdp-components img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 8px;
	background: #141414;
	flex: none;
}
.pf-bb-pdp-note {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: rgba(240, 236, 228, 0.6);
}

/* ---------- bundle cards flagged in every grid ---------- */
/* .pf-card-bundle is added by the theme's content-product.php for any product
   with a bundle definition — archives, homepage sections, and the builder all
   flag bundles the same way. */
.pf-card.pf-card-bundle {
	border: 1px solid rgba(192, 132, 252, 0.45);
	box-shadow: 0 0 22px rgba(192, 132, 252, 0.10);
	border-radius: 12px;
}
.pf-card.pf-card-bundle .pf-card-eyebrow {
	color: #c084fc;
	font-weight: 800;
}

/* ---------- order emails / admin fallback ---------- */
.pf-bb-order-component td:first-child {
	padding-left: 2em;
	opacity: 0.85;
}
