/**
 * Blanco Product Bundles — Frontend Styles
 */

/* ============================================
   Product Page — Bundle Contents
   ============================================ */

.bnb-bundle-contents {
	margin-top: 1rem;
}

.bnb-section-title {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e0e0e0;
}

/* Items list */
.bnb-bundle-items-list {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem 0;
}

.bnb-bundle-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.bnb-bundle-item:last-child {
	border-bottom: none;
}

.bnb-bundle-item__thumb {
	flex-shrink: 0;
}

.bnb-bundle-item__thumb img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #eee;
}

.bnb-bundle-item__details {
	flex: 1;
	min-width: 0;
}

.bnb-bundle-item__name {
	display: block;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	line-height: 1.3;
}

.bnb-bundle-item__name:hover {
	color: #000;
	text-decoration: underline;
}

.bnb-bundle-item__qty {
	font-size: 0.85em;
	color: #888;
	margin-left: 0.25rem;
}

.bnb-bundle-item__stock-status {
	display: inline-block;
	font-size: 0.75em;
	color: #e2401c;
	font-weight: 600;
	margin-top: 2px;
}

.bnb-bundle-item__price {
	flex-shrink: 0;
	font-weight: 500;
	color: #333;
	white-space: nowrap;
}

.bnb-bundle-item.bnb-out-of-stock {
	opacity: 0.6;
}

/* Bundle total row */
.bnb-bundle-total-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 0;
	border-top: 2px solid #333;
	margin-bottom: 1rem;
}

.bnb-original-total {
	color: #999;
}

.bnb-original-total del {
	text-decoration: line-through;
}

.bnb-bundle-price {
	font-size: 1.3em;
	font-weight: 700;
	color: #333;
}

.bnb-savings-badge {
	display: inline-block;
	background: #46b450;
	color: #fff;
	font-size: 0.75em;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 3px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* No items message */
.bnb-no-items {
	color: #999;
	font-style: italic;
}

/* ============================================
   Development Times — Bundle Aggregated
   ============================================ */

.bnb-bundle-dev-times {
	margin-top: 0.5rem;
}

.bnb-dev-times-product-name {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 1rem 0 0.5rem 0;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid #eee;
}

.bnb-dev-times-product-name:first-child {
	margin-top: 0;
}

.bnb-dev-times-product-name a {
	color: #333;
	text-decoration: none;
}

.bnb-dev-times-product-name a:hover {
	text-decoration: underline;
}

/* ============================================
   Cart — Bundle Sub-Items
   ============================================ */

.bnb-cart-subitems {
	margin: 0.5rem 0 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.85em;
}

.bnb-cart-subitem {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 3px 0;
	color: #666;
	border-bottom: 1px solid #f5f5f5;
}

.bnb-cart-subitem:last-child {
	border-bottom: none;
}

.bnb-cart-subitem__thumb {
	flex-shrink: 0;
}

.bnb-cart-subitem__thumb img {
	width: 30px;
	height: 30px;
	object-fit: cover;
	border-radius: 3px;
}

.bnb-cart-subitem__name {
	flex: 1;
	color: #555;
	text-decoration: none;
}

.bnb-cart-subitem__name:hover {
	color: #333;
	text-decoration: underline;
}

.bnb-cart-subitem__qty {
	color: #999;
	font-size: 0.9em;
}

.bnb-cart-subitem__price {
	white-space: nowrap;
	color: #888;
}

/* Sidecart / Mini-cart compact variant */
.sidecart-item .bnb-cart-subitems {
	font-size: 0.8em;
}

.sidecart-item .bnb-cart-subitem__thumb {
	display: none;
}

.sidecart-item .bnb-cart-subitem {
	padding: 2px 0;
}

/* ============================================
   Checkout Review — Bundle Sub-Items
   ============================================ */

.bnb-checkout-subitems {
	margin: 0.25rem 0 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.85em;
}

.bnb-checkout-subitem {
	color: #666;
	padding: 1px 0;
}

/* ============================================
   Order / Email — Bundle Contents
   ============================================ */

.bnb-order-bundle-items {
	margin: 0.5rem 0 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.9em;
}

.bnb-order-bundle-item {
	padding: 2px 0;
	color: #555;
}

.bnb-order-bundle-item__qty {
	color: #999;
}
