.bpp-purchase-wrapper {
	--bpp-border: #e4e4e7;
	--bpp-accent: #111827;
	--bpp-accent-soft: #f4f4f5;
	--bpp-radius: 10px;
	margin: 1.25em 0;
	font-size: 15px;
}

.bpp-purchase-method {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.bpp-purchase-method-title {
	font-weight: 600;
	margin-right: 6px;
	color: var(--bpp-accent);
}

.bpp-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--bpp-border);
	border-radius: 999px;
	padding: 7px 14px;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}

.bpp-radio:has(input:checked) {
	border-color: var(--bpp-accent);
	background: var(--bpp-accent-soft);
}

.bpp-radio input { margin: 0; }

.bpp-mode-panel[hidden] { display: none; }

.bpp-package-box,
.bpp-pieces-box {
	border: 1px solid var(--bpp-border);
	border-radius: var(--bpp-radius);
	padding: 18px;
	background: #fff;
}

.bpp-package-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 8px;
}

.bpp-package-label { font-weight: 600; color: var(--bpp-accent); }

.bpp-package-composition {
	list-style: none;
	margin: 10px 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 6px 12px;
}

.bpp-package-composition li {
	background: var(--bpp-accent-soft);
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 0.9em;
}

.bpp-note { color: #6b7280; font-size: 0.85em; margin: 6px 0 14px; }

.bpp-package-price { font-size: 1.4em; font-weight: 700; margin: 10px 0 16px; }

.bpp-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--bpp-border);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
}

.bpp-qty-stepper button,
.bpp-piece-qty button {
	border: none;
	background: var(--bpp-accent-soft);
	width: 34px;
	height: 34px;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}

.bpp-qty-stepper input,
.bpp-piece-qty-input {
	border: none;
	width: 52px;
	text-align: center;
	font-size: 15px;
	-moz-appearance: textfield;
}

.bpp-moq-note { color: #b45309; font-size: 0.85em; margin: 0 0 12px; }

.single_add_to_cart_button.bpp-add-package,
.single_add_to_cart_button.bpp-add-pieces {
	display: block;
	width: 100%;
	border-radius: 999px;
	padding: 14px 20px;
	font-weight: 600;
	letter-spacing: .01em;
}

.single_add_to_cart_button.loading { opacity: .6; pointer-events: none; }

.bpp-pieces-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.bpp-piece-row {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--bpp-border);
	border-radius: 8px;
}

.bpp-piece-row.bpp-piece-oos { opacity: .5; }

.bpp-piece-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }

.bpp-piece-info { display: flex; flex-direction: column; }
.bpp-piece-label { font-weight: 600; }
.bpp-piece-price { color: #374151; }
.bpp-piece-sku { color: #9ca3af; font-size: .8em; }

.bpp-piece-qty { display: inline-flex; align-items: center; border: 1px solid var(--bpp-border); border-radius: 999px; overflow: hidden; }

.bpp-oos-label { color: #b91c1c; font-size: .85em; font-weight: 600; }

.bpp-feedback { margin-top: 10px; font-size: .9em; min-height: 1.2em; }
.bpp-feedback-ok { color: #15803d; }
.bpp-feedback-error { color: #b91c1c; }

.bpp-badge {
	display: inline-block;
	font-size: .72em;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .03em;
	vertical-align: middle;
}

.bpp-badge-package { background: #111827; color: #fff; }
.bpp-badge-piece { background: #e0e7ff; color: #3730a3; }

@media (max-width: 480px) {
	.bpp-piece-row { grid-template-columns: 40px 1fr; }
	.bpp-piece-qty { grid-column: 1 / -1; justify-content: flex-end; }
}
