/*
 * Black Cat Books store — styles for WooCommerce's native shop, product, cart, checkout and account pages.
 * Loaded only on WooCommerce pages (body.bcb-store). All colours, fonts, sizes and spacing come from the
 * shared --bcb-* design tokens defined in site.css.
 */

body.bcb-store {
	background: var(--bcb-bg);
	color: var(--bcb-ink);
	font-family: var(--bcb-sans);
	-webkit-font-smoothing: antialiased;
}

/* Theme wrappers */
body.bcb-store .site-content,
body.bcb-store #primary,
body.bcb-store .site-main,
body.bcb-store article.page,
body.bcb-store .entry-content {
	background: var(--bcb-bg);
	color: var(--bcb-ink);
}
body.bcb-store .site-content > .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}
body.bcb-store #primary {
	width: 100%;
	margin: 0;
	padding: 0;
	float: none;
	border: 0;
}
body.bcb-store-page .site-content #primary.content-area {
	max-width: 1240px;
	margin: 0 auto;
	padding: var(--bcb-section) var(--bcb-gutter);
}
body.bcb-store article.page,
body.bcb-store .entry-content,
body.bcb-store .ast-article-single {
	margin: 0;
	padding: 0;
	border: 0;
}
body.bcb-store a { color: var(--bcb-gold); text-decoration: none; transition: color 160ms; }
body.bcb-store a:hover { color: var(--bcb-ink); }
body.bcb-store h1, body.bcb-store h2, body.bcb-store h3, body.bcb-store h4 { color: var(--bcb-ink); font-family: var(--bcb-serif); font-weight: 400; }

/* Shared building blocks */
.bcb-section { padding-block: var(--bcb-section); border-top: 1px solid var(--bcb-line-soft); }
.bcb-section-first { border-top: 0; }
.bcb-container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--bcb-gutter); }
.bcb-section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
body.bcb-store .bcb-eyebrow { margin: 0; font-family: var(--bcb-sans); font-size: var(--bcb-fs-small); font-weight: 500; line-height: 1.3; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bcb-gold); }
body.bcb-store .bcb-section-title { margin: 0; font-family: var(--bcb-serif); font-size: var(--bcb-fs-h2); font-weight: 400; line-height: var(--bcb-lh-tight); color: var(--bcb-ink); }
body.bcb-store h1.bcb-section-title { font-size: var(--bcb-fs-h1); }
body.bcb-store .bcb-lead { margin: 0; font-size: var(--bcb-fs-lead); line-height: var(--bcb-lh-body); color: var(--bcb-ink-muted); }
body.bcb-store .bcb-body-text { margin: 0; font-size: var(--bcb-fs-body); line-height: var(--bcb-lh-body); color: var(--bcb-ink-muted); }
body.bcb-store .bcb-link-gold { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bcb-gold); }
body.bcb-store .bcb-link-gold:hover { color: var(--bcb-ink); }
.bcb-icon { display: inline-block; flex: none; width: 18px; height: 18px; }
.bcb-icon-sm { width: 14px; height: 14px; }
.bcb-icon-lg { width: 30px; height: 30px; }

/* Buttons: WooCommerce's own buttons take the design's primary button */
body.bcb-store .woocommerce a.button,
body.bcb-store .woocommerce button.button,
body.bcb-store .woocommerce input.button,
body.bcb-store .woocommerce #respond input#submit,
body.bcb-store a.button,
body.bcb-store button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: var(--bcb-btn-h);
	padding: 0 var(--bcb-btn-px);
	border: 1px solid transparent;
	border-radius: var(--bcb-radius);
	background: var(--bcb-red);
	color: var(--bcb-ink);
	font-family: var(--bcb-sans);
	font-size: var(--bcb-btn-fs);
	font-weight: 600;
	line-height: 1;
	letter-spacing: var(--bcb-ls-caps);
	text-transform: uppercase;
	text-align: center;
	box-shadow: none;
	transition: background-color 160ms, color 160ms, border-color 160ms;
}
body.bcb-store .woocommerce a.button:hover,
body.bcb-store .woocommerce button.button:hover,
body.bcb-store .woocommerce input.button:hover,
body.bcb-store a.button:hover,
body.bcb-store button.button:hover { background: var(--bcb-red-deep); color: var(--bcb-ink); }
body.bcb-store .woocommerce button.button:disabled,
body.bcb-store .woocommerce button.button:disabled[disabled] { background: var(--bcb-raised); color: var(--bcb-ink-dim); opacity: 1; padding: 0 24px; }
body.bcb-store .woocommerce a.button.loading::after,
body.bcb-store .woocommerce button.button.loading::after { position: static; margin-left: 8px; }
body.bcb-store .woocommerce a.added_to_cart { display: inline-block; margin-top: 4px; font-size: var(--bcb-fs-small); color: var(--bcb-gold); }

/* Form fields */
body.bcb-store .woocommerce form .form-row label,
body.bcb-store .woocommerce form label { color: var(--bcb-ink); font-size: var(--bcb-fs-body); font-weight: 500; line-height: 1.5; }
body.bcb-store .woocommerce form .form-row .required { color: #ef6b6e; text-decoration: none; }
body.bcb-store .woocommerce form .form-row .optional { color: var(--bcb-gold-muted); font-weight: 400; }
body.bcb-store .woocommerce input.input-text,
body.bcb-store .woocommerce textarea,
body.bcb-store .woocommerce select,
body.bcb-store .woocommerce input[type="email"],
body.bcb-store .woocommerce input[type="password"],
body.bcb-store .woocommerce input[type="text"],
body.bcb-store .woocommerce input[type="tel"],
body.bcb-store .woocommerce input[type="number"],
body.bcb-store .select2-container--default .select2-selection--single {
	box-sizing: border-box;
	min-height: var(--bcb-input-h);
	padding: 0 var(--bcb-input-px);
	border: 1px solid var(--bcb-line);
	border-radius: var(--bcb-radius);
	background: var(--bcb-field);
	color: var(--bcb-ink);
	font-family: var(--bcb-sans);
	font-size: var(--bcb-input-fs);
	box-shadow: none;
	color-scheme: dark;
}
body.bcb-store .woocommerce textarea { min-height: 140px; padding: 16px 20px; }
body.bcb-store .woocommerce input:focus,
body.bcb-store .woocommerce textarea:focus,
body.bcb-store .woocommerce select:focus { border-color: var(--bcb-gold); }
body.bcb-store .woocommerce ::placeholder,
body.bcb-store #review_form ::placeholder { color: var(--bcb-ink-dim); font-size: var(--bcb-placeholder-fs); opacity: 1; }
body.bcb-store .select2-container--default .select2-selection--single { display: flex; align-items: center; }
body.bcb-store .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--bcb-ink); line-height: 50px; }
body.bcb-store .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 12px; }
body.bcb-store .select2-dropdown { background: var(--bcb-field); border-color: var(--bcb-line); color: var(--bcb-ink); }
body.bcb-store .select2-search--dropdown .select2-search__field { background: var(--bcb-surface); color: var(--bcb-ink); border-color: var(--bcb-line); }
body.bcb-store .select2-container--default .select2-results__option--highlighted[aria-selected],
body.bcb-store .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--bcb-red); color: var(--bcb-ink); }

