/**
 * Bulk Variation Quantities — Styles
 *
 * Table of contents:
 * 1. Grid layout
 * 2. Cell labels and inputs
 * 3. Disabled / out-of-stock state
 * 4. Add to Cart button
 * 5. MOQ notice
 * 6. Messages
 * 7. Spinner animation
 * 8. Colour swatches — selected state
 * 9. Responsive
 */


/* ============================================================
   1. Grid layout
   ============================================================ */

.launchpad-bulk-grid {
	margin: 0px 0 40px;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.launchpad-bulk-grid__row {
	display: none;
	flex-wrap: wrap;
	gap: 10px;
	min-width: min-content;
}

.launchpad-bulk-grid--active .launchpad-bulk-grid__row {
	display: flex;
}


/* ============================================================
   2. Cell labels and inputs
   ============================================================ */

.launchpad-bulk-grid__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	flex: 0 0 auto;
}

.launchpad-bulk-grid__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #555;
	margin-bottom: 6px;
	text-align: center;
}

.launchpad-bulk-qty-input {
	width: 60px;
	height: 42px;
	padding: 0 6px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #ddd;
	border-radius: 50px;
	background: #fff;
	color: #222;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-moz-appearance: textfield;
	appearance: textfield;
}

.launchpad-bulk-qty-input::-webkit-inner-spin-button,
.launchpad-bulk-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.launchpad-bulk-qty-input:focus {
	outline: none;
	border-color: #222;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.launchpad-bulk-qty-input[value="0"],
.launchpad-bulk-qty-input:placeholder-shown {
	color: #bbb;
}

.launchpad-bulk-qty-input--filled {
	color: #111 !important;
	border-color: #111 !important;
}

button,
.button-outline {border-radius: 50px}
/* ============================================================
   3. Disabled state
   ============================================================ */

.launchpad-bulk-grid--disabled .launchpad-bulk-qty-input,
.launchpad-bulk-qty-input:disabled {
	background: #f5f5f5;
	border-color: #e0e0e0;
	color: #bbb;
	cursor: not-allowed;
}

.launchpad-bulk-qty-input--oos,
.launchpad-bulk-qty-input--oos:disabled {
	background: #fff0f0 !important;
	border-color: #fca5a5 !important;
	color: #f87171 !important;
	cursor: not-allowed !important;
}

/* OOS but stock is on order — amber to distinguish from fully gone */
.launchpad-bulk-qty-input--incoming,
.launchpad-bulk-qty-input--incoming:disabled {
	background: #fffbeb !important;
	border-color: #fbbf24 !important;
	color: #d97706 !important;
	cursor: not-allowed !important;
}


/* ============================================================
   4. Add to Cart button
   ============================================================ */

#launchpad-bulk-add-btn {
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: opacity 0.2s ease, background 0.2s ease;
}

#launchpad-bulk-add-btn.disabled,
#launchpad-bulk-add-btn[aria-disabled="true"] {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

#launchpad-bulk-add-btn.loading {
	pointer-events: none;
}

#launchpad-bulk-add-btn svg {
	display: inline-block;
	vertical-align: middle;
	width: 20px;
	height: 20px;
}


/* ============================================================
   5. MOQ notice
   ============================================================ */

.launchpad-bulk-moq-notice {
	display: inline-block;
	margin: 0 0 14px;
	padding: 7px 12px;
	font-size: 13px;
	background: #f0f7ff;
	border-left: 3px solid #3b82f6;
	border-radius: 2px;
	color: #1e40af;
	line-height: 1.4;
}

.launchpad-bulk-moq-notice strong {
	font-weight: 700;
}


/* ============================================================
   6. Messages
   ============================================================ */

.launchpad-bulk-messages {
	display: none;
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 50px;
	font-size: 14px;
	line-height: 1.45;
}

.launchpad-bulk-messages--success {
	background: #f0fdf4;
 
	color: #15803d;
}

.launchpad-bulk-messages--error {
	background: #fef2f2;
	border-left: 3px solid #ef4444;
	color: #b91c1c;
}

.launchpad-bulk-messages--info {
	background: #eff6ff;
	border-left: 3px solid #3b82f6;
	color: #1d4ed8;
	border-radius: 6px;
	padding: 12px 16px;
}

.launchpad-bulk-messages__progress {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px dashed currentColor;
	font-size: 13px;
	opacity: 0.95;
	font-weight: 500;
}


/* ============================================================
   7. Spinner animation
   ============================================================ */

@keyframes launchpad-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.launchpad-bulk-spinner {
	animation: launchpad-spin 0.6s linear infinite;
	display: inline-block;
	vertical-align: middle;
}


/* ============================================================
   8. Colour swatches — selected state
   ============================================================ */

li.variable-item.selected,
.wcboost-variation-swatches__item.selected,
.wcboost-variation-swatches__item--selected {
	box-shadow:
		0 0 0 2px #fff,
		0 0 0 5px var( --rz-color-primary, #ff6f61 ) !important;
}


/* ============================================================
   9. Stock available tooltip
   ============================================================ */

/* Floating tooltip div — appended to <body> by JS so it is never
   clipped by the grid's overflow-x: auto scroll container.       */
#launchpad-bulk-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
	padding: 5px 9px;
	border-radius: 4px;
	pointer-events: none;
	opacity: 0;
	transform: translateY( 4px );
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 9999;
}

#launchpad-bulk-tooltip.is-visible {
	opacity: 1;
	transform: translateY( 0 );
}


/* ============================================================
   10. Responsive
   ============================================================ */

@media ( max-width: 480px ) {
	.launchpad-bulk-grid__cell {
		min-width: 52px;
	}

	.launchpad-bulk-qty-input {
		width: 50px;
		height: 38px;
		font-size: 13px;
	}

	#launchpad-bulk-add-btn {
		width: 100%;
		justify-content: center;
	}
}

