/* Hide default WooCommerce variation cart UI — our picker replaces it entirely. */
.waki-bulk-variation-grid .variations,
.waki-bulk-variation-grid .reset_variations_alert,
.waki-bulk-variation-grid .single_variation_wrap,
.waki-bulk-variation-grid .woocommerce-variation-add-to-cart,
.waki-bulk-variation-grid .single_add_to_cart_button:not(.waki-bvg-add) {
	display: none !important;
}

.waki-bvg {
	margin: 18px 0 0;
	padding: 0;
	max-width: 100%;
}

.waki-bvg-field {
	margin-bottom: 10px;
}

.waki-bvg-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #111;
	text-transform: lowercase;
}

.waki-bvg-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.waki-bvg-color {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 32px;
	padding: 6px 10px 5px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: #f3f3f3;
	color: #333;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.waki-bvg-color:hover:not(:disabled),
.waki-bvg-color:focus:not(:disabled),
.waki-bvg-color:active:not(:disabled) {
	background: #e8e8e8 !important;
	border-color: #ccc !important;
	color: #111 !important;
}

.waki-bvg-color.is-selected {
	border: 2px solid #111;
	background: #fff;
	color: #111;
	font-weight: 500;
	padding: 5px 9px 4px;
}

.waki-bvg-swatch {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--swatch, #ddd);
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.waki-bvg-color.is-selected .waki-bvg-swatch {
	box-shadow: 0 0 0 1px #111;
}

.waki-bvg-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.waki-bvg-size {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 32px;
	padding: 6px 12px 5px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: #f3f3f3;
	color: #333;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.waki-bvg-size-text {
	display: block;
}

.waki-bvg-stock-tag {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.waki-bvg-stock-tag.is-low {
	background: #fff6df;
	color: #9a7200;
	border: 1px solid #f3e2b3;
}

.waki-bvg-stock-tag.is-sold-out {
	background: #fce8ee;
	color: #b84d62;
	border: 1px solid #f5d0da;
}

.waki-bvg-stock-tag:not(.is-sold-out):not(.is-low) {
	background: #eef7f0;
	color: #2f6f43;
	border: 1px solid #d5eadb;
}

.waki-bvg-size:hover:not(:disabled),
.waki-bvg-size:focus:not(:disabled),
.waki-bvg-size:active:not(:disabled) {
	background: #e8e8e8 !important;
	border-color: #ccc !important;
	color: #111 !important;
}

.waki-bvg-size.is-selected {
	border: 2px solid #111;
	background: #fff;
	color: #111;
	font-weight: 500;
	padding: 4px 11px;
}

.waki-bvg-size.is-selected:hover:not(:disabled),
.waki-bvg-size.is-selected:focus:not(:disabled),
.waki-bvg-size.is-selected:active:not(:disabled) {
	background: #f5f5f5 !important;
	border-color: #111 !important;
	color: #111 !important;
}

.waki-bvg-size.is-out-of-stock {
	opacity: 0.72;
	cursor: not-allowed;
}

.waki-bvg-size.is-out-of-stock .waki-bvg-size-text {
	color: #999;
	text-decoration: line-through;
}

.waki-bvg-size-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.waki-bvg-price {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: #111;
}

.waki-bvg-price .amount {
	font-weight: inherit;
}

.waki-bvg-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

.waki-bvg-qty {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	height: 44px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.waki-bvg-minus,
.waki-bvg-plus {
	width: 36px;
	height: 44px;
	border: 0;
	background: #fff;
	color: #111;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.waki-bvg-minus:hover,
.waki-bvg-plus:hover,
.waki-bvg-minus:focus,
.waki-bvg-plus:focus,
.waki-bvg-minus:active,
.waki-bvg-plus:active {
	background: #f0f0f0 !important;
	border-color: transparent !important;
	color: #111 !important;
}

.waki-bvg-input {
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 1px solid #eee !important;
	border-right: 1px solid #eee !important;
	border-radius: 0 !important;
	text-align: center;
	font-size: 14px !important;
	font-weight: 500;
	-moz-appearance: textfield;
}

.waki-bvg-input::-webkit-outer-spin-button,
.waki-bvg-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.waki-bvg-add {
	flex: 1 1 140px;
	min-height: 44px !important;
	height: 44px;
	margin: 0 !important;
	padding: 0 16px !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

.waki-bvg-add:not(:disabled):hover,
.waki-bvg-add:not(:disabled):focus,
.waki-bvg-add:not(:disabled):active {
	color: #fff !important;
	background-color: #111 !important;
	border-color: #111 !important;
}

.waki-bvg-add:disabled:hover,
.waki-bvg-add:disabled:focus,
.waki-bvg-add:disabled:active {
	color: #999 !important;
	background-color: #f5f5f5 !important;
	border-color: #ddd !important;
}

.waki-bvg-add:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.waki-bvg-add.loading {
	opacity: 0.7;
	pointer-events: none;
}

.waki-bvg-order {
	margin: 10px 0 0;
	font-size: 12px;
	color: #666;
	line-height: 1.4;
}

.waki-bvg-stock-note {
	margin: 8px 0 0;
	font-size: 11px;
	color: #888;
	line-height: 1.45;
}

@media (max-width: 480px) {
	.waki-bvg-actions {
		flex-direction: column;
	}

	.waki-bvg-qty {
		width: 100%;
		justify-content: center;
	}

	.waki-bvg-add {
		width: 100%;
		flex: none;
	}
}