/* Notices */
body.bcb-store .woocommerce-message,
body.bcb-store .woocommerce-info,
body.bcb-store .woocommerce-error,
body.bcb-store .woocommerce-noreviews,
body.bcb-store .wc-block-components-notice-banner {
	margin: 0 0 24px;
	padding: 16px 20px 16px 48px;
	border: 1px solid var(--bcb-line);
	border-top: 2px solid var(--bcb-gold);
	border-radius: 3px;
	background: var(--bcb-surface);
	color: var(--bcb-ink);
	font-size: var(--bcb-fs-small);
	list-style: none;
}
body.bcb-store .woocommerce-error { border-top-color: var(--bcb-red); }
body.bcb-store .woocommerce-message::before,
body.bcb-store .woocommerce-info::before { color: var(--bcb-gold); }
body.bcb-store .woocommerce-error::before { color: var(--bcb-red); }
body.bcb-store .woocommerce-message .button,
body.bcb-store .woocommerce-info .button { min-height: var(--bcb-btn-h-sm); padding: 0 var(--bcb-btn-px-sm); font-size: var(--bcb-btn-fs-sm); }
/* Form actions (submit, place order, add to cart, cart updates) use the large size */
/* :is() lifts this above WooCommerce's and Astra's form-button rules (it takes its most specific selector). */
html body.bcb-store :is(div.product form.cart button.single_add_to_cart_button, table.shop_table.cart td.actions .button, #review_form #respond input#submit, .wc-proceed-to-checkout a.checkout-button, #place_order, .woocommerce-form-login__submit, .woocommerce-form-register__submit, .woocommerce-MyAccount-content button.button) { min-height: var(--bcb-btn-h-lg); padding: 0 var(--bcb-btn-px-lg); line-height: 1; }
html body.bcb-store :is(#review_form, .woocommerce) textarea::placeholder { font-size: var(--bcb-placeholder-fs); }
body.bcb-store a.button:focus-visible,
body.bcb-store button.button:focus-visible,
body.bcb-store input.button:focus-visible,
body.bcb-store #place_order:focus-visible { outline: 2px solid var(--bcb-gold); outline-offset: 2px; }

/* ---------- Catalogue ---------- */
.bcb-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 24px; margin-bottom: 40px; }
body.bcb-store .bcb-toolbar-count { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--bcb-fs-small); color: var(--bcb-gold); }
.bcb-sort { display: flex; align-items: center; gap: 12px; }
.bcb-sort-label { font-size: var(--bcb-fs-small); letter-spacing: 0.04em; text-transform: uppercase; color: var(--bcb-ink-muted); }
body.bcb-store .woocommerce-ordering { margin: 0; float: none; }
body.bcb-store .woocommerce-ordering select.orderby {
	box-sizing: border-box;
	min-width: 200px;
	min-height: var(--bcb-input-h-sm);
	padding: 0 36px 0 12px;
	border: 0;
	border-radius: 3px;
	background-color: var(--bcb-field);
	color: var(--bcb-ink);
	font-size: var(--bcb-input-fs);
}
.bcb-catalog { display: flex; align-items: flex-start; gap: 40px; }
.bcb-filters { flex: 0 0 300px; }
.bcb-filters > summary { display: none; }
.bcb-filter-panel { display: flex; flex-direction: column; gap: 40px; padding: 24px; border-radius: 6px; background: var(--bcb-raised); }
body.bcb-store .bcb-clear-filters { align-self: flex-start; margin: 0 0 -16px; font-size: var(--bcb-fs-small); letter-spacing: 0.04em; color: var(--bcb-gold); text-decoration: underline; text-underline-offset: 4px; }
body.bcb-store .bcb-clear-filters:hover { color: var(--bcb-ink); }
.bcb-filter-group { display: flex; flex-direction: column; gap: 12px; }
body.bcb-store .bcb-filter-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 4px; }
body.bcb-store .bcb-filter-option { display: flex; align-items: center; gap: 12px; font-size: var(--bcb-fs-small); line-height: 1.5; color: var(--bcb-ink); }
body.bcb-store .bcb-filter-option:hover { color: var(--bcb-gold); }
.bcb-checkbox { flex: none; width: 16px; height: 16px; border-radius: 3px; background: var(--bcb-paper); }
.bcb-filter-option.is-checked .bcb-checkbox { background: var(--bcb-red); }
.bcb-dispatch-note { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--bcb-surface); font-size: var(--bcb-fs-small); line-height: var(--bcb-lh-body); color: var(--bcb-ink-muted); }
body.bcb-store .bcb-dispatch-note p { margin: 0; }
body.bcb-store .bcb-dispatch-title { display: flex; align-items: center; gap: 8px; font-size: var(--bcb-fs-small); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bcb-gold); }
.bcb-catalog-results { display: flex; flex-direction: column; gap: 32px; flex: 1; min-width: 0; transition: opacity 120ms ease; }
/* While filters update in place: a light dim, no spinner, and the layout holds still. */
.bcb-catalog-results.is-loading { opacity: 0.55; pointer-events: none; }
.bcb-catalog-results > .woocommerce-info { margin: 0; }

.bcb-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 24px; border-radius: 6px; background: var(--bcb-raised); font-size: var(--bcb-fs-small); color: var(--bcb-ink-muted); }
body.bcb-store nav.woocommerce-pagination { margin: 0; }
body.bcb-store nav.woocommerce-pagination ul.page-numbers { display: flex; gap: 8px; margin: 0; border: 0; }
body.bcb-store nav.woocommerce-pagination ul li { border: 0; overflow: visible; }
body.bcb-store nav.woocommerce-pagination ul li a,
body.bcb-store nav.woocommerce-pagination ul li span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: var(--bcb-surface); color: var(--bcb-ink); font-size: var(--bcb-fs-small); }
body.bcb-store nav.woocommerce-pagination ul li span.current,
body.bcb-store nav.woocommerce-pagination ul li a:hover { background: var(--bcb-red); color: var(--bcb-ink); }

/* Book cards (catalogue + related) */
body.bcb-store ul.products {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bcb-gap);
	margin: 0;
	padding: 0;
	grid-template-columns: none;
}
body.bcb-store ul.products::before,
body.bcb-store ul.products::after { display: none; }
body.bcb-store ul.products li.product.bcb-card {
	display: flex;
	flex-direction: column;
	flex: 0 0 calc((100% - 2 * var(--bcb-gap)) / 3);
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	float: none;
	overflow: hidden;
	border-radius: 6px;
	background: var(--bcb-raised);
	text-align: left;
}
/* Square cover area with the whole cover shown on a dark plate: shorter cards, no cropped titles */
.bcb-card-media { position: relative; display: flex; align-items: flex-start; aspect-ratio: 4 / 5; padding: 12px; overflow: hidden; background: var(--bcb-surface); }
body.bcb-store ul.products li.product .bcb-card-media img.bcb-card-cover { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center center; }
.bcb-card-tag { position: relative; z-index: 1; padding: 3px 7px; border-radius: 3px; background: var(--bcb-bg); color: var(--bcb-ink); font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; }
.bcb-card-body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 20px; }
body.bcb-store ul.products li.product .bcb-card-title { margin: 0; padding: 0; font-family: var(--bcb-serif); font-size: var(--bcb-fs-h4); font-weight: 400; line-height: 1.3; color: var(--bcb-ink); }
.bcb-card-label { display: none; margin: 0 0 4px; font-size: var(--bcb-fs-xs); font-weight: 600; line-height: 1.5; letter-spacing: var(--bcb-ls-wide); text-transform: uppercase; color: var(--bcb-gold); }
body.bcb-store .bcb-card-author { margin: 0; font-size: var(--bcb-fs-small); line-height: var(--bcb-lh-body); letter-spacing: 0.04em; color: var(--bcb-ink-dim); }
.bcb-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
body.bcb-store ul.products li.product .bcb-card-price,
body.bcb-store ul.products li.product .price { margin: 0; font-size: var(--bcb-fs-small); font-weight: 600; color: var(--bcb-gold); }
body.bcb-store .price .woocommerce-Price-amount,
body.bcb-store .price ins { color: inherit; text-decoration: none; }
body.bcb-store .price del { opacity: 0.6; color: var(--bcb-ink-muted); }
.bcb-stock { display: inline-flex; align-items: center; gap: 4px; font-size: var(--bcb-fs-xs); color: var(--bcb-ink-muted); }
.bcb-stock-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--bcb-gold); }
.bcb-stock.is-low .bcb-stock-dot { background: var(--bcb-red); }
.bcb-card-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
body.bcb-store ul.products li.product .bcb-card-actions .button { width: 100%; margin: 0; }

