/* Satin Sato bundle swatches.
   Uses Woodmart-compatible markup but includes its own stable rendering,
   because Woodmart may not enqueue variation swatch CSS for custom product types. */


.sat-bundle-form table.sat-bundle-variations,
.sat-bundle-form table.sat-bundle-variations tbody {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

.sat-bundle-form table.sat-bundle-variations tr.sat-bundle-variation-row {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}

.sat-bundle-form table.sat-bundle-variations th.label,
.sat-bundle-form table.sat-bundle-variations td.value {
	display: block;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	vertical-align: middle;
}

.sat-bundle-form table.sat-bundle-variations th.label label {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 38px;
	color: var(--wd-title-color, #242424);
	white-space: nowrap;
}

.sat-bundle-form .sat-bundle-swatches,
.sat-bundle-form .wd-swatches-product.sat-bundle-swatches {
	display: flex !important;
	flex-flow: row wrap !important;
	align-items: center;
	gap: 10px !important;
	width: auto;
	margin: 0 !important;
	padding: 0 !important;
}

.sat-bundle-form .sat-bundle-swatches .wd-swatch,
.sat-bundle-form .wd-swatches-product.sat-bundle-swatches .wd-swatch {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 38px;
	height: 38px;
	margin: 0 !important;
	padding: 0 11px !important;
	border: 1px solid #e1e1e1 !important;
	border-radius: 4px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #242424 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.sat-bundle-form .sat-bundle-swatches .wd-swatch .wd-swatch-text {
	display: block;
	margin: 0;
	padding: 0;
	color: inherit !important;
	font: inherit !important;
	line-height: 1 !important;
	white-space: nowrap;
}

.sat-bundle-form .sat-bundle-swatches .wd-swatch.wd-enabled:hover {
	border-color: #9a9a9a !important;
}

.sat-bundle-form .sat-bundle-swatches .wd-swatch.wd-active {
	border-color: #242424 !important;
	background: #242424 !important;
	color: #fff !important;
}

.sat-bundle-form .sat-bundle-swatches .wd-swatch.wd-disabled,
.sat-bundle-form .sat-bundle-swatches .wd-swatch.is-disabled {
	opacity: .35;
	cursor: not-allowed;
	pointer-events: none;
	text-decoration: line-through;
}

.sat-bundle-form .sat-bundle-native-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.sat-bundle-form .wd-reset-var {
	display: none !important;
}


.sat-bundle-form .woocommerce-variation.single_variation {
	min-height: 0 !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
}

.sat-bundle-form .woocommerce-variation-price {
	margin: 0 !important;
	padding: 0 !important;
}

.sat-bundle-form .sat-bundle-total-value {
	display: inline-block;
	color: var(--wd-primary-color, #242424);
	font-size: 110%;
	font-weight: 600;
	line-height: 1.25;
}

.sat-bundle-form .woocommerce-variation-add-to-cart.variations_button {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: 0;
}

.sat-bundle-form .quantity {
	flex: 0 0 auto;
	margin: 0 !important;
}

.sat-bundle-form .single_add_to_cart_button {
	flex: 1 1 auto;
	margin: 0 !important;
}

.sat-bundle-form .single_add_to_cart_button:disabled {
	opacity: .5;
	cursor: not-allowed;
}

@media (max-width: 767px) {
	.sat-bundle-form table.sat-bundle-variations tr.sat-bundle-variation-row {
		grid-template-columns: 1fr;
		gap: 7px;
		margin-bottom: 16px;
	}

	.sat-bundle-form table.sat-bundle-variations th.label label {
		line-height: 1.4;
	}

	.sat-bundle-form .sat-bundle-swatches,
	.sat-bundle-form .wd-swatches-product.sat-bundle-swatches {
		gap: 8px !important;
	}

	.sat-bundle-form .sat-bundle-swatches .wd-swatch,
	.sat-bundle-form .wd-swatches-product.sat-bundle-swatches .wd-swatch {
		min-width: 38px;
		height: 38px;
		padding: 0 10px !important;
	}
}


.sat-bundle-form .sat-bundle-total-value del {
	opacity: .5;
	font-weight: 400;
	margin-right: 6px;
}

.sat-bundle-form .sat-bundle-total-value ins {
	background: transparent;
	text-decoration: none;
	font-weight: 600;
}
