/* DSS Bundles — Frontend Styles */

.dss-bundle-components {
	margin: 28px 0;
	padding: 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
}

.dss-bundle-components-title {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 14px;
	padding: 0;
}

/* Component list */
.dss-bundle-components-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
}

.dss-bundle-component-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: left;
	gap: 14px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dss-bundle-component-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
	border-color: #c7d7f0;
}

.dss-bundle-component-image {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f1f5f9;
}

.dss-bundle-component-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dss-bundle-component-info {
	flex: 1;
	min-width: 0;
}

.dss-bundle-component-name {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	line-height: 1.35;
	margin-bottom: 5px;
}

.dss-bundle-component-price {
	font-size: 12px;
	color: #64748b;
}

.dss-bundle-component-price .woocommerce-Price-amount {
	color: #64748b;
}

/* Fixed qty badge (admin-defined, not customer-editable) */
.dss-bundle-component-qty {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.dss-bundle-qty-fixed {
	min-width: 34px;
	height: 34px;
	padding: 0 12px;
	border: 1.5px solid #e2e8f0;
	border-radius: 50px;
	background: #f8fafc;
	color: #1e293b;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Summary bar */
.dss-bundle-summary {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dss-bundle-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: #64748b;
}

.dss-bundle-sum-price {
	text-decoration: line-through;
	opacity: 0.65;
}

.dss-bundle-savings-row {
	color: #16a34a;
	font-weight: 700;
	font-size: 14px;
}

.dss-bundle-savings-amount {
	background: #f0fdf4;
	padding: 2px 10px;
	border-radius: 20px;
	color: #16a34a;
	font-size: 13px;
}

/* Cart / mini-cart component list styles live in the inline block printed by
   DSS_Bundles_Frontend::print_cart_styles() so they load site-wide, not only
   on the bundle product page. */

/* Order / email component breakdown */
.dss-bundle-order-components {
	font-size: 12px;
	color: #64748b;
	margin-top: 8px;
}

.dss-bundle-order-components strong {
	display: block;
	margin-bottom: 3px;
	color: #374151;
}

.dss-bundle-order-components ul {
	margin: 0 0 0 14px;
	padding: 0;
	list-style: disc;
}

.dss-bundle-order-components li {
	padding: 1px 0;
}

/* Responsive */
@media (max-width: 640px) {
	.dss-bundle-components {
		padding: 18px 16px;
	}
}

@media (max-width: 420px) {
	/* Let qty drop below the info block when the row gets tight. */
	.dss-bundle-component-card {
		flex-wrap: wrap;
	}
	.dss-bundle-component-info {
		flex: 1 1 auto;
	}
	.dss-bundle-component-qty {
		margin-left: 70px; /* align under info, past the 56px image + gap */
	}
}

@media (prefers-reduced-motion: reduce) {
	.dss-bundle-component-card {
		transition: none;
	}
}

/* Variable component variation selectors */
.dss-bundle-component-variations {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.dss-bundle-variation-select {
	flex: 0 1 auto;
	width: auto;
	max-width: 160px;
	padding: 6px 9px;
	font-size: 13px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
}
.dss-bundle-component-variable.dss-bundle-variation-oos .dss-bundle-variation-select {
	border-color: #dc2626;
}
.dss-bundle-variation-notice {
	width: 100%;
	margin: 4px 0 0;
	font-size: 12px;
	color: #dc2626;
}
.dss-bundle-cart-variation {
	color: #64748b;
	font-size: .9em;
}