@media (max-width: 1024px) {
	.bcb-filters { flex-basis: 240px; }
	body.bcb-store .bcb-catalog ul.products li.product.bcb-card { flex-basis: calc((100% - var(--bcb-gap)) / 2); }
}
@media (max-width: 640px) {
	.bcb-toolbar { justify-content: space-between; }
	body.bcb-store .bcb-toolbar-count { flex-basis: 100%; }
	body.bcb-store .woocommerce-ordering select.orderby { min-width: 0; }
	.bcb-catalog { flex-direction: column; align-items: stretch; gap: 20px; }
	.bcb-filters { flex-basis: auto; }
	.bcb-filters > summary {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		box-sizing: border-box;
		min-height: var(--bcb-btn-h);
		padding: 0 var(--bcb-btn-px-sm);
		border: 1px solid var(--bcb-ink);
		border-radius: 3px;
		color: var(--bcb-ink);
		font-size: var(--bcb-fs-small);
		font-weight: 600;
		cursor: pointer;
		list-style: none;
	}
	.bcb-filters > summary::-webkit-details-marker { display: none; }
	.bcb-filters[open] > summary { margin-bottom: 16px; }
	/* One book per row with the cover beside its details: two columns left ~160px cards with 11px buttons. */
	body.bcb-store .bcb-catalog ul.products { flex-direction: column; gap: 16px; }
	body.bcb-store .bcb-catalog ul.products li.product.bcb-card { flex: none; flex-direction: row; align-items: flex-start; }
	.bcb-catalog .bcb-card-media { flex: 0 0 36%; max-width: 160px; aspect-ratio: 2 / 3; background: none; }
	body.bcb-store .bcb-catalog ul.products li.product .bcb-card-media img.bcb-card-cover { object-fit: cover; object-position: center top; }
	.bcb-catalog .bcb-card-tag { display: none; }
	.bcb-catalog .bcb-card-label { display: block; }
	.bcb-catalog .bcb-card-body { align-self: stretch; min-width: 0; padding: 16px; }
	.bcb-catalog .bcb-card-meta { flex-wrap: wrap; justify-content: flex-start; gap: 4px 16px; margin-top: 8px; }
	.bcb-catalog .bcb-card-actions { align-items: flex-start; padding-top: 12px; }
	.bcb-pagination { padding: 12px 16px; }
	/* Related row becomes a swipeable carousel */
	.bcb-related ul.products { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
	body.bcb-store .bcb-related ul.products li.product.bcb-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- Single book ---------- */
.bcb-product { display: flex; align-items: flex-start; gap: 64px; }
.bcb-product-media { flex: 0 0 40%; max-width: 440px; }
body.bcb-store .bcb-product-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bcb-product-body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; flex: 1; min-width: 0; }
.bcb-badge { padding: 4px 8px; background: var(--bcb-gold); color: var(--bcb-gold-ink); font-size: var(--bcb-fs-small); line-height: 1.3; }
body.bcb-store .bcb-product-title { margin: 0; font-family: var(--bcb-serif); font-size: var(--bcb-fs-h1); font-weight: 400; line-height: var(--bcb-lh-tight); color: var(--bcb-ink); }
.bcb-product-desc { display: flex; flex-direction: column; gap: 20px; font-size: var(--bcb-fs-body); line-height: var(--bcb-lh-body); color: var(--bcb-ink-muted); }
body.bcb-store .bcb-product-desc p { margin: 0; }
.bcb-rating { display: flex; align-items: center; gap: 16px; }
.bcb-stars { display: inline-flex; align-items: center; gap: 4px; color: var(--bcb-ink); }
.bcb-stars .is-filled { fill: currentColor; }
.bcb-rating-count { font-size: var(--bcb-fs-xs); color: var(--bcb-ink-dim); }
body.bcb-store .bcb-product-byline { margin: 0; font-size: var(--bcb-fs-lead); color: var(--bcb-gold); }
/* div.product p.* keeps this ahead of WooCommerce's own price size */
body.bcb-store div.product p.bcb-product-price { margin: 0; font-size: var(--bcb-fs-h2); font-weight: 700; line-height: 1.1; color: var(--bcb-ink); }
.bcb-product-cta { width: 100%; }
body.bcb-store .bcb-product-cta form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
body.bcb-store .bcb-product-cta .quantity { margin: 0; }
body.bcb-store .bcb-product-cta .quantity input.qty { box-sizing: border-box; width: 80px; height: var(--bcb-input-h); min-height: var(--bcb-input-h); padding: 0 8px; font-size: var(--bcb-input-fs); text-align: center; }
body.bcb-store .bcb-product-cta .single_add_to_cart_button { flex: 0 1 auto; }
.bcb-excerpt { width: 100%; padding: 8px 20px; border-left: 1px solid var(--bcb-line); font-family: var(--bcb-serif); font-size: var(--bcb-fs-lead); font-style: italic; line-height: var(--bcb-lh-body); color: var(--bcb-ink-muted); }
body.bcb-store .bcb-excerpt p { margin: 0 0 8px; }
body.bcb-store .bcb-excerpt .bcb-eyebrow { font-style: normal; margin-bottom: 8px; }
body.bcb-store .bcb-excerpt p:last-child { margin: 0; font-family: var(--bcb-sans); font-size: var(--bcb-fs-small); font-style: normal; color: var(--bcb-gold); }
.bcb-share { display: flex; flex-direction: column; gap: 12px; }
body.bcb-store .bcb-share-label { margin: 0; font-size: var(--bcb-fs-small); color: var(--bcb-ink-muted); }
.bcb-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
body.bcb-store .bcb-share-status { font-size: var(--bcb-fs-small); color: var(--bcb-gold); opacity: 0; transition: opacity 160ms; }
body.bcb-store .bcb-share-status.is-visible { opacity: 1; }
body.bcb-store .bcb-share-btn { display: inline-flex; align-items: center; justify-content: center; width: var(--bcb-btn-h); height: var(--bcb-btn-h); padding: 0; border: 1px solid var(--bcb-ink); border-radius: 3px; background: transparent; color: var(--bcb-ink); cursor: pointer; transition: color 160ms, border-color 160ms; }
body.bcb-store .bcb-share-btn:hover,
body.bcb-store .bcb-share-btn.is-copied { border-color: var(--bcb-gold); color: var(--bcb-gold); }

.bcb-spec-bar { background: var(--bcb-gold); color: var(--bcb-gold-ink); }
.bcb-spec-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin: 0; padding-block: 24px; }
.bcb-spec-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 110px; text-align: center; }
body.bcb-store .bcb-spec-label { margin: 0; font-size: var(--bcb-fs-small); font-weight: 600; line-height: 1.3; color: var(--bcb-gold-ink); }
body.bcb-store .bcb-spec-value { margin: 0; font-size: var(--bcb-fs-small); line-height: 1.3; color: var(--bcb-gold-ink); }

body.bcb-store div.product .bcb-product-price,
body.bcb-store div.product .bcb-product-price .woocommerce-Price-amount { color: var(--bcb-ink); }

/* Reviews */
body.bcb-store #review_form textarea,
body.bcb-store #review_form input[type="text"],
body.bcb-store #review_form input[type="email"] { width: 100%; min-height: var(--bcb-input-h); padding: 12px 20px; border: 1px solid var(--bcb-line); border-radius: 3px; background: var(--bcb-field); color: var(--bcb-ink); font-family: var(--bcb-sans); font-size: var(--bcb-fs-body); color-scheme: dark; }
body.bcb-store #review_form textarea { min-height: 140px; }
body.bcb-store #reviews #review_form label { color: var(--bcb-ink); font-size: var(--bcb-fs-small); font-weight: 500; }
body.bcb-store #review_form #respond .form-submit input#submit,
body.bcb-store #review_form #respond input#submit { border: 0; border-radius: var(--bcb-radius); background: var(--bcb-red); color: var(--bcb-ink); font-family: var(--bcb-sans); font-size: var(--bcb-btn-fs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; }
body.bcb-store #review_form #respond input#submit:hover { background: var(--bcb-red-deep); }
body.bcb-store #review_form .comment-form-cookies-consent label { font-weight: 400; color: var(--bcb-ink-muted); }
body.bcb-store .bcb-reviews #reviews { max-width: 820px; }
body.bcb-store .bcb-reviews #reviews h2,
body.bcb-store .bcb-reviews .comment-reply-title { margin: 0 0 24px; font-family: var(--bcb-serif); font-size: var(--bcb-fs-h4); color: var(--bcb-ink); }
body.bcb-store #reviews #comments ol.commentlist li .comment-text { border-color: var(--bcb-line); }
body.bcb-store #review_form #respond { padding: 32px; border-radius: 6px; background: var(--bcb-surface); }
body.bcb-store #review_form #respond p { color: var(--bcb-ink-muted); }
body.bcb-store .comment-form-rating .stars a { color: var(--bcb-gold); }
body.bcb-store .star-rating span::before,
body.bcb-store .star-rating::before { color: var(--bcb-gold); }

