.wsb-product-bundle {
	--wsb-pbo-bg: #fff;
	--wsb-pbo-accent: #6d28d9;
	--wsb-pbo-text: #111827;
	--wsb-pbo-muted: #64748b;
	--wsb-pbo-border: #e9d5ff;
	--wsb-pbo-button: #6d28d9;
	--wsb-pbo-button-text: #fff;
	--wsb-pbo-radius: 18px;
	--wsb-pbo-shadow: 0 12px 34px rgba(15, 23, 42, .09);
	--wsb-pbo-font: inherit;
	box-sizing: border-box;
	width: 100%;
	margin: 24px 0;
	padding: clamp(18px, 3vw, 28px);
	overflow: hidden;
	border: 1px solid var(--wsb-pbo-border);
	border-top: 3px solid var(--wsb-pbo-accent);
	border-radius: var(--wsb-pbo-radius);
	background: var(--wsb-pbo-bg);
	box-shadow: var(--wsb-pbo-shadow);
	color: var(--wsb-pbo-text);
	font-family: var(--wsb-pbo-font);
}

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

.wsb-product-bundle__header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	margin-bottom: 22px;
}

.wsb-product-bundle__icon {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 13px;
	background: color-mix(in srgb, var(--wsb-pbo-accent) 12%, transparent);
	color: var(--wsb-pbo-accent);
}

.wsb-product-bundle__icon svg,
.wsb-product-bundle__add svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.wsb-product-bundle__eyebrow {
	display: block;
	margin: 0 0 2px;
	color: var(--wsb-pbo-accent);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wsb-product-bundle__header h2 {
	margin: 0;
	color: var(--wsb-pbo-text);
	font: inherit;
	font-size: clamp(19px, 2.4vw, 25px);
	font-weight: 800;
	line-height: 1.15;
}

.wsb-product-bundle__header p {
	margin: 5px 0 0;
	color: var(--wsb-pbo-muted);
	font-size: 13px;
	line-height: 1.45;
}

.wsb-product-bundle__discount {
	align-self: start;
	padding: 7px 11px;
	border: 1px solid color-mix(in srgb, var(--wsb-pbo-accent) 25%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wsb-pbo-accent) 9%, transparent);
	color: var(--wsb-pbo-accent);
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
}

.wsb-product-bundle__items {
	display: flex;
	gap: 11px;
	align-items: stretch;
	overflow-x: auto;
	padding: 2px 2px 12px;
	scrollbar-color: color-mix(in srgb, var(--wsb-pbo-accent) 35%, transparent) transparent;
	scrollbar-width: thin;
}

.wsb-product-bundle__plus {
	display: grid;
	flex: 0 0 28px;
	place-items: center;
	color: var(--wsb-pbo-accent);
	font-size: 24px;
	font-weight: 700;
}

.wsb-product-bundle-item {
	position: relative;
	display: flex;
	flex: 1 0 170px;
	min-width: 0;
	flex-direction: column;
	padding: 13px;
	border: 1px solid var(--wsb-pbo-border);
	border-radius: calc(var(--wsb-pbo-radius) - 6px);
	background: color-mix(in srgb, var(--wsb-pbo-bg) 94%, var(--wsb-pbo-accent));
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wsb-product-bundle-item.is-selected,
.wsb-product-bundle-item:has(.wsb-product-bundle-item__checkbox:checked) {
	border-color: color-mix(in srgb, var(--wsb-pbo-accent) 55%, var(--wsb-pbo-border));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wsb-pbo-accent) 15%, transparent);
}

.wsb-product-bundle--animation-lift .wsb-product-bundle-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(15, 23, 42, .1);
}

.wsb-product-bundle--animation-glow .wsb-product-bundle-item.is-selected,
.wsb-product-bundle--animation-glow .wsb-product-bundle-item:has(.wsb-product-bundle-item__checkbox:checked) {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wsb-pbo-accent) 12%, transparent);
}

.wsb-product-bundle-item__selector {
	position: absolute;
	z-index: 2;
	top: 9px;
	right: 9px;
	display: grid;
	width: 27px;
	height: 27px;
	margin: 0;
	cursor: pointer;
	place-items: center;
}

.wsb-product-bundle-item__selector input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.wsb-product-bundle-item__selector > span[aria-hidden] {
	display: grid;
	width: 25px;
	height: 25px;
	place-items: center;
	border: 1px solid var(--wsb-pbo-border);
	border-radius: 8px;
	background: var(--wsb-pbo-bg);
	box-shadow: 0 4px 12px rgba(15, 23, 42, .1);
}

