.pbb-bundle {
	--pbb-ink: #16213e;
	--pbb-ink-soft: #545b70;
	--pbb-border: #e6e7ec;
	--pbb-bg-soft: #f7f7f9;
	--pbb-green: #1e7e42;
	--pbb-red: #c62828;
	/* Primary CTA palette — matches the site's navy / white / neutral-gray identity */
	--pbb-cta-navy: #172747;
	--pbb-cta-navy-light: #22345c;
	--pbb-cta-navy-hover: #243a63;
	--pbb-cta-disabled-bg: #e5e7eb;
	--pbb-cta-disabled-border: #d5d9e0;
	--pbb-cta-disabled-text: #8a93a3;
	--pbb-radius: 12px;
	--pbb-shadow: 0 2px 10px rgba(22, 33, 62, .05);
	--pbb-shadow-hover: 0 6px 20px rgba(22, 33, 62, .10);

	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: 620px;
	font-size: 15px;
	color: var(--pbb-ink);
	box-sizing: border-box;
}

.pbb-bundle *,
.pbb-bundle *::before,
.pbb-bundle *::after {
	box-sizing: border-box;
}

.pbb-bundle__intro {
	margin: -6px 0 0;
	color: var(--pbb-ink-soft);
	font-size: 14px;
}

.pbb-bundle__savings-teaser {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 16px;
	background: rgba(23, 39, 71, .06);
	border: 1px solid rgba(23, 39, 71, .18);
	border-radius: 10px;
	color: var(--pbb-cta-navy);
	font-size: 14px;
	font-weight: 600;
}

.pbb-bundle__savings-teaser-icon {
	font-size: 18px;
	line-height: 1;
	flex: 0 0 auto;
}

.pbb-bundle__savings-teaser strong {
	font-weight: 700;
	color: var(--pbb-cta-navy);
}

/* ---------- Step cards ---------- */

.pbb-step-card {
	position: relative;
	border: 1px solid var(--pbb-border);
	border-radius: var(--pbb-radius);
	background: #fff;
	box-shadow: var(--pbb-shadow);
	transition: box-shadow .2s ease, border-color .2s ease;
}

.pbb-step-card.is-complete {
	border-color: rgba(30, 126, 66, .35);
}

.pbb-step-card__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 20px;
}

.pbb-step-card__num {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--pbb-ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
	transition: background-color .2s ease, transform .2s ease;
}

.pbb-step-card.is-complete .pbb-step-card__num {
	background: var(--pbb-green);
}

.pbb-step-card.is-complete .pbb-step-card__num {
	font-size: 0;
}

.pbb-step-card.is-complete .pbb-step-card__num::after {
	content: "\2713";
	font-size: 14px;
}

.pbb-step-card__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.pbb-step-card__title a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

.pbb-step-card__hint {
	margin: 3px 0 0;
	font-size: 12.5px;
	color: var(--pbb-ink-soft);
}

.pbb-step-card__badge {
	flex: 0 0 auto;
	align-self: flex-start;
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--pbb-ink-soft);
	background: var(--pbb-bg-soft);
	border-radius: 20px;
	padding: 4px 10px;
	white-space: nowrap;
}

.pbb-step-card__body {
	padding: 0 20px 20px;
	display: flex;
	flex-direction: column;
}

/* ---------- Option groups ---------- */

.pbb-group-field + .pbb-group-field {
	margin-top: 2px;
	padding-top: 16px;
	border-top: 1px solid var(--pbb-border);
}

.pbb-group-field__label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.pbb-group-field__label-text {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--pbb-ink-soft);
}

.pbb-group-field__selected {
	font-weight: 600;
	color: var(--pbb-ink);
	font-size: 12.5px;
	background: var(--pbb-bg-soft);
	padding: 3px 10px;
	border-radius: 20px;
	min-height: 1em;
}

.pbb-group-field__selected:empty { display: none; }

