.bpc-calculator {
	--bpc-primary: #000;
	--bpc-accent: #bd9a56;
	--bpc-border: #d8dee8;
	--bpc-muted: #64748b;
	--bpc-bg: #f5f7fa;
	--bpc-white: #fff;

	max-width: 1150px;
	margin: 80px auto;
	font-family: inherit;
	color: var(--bpc-primary);
}

.bpc-calculator,
.bpc-calculator * {
	box-sizing: border-box;
}

/* Header
--------------------------------------------- */

.bpc-calculator__header {
	text-align: center;
	margin-bottom: 28px;
}

.bpc-calculator__heading {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
}

.bpc-calculator__intro {
	max-width: 780px;
	margin: 0 auto 18px;
	font-size: 15px;
	line-height: 1.55;
}

/* Toolbar
--------------------------------------------- */

.bpc-toolbar {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 24px 0 30px;
}

.bpc-control {
	min-width: 280px;
	text-align: left;
}

.bpc-control > label,
.bpc-control__label {
	display: block;
	margin: 0 0 7px;
	font-size: 13px;
	font-weight: 700;
}

.bpc-select {
	width: 100%;
	height: 48px;
	border: 1px solid var(--bpc-border);
	border-radius: 8px;
	padding: 0 38px 0 13px;
	background: #fff;
	color: #000;
	font: inherit;
}

.bpc-market-service {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--bpc-border);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
}

.bpc-rate-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--bpc-muted);
	font-size: 12px;
}

.bpc-rate-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bpc-accent);
}

/* Minimum threshold
--------------------------------------------- */

.bpc-threshold {
	margin: 0 auto 28px;
	max-width: 760px;
	padding: 16px 18px;
	border: 1px solid var(--bpc-border);
	border-radius: 10px;
	background: var(--bpc-bg);
	text-align: center;
}

.bpc-threshold__title {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 800;
}

.bpc-threshold__message {
	font-size: 14px;
	color: var(--bpc-muted);
}

.bpc-threshold.is-met {
	border-color: #76a86a;
	background: #f2f8f0;
}

.bpc-threshold.is-met .bpc-threshold__message {
	color: #315b2c;
}

/* Products
--------------------------------------------- */

.bpc-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.bpc-product {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--bpc-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.bpc-product__header {
	padding: 20px 24px;
	background: #000;
	color: #fff;
}

.bpc-product--silver .bpc-product__header {
	border-top: 6px solid #aeb8c4;
}

.bpc-product--gold .bpc-product__header {
	border-top: 6px solid var(--bpc-accent);
}

.bpc-product__metal {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

.bpc-product__title {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
}

.bpc-product__vat-note {
	display: none;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	opacity: 0.75;
}

.bpc-market-za .bpc-product__vat-note {
	display: block;
}

.bpc-product__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

/* Product rates
--------------------------------------------- */

.bpc-product__rates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.bpc-rate {
	padding: 14px;
	border: 1px solid var(--bpc-border);
	border-radius: 9px;
	background: var(--bpc-bg);
}

.bpc-rate__label {
	display: block;
	margin-bottom: 5px;
	color: var(--bpc-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

.bpc-rate__value {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

/* Quantity controls
--------------------------------------------- */

.bpc-quantity-label {
	display: block;
	margin-bottom: 9px;
	font-size: 14px;
	font-weight: 700;
}

.bpc-quantity {
	display: grid;
	grid-template-columns: 48px minmax(80px, 1fr) 48px;
	max-width: 250px;
	margin-bottom: 24px;
	border: 1px solid var(--bpc-border);
	border-radius: 9px;
	overflow: hidden;
}

.bpc-quantity__button,
.bpc-quantity__input {
	height: 48px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #000;
	font: inherit;
}

.bpc-quantity__button {
	padding: 0;
	cursor: pointer;
	font-size: 24px;
}

.bpc-quantity__button:hover,
.bpc-quantity__button:focus-visible {
	background: #000;
	color: #fff;
	outline: none;
}

.bpc-quantity__input {
	width: 100%;
	border-left: 1px solid var(--bpc-border);
	border-right: 1px solid var(--bpc-border);
	text-align: center;
	font-weight: 700;
	appearance: textfield;
	-moz-appearance: textfield;
}

.bpc-quantity__input::-webkit-inner-spin-button,
.bpc-quantity__input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Product totals
--------------------------------------------- */

.bpc-product__totals {
	display: grid;
	gap: 10px;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--bpc-border);
}

.bpc-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--bpc-muted);
	font-size: 14px;
}

.bpc-total-row strong {
	color: #000;
	font-size: 17px;
	text-align: right;
}

.bpc-zero-state {
	opacity: 0.65;
}

/* Quote summary
--------------------------------------------- */

.bpc-summary {
	margin-top: 28px;
	overflow: hidden;
	border-radius: 14px;
	background: #000;
	color: #fff;
	box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
}

.bpc-summary__heading {
	margin: 0;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 23px;
}

.bpc-summary__content {
	padding: 8px 24px;
}

.bpc-summary__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	padding: 16px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bpc-summary__row:last-child {
	border-bottom: 0;
}

.bpc-summary__label {
	color: rgba(255, 255, 255, 0.72);
}

.bpc-summary__value {
	font-size: 18px;
	font-weight: 700;
	text-align: right;
}

.bpc-summary__row--grand-total {
	align-items: center;
	margin: 0 -24px;
	padding: 22px 24px;
	background: var(--bpc-accent);
	color: #000;
}

.bpc-summary__row--grand-total .bpc-summary__label {
	color: inherit;
	font-size: 18px;
	font-weight: 700;
}

.bpc-summary__row--grand-total .bpc-summary__value {
	font-size: clamp(24px, 4vw, 32px);
}

/* Quote notice
--------------------------------------------- */

.bpc-note {
	margin-top: 22px;
	padding: 18px 20px;
	border-radius: 10px;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}

.bpc-note a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* CTA
--------------------------------------------- */

.bpc-cta-wrap {
	text-align: center;
	margin-top: 24px;
}

.bpc-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 13px 24px;
	border: 2px solid #000;
	border-radius: 6px;
	background: #000;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: 0.2s ease;
}

.bpc-cta:hover,
.bpc-cta:focus {
	background: var(--bpc-accent);
	border-color: var(--bpc-accent);
	color: #000 !important;
}

.bpc-cta[aria-disabled="true"] {
	opacity: 0.45;
	pointer-events: none;
}

.bpc-cta-help {
	margin: 8px 0 0;
	color: var(--bpc-muted);
	font-size: 12px;
}

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

@media (max-width: 720px) {
	.bpc-products {
		grid-template-columns: 1fr;
	}

	.bpc-product__rates {
		grid-template-columns: 1fr;
	}

	.bpc-control {
		width: 100%;
		min-width: 0;
	}

	.bpc-summary__content {
		padding-left: 18px;
		padding-right: 18px;
	}

	.bpc-summary__row--grand-total {
		margin-left: -18px;
		margin-right: -18px;
		padding-left: 18px;
		padding-right: 18px;
	}
}

@media (max-width: 420px) {
	.bpc-summary__row {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.bpc-summary__value {
		text-align: left;
	}
}