.bfc, .bfc * { box-sizing: border-box; }
.bfc {
	/* Colors sampled directly from the Canva design screenshots. */
	--bf-page: #262321;      /* outer page background */
	--bf-dark: #171615;      /* totals bar / done panel background */
	--bf-card: #f7f1e6;      /* cream panel / card background */
	--bf-field: #ffffff;     /* input / qty pill background */
	--bf-ink: #1c1a18;       /* headings, strong text */
	--bf-muted: #5b5346;     /* secondary text */
	--bf-gold: #c99d52;      /* buttons, active states, accents */
	--bf-gold-text: #171310; /* text on gold buttons */
	--bf-border: #d8c7a0;    /* card / input borders */
	--bf-disabled-bg: #dfc599;
	--bf-disabled-text: #827d74;
	--r: 16px;
	--r-sm: 10px;

	font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--bf-card);
	background: var(--bf-page);
	max-width: 1080px;
	margin: 0 auto;
	padding: 32px 24px 64px;
	line-height: 1.5;
}
.bfc [hidden] { display: none !important; }

.bfc-eyebrow {
	margin: 0 0 6px;
	color: var(--bf-gold);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.bfc-h2 {
	margin: 0 0 8px;
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-weight: 700;
	font-size: clamp(22px, 3vw, 27px);
	line-height: 1.25;
	color: var(--bf-ink);
}
.bfc-h2--light { color: var(--bf-card); }
.bfc-h3 {
	margin: 28px 0 16px;
	font-family: 'Playfair Display', Georgia, serif;
	font-weight: 700;
	font-size: 19px;
	color: var(--bf-ink);
}
.bfc-sub { margin: 0 0 24px; color: var(--bf-muted); max-width: 62ch; font-size: 15px; }

.bfc-section { margin-bottom: 24px; }
.bfc-panel { background: var(--bf-card); border-radius: var(--r); padding: 32px; }
.bfc-subpanel { background: var(--bf-field); border: 1px solid var(--bf-border); border-radius: var(--r); padding: 24px; margin-bottom: 24px; }
.bfc-subpanel--plain { background: transparent; }
.bfc-subpanel .bfc-h3 { margin-top: 0; }
.bfc-subpanel .bfc-fields { margin-top: 4px; }
.bfc-panel--dark { background: var(--bf-dark); }
.bfc-panel--dark p { max-width: 54ch; margin: 0 0 22px; color: #d8cdb9; font-size: 15px; }
#bfc-done-msg { max-width: 54ch; margin: 0 0 22px; color: var(--bf-muted); font-size: 15px; }

/* Section A header sits directly on the dark page background */
#bfc-build > .bfc-h2 { color: var(--bf-card); }
#bfc-build > .bfc-sub { color: #cbbfa9; }

/* Product cards */
.bfc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.bfc-card {
	background: var(--bf-card);
	border-radius: var(--r);
	overflow: hidden;
}
.bfc-card-img { aspect-ratio: 5 / 4; background: #ddccab; overflow: hidden; }
.bfc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfc-card-body { padding: 20px 24px 0; }
.bfc-card-body h3 {
	margin: 0 0 3px;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 19px;
	font-weight: 700;
	color: var(--bf-ink);
}
.bfc-price { margin: 0; font-size: 14px; color: var(--bf-muted); }

.bfc-qty {
	display: grid;
	grid-template-columns: 48px 1fr 48px;
	align-items: center;
	background: var(--bf-field);
	border: 1px solid var(--bf-border);
	border-radius: 999px;
	margin: 16px 24px 0;
	overflow: hidden;
}
.bfc-qty button {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--bf-ink);
	font: 500 20px/1 'DM Sans', sans-serif;
	height: 52px;
	cursor: pointer;
	padding: 0;
}
.bfc-qty button:hover { background: rgba(0, 0, 0, .05); }
.bfc-qty button:disabled { opacity: .35; cursor: not-allowed; }
.bfc-qty-val { text-align: center; font-size: 17px; font-weight: 700; color: var(--bf-ink); }
.bfc-card-note { margin: 12px 24px 20px; font-size: 13px; color: var(--bf-muted); }

/* Totals bar (Section A bottom) */
.bfc-totalsbar {
	background: var(--bf-dark);
	border: 1px solid var(--bf-gold);
	border-radius: var(--r);
	padding: 22px 26px 18px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 28px;
}
.bfc-tb-label { margin: 0 0 4px; color: var(--bf-gold); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.bfc-tb-value { margin: 0; font-size: 24px; font-weight: 700; color: var(--bf-card); }
.bfc-tb-included { flex-basis: 100%; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid #3a3126; color: #d8cdb9; font-size: 14px; }

/* Fields */
.bfc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 4px; }
.bfc-wide { grid-column: 1 / -1; }
.bfc-field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; color: var(--bf-ink); }
.bfc-field input, .bfc-field select {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	background: var(--bf-field);
	border: 1px solid var(--bf-border);
	border-radius: var(--r-sm);
	padding: 15px 16px;
	font: 400 16px 'DM Sans', sans-serif;
	color: var(--bf-ink);
}
.bfc-field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23574a36' stroke-width='2'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.bfc-field select:disabled { color: #8c8064; -webkit-text-fill-color: #8c8064; opacity: 1; cursor: not-allowed; }
.bfc-field select.is-disabled { color: #8c8064; -webkit-text-fill-color: #8c8064; opacity: 1; cursor: not-allowed; pointer-events: none; background-color: var(--bf-field); }
.bfc-field { min-width: 0; }
.bfc-err:empty { display: none; }
.bfc-date-wrap { position: relative; }
.bfc-date-wrap input[type="date"] { padding-right: 46px; }
.bfc-date-wrap input[type="date"]::-webkit-datetime-edit { color: transparent; }
.bfc-date-wrap.has-value input[type="date"]::-webkit-datetime-edit { color: var(--bf-ink); }
.bfc-date-placeholder {
	position: absolute;
	left: 17px;
	top: 50%;
	transform: translateY(-50%);
	color: #8c8064;
	font: 400 16px 'DM Sans', sans-serif;
	pointer-events: none;
}
.bfc-date-wrap.has-value .bfc-date-placeholder { display: none; }
.bfc-date-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--bf-gold); fill: none; pointer-events: none; }
.bfc-date-icon rect, .bfc-date-icon path { fill: none; }
.bfc-date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	margin: 0;
}
.bfc-field.has-error input, .bfc-field.has-error select { border-color: #b3261e; }
.bfc-err { display: block; color: #b3261e; font-size: 13px; font-weight: 500; margin-top: 6px; min-height: 0; }
.bfc-hint { margin: 12px 0 0; font-size: 13px; color: var(--bf-muted); }

/* Pickup / delivery toggle */
.bfc-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bfc-toggle-btn {
	appearance: none;
	border: 1px solid var(--bf-border);
	background: var(--bf-field);
	border-radius: var(--r-sm);
	padding: 17px;
	font: 700 15px/1 'DM Sans', sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--bf-ink);
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.bfc-toggle-btn.is-active { background: var(--bf-gold); border-color: var(--bf-gold); color: var(--bf-gold-text); }

/* Panel head + Edit pill */
.bfc-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 2px; }
.bfc-panel-head .bfc-h2 { margin: 0; }
.bfc-pill {
	appearance: none;
	background: var(--bf-card);
	border: 1px solid var(--bf-muted);
	border-radius: 999px;
	color: var(--bf-ink);
	font: 700 12px/1 'DM Sans', sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 9px 18px;
	cursor: pointer;
}
.bfc-pill:hover { background: rgba(0, 0, 0, .04); }

/* Recap (Section D, on cream panel) + review (Section E, white card) */
#bfc-recap { margin: 18px 0 0; }
.bfc-review {
	margin: 4px 0 8px;
	background: var(--bf-field);
	border: 1px solid var(--bf-border);
	border-radius: 12px;
	padding: 22px 24px;
}
.bfc-recap-empty { margin: 0; color: var(--bf-muted); font-size: 15px; }
.bfc-recap-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--bf-border); font-size: 15px; color: var(--bf-ink); }
.bfc-recap-line:first-child { padding-top: 0; }
.bfc-recap-line small { display: block; color: var(--bf-muted); font-size: 13px; margin-top: 2px; }
.bfc-recap-meta { padding-top: 12px; font-size: 15px; color: var(--bf-ink); }
.bfc-recap-meta p { margin: 0 0 6px; }
.bfc-recap-meta b { color: var(--bf-ink); }
.bfc-recap-totals {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--bf-border);
	font-size: 15px;
	color: #3b2412;
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 12px;
	row-gap: 7px;
}
.bfc-recap-totals p { display: contents; }
.bfc-recap-totals p span:first-child { color: #3b2412; }
.bfc-recap-totals p span:last-child { text-align: right; color: #3b2412; }
.bfc-recap-totals .bfc-final { display: contents; }
.bfc-recap-totals .bfc-final span { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; font-weight: 700; color: #3b2412; }

/* Buttons */
.bfc-btn {
	appearance: none;
	border: 0;
	border-radius: var(--r-sm);
	background: var(--bf-gold);
	color: var(--bf-gold-text);
	font: 700 15px/1 'DM Sans', sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 19px 30px;
	cursor: pointer;
	transition: background .15s;
}
.bfc-btn:hover { background: #b78d45; }
.bfc-btn:disabled { background: var(--bf-disabled-bg); color: var(--bf-disabled-text); cursor: not-allowed; }
.bfc-btn--block { display: block; width: 100%; margin-top: 22px; text-align: center; }
.bfc button:focus-visible, .bfc input:focus-visible, .bfc select:focus-visible {
	outline: 3px solid #1a5fd0;
	outline-offset: 2px;
}

.bfc-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.bfc-form-error {
	margin: 18px 0 0;
	background: #fdeceb;
	border-left: 4px solid #b3261e;
	color: #7a1610;
	padding: 12px 16px;
	border-radius: 8px;
	font-weight: 500;
}
.bfc-legal { margin: 16px 0 0; color: var(--bf-muted); font-size: 13px; text-align: center; }

@media (max-width: 760px) {
	.bfc { padding: 18px 12px 28px; }
	.bfc-section { margin-bottom: 12px; }
	.bfc-grid { gap: 10px; margin-bottom: 12px; }
	.bfc-fields, .bfc-toggle { gap: 10px 10px; margin-top: 0; }
	.bfc-card-body { padding: 10px 12px 0; }
	.bfc-card-body h3 { font-size: 17px; margin: 0 0 1px; line-height: 1.2; }
	.bfc .bfc-price { margin: 0; line-height: 1.25; }
	.bfc-qty {
		grid-template-columns: 38px 1fr 38px;
		margin: 6px 12px 0;
	}
	.bfc-qty button { height: 38px; font-size: 18px; }
	.bfc-qty-val { font-size: 15px; }
	.bfc .bfc-card-note { margin: 6px 12px 10px; font-size: 12px; line-height: 1.3; }
	.bfc-panel { padding: 16px 14px 14px; }
	.bfc-panel .bfc-sub { margin-bottom: 10px; }
	.bfc-field label { margin-bottom: 5px; }
	.bfc-field input, .bfc-field select { padding: 12px 12px; }
	.bfc-date-wrap input[type="date"] { padding-right: 42px; }
	.bfc-date-placeholder { left: 13px; }
	.bfc .bfc-hint { margin: 8px 0 0; line-height: 1.3; }
	.bfc-totalsbar { padding: 14px 16px 12px; gap: 4px 16px; }
	.bfc .bfc-tb-label { margin: 0 0 2px; line-height: 1.2; }
	.bfc .bfc-tb-value { margin: 0; line-height: 1.15; }
	.bfc .bfc-tb-included { margin: 6px 0 0; padding-top: 10px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
	.bfc * { transition: none !important; }
}