.bcb-related .bcb-section-head { margin-bottom: 40px; }
body.bcb-store section.related.products { margin: 0; padding: 0; }

@media (max-width: 1024px) {
	.bcb-product { gap: 40px; }
}
@media (max-width: 640px) {
	.bcb-product { flex-direction: column; align-items: stretch; }
	.bcb-product-media { flex-basis: auto; width: 100%; max-width: 420px; margin-inline: auto; }
	body.bcb-store .bcb-product-byline { font-size: var(--bcb-fs-lead); }
	body.bcb-store .bcb-product-cta .single_add_to_cart_button { flex: 1 1 auto; padding: 0 24px; }
	.bcb-spec-list { justify-content: flex-start; row-gap: 20px; }
	.bcb-spec-item { flex: 0 0 calc((100% - 48px) / 3); }
}

/* ---------- Cart, checkout, confirmation, account ---------- */
.bcb-commerce-head { flex: 0 0 100%; width: 100%; }
.bcb-commerce-head .bcb-section-head { margin-bottom: 40px; }
body.bcb-store .bcb-confirm-number { margin: -24px 0 16px; font-family: var(--bcb-serif); font-size: var(--bcb-fs-h3); color: var(--bcb-gold); }
.bcb-commerce-head > .bcb-lead { max-width: 720px; margin-bottom: 40px; }
.bcb-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 40px; padding: 0; list-style: none; }
.bcb-step { display: flex; align-items: center; gap: 8px; font-size: var(--bcb-fs-small); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bcb-ink-dim); }
.bcb-step-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--bcb-line); border-radius: 999px; font-size: var(--bcb-fs-small); color: var(--bcb-ink-muted); }
.bcb-step.is-done { color: var(--bcb-ink-muted); }
.bcb-step.is-current { color: var(--bcb-gold); }
.bcb-step.is-current .bcb-step-num { border-color: var(--bcb-gold); background: var(--bcb-gold); color: var(--bcb-gold-ink); }
.bcb-step-rule { width: 40px; height: 1px; background: var(--bcb-line); }
@media (max-width: 1024px) { .bcb-step-rule { width: 24px; } }
@media (max-width: 640px) {
	.bcb-steps { gap: 8px; }
	.bcb-step-rule, .bcb-step-label { display: none; }
	.bcb-step.is-current .bcb-step-label { display: inline; }
}

/* Cart layout: items beside the order summary */
body.woocommerce-cart.bcb-store .entry-content > .woocommerce { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
body.woocommerce-cart.bcb-store .entry-content > .woocommerce > * { flex: 0 0 100%; }
body.woocommerce-cart.bcb-store .entry-content > .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
body.woocommerce-cart.bcb-store .entry-content > .woocommerce > form.woocommerce-cart-form { flex: 1 1 0; min-width: 0; margin: 0; }
body.woocommerce-cart.bcb-store .entry-content > .woocommerce > .cart-collaterals { flex: 0 0 380px; width: auto; margin: 0; }

body.bcb-store table.shop_table.cart { display: block; margin: 0 0 24px; border: 0; border-top: 1px solid var(--bcb-line); border-radius: 0; background: transparent; }
body.bcb-store table.shop_table.cart thead { display: none; }
body.bcb-store table.shop_table.cart tbody { display: block; }
body.bcb-store table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 88px auto 1fr auto;
	grid-template-areas: "thumb name name subtotal" "thumb price price subtotal" "thumb qty remove remove";
	column-gap: 20px;
	row-gap: 4px;
	align-items: center;
	padding: 20px 0;
	border-bottom: 1px solid var(--bcb-line);
}
body.bcb-store table.shop_table.cart tr.cart_item td { display: block; padding: 0; border: 0; background: transparent; text-align: left; }
body.bcb-store table.shop_table.cart tr.cart_item td::before { display: none; content: none; }
body.bcb-store table.shop_table.cart td.product-thumbnail { display: block; grid-area: thumb; align-self: start; }
body.bcb-store table.shop_table.cart td.product-thumbnail img { display: block; width: 88px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; border-radius: 3px; }
body.bcb-store table.shop_table.cart td.product-name { grid-area: name; }
body.bcb-store table.shop_table.cart td.product-name > a { font-family: var(--bcb-serif); font-size: var(--bcb-fs-h4); line-height: 1.3; color: var(--bcb-ink); }
body.bcb-store .bcb-cart-byline { margin: 4px 0 0; font-size: var(--bcb-fs-small); letter-spacing: 0.04em; color: var(--bcb-ink-dim); }
body.bcb-store table.shop_table.cart td.product-price { grid-area: price; font-size: var(--bcb-fs-small); font-weight: 600; color: var(--bcb-gold); }
body.bcb-store table.shop_table.cart td.product-quantity { grid-area: qty; margin-top: 8px; }
body.bcb-store table.shop_table.cart td.product-quantity input.qty { box-sizing: border-box; width: 72px; height: var(--bcb-input-h); min-height: var(--bcb-input-h); padding: 0 6px; font-size: var(--bcb-input-fs); text-align: center; }
body.bcb-store table.shop_table.cart td.product-remove { grid-area: remove; margin-top: 8px; }
/* Remove item: a clearly visible red control with a 36px click area. The link's own "×" is hidden and
   replaced by an icon and label; its aria-label ("Remove … from cart") is kept for screen readers. */
body.bcb-store table.shop_table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: auto;
	height: auto;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--bcb-red);
	border-radius: var(--bcb-radius);
	background: transparent;
	color: transparent !important;
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	transition: background-color 160ms, border-color 160ms;
}
/* Astra draws its own remove icon as an absolutely positioned circle in ::before; reset it to an inline ×. */
body.bcb-store table.shop_table.cart td.product-remove a.remove::before { content: "\00d7"; position: static; display: inline; width: auto; height: auto; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; -webkit-mask: none; mask: none; font-family: var(--bcb-sans); font-size: 18px; font-weight: 400; line-height: 1; color: var(--bcb-red); }
body.bcb-store table.shop_table.cart td.product-remove a.remove::after { content: "Remove"; font-family: var(--bcb-sans); font-size: var(--bcb-fs-xs); font-weight: 600; letter-spacing: var(--bcb-ls-caps); text-transform: uppercase; color: var(--bcb-ink); }
body.bcb-store table.shop_table.cart td.product-remove a.remove:hover { background: var(--bcb-red); border-color: var(--bcb-red); }
body.bcb-store table.shop_table.cart td.product-remove a.remove:hover::before,
body.bcb-store table.shop_table.cart td.product-remove a.remove:hover::after { color: var(--bcb-ink); }
body.bcb-store table.shop_table.cart td.product-remove a.remove:focus-visible { outline: 2px solid var(--bcb-gold); outline-offset: 2px; }
body.bcb-store table.shop_table.cart td.product-subtotal { grid-area: subtotal; align-self: start; font-size: var(--bcb-fs-h4); font-weight: 600; color: var(--bcb-ink); text-align: right; }
body.bcb-store table.shop_table.cart tr:not(.cart_item) { display: block; }
body.bcb-store table.shop_table.cart td.actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 0 0; border: 0; background: transparent; text-align: left; }
body.bcb-store table.shop_table.cart td.actions::before { display: none; }
body.bcb-store table.shop_table.cart td.actions .coupon { display: flex; gap: 8px; float: none; }
body.bcb-store table.shop_table.cart td.actions .coupon .input-text { width: 220px; margin: 0; }
body.bcb-store table.shop_table.cart td.actions .coupon .button,
body.bcb-store table.shop_table.cart td.actions > .button { background: transparent; border-color: var(--bcb-ink); color: var(--bcb-ink); float: none; width: auto; }
body.bcb-store table.shop_table.cart td.actions .coupon .button:hover,
body.bcb-store table.shop_table.cart td.actions > .button:hover { background: transparent; border-color: var(--bcb-gold); color: var(--bcb-gold); }
.bcb-continue { margin-top: 8px; }