.pbb-group-options {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Color / image swatches */

.pbb-swatch {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid #c9cbd3;
	/* inset ring keeps the edge visible even when the swatch itself is white/near-white */
	box-shadow: 0 1px 2px rgba(22, 33, 62, .08), inset 0 0 0 1px rgba(22, 33, 62, .12);
	cursor: pointer;
	padding: 0;
	background-size: cover;
	background-position: center;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.pbb-swatch:hover {
	border-color: #9199a6;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(22, 33, 62, .16), inset 0 0 0 1px rgba(22, 33, 62, .12);
}

.pbb-swatch--color.is-selected,
.pbb-swatch--image.is-selected {
	border-color: var(--pbb-ink);
	box-shadow: 0 0 0 3px rgba(22, 33, 62, .16), inset 0 0 0 1px rgba(22, 33, 62, .12);
	transform: none;
}

.pbb-swatch.is-selected::after {
	content: "\2713";
	position: absolute;
	inset: -2px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	background: rgba(22, 33, 62, .28);
	border-radius: 50%;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.pbb-swatch--image {
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pbb-bg-soft);
}

.pbb-swatch--image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Size / plain buttons */

.pbb-btn-option {
	min-width: 52px;
	height: 44px;
	padding: 0 16px;
	border: 2px solid #e2e3e8;
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pbb-ink);
	box-shadow: 0 1px 2px rgba(22, 33, 62, .04);
	transition: border-color .15s ease, background-color .15s ease, transform .1s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.pbb-btn-option:hover {
	border-color: #aeb1bc;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(22, 33, 62, .10);
}

.pbb-btn-option.is-selected {
	border-color: var(--pbb-ink);
	background: var(--pbb-ink);
	color: #fff;
	box-shadow: 0 3px 10px rgba(22, 33, 62, .25);
}

.pbb-btn-option:active {
	transform: scale(.97);
}

/* ---------- Summary panel ---------- */

.pbb-summary {
	border: 1px solid var(--pbb-border);
	border-radius: 10px;
	background: #fff;
	padding: 22px;
	position: sticky;
	top: 90px;
}

.pbb-summary__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
}

.pbb-summary__lines {
	display: flex;
	flex-direction: column;
}

.pbb-summary__line {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 13.5px;
	padding: 8px 0;
	border-bottom: 1px solid var(--pbb-border);
	animation: pbb-fade-in .2s ease;
}

.pbb-summary__lines .pbb-summary__line:first-child { padding-top: 0; }

.pbb-summary__line-label { color: var(--pbb-ink-soft); }
.pbb-summary__line-price { white-space: nowrap; font-weight: 600; }

.pbb-summary__total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 14px;
	font-weight: 700;
}

.pbb-summary__compare {
	color: #9a9ea8;
	margin-right: 8px;
	font-weight: 400;
	font-size: 13px;
}

.pbb-summary__total { font-size: 20px; }

.pbb-summary__save {
	display: none;
	color: var(--pbb-green);
	font-size: 13px;
	font-weight: 600;
	margin-top: 4px;
}

.pbb-summary__errors {
	display: none;
	color: var(--pbb-red);
	font-size: 13px;
	margin-top: 10px;
	padding: 10px 12px;
	background: rgba(198, 40, 40, .06);
	border-radius: 8px;
}

.pbb-summary__errors.is-visible { display: block; }

/* ---------- Bundle action buttons ----------
   The Woodmart theme ships a global `button[disabled], input[disabled] {
   opacity:.6 !important; cursor:default !important }` rule (style.min.css)
   that overrides ANY disabled button on the site regardless of class. That
   is why earlier styling passes still looked faded — opacity was never
   being addressed. Every state below re-asserts opacity/cursor with
   !important so this component renders exactly as designed. */