.wsb-product-bundle-item__selector input:checked + span::after {
	width: 9px;
	height: 5px;
	border-bottom: 2px solid #fff;
	border-left: 2px solid #fff;
	content: "";
	transform: translateY(-1px) rotate(-45deg);
}

.wsb-product-bundle-item__selector input:checked + span {
	border-color: var(--wsb-pbo-accent);
	background: var(--wsb-pbo-accent);
}

.wsb-product-bundle-item__selector input:focus-visible + span {
	outline: 2px solid var(--wsb-pbo-accent);
	outline-offset: 2px;
}

.wsb-product-bundle-item__image {
	display: block;
	overflow: hidden;
	width: 100%;
	margin: 0 0 12px;
	border-radius: calc(var(--wsb-pbo-radius) - 9px);
	aspect-ratio: 1 / 1;
	background: color-mix(in srgb, var(--wsb-pbo-border) 45%, transparent);
}

.wsb-product-bundle-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform .3s ease;
}

.wsb-product-bundle-item:hover .wsb-product-bundle-item__image img {
	transform: scale(1.035);
}

.wsb-product-bundle-item__details {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
}

.wsb-product-bundle-item__label {
	margin: 0 0 5px;
	color: var(--wsb-pbo-accent);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wsb-product-bundle-item__name {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 6px;
	color: var(--wsb-pbo-text) !important;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
	text-decoration: none !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wsb-product-bundle-item__price {
	display: block;
	margin: auto 0 9px;
	color: var(--wsb-pbo-text);
	font-size: 13px;
	font-weight: 800;
}

.wsb-product-bundle-item__price del {
	margin-right: 4px;
	color: var(--wsb-pbo-muted);
	font-weight: 500;
	opacity: .75;
}

.wsb-product-bundle-item__price ins {
	background: none;
	color: var(--wsb-pbo-accent);
	text-decoration: none;
}

.wsb-product-bundle-item__variations {
	width: 100%;
	margin: 2px 0 9px;
}

.wsb-product-bundle-item__variations label {
	display: block;
	margin: 0 0 6px;
	color: var(--wsb-pbo-muted);
	font-size: 10px;
	font-weight: 700;
}

.wsb-product-bundle-item__variations label > span {
	display: block;
	margin-bottom: 3px;
}

.wsb-product-bundle-item__variations select {
	width: 100%;
	min-width: 0;
	height: 34px;
	margin: 0;
	padding: 4px 26px 4px 8px;
	border: 1px solid var(--wsb-pbo-border);
	border-radius: 7px;
	background-color: var(--wsb-pbo-bg);
	color: var(--wsb-pbo-text);
	font: inherit;
	font-size: 11px;
}

.wsb-product-bundle-item__variation-note {
	margin: 2px 0 9px;
	color: var(--wsb-pbo-muted);
	font-size: 10px;
	line-height: 1.35;
}

.wsb-product-bundle-item__quantity-label {
	display: flex;
	gap: 7px;
	align-items: center;
	margin: 0;
	color: var(--wsb-pbo-muted);
	font-size: 10px;
	font-weight: 700;
}

.wsb-product-bundle-item__quantity-control {
	display: inline-grid;
	grid-template-columns: 30px 40px 30px;
	height: 34px;
	overflow: hidden;
	border: 1px solid var(--wsb-pbo-border);
	border-radius: 8px;
	background: var(--wsb-pbo-bg);
}

.wsb-product-bundle-item__quantity-button {
	display: grid;
	min-width: 0 !important;
	height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	place-items: center;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--wsb-pbo-text) !important;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
}

.wsb-product-bundle-item__quantity-button:hover:not(:disabled),
.wsb-product-bundle-item__quantity-button:focus-visible:not(:disabled) {
	background: color-mix(in srgb, var(--wsb-pbo-accent) 10%, transparent) !important;
	color: var(--wsb-pbo-accent) !important;
}

.wsb-product-bundle-item__quantity-button:disabled {
	cursor: not-allowed;
	opacity: .35;
}

.wsb-product-bundle-item__quantity {
	-moz-appearance: textfield;
	appearance: textfield;
	width: 40px !important;
	min-width: 0 !important;
	height: 32px;
	margin: 0 !important;
	padding: 4px 2px !important;
	border-width: 0 1px !important;
	border-style: solid !important;
	border-color: var(--wsb-pbo-border) !important;
	border-radius: 0 !important;
	background: var(--wsb-pbo-bg) !important;
	color: var(--wsb-pbo-text) !important;
	font: inherit;
	font-size: 12px;
	text-align: center;
}

.wsb-product-bundle-item__quantity::-webkit-inner-spin-button,
.wsb-product-bundle-item__quantity::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.wsb-product-bundle-item--unavailable {
	opacity: .65;
}

.wsb-product-bundle__footer {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 7px;
	padding-top: 18px;
	border-top: 1px solid var(--wsb-pbo-border);
}

.wsb-product-bundle__totals {
	display: flex;
	min-width: 130px;
	flex-direction: column;
	align-items: flex-end;
}

.wsb-product-bundle__totals > span {
	color: var(--wsb-pbo-muted);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.wsb-product-bundle__total-price {
	color: var(--wsb-pbo-text);
	font-size: 22px;
	font-weight: 850;
	line-height: 1.2;
}

.wsb-product-bundle__savings {
	color: #059669;
	font-size: 11px;
	font-weight: 750;
}

.wsb-product-bundle .wsb-product-bundle__add {
	display: inline-flex !important;
	gap: 8px;
	min-width: 190px;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 11px 20px !important;
	border: 0 !important;
	border-radius: max(8px, calc(var(--wsb-pbo-radius) - 8px)) !important;
	background: var(--wsb-pbo-button) !important;
	box-shadow: 0 9px 22px color-mix(in srgb, var(--wsb-pbo-button) 24%, transparent);
	color: var(--wsb-pbo-button-text) !important;
	font: inherit;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wsb-product-bundle .wsb-product-bundle__add:hover:not(:disabled) {
	filter: brightness(.95);
	transform: translateY(-2px);
}

.wsb-product-bundle .wsb-product-bundle__add:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--wsb-pbo-accent) 30%, transparent);
	outline-offset: 3px;
}