/* Order summary card (cart totals + checkout review) */
body.bcb-store .cart-collaterals .cart_totals,
body.bcb-store #order_review {
	float: none;
	width: 100%;
	padding: 32px;
	border: 1px solid var(--bcb-line);
	border-radius: 6px;
	background: var(--bcb-surface);
}
body.bcb-store .cart-collaterals .cart_totals > h2,
body.bcb-store form.checkout #order_review_heading {
	padding: 0;
	border: 0;
	background: transparent;
	line-height: 1.3;
}
body.bcb-store .cart-collaterals .cart_totals > h2,
body.bcb-store #order_review_heading {
	margin: 0 0 16px;
	font-family: var(--bcb-serif);
	font-size: var(--bcb-fs-h3);
	font-weight: 400;
	line-height: var(--bcb-lh-tight);
	color: var(--bcb-ink);
}
body.bcb-store .cart_totals table.shop_table,
body.bcb-store #order_review table.shop_table { margin: 0; border: 0; border-radius: 0; background: transparent; }
body.bcb-store .cart_totals table.shop_table th,
body.bcb-store .cart_totals table.shop_table td,
body.bcb-store #order_review table.shop_table th,
body.bcb-store #order_review table.shop_table td { padding: 8px 0; border: 0; background: transparent; color: var(--bcb-ink-muted); font-size: var(--bcb-fs-small); font-weight: 400; vertical-align: top; }
body.bcb-store .cart_totals table.shop_table td,
body.bcb-store #order_review table.shop_table td:last-child { color: var(--bcb-ink); text-align: right; }
body.bcb-store .cart_totals table.shop_table td::before { display: none; }
body.bcb-store .cart_totals table.shop_table tr { display: table-row; }
body.bcb-store .cart_totals tr.order-total th,
body.bcb-store .cart_totals tr.order-total td,
body.bcb-store #order_review tr.order-total th,
body.bcb-store #order_review tr.order-total td { padding-top: 16px; border-top: 1px solid var(--bcb-line); font-size: var(--bcb-fs-h4); font-weight: 600; color: var(--bcb-ink); }
body.bcb-store tr.order-total .woocommerce-Price-amount { font-size: var(--bcb-fs-h3); color: var(--bcb-gold); }
body.bcb-store #order_review table.shop_table thead th { padding-bottom: 12px; font-size: var(--bcb-fs-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bcb-ink-dim); }
body.bcb-store #order_review td.product-name { color: var(--bcb-ink); }
body.bcb-store ul#shipping_method { margin: 0; }
body.bcb-store ul#shipping_method li { margin: 0 0 8px; color: var(--bcb-ink); text-align: left; }
/* A single rate has no radio button: drop the radio indent and line it up with the other prices. */
body.bcb-store ul#shipping_method li:has(> input[type=hidden]) { padding-left: 0; text-align: right; }
body.bcb-store ul#shipping_method li:only-child { margin-bottom: 0; }
body.bcb-store .cart_totals .woocommerce-shipping-destination,
body.bcb-store .cart_totals .woocommerce-shipping-calculator > p { margin: 4px 0 0; text-align: right; }
body.bcb-store .cart_totals form.woocommerce-shipping-calculator { text-align: right; }
body.bcb-store .cart_totals .woocommerce-shipping-calculator .shipping-calculator-button { display: inline-block; margin-top: 4px; }
body.bcb-store .cart_totals .shipping-calculator-form { text-align: left; }
body.bcb-store .woocommerce-shipping-destination,
body.bcb-store .woocommerce-shipping-calculator { font-size: var(--bcb-fs-small); color: var(--bcb-ink-dim); text-align: left; }
body.bcb-store .wc-proceed-to-checkout { padding: 16px 0 0; }
body.bcb-store .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; margin: 0; }

/* Checkout layout */
body.bcb-store form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	grid-template-rows: auto 1fr;
	column-gap: 40px;
	align-items: start;
}
body.bcb-store form.checkout > * { grid-column: 1; }
body.bcb-store form.checkout.woocommerce-checkout > #customer_details,
body.bcb-store form.checkout.woocommerce-checkout > #order_review_heading,
body.bcb-store form.checkout.woocommerce-checkout > #order_review { float: none; width: auto; max-width: none; margin-right: 0; margin-left: 0; }
body.bcb-store #order_review table.woocommerce-checkout-review-order-table,
body.bcb-store #order_review table.woocommerce-checkout-review-order-table tr,
body.bcb-store #order_review table.woocommerce-checkout-review-order-table th,
body.bcb-store #order_review table.woocommerce-checkout-review-order-table td { background: transparent; border-color: var(--bcb-line); }
body.bcb-store #order_review #payment.woocommerce-checkout-payment { background: transparent; border: 0; }
body.woocommerce-checkout.bcb-store form.checkout.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout.bcb-store form.checkout.woocommerce-checkout #order_review { border-color: var(--bcb-line); box-shadow: none; }
body.bcb-store #order_review #payment .woocommerce-notice,
body.bcb-store #order_review #payment li.woocommerce-notice { background: var(--bcb-field); color: var(--bcb-ink-muted); }
body.bcb-store form.checkout > #customer_details { grid-column: 1; grid-row: 1 / span 2; }
body.bcb-store form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin-bottom: 0; padding: 32px 32px 16px; border: 1px solid var(--bcb-line); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--bcb-surface); }
body.bcb-store form.checkout > #order_review { grid-column: 2; grid-row: 2; padding-top: 0; border-top: 0; border-radius: 0 0 6px 6px; }
body.bcb-store #customer_details.col2-set { display: flex; flex-direction: column; gap: 24px; width: 100%; float: none; }
body.bcb-store #customer_details .col-1,
body.bcb-store #customer_details .col-2 { float: none; width: 100%; max-width: none; padding: 48px; border-radius: 6px; background: var(--bcb-surface); }
body.bcb-store #customer_details .col-2:not(:has(*:not(.woocommerce-shipping-fields:empty))) { display: none; }
body.bcb-store .woocommerce-billing-fields h3,
body.bcb-store .woocommerce-shipping-fields h3,
body.bcb-store .woocommerce-additional-fields h3 { margin: 0 0 24px; font-family: var(--bcb-serif); font-size: var(--bcb-fs-h3); font-weight: 400; line-height: var(--bcb-lh-tight); color: var(--bcb-ink); }
/* A checkbox inside an h3: set it like the form's other labels, not as a heading. */
body.bcb-store .woocommerce-shipping-fields h3#ship-to-different-address { margin: 0; font-family: var(--bcb-sans); font-size: var(--bcb-fs-body); font-weight: 500; line-height: var(--bcb-lh-body); }
body.bcb-store #ship-to-different-address label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: var(--bcb-fs-body); font-weight: 500; letter-spacing: 0; color: var(--bcb-ink); cursor: pointer; }
body.bcb-store #ship-to-different-address input[type=checkbox],
body.bcb-store .woocommerce-form__label-for-checkbox input[type=checkbox] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--bcb-gold); }
body.bcb-store form.checkout .woocommerce-form__label-for-checkbox input[type=checkbox] { margin-top: 3px; }
body.bcb-store form.checkout .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: flex-start; gap: 10px; margin: 16px 0 24px; font-size: var(--bcb-fs-body); font-weight: 500; color: var(--bcb-ink); cursor: pointer; }
body.bcb-store .woocommerce form .form-row { margin: 0 0 20px; padding: 0; }
body.bcb-store #payment { border-radius: 0; background: transparent; }
body.bcb-store #payment ul.payment_methods { padding: 16px 0; border-bottom: 1px solid var(--bcb-line); }
body.bcb-store #payment ul.payment_methods li { color: var(--bcb-ink); }
body.bcb-store #payment div.payment_box { border-radius: 3px; background: var(--bcb-field); color: var(--bcb-ink-muted); }
body.bcb-store #payment div.payment_box::before { border-bottom-color: var(--bcb-field); }
body.bcb-store #payment .woocommerce-info { margin: 0; padding-left: 20px; }
body.bcb-store #payment .woocommerce-info::before { display: none; }
body.bcb-store #payment div.form-row.place-order { margin: 0; padding: 16px 0 0; }
body.bcb-store .woocommerce-privacy-policy-text,
body.bcb-store .woocommerce-terms-and-conditions-wrapper { font-size: var(--bcb-fs-small); color: var(--bcb-ink-dim); }
body.bcb-store #place_order { float: none; width: 100%; }
body.bcb-store .woocommerce-form-coupon-toggle .woocommerce-info,
body.bcb-store .woocommerce-form-login-toggle .woocommerce-info { margin-bottom: 24px; }
body.bcb-store form.checkout_coupon,
body.bcb-store form.woocommerce-form-login { margin: 0 0 24px; padding: 32px; border: 1px solid var(--bcb-line); border-radius: 6px; background: var(--bcb-surface); }