.pbb-summary .pbb-add-to-cart,
.pbb-summary .pbb-buy-now {
	position: relative;
	width: 100%;
	min-height: 54px;
	padding: 0 20px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	border-radius: 8px;
	cursor: pointer !important;
	opacity: 1 !important;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.pbb-summary .pbb-add-to-cart {
	margin-top: 22px;
	border: none;
}

.pbb-summary .pbb-buy-now {
	margin-top: 12px;
	border: none;
}

/* Enabled state — both buttons dark navy background / white text, high
   specificity + !important so no theme or WooCommerce default button style
   can dilute it. Add to Cart is the darkest (gradient) as the primary
   action; Buy Now is a solid, slightly lighter navy so the two are still
   distinguishable while both reading as dark, premium, clickable buttons. */
.pbb-summary .pbb-add-to-cart:not(:disabled) {
	background: linear-gradient(135deg, var(--pbb-cta-navy-light), var(--pbb-cta-navy)) !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(23, 39, 71, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.pbb-summary .pbb-buy-now:not(:disabled) {
	background: var(--pbb-cta-navy-light) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(23, 39, 71, .22);
}

.pbb-summary .pbb-add-to-cart:not(:disabled):hover {
	background: linear-gradient(135deg, var(--pbb-cta-navy-hover), var(--pbb-cta-navy-light)) !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(23, 39, 71, .36), inset 0 1px 0 rgba(255, 255, 255, .1);
}

.pbb-summary .pbb-buy-now:not(:disabled):hover {
	background: var(--pbb-cta-navy) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(23, 39, 71, .28);
}

.pbb-summary .pbb-add-to-cart:not(:disabled):focus-visible,
.pbb-summary .pbb-buy-now:not(:disabled):focus-visible {
	outline: 2px solid var(--pbb-cta-navy-hover);
	outline-offset: 2px;
}

.pbb-summary .pbb-add-to-cart:not(:disabled):active,
.pbb-summary .pbb-buy-now:not(:disabled):active {
	transform: scale(.99);
}

/* Disabled — required options not yet chosen. Fully opaque, readable text,
   never the theme's washed-out 60% opacity. */
.pbb-summary .pbb-add-to-cart:disabled,
.pbb-summary .pbb-buy-now:disabled {
	cursor: not-allowed !important;
}

.pbb-summary .pbb-add-to-cart:disabled:not(.is-loading),
.pbb-summary .pbb-buy-now:disabled:not(.is-loading) {
	background: var(--pbb-cta-disabled-bg) !important;
	border-color: var(--pbb-cta-disabled-border) !important;
	color: var(--pbb-cta-disabled-text) !important;
	box-shadow: none !important;
}

/* Loading — request in flight. `disabled` is set to block repeated clicks,
   but .is-loading keeps the button fully colored with its spinner visible
   instead of falling back to the muted disabled look. */
.pbb-summary .pbb-add-to-cart.is-loading,
.pbb-summary .pbb-buy-now.is-loading {
	cursor: progress !important;
	opacity: 1 !important;
}

.pbb-add-to-cart__spinner,
.pbb-buy-now__spinner {
	display: none;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	animation: pbb-spin .7s linear infinite;
}

.pbb-add-to-cart__spinner {
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
}

.pbb-buy-now__spinner {
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
}

.pbb-add-to-cart.is-loading .pbb-add-to-cart__spinner,
.pbb-buy-now.is-loading .pbb-buy-now__spinner { display: inline-block; }

.pbb-add-to-cart.is-loading .pbb-add-to-cart__label,
.pbb-buy-now.is-loading .pbb-buy-now__label { opacity: .85; }

/* Mobile sticky bar buttons — same navy CTA design as the desktop summary
   panel; the theme's `button[disabled]{opacity:.6!important}` rule hits
   these too, so the same !important overrides are required here. */
.pbb-mobile-bar .pbb-add-to-cart,
.pbb-mobile-bar .pbb-buy-now {
	position: relative;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-radius: 8px;
	cursor: pointer !important;
	opacity: 1 !important;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.pbb-mobile-bar .pbb-add-to-cart { border: none; }
.pbb-mobile-bar .pbb-buy-now { border: none; }

.pbb-mobile-bar .pbb-add-to-cart:not(:disabled) {
	background: linear-gradient(135deg, var(--pbb-cta-navy-light), var(--pbb-cta-navy)) !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(23, 39, 71, .28);
}

.pbb-mobile-bar .pbb-buy-now:not(:disabled) {
	background: var(--pbb-cta-navy-light) !important;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(23, 39, 71, .22);
}

.pbb-mobile-bar .pbb-add-to-cart:not(:disabled):hover,
.pbb-mobile-bar .pbb-add-to-cart:not(:disabled):active {
	background: linear-gradient(135deg, var(--pbb-cta-navy-hover), var(--pbb-cta-navy-light)) !important;
}

.pbb-mobile-bar .pbb-buy-now:not(:disabled):hover,
.pbb-mobile-bar .pbb-buy-now:not(:disabled):active {
	background: var(--pbb-cta-navy) !important;
	color: #fff !important;
}

.pbb-mobile-bar .pbb-add-to-cart:disabled,
.pbb-mobile-bar .pbb-buy-now:disabled {
	cursor: not-allowed !important;
}

.pbb-mobile-bar .pbb-add-to-cart:disabled:not(.is-loading),
.pbb-mobile-bar .pbb-buy-now:disabled:not(.is-loading) {
	background: var(--pbb-cta-disabled-bg) !important;
	border-color: var(--pbb-cta-disabled-border) !important;
	color: var(--pbb-cta-disabled-text) !important;
	box-shadow: none !important;
}

.pbb-mobile-bar .pbb-add-to-cart.is-loading,
.pbb-mobile-bar .pbb-buy-now.is-loading {
	cursor: progress !important;
	opacity: 1 !important;
}

.pbb-summary__message {
	margin-top: 12px;
	font-size: 13.5px;
	display: none;
	border-radius: 8px;
	padding: 10px 12px;
}

.pbb-summary__message.is-success {
	display: block;
	color: var(--pbb-green);
	background: rgba(30, 126, 66, .08);
}

.pbb-summary__message.is-success a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.pbb-summary__message.is-error {
	display: block;
	color: var(--pbb-red);
	background: rgba(198, 40, 40, .06);
}

.pbb-icon-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--pbb-green);
	color: #fff;
	font-size: 10px;
	vertical-align: -2px;
}

.pbb-icon-check::after { content: "\2713"; }

@keyframes pbb-spin {
	to { transform: rotate(360deg); }
}

@keyframes pbb-fade-in {
	from { opacity: 0; transform: translateY(-2px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile sticky bar ---------- */

.pbb-mobile-bar {
	display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
	.pbb-bundle {
		max-width: 100%;
		gap: 14px;
	}

	.pbb-step-card__head { padding: 14px 16px; }
	.pbb-step-card__body { padding: 0 16px 16px; gap: 14px; }

	.pbb-swatch { width: 40px; height: 40px; }
	.pbb-btn-option { height: 44px; min-width: 50px; }

	.pbb-summary {
		position: static;
	}

	.pbb-summary .pbb-add-to-cart,
	.pbb-summary .pbb-buy-now { display: none; }

	.pbb-mobile-bar {
		display: flex;
		flex-direction: column;
		gap: 8px;
		position: sticky;
		bottom: 12px;
		z-index: 5;
		background: #fff;
		border: 1px solid var(--pbb-border);
		border-radius: var(--pbb-radius);
		box-shadow: var(--pbb-shadow-hover);
		padding: 12px 14px;
	}

	.pbb-mobile-bar__price {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		padding: 0 2px;
	}

	.pbb-mobile-bar__label {
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: .04em;
		color: var(--pbb-ink-soft);
	}

	.pbb-mobile-bar__total {
		font-size: 17px;
		font-weight: 700;
	}

	/* Full width and stacked — squeezing "ADD BUNDLE TO CART" next to the
	   price in one row left no room for the label on narrow screens. */
	.pbb-add-to-cart--mobile {
		width: 100%;
		min-height: 52px;
		margin-top: 0;
		padding: 0 16px;
	}

	.pbb-buy-now--mobile {
		width: 100%;
		min-height: 52px;
		margin-top: 0;
		padding: 0 16px;
	}
}

@media (min-width: 783px) {
	.pbb-mobile-bar { display: none !important; }
}

/* ---------- Dropdown / radio option displays ---------- */

.pbb-group-select {
	width: 100%;
	max-width: 320px;
	height: 44px;
	padding: 0 12px;
	border: 2px solid #e2e3e8;
	border-radius: 9px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pbb-ink);
}

.pbb-radio-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 2px solid #e2e3e8;
	border-radius: 9px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	transition: border-color .15s ease, background-color .15s ease;
}

.pbb-radio-option:has(input:checked),
.pbb-radio-option.is-selected {
	border-color: var(--pbb-ink);
	background: var(--pbb-bg-soft);
}

.pbb-radio-option input { margin: 0; }

/* ---------- Out-of-stock options ---------- */

.pbb-swatch.pbb-is-oos,
.pbb-btn-option.pbb-is-oos {
	opacity: .4;
	cursor: not-allowed;
	position: relative;
}

.pbb-swatch.pbb-is-oos::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top right, transparent calc(50% - 1px), currentColor, transparent calc(50% + 1px));
	border-radius: 50%;
}

.pbb-btn-option__oos {
	display: block;
	font-size: 9.5px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--pbb-red);
}

/* ---------- Quantity stepper ---------- */

.pbb-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 2px solid #e2e3e8;
	border-radius: 9px;
	overflow: hidden;
}

.pbb-qty-btn {
	width: 36px;
	height: 40px;
	border: none;
	background: #fff;
	font-size: 16px;
	font-weight: 700;
	color: var(--pbb-ink);
	cursor: pointer;
}

.pbb-qty-btn:hover { background: var(--pbb-bg-soft); }

.pbb-qty-input {
	width: 44px;
	height: 40px;
	border: none;
	border-left: 1px solid #e2e3e8;
	border-right: 1px solid #e2e3e8;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--pbb-ink);
	-moz-appearance: textfield;
}

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

.pbb-step-card__qty,
.pbb-summary__qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 20px 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pbb-ink-soft);
}

.pbb-summary__qty-row {
	padding: 14px 0 0;
	margin-top: 4px;
	border-top: 1px solid var(--pbb-border);
}

/* ---------- Incomplete-step error flash ---------- */

.pbb-step-card--error {
	animation: pbb-shake .4s ease;
	border-color: var(--pbb-red) !important;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, .12) !important;
}

@keyframes pbb-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}