.wsb-product-bundle .wsb-product-bundle__add:disabled {
	cursor: not-allowed;
	filter: grayscale(.25);
	opacity: .55;
}

.wsb-product-bundle__add--loading svg {
	animation: wsb-pbo-spin .8s linear infinite;
}

.wsb-product-bundle__add--success {
	background: #059669 !important;
}

.wsb-product-bundle__notice {
	margin-top: 13px;
	padding: 10px 12px;
	border-radius: 9px;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.45;
}

.wsb-product-bundle__notice--error {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.wsb-product-bundle__notice--success {
	border: 1px solid #a7f3d0;
	background: #ecfdf5;
	color: #065f46;
}

.wsb-product-bundle__notice a {
	color: inherit;
	font-weight: 800;
	text-decoration: underline;
}

.wsb-product-bundle--compact .wsb-product-bundle-item {
	flex-basis: 210px;
	flex-direction: row;
	gap: 11px;
}

.wsb-product-bundle--compact .wsb-product-bundle-item__image {
	width: 78px;
	flex: 0 0 78px;
	margin: 0;
}

.wsb-product-bundle--list .wsb-product-bundle__items {
	flex-direction: column;
	overflow: visible;
}

.wsb-product-bundle--list .wsb-product-bundle__plus {
	display: none;
}

.wsb-product-bundle--list .wsb-product-bundle-item {
	display: grid;
	flex-basis: auto;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 12px;
}

.wsb-product-bundle--list .wsb-product-bundle-item__image {
	width: 74px;
	margin: 0;
}

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

@media (min-width: 783px) {
	.wsb-product-bundle--hide-desktop {
		display: none !important;
	}
}

@media (max-width: 782px) {
	.wsb-product-bundle--hide-mobile {
		display: none !important;
	}

	.wsb-product-bundle {
		margin: 18px 0;
		padding: 16px;
	}

	.wsb-product-bundle__header {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 10px;
	}

	.wsb-product-bundle__discount {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.wsb-product-bundle__items {
		margin-right: -16px;
		padding-right: 16px;
		scroll-snap-type: x proximity;
	}

	.wsb-product-bundle-item {
		flex-basis: min(70vw, 190px);
		scroll-snap-align: start;
	}

	.wsb-product-bundle__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.wsb-product-bundle__totals {
		align-items: flex-start;
	}

	.wsb-product-bundle .wsb-product-bundle__add {
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wsb-product-bundle *,
	.wsb-product-bundle *::before,
	.wsb-product-bundle *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
