/* Bundle / dispenser-family configurator — normal document flow, no overlaps */

body.jsm-cro-bundle.jsm-cro-active table.variations,
body.jsm-cro-bundle.jsm-cro-active .variations_form table.variations,
body.jsm-cro-bundle.jsm-cro-active .variations_form .variations,
body.jsm-cro-bundle .woocommerce-variation-add-to-cart .quantity,
body.jsm-cro-bundle .single_variation_wrap .woocommerce-variation,
body.jsm-cro-bundle .single_variation_wrap .woocommerce-variation-price,
body.jsm-cro-bundle .single_variation_wrap .woocommerce-variation-availability,
body.jsm-cro-bundle .reset_variations {
	display: none !important;
}

.jsm-cro-configurator--bundle {
	display: flex;
	flex-direction: column;
	gap: 1.75rem; /* ~28px between steps */
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

.jsm-cro-bundle-step {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	position: relative;
	/* Never pull over the gallery */
	transform: none !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
}

.jsm-cro-bundle-step__head {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
}

.jsm-cro-bundle-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: #1a4789;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	flex: 0 0 auto;
}

.jsm-cro-bundle-step__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #002b5c;
	line-height: 1.3;
}

.jsm-cro-bundle-step__note {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #475569;
}

/* Shared selectable cards */
.jsm-cro-bundle-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
	transform: none !important;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.jsm-cro-bundle-card:hover {
	background: #eef5ff;
	border-color: #93c5fd;
	color: #002b5c;
}

.jsm-cro-bundle-card:focus-visible {
	outline: 2px solid #1a4789;
	outline-offset: 2px;
}

.jsm-cro-bundle-card.is-selected {
	background: #f8fbff;
	border-color: #1a4789;
	box-shadow: 0 0 0 1px #1a4789;
	color: #002b5c;
}

.jsm-cro-bundle-card__check {
	flex: 0 0 1.1rem;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	border: 1.5px solid #94a3b8;
	border-radius: 999px;
	background: #fff;
}

.jsm-cro-bundle-card.is-selected .jsm-cro-bundle-card__check {
	border-color: #1a4789;
	background: #1a4789;
	box-shadow: inset 0 0 0 3px #fff;
}

.jsm-cro-bundle-card__selected-label {
	display: none;
	font-size: 0.75rem;
	font-weight: 700;
	color: #1a4789;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.jsm-cro-bundle-card.is-selected .jsm-cro-bundle-card__selected-label {
	display: inline-block;
	margin-top: 0.15rem;
}

.jsm-cro-bundle-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

/* Static single dispenser summary */
.jsm-cro-bundle-static {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
}

.jsm-cro-bundle-static__media {
	flex: 0 0 96px;
	width: 96px;
	height: 96px;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e8f0;
}

.jsm-cro-bundle-static__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jsm-cro-bundle-static__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.jsm-cro-bundle-static__badge {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #1a4789;
}

.jsm-cro-bundle-static__name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #002b5c;
}

.jsm-cro-bundle-static__meta {
	margin: 0;
	font-size: 0.875rem;
	color: #475569;
}

.jsm-cro-bundle-static__price {
	margin: 0.2rem 0 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1a4789;
}

.jsm-cro-bundle-static__price span {
	font-weight: 500;
	color: #64748b;
	margin-left: 0.25rem;
}

/* Dispenser option cards */
.jsm-cro-bundle-dispenser-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem; /* ~14–16px */
}

@media (min-width: 640px) {
	.jsm-cro-bundle-dispenser-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem; /* 16px */
	}
}

.jsm-cro-bundle-dispenser {
	align-items: center;
}

.jsm-cro-bundle-dispenser__img {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
}

.jsm-cro-bundle-dispenser__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jsm-cro-bundle-dispenser__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	flex: 1 1 auto;
}

.jsm-cro-bundle-dispenser__title {
	font-weight: 600;
	color: #002b5c;
	font-size: 0.95rem;
}

.jsm-cro-bundle-dispenser__price {
	font-size: 0.9rem;
	color: #1a4789;
	font-weight: 600;
}

.jsm-cro-bundle-dispenser__price small {
	font-weight: 500;
	color: #64748b;
	margin-left: 0.25rem;
}

