.rb-commerce { padding-block: clamp(1.25rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.rb-commerce h1 { margin: 0.75rem 0 1.75rem; font-size: clamp(2.1rem, 6vw, 4.25rem); }
.rb-commerce .rb-commerce-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	color: var(--rb-muted);
}
.rb-commerce-steps span[aria-current] { color: var(--rb-gold); font-weight: 700; }
.rb-commerce-steps span + span::before { content: "›"; margin-inline-end: 0.75em; color: var(--rb-muted); }
.rb-commerce .woocommerce { color: var(--rb-ink); }
.rb-commerce-cart .woocommerce,
.rb-commerce form.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
	align-items: start;
	gap: 1.25rem;
}
.rb-commerce form.woocommerce-checkout {
	grid-template-areas: "customer heading" "customer review";
	grid-template-rows: min-content 1fr;
}
.rb-commerce-cart .woocommerce::before, .rb-commerce-cart .woocommerce::after,
.rb-commerce form.woocommerce-checkout::before, .rb-commerce form.woocommerce-checkout::after { display: none; }
.rb-commerce-cart .woocommerce > :not(.woocommerce-cart-form, .cart-collaterals),
.rb-commerce form.woocommerce-checkout > :not(#customer_details, #order_review_heading, #order_review) { grid-column: 1 / -1; }
.rb-commerce .cart-collaterals .cart_totals, .rb-commerce .cart-collaterals .cross-sells,
.rb-commerce #customer_details > .col-1, .rb-commerce #customer_details > .col-2 {
	float: none;
	width: 100%;
	min-width: 0;
}
.rb-commerce .woocommerce-cart-form, .rb-commerce .cart_totals,
.rb-commerce #customer_details, .rb-commerce #order_review {
	min-width: 0;
	padding: clamp(0.7rem, 2vw, 1.4rem);
	border: 1px solid #554234;
	border-radius: 0.65rem;
	background: #191410;
}
.rb-commerce #order_review_heading { grid-area: heading; margin: 0; }
.rb-commerce #customer_details { grid-area: customer; }
.rb-commerce #order_review { grid-area: review; }
.rb-commerce .cart-collaterals { display: flex; flex-direction: column; gap: 1rem; }
.rb-commerce .cart_totals { order: -1; }
.rb-commerce .product-thumbnail img { width: 3.5rem; height: auto; }
.rb-commerce table.shop_table { width: 100%; overflow-wrap: anywhere; }
.rb-commerce .woocommerce a { color: var(--rb-gold); }
.rb-commerce .woocommerce .button, .rb-commerce #place_order {
	border-radius: 0.42rem;
	background: var(--rb-gold);
	color: #21150b;
	white-space: normal;
}
.rb-commerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
	border: 1px solid var(--rb-button-border);
	border-radius: var(--rb-radius);
	background: var(--rb-button-bg);
	color: var(--rb-button-color);
}
.rb-commerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.rb-commerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:focus-visible {
	background: var(--rb-gold);
	color: var(--rb-button-color);
}
.rb-commerce .woocommerce form .form-row input.input-text,
.rb-commerce .woocommerce form .form-row textarea,
.rb-commerce .woocommerce form .form-row select,
.rb-commerce .woocommerce-cart-form .input-text,
.rb-commerce .select2-container--default .select2-selection--single {
	max-width: 100%;
	padding: 0.55rem;
	border: 1px solid #715743;
	border-radius: 0.3rem;
	background: #120e0c;
	color: var(--rb-ink);
}
.rb-commerce .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--rb-ink); }
.rb-commerce-cart .woocommerce .quantity .qty {
	width: 4.5rem;
	min-height: 2.45rem;
	border-color: var(--rb-gold);
	border-radius: 0.42rem;
	padding: 0.3rem 0.45rem;
	font: inherit;
	color-scheme: dark;
}
.rb-commerce-cart .woocommerce table.cart td.actions .coupon {
	display: grid;
	grid-template-columns: minmax(0, 11rem) auto;
	align-items: stretch;
	gap: 0.45rem;
	max-width: 100%;
}
.rb-commerce-cart .woocommerce table.cart td.actions .coupon #coupon_code {
	float: none;
	width: 100%;
	min-width: 0;
	margin: 0;
	border-color: var(--rb-gold);
}
.rb-commerce-cart .woocommerce table.cart td.actions .coupon .button {
	float: none;
	width: auto;
	margin: 0;
}
.rb-commerce .coupon-error-notice {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--rb-button-border);
	border-inline-start: 3px solid #eea19a;
	border-radius: 0.42rem;
	background: #211912;
	color: var(--rb-ink);
	text-align: start;
	overflow-wrap: anywhere;
}
.rb-commerce #wc-stripe-express-checkout-button-separator { display: none !important; }
.rb-commerce-checkout .woocommerce-additional-fields > h3:has(+ .woocommerce-additional-fields__field-wrapper) { display: none; }
.rb-commerce .rb-company-checkout-details[hidden] { display: none; }
.rb-commerce #payment, .rb-commerce #payment div.payment_box { background: #211912; color: var(--rb-ink); }
.rb-commerce-checkout :is(.woocommerce-checkout-payment, .woocommerce-checkout-review-order-table) > .blockUI.blockOverlay {
	/* WooCommerce adds a white background inline during the checkout refresh. */
	background: rgb(18 14 12 / 70%) !important;
}
.rb-commerce-checkout .woocommerce-checkout-payment > .blockUI.blockOverlay::before { content: none; }
.rb-commerce-checkout .woocommerce-checkout-review-order-table > .blockUI.blockOverlay::before {
	width: 1.35rem;
	height: 1.35rem;
	margin: 0;
	border: 2px solid #715743;
	border-top-color: var(--rb-gold);
	border-radius: 50%;
	background: none;
	transform: translate(-50%, -50%);
	animation: rb-checkout-spin 0.8s linear infinite;
}
@keyframes rb-checkout-spin {
	to { transform: translate(-50%, -50%) rotate(1turn); }
}
@media (prefers-reduced-motion: reduce) {
	.rb-commerce-checkout .woocommerce-checkout-review-order-table > .blockUI.blockOverlay::before { animation: none; }
}
.rb-commerce #payment .wc_payment_method {
	margin-block: 0.4rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid #715743;
	border-radius: 0.42rem;
}
.rb-commerce #payment .wc_payment_method:has(> input:checked) { border-color: var(--rb-gold); }
.rb-commerce #payment .wc_payment_method > input[type="radio"] {
	appearance: none;
	inline-size: 1.15rem;
	block-size: 1.15rem;
	margin: 0 0.45rem 0 0;
	vertical-align: middle;
	border: 1px solid var(--rb-gold);
	border-radius: 50%;
	background: #120e0c;
	cursor: pointer;
}
.rb-commerce #payment .wc_payment_method > input[type="radio"]:checked {
	background: var(--rb-gold);
	box-shadow: inset 0 0 0 3px #120e0c;
}
.rb-commerce #payment .wc_payment_method > label { cursor: pointer; }
.rb-commerce #rb_company_purchase { accent-color: var(--rb-gold); }
.rb-commerce .rb-commerce-notice {
	padding: 0.7rem;
	border: 1px solid #715743;
	border-radius: 0.4rem;
	color: var(--rb-ink);
}
.rb-commerce-related-items { display: flex; flex-wrap: wrap; gap: 1rem; }
.rb-commerce-related-items article {
	flex: 0 1 10rem;
	min-width: 0;
	padding: 0.75rem;
	border: 1px solid #554234;
	border-radius: 0.65rem;
}
.rb-commerce-related-items article > a { display: block; }
.rb-commerce-related-items img {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 0.65rem;
	border-radius: 0.35rem;
}
@media (max-width: 850px) {
	.rb-commerce-cart .woocommerce, .rb-commerce form.woocommerce-checkout { grid-template-columns: minmax(0, 1fr); }
	.rb-commerce form.woocommerce-checkout { grid-template-areas: "customer" "heading" "review"; grid-template-rows: auto; }
	.rb-commerce .woocommerce-cart-form .actions .coupon {
		float: none;
	}
	.rb-commerce .woocommerce-cart-form .product-thumbnail {
		display: block;
		text-align: center !important;
	}
	.rb-commerce .woocommerce-cart-form .product-thumbnail::before { display: none; }
}