/* Order received */
body.bcb-store .woocommerce-order { color: var(--bcb-ink-muted); }
body.bcb-store .woocommerce-order .woocommerce-thankyou-order-received { display: none; }
body.bcb-store ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 40px; padding: 24px 32px; border-radius: 6px; background: var(--bcb-surface); list-style: none; }
body.bcb-store ul.woocommerce-order-overview li { margin: 0; padding: 0 24px 0 0; border-right: 1px solid var(--bcb-line); font-size: var(--bcb-fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bcb-ink-dim); }
body.bcb-store ul.woocommerce-order-overview li:last-child { border: 0; }
body.bcb-store ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: var(--bcb-fs-small); letter-spacing: 0; text-transform: none; color: var(--bcb-ink); }
body.bcb-store .woocommerce-order-details,
body.bcb-store .woocommerce-customer-details { margin-bottom: 40px; }
body.bcb-store .woocommerce-order-details__title,
body.bcb-store .woocommerce-column__title { font-family: var(--bcb-serif); font-size: var(--bcb-fs-h3); color: var(--bcb-ink); }
body.bcb-store table.woocommerce-table--order-details,
body.bcb-store .woocommerce-MyAccount-content table.shop_table { border: 1px solid var(--bcb-line); border-radius: 6px; background: var(--bcb-surface); }
body.bcb-store table.woocommerce-table--order-details th,
body.bcb-store table.woocommerce-table--order-details td,
body.bcb-store .woocommerce-MyAccount-content table.shop_table th,
body.bcb-store .woocommerce-MyAccount-content table.shop_table td { padding: 12px 20px; border-color: var(--bcb-line); color: var(--bcb-ink); font-size: var(--bcb-fs-small); }
body.bcb-store .woocommerce-customer-details address { padding: 24px; border: 1px solid var(--bcb-line); border-radius: 6px; background: var(--bcb-surface); color: var(--bcb-ink-muted); font-style: normal; }

/* My account */
body.bcb-store #customer_login.col2-set { display: flex; gap: 40px; width: 100%; }
body.bcb-store #customer_login .u-column1,
body.bcb-store #customer_login .u-column2 { flex: 1 1 0; float: none; width: auto; min-width: 0; padding: 48px; border-radius: 6px; background: var(--bcb-surface); }
body.bcb-store #customer_login h2 { margin: 0 0 24px; font-family: var(--bcb-serif); font-size: var(--bcb-fs-h3); font-weight: 400; line-height: var(--bcb-lh-tight); color: var(--bcb-ink); }
body.bcb-store form.woocommerce-form-login,
body.bcb-store form.woocommerce-form-register { margin: 0; padding: 0; border: 0; background: transparent; }
body.bcb-store .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: var(--bcb-fs-small); }
body.bcb-store .woocommerce-LostPassword { margin: 16px 0 0; font-size: var(--bcb-fs-small); }
body.bcb-store.woocommerce-account .entry-content > .woocommerce { display: flex; flex-wrap: wrap; gap: 40px; }
body.bcb-store.woocommerce-account .entry-content > .woocommerce > * { flex: 0 0 100%; }
body.bcb-store.woocommerce-account .entry-content > .woocommerce > .woocommerce-MyAccount-navigation { flex: 0 0 240px; float: none; width: auto; }
body.bcb-store.woocommerce-account .entry-content > .woocommerce > .woocommerce-MyAccount-content { flex: 1 1 0; float: none; width: auto; min-width: 0; color: var(--bcb-ink-muted); }
body.bcb-store .woocommerce-MyAccount-navigation ul { margin: 0; padding: 24px; border-radius: 6px; background: var(--bcb-raised); list-style: none; }
body.bcb-store .woocommerce-MyAccount-navigation ul li { margin: 0; padding: 0; border-bottom: 1px solid var(--bcb-line); }
body.bcb-store .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: 0; }
body.bcb-store .woocommerce-MyAccount-navigation ul li a { display: block; padding: 12px 0; font-size: var(--bcb-fs-small); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bcb-ink); }
body.bcb-store .woocommerce-MyAccount-navigation ul li.is-active a,
body.bcb-store .woocommerce-MyAccount-navigation ul li a:hover { color: var(--bcb-gold); }
body.woocommerce-account.bcb-store .woocommerce-MyAccount-navigation ul { border: 0; background: var(--bcb-raised); }
body.woocommerce-account.bcb-store .woocommerce-MyAccount-navigation ul li a,
body.woocommerce-account.bcb-store .woocommerce-MyAccount-navigation ul li.is-active a { border: 0; background: transparent; box-shadow: none; }
body.woocommerce-account.bcb-store .woocommerce-MyAccount-navigation ul li { border: 0; border-bottom: 1px solid var(--bcb-line); }
body.woocommerce-account.bcb-store .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: 0; }
body.woocommerce-account.bcb-store .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--bcb-gold); }
body.bcb-store .woocommerce-MyAccount-content mark { background: transparent; color: var(--bcb-gold); }
body.bcb-store .woocommerce-Addresses .woocommerce-Address { padding: 24px; border-radius: 6px; background: var(--bcb-surface); }
body.bcb-store .woocommerce-Addresses .woocommerce-Address-title h2 { font-size: var(--bcb-fs-h3); }

/* Empty cart */
body.bcb-store .wc-empty-cart-message .cart-empty { font-family: var(--bcb-serif); font-size: var(--bcb-fs-h3); }
body.bcb-store p.return-to-shop { margin: 0; }

@media (max-width: 1024px) {
	body.woocommerce-cart.bcb-store .entry-content > .woocommerce > form.woocommerce-cart-form,
	body.woocommerce-cart.bcb-store .entry-content > .woocommerce > .cart-collaterals { flex: 0 0 100%; }
	body.bcb-store form.checkout { grid-template-columns: minmax(0, 1fr); }
	body.bcb-store form.checkout > #order_review_heading { grid-column: 1; grid-row: 1; }
	body.bcb-store form.checkout > #order_review { grid-column: 1; grid-row: 2; margin-bottom: 40px; }
	body.bcb-store form.checkout > #customer_details { grid-column: 1; grid-row: 3; }
	body.bcb-store.woocommerce-account .entry-content > .woocommerce > .woocommerce-MyAccount-navigation,
	body.bcb-store.woocommerce-account .entry-content > .woocommerce > .woocommerce-MyAccount-content { flex: 0 0 100%; }
}
@media (max-width: 640px) {
	body.bcb-store table.shop_table.cart tr.cart_item {
		grid-template-columns: 64px auto 1fr;
		grid-template-areas: "thumb name name" "thumb price price" "thumb subtotal subtotal" "thumb qty remove";
		column-gap: 16px;
		align-items: start;
	}
	/* WooCommerce's small-screen sheet right-aligns responsive table cells with !important */
	body.bcb-store table.shop_table.cart tr.cart_item td { text-align: left !important; }
	body.bcb-store table.shop_table.cart tr.cart_item td::before { display: none !important; }
	body.bcb-store table.shop_table.cart tr.cart_item td.product-remove { text-align: right !important; }
	body.bcb-store table.shop_table.cart td.product-thumbnail img { width: 64px; }
	body.bcb-store table.shop_table.cart td.product-subtotal { text-align: left; font-size: var(--bcb-fs-body); }
	body.bcb-store table.shop_table.cart td.actions .coupon { flex: 1 1 100%; }
	body.bcb-store table.shop_table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
	body.bcb-store table.shop_table.cart td.actions > .button { width: 100%; }
	body.bcb-store .cart-collaterals .cart_totals,
	body.bcb-store #order_review { padding: 20px; }
	body.bcb-store form.checkout > #order_review_heading { padding: 20px 20px 12px; }
	body.bcb-store #customer_details .col-1,
	body.bcb-store #customer_details .col-2,
	body.bcb-store #customer_login .u-column1,
	body.bcb-store #customer_login .u-column2 { padding: 24px; }
	body.bcb-store #customer_login.col2-set { flex-direction: column; }
	body.bcb-store .woocommerce form .form-row-first,
	body.bcb-store .woocommerce form .form-row-last { float: none; width: 100%; }
}

