/* DSS Multi-Packs — Frontend Styles */

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

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

/* Component cards grid */
.dss-mp-components-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.dss-mp-component-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.dss-mp-component-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
	border-color: #c7d7f0;
	transform: translateY(-2px);
}

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

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

.dss-mp-component-info {
	flex: 1;
	width: 100%;
}

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

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

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

/* Qty controls */
.dss-mp-component-qty {
	display: flex;
	align-items: center;
	border: 1.5px solid #e2e8f0;
	border-radius: 50px;
	overflow: hidden;
	background: #fff;
	transition: border-color 0.15s;
}

.dss-mp-component-card:hover .dss-mp-component-qty {
	border-color: #c7d7f0;
}

.dss-mp-qty-btn {
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 20px;
	font-weight: 300;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s;
}

.dss-mp-qty-btn:hover:not(:disabled) {
	background: #f1f5f9;
	color: #1e293b;
}

.dss-mp-qty-btn:disabled {
	color: #d1d5db;
	cursor: not-allowed;
}

.dss-mp-qty-input {
	width: 38px;
	height: 34px;
	border: none;
	border-left: 1.5px solid #e2e8f0;
	border-right: 1.5px solid #e2e8f0;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	padding: 0;
	background: #fff;
	-moz-appearance: textfield;
	appearance: textfield;
}

.dss-mp-qty-input::-webkit-inner-spin-button,
.dss-mp-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	appearance: none;
}

/* Fixed qty badge */
.dss-mp-component-qty--fixed {
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
}

.dss-mp-qty-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 34px;
	padding: 0 12px;
	background: #eff6ff;
	color: #2271b1;
	font-size: 15px;
	font-weight: 700;
	border-radius: 50px;
	border: 1.5px solid #bfdbfe;
	letter-spacing: 0.02em;
}

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

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

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

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

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

/* Cart components list */
.dss-mp-cart-components {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	font-size: 12px;
}

.dss-mp-cart-components li {
	padding: 2px 0;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 5px;
}

.dss-mp-cart-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eff6ff;
	color: #2271b1;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

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

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

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

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

/* ==========================================================================
   Style: Cards (default)
   ========================================================================== */

.dss-mp-style-cards .dss-mp-components {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
}

.dss-mp-style-cards .dss-mp-components-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.dss-mp-style-cards .dss-mp-component-card {
	flex-direction: column;
	align-items: center;
	text-align: center;
	border-radius: 12px;
	padding: 16px 12px;
}

/* ==========================================================================
   Style: List
   ========================================================================== */

.dss-mp-style-list .dss-mp-components {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
}

.dss-mp-style-list .dss-mp-components-title {
	padding: 16px 18px 0;
	margin-bottom: 10px;
}

.dss-mp-style-list .dss-mp-components-grid {
	grid-template-columns: 1fr;
	gap: 0;
	margin-bottom: 0;
}

.dss-mp-style-list .dss-mp-component-card {
	flex-direction: row;
	align-items: center;
	text-align: left;
	border: none;
	border-bottom: 1px solid #f1f5f9;
	border-radius: 0;
	padding: 14px 18px;
	gap: 14px;
}

.dss-mp-style-list .dss-mp-component-card:last-child {
	border-bottom: none;
}

.dss-mp-style-list .dss-mp-component-card:hover {
	box-shadow: none;
	background: #f8fafc;
	transform: none;
}

.dss-mp-style-list .dss-mp-component-image {
	width: 52px;
	height: 52px;
	border-radius: 8px;
}

.dss-mp-style-list .dss-mp-component-info {
	flex: 1;
	width: auto;
}

.dss-mp-style-list .dss-mp-component-qty {
	flex-shrink: 0;
}

.dss-mp-style-list .dss-mp-summary {
	border: none;
	border-top: 1px solid #e2e8f0;
	border-radius: 0;
	padding: 14px 18px;
	background: #f8fafc;
}

/* ==========================================================================
   Style: Minimal
   ========================================================================== */

.dss-mp-style-minimal .dss-mp-components {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
}

.dss-mp-style-minimal .dss-mp-components-title {
	font-size: 11px;
	color: #94a3b8;
	margin-bottom: 10px;
}

.dss-mp-style-minimal .dss-mp-components-grid {
	grid-template-columns: 1fr;
	gap: 6px;
}

.dss-mp-style-minimal .dss-mp-component-card {
	flex-direction: row;
	align-items: center;
	text-align: left;
	border: none;
	border-radius: 0;
	padding: 8px 0;
	gap: 12px;
	background: transparent;
	border-bottom: 1px solid #f1f5f9;
}