/* Water include choice */
.jsm-cro-bundle-choice {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

@media (min-width: 640px) {
	.jsm-cro-bundle-choice {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

.jsm-cro-bundle-choice__opt {
	flex-direction: column;
	align-items: flex-start;
}

.jsm-cro-bundle-choice__title {
	font-weight: 700;
	color: #002b5c;
	font-size: 0.95rem;
}

.jsm-cro-bundle-choice__desc {
	font-size: 0.8rem;
	color: #64748b;
}

.jsm-cro-bundle-water-details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 0.25rem;
}

.jsm-cro-bundle-water-details[hidden],
.jsm-cro-bundle-step--delivery[hidden],
[data-jsm-cro-bundle-delivery-step][hidden] {
	display: none !important;
}

.jsm-cro-bundle-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.jsm-cro-bundle-field__label {
	font-weight: 600;
	font-size: 0.875rem;
	color: #0f172a;
}

.jsm-cro-bundle-size-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.jsm-cro-bundle-size__btn {
	min-width: 4.5rem;
	justify-content: center;
	align-items: center;
	padding: 0.7rem 1rem;
	font-weight: 600;
}

/* Qty — isolated from theme .qty / .quantity rules */
body.jsm-cro-bundle.jsm-cro-active .jsm-cro-bundle-qty__controls {
	display: flex !important;
	align-items: stretch !important;
	width: 100%;
	max-width: 220px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

body.jsm-cro-bundle.jsm-cro-active .jsm-cro-bundle-qty__btn {
	flex: 0 0 48px !important;
	width: 48px !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #1a4789 !important;
	color: #fff !important;
	font-size: 1.25rem !important;
	line-height: 1 !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

body.jsm-cro-bundle.jsm-cro-active .jsm-cro-bundle-water-qty-input,
body.jsm-cro-bundle.jsm-cro-active input[data-jsm-cro-bundle-water-qty] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 3rem !important;
	height: 48px !important;
	min-height: 48px !important;
	max-height: 48px !important;
	margin: 0 !important;
	padding: 0 8px !important;
	border: 0 !important;
	border-left: 1px solid #cbd5e1 !important;
	border-right: 1px solid #cbd5e1 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #002b5c !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 48px !important;
	text-align: center !important;
	text-align-last: center !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
}

body.jsm-cro-bundle.jsm-cro-active .jsm-cro-bundle-water-qty-input::-webkit-outer-spin-button,
body.jsm-cro-bundle.jsm-cro-active .jsm-cro-bundle-water-qty-input::-webkit-inner-spin-button,
body.jsm-cro-bundle.jsm-cro-active input[data-jsm-cro-bundle-water-qty]::-webkit-outer-spin-button,
body.jsm-cro-bundle.jsm-cro-active input[data-jsm-cro-bundle-water-qty]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.jsm-cro-qty-note {
	margin: 0;
	font-size: 0.8rem;
	color: #64748b;
}

/* Auto deposit info (no checkbox) */
.jsm-cro-bundle-deposit-info {
	padding: 0.85rem 1rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
}

.jsm-cro-bundle-deposit-info__line {
	margin: 0;
	font-size: 0.9rem;
	color: #0f172a;
}

.jsm-cro-bundle-deposit-info__line strong {
	color: #1a4789;
	font-weight: 700;
}

.jsm-cro-bundle-deposit-info__note {
	margin: 0.35rem 0 0;
	font-size: 0.8rem;
	color: #64748b;
	line-height: 1.4;
}

/* Delivery — 4 options */
.jsm-cro-bundle-delivery {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.jsm-cro-bundle-delivery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
	}
}

@media (min-width: 1024px) {
	.jsm-cro-bundle-delivery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.jsm-cro-bundle-delivery__opt {
	align-items: center;
}

.jsm-cro-bundle-delivery__label {
	font-weight: 600;
	color: #002b5c;
	font-size: 0.95rem;
}

.jsm-cro-bundle-error {
	margin: 0;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 0.875rem;
}

.jsm-cro-summary-line--deposit.jsm-cro-summary-line--hidden,
.jsm-cro-summary-future.jsm-cro-summary-line--hidden {
	display: none;
}

.jsm-cro-summary-future {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px dashed #cbd5e1;
}

.jsm-cro-summary-future__title {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #64748b;
}

.jsm-cro-summary-future__amount {
	margin: 0.35rem 0 0.25rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.jsm-cro-summary-future__note {
	margin: 0;
	font-size: 0.8rem;
	color: #64748b;
}

@media (max-width: 1023px) {
	.jsm-cro-configurator--bundle {
		gap: 1.5rem; /* 24px */
	}

	.jsm-cro-bundle .jsm-cro-mobile-sticky-bar__qty {
		display: none;
	}
}

@media (max-width: 639px) {
	.jsm-cro-bundle-static {
		flex-direction: column;
		align-items: flex-start;
	}

	.jsm-cro-bundle-static__media {
		width: 80px;
		height: 80px;
		flex-basis: 80px;
	}
}