/* Coupon forms: WooCommerce writes its "Please enter a coupon code" error straight after the field; keep the
   field and button on one line and drop the error onto its own line underneath them. */
body.bcb-store form.checkout_coupon { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
body.bcb-store form.checkout_coupon .form-row-first,
body.bcb-store form.checkout_coupon .form-row-last { display: contents; }
body.bcb-store form.checkout_coupon .form-row-first .input-text { flex: 1 1 240px; max-width: 360px; margin: 0; }
body.bcb-store form.checkout_coupon .form-row-last .button { flex: 0 0 auto; min-height: var(--bcb-input-h); margin: 0; }
body.bcb-store form.checkout_coupon .clear { display: none; }
body.bcb-store table.shop_table.cart td.actions .coupon { flex-wrap: wrap; }
body.bcb-store .coupon-error-notice { order: 10; flex: 0 0 100%; display: block; margin: 0; font-size: var(--bcb-fs-small); color: var(--color-red, #c9282c); text-align: left; }
body.bcb-store input.input-text.has-error { border-color: var(--color-red, #c9282c); }
/* Cart: the coupon shares a row with Update cart, so its error hangs underneath instead of moving that button. */
@media (min-width: 641px) {
	body.bcb-store table.shop_table.cart td.actions .coupon { position: relative; flex-wrap: nowrap; }
	body.bcb-store table.shop_table.cart td.actions .coupon .coupon-error-notice { position: absolute; top: 100%; left: 0; margin-top: 6px; white-space: nowrap; }
}
@media (max-width: 640px) {
	body.bcb-store form.checkout_coupon .form-row-first .input-text { flex-basis: 100%; max-width: none; }
	body.bcb-store form.checkout_coupon .form-row-last .button { flex: 1 1 100%; }
}
/* ---------- Phones: one 20px page gutter and comfortable tap targets ---------- */
@media (max-width: 921px) {
	body.bcb-store.single-product main.site-main { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 640px) {
	body.bcb-store .bcb-filters a.bcb-filter-option { display: flex; align-items: center; min-height: 40px; }
}
/* ---------- QA pass ---------- */
/* Cart rows on very small phones: let the columns shrink instead of pushing past the screen edge */
@media (max-width: 640px) {
	body.bcb-store table.shop_table.cart tr.cart_item { grid-template-columns: 56px minmax(0, auto) minmax(0, 1fr); column-gap: 12px; }
	body.bcb-store table.shop_table.cart tr.cart_item td { min-width: 0; overflow-wrap: anywhere; }
	/* Small text links: at least a 32px tap height on phones */
	body.bcb-store .bcb-link-gold,
	body.bcb-store .bcb-continue,
	body.bcb-store .shipping-calculator-button,
	body.bcb-store .showcoupon { display: inline-flex; align-items: center; min-height: 32px; }
}
/* Card payment description (Square) on the dark payment box */
body.bcb-store.woocommerce-checkout #payment div.payment_box { background: var(--bcb-field); color: var(--bcb-ink-muted); }
body.bcb-store.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--bcb-field); }
body.bcb-store.woocommerce-checkout #payment div.payment_box p { color: var(--bcb-ink-muted); }
/* Book page: Square's Google Pay button sits on its own line under quantity + Add to Cart and matches that row's width
   (80px quantity + 12px gap + the button) instead of stretching across the column. Full width on phones. */
body.bcb-store .bcb-product-cta #wc-square-digital-wallet { flex: 0 0 100%; max-width: 278px; margin: 0; }
@media (max-width: 640px) { body.bcb-store .bcb-product-cta #wc-square-digital-wallet { max-width: none; } }
/* WooCommerce's clearfix pseudo-elements and the quantity's float margin add stray gaps inside the flex row */
body.bcb-store .bcb-product-cta form.cart::before,
body.bcb-store .bcb-product-cta form.cart::after { display: none; }
body.bcb-store div.product .bcb-product-cta form.cart div.quantity { float: none; margin: 0; }

/* Square's card-entry box: shrink with the column instead of keeping its fixed width on small phones */
body.bcb-store #wc-square-credit-card-credit-card-form { min-width: 0; max-width: 100%; box-sizing: border-box; }
body.bcb-store #wc-square-credit-card-credit-card-form .sq-card-wrapper,
body.bcb-store #wc-square-credit-card-container { min-width: 0 !important; max-width: 100%; }
@media (max-width: 480px) {
	body.bcb-store.woocommerce-checkout form.checkout > #order_review { padding-left: 16px; padding-right: 16px; }
	body.bcb-store.woocommerce-checkout form.checkout > #order_review_heading { padding-left: 16px; padding-right: 16px; }
	body.bcb-store.woocommerce-checkout #payment div.payment_box { padding: 12px; }
	body.bcb-store #wc-square-credit-card-credit-card-form { margin: 0; padding: 0; border: 0; }
}

/* QA pass 2 */
/* Card buttons: one line always; WooCommerce's "added" tick is dropped because the cart drawer opens to confirm */
body.bcb-store ul.products li.product .button { white-space: nowrap; }
body.bcb-store ul.products li.product .button.added::after { display: none; }
body.bcb-store ul.products li.product a.added_to_cart { display: none; }
@media (max-width: 640px) {
	body.bcb-store .bcb-catalog ul.products li.product .button { padding-left: 12px; padding-right: 12px; }
	/* Related books on phones: full-width cards, one under another, instead of the tablet carousel's 78% width */
	body.bcb-store .bcb-related ul.products { flex-wrap: wrap; overflow-x: visible; }
	body.bcb-store .bcb-related ul.products li.product.bcb-card { flex: 0 0 100%; }
}
/* ---------- Unification pass ---------- */
/* Book page excerpt: same size as the quotes on Home */
.bcb-excerpt { font-size: var(--bcb-fs-quote); }
/* Form labels: one size (body, medium) like Contact and Checkout */
body.bcb-store #reviews #review_form label { font-size: var(--bcb-fs-body); font-weight: 500; }
/* Serif headings regular weight */
body.bcb-store .comment-reply-title,
body.bcb-store table.shop_table.cart td.product-name a { font-weight: 400; }
/* Cart and checkout figures: body size, totals keep their larger size */
body.bcb-store table.shop_table.cart td.product-price,
body.bcb-store table.shop_table.cart td.product-subtotal { font-size: var(--bcb-fs-body); }
body.bcb-store table.shop_table.cart td.product-subtotal { font-weight: 600; }
body.bcb-store ul#shipping_method li,
body.bcb-store ul#shipping_method li label,
body.bcb-store ul#shipping_method li .amount { font-size: inherit; font-weight: inherit; }
body.bcb-store.woocommerce-checkout #payment div.payment_box,
body.bcb-store.woocommerce-checkout #payment div.payment_box p { font-size: var(--bcb-fs-small); }
/* Book page quantity box: a dark field like every other input, the same height as Add to Cart */
body.bcb-store .bcb-product-cta .quantity input.qty,
body.bcb-store table.shop_table.cart td.product-quantity input.qty { border: 1px solid var(--bcb-line); border-radius: var(--bcb-radius); background: var(--bcb-field); color: var(--bcb-ink); }
body.bcb-store .bcb-product-cta .quantity input.qty:focus,
body.bcb-store table.shop_table.cart td.product-quantity input.qty:focus { border-color: var(--bcb-gold); outline: none; }
/* Phone book list: the button follows the text at the same distance on every card */
@media (max-width: 640px) {
	.bcb-catalog .bcb-card-actions { margin-top: 0; }
}
/* QA round 3: remove button, coupon notice, mobile coupon error order */
body.bcb-store table.shop_table.cart td.product-remove a.remove .ahfb-svg-iconset { display: none; }
body.bcb-store .woocommerce-form-coupon-toggle .woocommerce-info { display: block; }
@media (max-width: 640px) {
	body.bcb-store form.checkout_coupon .coupon-error-notice { order: 1; }
	body.bcb-store form.checkout_coupon .form-row-last .button { order: 2; }
}

/* Buy row: quantity, Add to Cart and Google Pay share one 44px line (Square adds 22px top padding; Woo adds a bottom margin to the button). */
body.bcb-store .bcb-product-cta form.cart .single_add_to_cart_button { margin: 0; min-height: var(--bcb-input-h); }
body.bcb-store .bcb-product-cta #wc-square-digital-wallet { padding: 0; align-self: center; }
body.bcb-store .bcb-product-cta #wc-square-google-pay,
body.bcb-store .bcb-product-cta #wc-square-google-pay .gpay-button-fill,
body.bcb-store .bcb-product-cta #wc-square-google-pay .gpay-button { display: block; height: var(--bcb-input-h); min-height: 0; margin: 0; }
body.bcb-store .bcb-product-cta #wc-square-google-pay .gpay-button { width: 100%; border-radius: var(--bcb-radius); }
/* Checkout: Google Pay in the Order Summary, under Place Order (moved by site.js). */
body.bcb-store #order_review #wc-square-digital-wallet.bcb-wallet-in-summary { width: 100%; max-width: none; margin: 20px 0 32px; padding: 0; }
body.bcb-store #order_review #wc-square-wallet-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0; font-size: var(--bcb-fs-small); line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--bcb-ink-muted); }
body.bcb-store #order_review #wc-square-wallet-divider::before,
body.bcb-store #order_review #wc-square-wallet-divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--bcb-line); }
body.bcb-store #order_review #wc-square-google-pay,
body.bcb-store #order_review #wc-square-google-pay .gpay-button-fill,
body.bcb-store #order_review #wc-square-google-pay .gpay-button { display: block; width: 100%; height: var(--bcb-input-h); min-height: 0; margin: 0; }
body.bcb-store #order_review #wc-square-google-pay .gpay-button { border-radius: var(--bcb-radius); }
/* Google Pay, personalised (signed-in) version: keep "Buy with G Pay" at the same size as the standard button (Google draws it at 80% of the button height). */
body.bcb-store #wc-square-google-pay .gpay-card-info-container { min-width: 0; min-height: 0; height: var(--bcb-input-h); border-radius: var(--bcb-radius); }
body.bcb-store #wc-square-google-pay .gpay-card-info-container-fill .gpay-card-info-placeholder-svg-container { max-height: 50%; }
/* Cart row: Remove matches the quantity box (44px) so the two sit on one line. */
body.bcb-store table.shop_table.cart td.product-remove a.remove { min-height: var(--bcb-input-h); }

/* Cart: "each" after the per-copy price; Update Cart hidden while the cart updates itself (site.js). */
body.bcb-store table.shop_table.cart td.product-price .bcb-each { margin-left: 4px; font-weight: 400; color: var(--bcb-ink-muted); }
body.bcb-cart-auto.bcb-store table.shop_table.cart td.actions > button[name="update_cart"] { display: none !important; }
/* Cart coupon: keep the button label on one line on phones. */
body.bcb-store table.shop_table.cart td.actions .coupon .button { flex: 0 0 auto; white-space: nowrap; }

/* Cart summary: rows laid out as two-column grids (label | value) instead of a table, so the "Change address" form can span the card. */
body.bcb-store .cart_totals table.shop_table,
body.bcb-store .cart_totals table.shop_table > tbody { display: block; width: 100%; }
body.bcb-store .cart_totals table.shop_table tr { display: grid; grid-template-columns: max-content 1fr; column-gap: 0; align-items: baseline; }
body.bcb-store .cart_totals table.shop_table tr > th,
body.bcb-store .cart_totals table.shop_table tr > td { display: block; width: auto; min-width: 0; }
body.bcb-store .cart_totals table.shop_table tr > td { padding-left: 16px; }
/* The shipping row becomes a grid so the "Change address" form can use the card's full width. */
body.bcb-store .cart_totals table.shop_table tr.woocommerce-shipping-totals { display: grid; grid-template-columns: max-content 1fr; column-gap: 16px; }
body.bcb-store .cart_totals table.shop_table tr.woocommerce-shipping-totals > td { display: contents; }
body.bcb-store .cart_totals table.shop_table tr.woocommerce-shipping-totals > th { grid-column: 1; grid-row: 1; }
body.bcb-store .cart_totals table.shop_table tr.woocommerce-shipping-totals > td > * { grid-column: 2; justify-self: end; text-align: right; margin: 0; padding: 8px 0 0; }
body.bcb-store .cart_totals table.shop_table tr.woocommerce-shipping-totals > td > form.woocommerce-shipping-calculator { grid-column: 1 / -1; justify-self: stretch; padding: 0; }
/* The form itself: labels like the Subtotal / Shipment labels, full-width fields and button. */
body.bcb-store .cart_totals form.woocommerce-shipping-calculator .shipping-calculator-form { padding-top: 16px; text-align: left; }
body.bcb-store .cart_totals form.woocommerce-shipping-calculator .shipping-calculator-form p.form-row { width: 100%; margin: 0 0 14px; padding: 0; float: none; }
body.bcb-store .cart_totals form.woocommerce-shipping-calculator .shipping-calculator-form .form-row label { margin: 0 0 6px; font-size: var(--bcb-fs-small); font-weight: 400; color: var(--bcb-ink-muted); }
body.bcb-store .cart_totals form.woocommerce-shipping-calculator .shipping-calculator-form .input-text,
body.bcb-store .cart_totals form.woocommerce-shipping-calculator .shipping-calculator-form .select2-container,
body.bcb-store .cart_totals form.woocommerce-shipping-calculator .shipping-calculator-form select { width: 100% !important; }
body.bcb-store .cart_totals form.woocommerce-shipping-calculator .shipping-calculator-form button[name="calc_shipping"] { width: 100%; justify-content: center; margin-top: 4px; }
/* Space between Proceed to Checkout and Google Pay. */
body.bcb-store .cart_totals .wc-proceed-to-checkout #wc-square-digital-wallet { margin-top: 10px; }
/* Total row: one continuous divider drawn on the row (the cells are baseline-aligned, so their own borders sat 1px apart). */
body.bcb-store .cart_totals table.shop_table tr.order-total { border-top: 1px solid var(--bcb-line); }
body.bcb-store .cart_totals table.shop_table tr.order-total > th,
body.bcb-store .cart_totals table.shop_table tr.order-total > td { border-top: 0; }
/* Cart: Google Pay as wide and tall as Proceed to Checkout. */
body.bcb-store .cart_totals #wc-square-digital-wallet { width: 100%; max-width: none; padding: 0; }
body.bcb-store .cart_totals #wc-square-google-pay,
body.bcb-store .cart_totals #wc-square-google-pay .gpay-button-fill,
body.bcb-store .cart_totals #wc-square-google-pay .gpay-button { display: block; width: 100%; max-width: none; height: var(--bcb-btn-h-lg); min-height: 0; margin: 0; }
body.bcb-store .cart_totals #wc-square-google-pay .gpay-button { border-radius: var(--bcb-radius); }