.dss-mp-style-minimal .dss-mp-component-card:last-child {
	border-bottom: none;
}

.dss-mp-style-minimal .dss-mp-component-card:hover {
	box-shadow: none;
	transform: none;
	background: transparent;
}

.dss-mp-style-minimal .dss-mp-component-image {
	width: 40px;
	height: 40px;
	border-radius: 6px;
}

.dss-mp-style-minimal .dss-mp-component-info {
	flex: 1;
	width: auto;
}

.dss-mp-style-minimal .dss-mp-component-name {
	font-size: 13px;
	font-weight: 500;
}

.dss-mp-style-minimal .dss-mp-component-qty {
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	flex-shrink: 0;
}

.dss-mp-style-minimal .dss-mp-qty-btn {
	width: 28px;
	height: 28px;
	font-size: 16px;
}

.dss-mp-style-minimal .dss-mp-qty-input {
	width: 30px;
	height: 28px;
	font-size: 13px;
}

.dss-mp-style-minimal .dss-mp-summary {
	border: none;
	border-radius: 0;
	padding: 12px 0 0;
	background: transparent;
	border-top: 1px solid #e2e8f0;
	margin-top: 4px;
}

/* ==========================================================================
   Style: Elegant
   ========================================================================== */

.dss-mp-style-elegant .dss-mp-components {
	background: linear-gradient(135deg, #fafbff 0%, #f0f4ff 100%);
	border: 1px solid #c7d7f0;
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 4px 16px rgba(34, 113, 177, 0.06);
}

.dss-mp-style-elegant .dss-mp-components-title {
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	text-transform: none;
	letter-spacing: 0;
	margin-bottom: 18px;
}

.dss-mp-style-elegant .dss-mp-components-grid {
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.dss-mp-style-elegant .dss-mp-component-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.dss-mp-style-elegant .dss-mp-component-card:hover {
	box-shadow: 0 8px 28px rgba(34, 113, 177, 0.12);
	border-color: #93c5fd;
	transform: translateY(-3px);
}

.dss-mp-style-elegant .dss-mp-component-image {
	width: 90px;
	height: 90px;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dss-mp-style-elegant .dss-mp-component-name {
	font-size: 14px;
	font-weight: 700;
}

.dss-mp-style-elegant .dss-mp-component-price {
	font-size: 13px;
}

.dss-mp-style-elegant .dss-mp-component-qty {
	border: 2px solid #c7d7f0;
	border-radius: 50px;
}

.dss-mp-style-elegant .dss-mp-component-card:hover .dss-mp-component-qty {
	border-color: #93c5fd;
}

.dss-mp-style-elegant .dss-mp-summary {
	background: #fff;
	border: 1px solid #c7d7f0;
	border-radius: 16px;
	padding: 18px 22px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dss-mp-style-elegant .dss-mp-savings-amount {
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
	padding: 4px 14px;
	border-radius: 20px;
	font-weight: 700;
}

/* Responsive */
@media (max-width: 640px) {
	.dss-mp-components-grid {
		grid-template-columns: 1fr;
	}

	.dss-mp-components {
		padding: 18px 16px;
	}

	.dss-mp-style-elegant .dss-mp-components {
		padding: 20px 16px;
	}

	.dss-mp-style-elegant .dss-mp-components-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 380px) {
	.dss-mp-components-grid {
		grid-template-columns: 1fr;
	}
}

/* ── Entrance animation (variable product variation reveal) ─────────────── */

@keyframes dss-mp-container-in {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes dss-mp-card-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.dss-mp-var-built {
	animation: dss-mp-container-in 0.28s ease both;
}

.dss-mp-var-built .dss-mp-component-card {
	opacity: 0;
	animation: dss-mp-card-in 0.3s ease both;
}

.dss-mp-var-built .dss-mp-component-card:nth-child(1)  { animation-delay: 0.08s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(2)  { animation-delay: 0.14s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(3)  { animation-delay: 0.20s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(4)  { animation-delay: 0.26s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(5)  { animation-delay: 0.32s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(6)  { animation-delay: 0.38s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(7)  { animation-delay: 0.44s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(8)  { animation-delay: 0.50s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(9)  { animation-delay: 0.56s; }
.dss-mp-var-built .dss-mp-component-card:nth-child(10) { animation-delay: 0.62s; }

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

	.dss-mp-style-elegant .dss-mp-component-card {
		transition: none;
	}

	.dss-mp-var-built,
	.dss-mp-var-built .dss-mp-component-card {
		animation: none;
		opacity: 1;
	}
}
