/* Atelier Nord (L'Arpenteur) — "bon". A French workwear order form, the bon de commande. The page
   sidebar already lists the three parts of the form, so there are no step markers; the address is a ruled grid of cells with each label printed inside its box, and the order
   is a ruled table with a stamped total. Mono for everything printed, workwear blue for what you mark. */

html body.rs-co--bon {
	--bn-ink: var(--e-global-color-primary, #16191E);
	--bn-blue: var(--e-global-color-secondary, #24407A);
	--bn-blue-dk: var(--e-global-color-rs_accentdk, #1B3260);
	--bn-canvas: var(--e-global-color-rs_cream, #EFEBE3);
	--bn-cotton: var(--e-global-color-rs_white, #F7F5F0);
	--bn-tab: var(--e-global-color-rs_tab, #E8E4DA);
	--bn-line: var(--e-global-color-rs_line, #DCD7CC);
	--bn-muted: var(--e-global-color-rs_muted, #63656A);
	--bn-mono: var(--e-global-typography-rs_nav-font-family, "Fragment Mono"), ui-monospace, monospace;
	--bn-sans: var(--e-global-typography-text-font-family, "Schibsted Grotesk"), sans-serif;
	--bn-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--bn-tint: color-mix(in srgb, var(--bn-blue) 7%, #fff);

	/* ---- section heads: printed bands ---- */
	:is(.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3, .cart_totals h2, #order_review_heading) { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 12px 14px !important; border: 1px solid var(--bn-ink) !important; border-bottom: 0 !important; background: var(--bn-tab) !important; font-family: var(--bn-mono) !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 1px !important; line-height: 1.3 !important; text-transform: uppercase !important; color: var(--bn-ink) !important; }
	.e-checkout__column-start { counter-reset: bnsec; }
	.e-checkout__column-start :is(.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3)::before { counter-increment: bnsec; content: "§" counter(bnsec); color: var(--bn-blue); }

	/* ---- the form: one ruled grid, every label printed in its cell ---- */
	:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--bn-ink); border-left: 1px solid var(--bn-ink); background: #fff; }
	:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper) > .form-row { float: none !important; width: auto !important; margin: 0 !important; padding: 9px 12px 6px !important; border-right: 1px solid var(--bn-ink); border-bottom: 1px solid var(--bn-ink); transition: background-color 160ms ease; }
	:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper) > .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
	:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) > .form-row:focus-within { background: var(--bn-tint); }
	.woocommerce-additional-fields__field-wrapper > .form-row:focus-within { background: var(--bn-tint); }
	.woocommerce form .form-row label { display: block; margin: 0 0 2px; font-family: var(--bn-mono) !important; font-size: 10.5px !important; font-weight: 400 !important; letter-spacing: .8px !important; line-height: 1.3 !important; text-transform: uppercase !important; color: var(--bn-muted) !important; }
	.woocommerce form .form-row .required { color: var(--bn-blue) !important; text-decoration: none; }
	.woocommerce form .form-row :is(input.input-text, select, textarea), .woocommerce form .form-row .select2-container .select2-selection--single { min-height: 34px; padding: 4px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; font-family: var(--bn-sans); font-size: 16px; color: var(--bn-ink); box-shadow: none !important; outline: none !important; }
	.woocommerce form .form-row textarea { height: auto !important; min-height: 88px !important; resize: vertical; }
	.woocommerce form .form-row.woocommerce-invalid { background: #FBF1F0; }
	.woocommerce form .form-row.woocommerce-invalid label { color: #A1262A !important; }
	#ship-to-different-address { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 28px 0 0 !important; padding: 12px 14px !important; border: 1px solid var(--bn-ink) !important; background: var(--bn-tab); font-family: var(--bn-mono) !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 1px !important; text-transform: uppercase !important; }
	.woocommerce-shipping-fields .shipping_address { margin-top: -1px; }
	#ship-to-different-address label { display: flex !important; align-items: center; gap: 12px; margin: 0; font: inherit !important; color: var(--bn-ink) !important; cursor: pointer; }
	.woocommerce-additional-fields { margin-top: 28px; }
	.woocommerce-account-fields { margin-top: 16px; }
	:is(.woocommerce form .form-row, #ship-to-different-address, .e-checkout__column-end, .woocommerce-account-fields) input[type=checkbox], #shipping_method input[type=radio] { width: 17px; height: 17px; accent-color: var(--bn-blue); }
	.woocommerce-error { border: 1px solid #A1262A !important; border-radius: 0 !important; background: #fff !important; color: var(--bn-ink) !important; font-family: var(--bn-mono); font-size: 13px; }
	.woocommerce-error :is(li, a) { color: var(--bn-ink) !important; }

	/* ---- the order: a ruled table, the total stamped ---- */
	.e-checkout__column-end { margin-top: 40px; }
	.e-checkout__column-inner, .e-cart-totals.e-cart-section { padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
	.cart_totals, #order_review, .e-checkout__order_review, .e-coupon-box, .e-checkout__order_review-2 { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
	:is(.cart_totals table, .woocommerce-checkout-review-order-table) { border: 1px solid var(--bn-ink) !important; border-radius: 0 !important; background: #fff; }
	:is(.cart_totals table, .woocommerce-checkout-review-order-table) :is(th, td) { padding: 12px 14px !important; border: 0 !important; border-top: 1px solid var(--bn-line) !important; background: transparent !important; color: var(--bn-ink) !important; font-family: var(--bn-sans) !important; font-size: 15px; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; }
	:is(.cart_totals table, .woocommerce-checkout-review-order-table) tr:first-child > * { border-top: 0 !important; }
	:is(.cart_totals table, .woocommerce-checkout-review-order-table) th { font-family: var(--bn-mono) !important; font-size: 11.5px !important; letter-spacing: .8px !important; text-transform: uppercase !important; color: var(--bn-muted) !important; }
	:is(.cart_totals table, .woocommerce-checkout-review-order-table) tr > td:last-child:not(:first-child) { border-left: 1px solid var(--bn-line) !important; font-variant-numeric: tabular-nums; }
	.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td, .cart_totals tr.woocommerce-shipping-totals > td { border-left: 0 !important; border-top: 0 !important; }
	.woocommerce-checkout-review-order-table td.product-name { font-weight: 500 !important; line-height: 1.35; }
	.woocommerce-checkout-review-order-table :is(.product-quantity, dl.variation, dl.variation *) { font-family: var(--bn-mono); color: var(--bn-muted) !important; font-weight: 400 !important; font-size: 12px; }
	.rs-co-thumb { width: 64px; border: 1px solid var(--bn-line); background: var(--bn-canvas); }
	.rs-co-thumb img { aspect-ratio: 4 / 5; object-fit: cover; mix-blend-mode: multiply; }
	:is(.cart_totals, .woocommerce-checkout-review-order-table) .order-total > * { padding-top: 16px !important; padding-bottom: 16px !important; border-top: 2px solid var(--bn-ink) !important; background: var(--bn-cotton) !important; }
	:is(.cart_totals, .woocommerce-checkout-review-order-table) .order-total th { color: var(--bn-ink) !important; font-size: 13px !important; }
	:is(.cart_totals, .woocommerce-checkout-review-order-table) .order-total td .amount { font-family: var(--bn-mono) !important; font-size: 24px !important; font-weight: 400 !important; letter-spacing: -.3px; color: var(--bn-ink); }
	#shipping_method li { margin: 0 0 6px; }
	#shipping_method li label { font-size: 15px; }
	.woocommerce-shipping-destination, .woocommerce-shipping-calculator a { font-size: 13px; color: var(--bn-muted) !important; }
	.wps_recurring_bifurcation_wrapper :is(th, td, h4, li, label) { font-size: 12px !important; color: var(--bn-muted) !important; }

	/* Free delivery, as a line ruled across the form. */
	.rs-co-free { margin: 0 0 20px; color: var(--bn-blue); }
	.rs-co-free__t { font-family: var(--bn-mono); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--bn-ink); }
	.rs-co-free__t strong { font-weight: 400; color: var(--bn-blue); }
	.rs-co-free__t .rs-co-ico { color: var(--bn-blue); }
	.rs-co-free__bar { height: 10px; border: 1px solid var(--bn-ink); background: repeating-linear-gradient(90deg, transparent 0 9px, var(--bn-line) 9px 10px); }
	.rs-co-free__bar span { background: var(--bn-blue); }

	/* Coupon and payment under the table. */
	.e-coupon-box { margin-top: 16px !important; }
	.e-checkout-secondary-title, .e-coupon-anchor-description { font-family: var(--bn-mono) !important; font-size: 12px !important; letter-spacing: .4px; color: var(--bn-muted) !important; }
	.e-checkout-secondary-title a, .showcoupon { color: var(--bn-blue) !important; text-decoration: underline; text-underline-offset: 3px; }
	.e-checkout__order_review-2 { margin-top: 16px; }
	#payment { padding: 0 !important; background: transparent !important; border: 0 !important; }
	#payment ul.payment_methods { padding: 0 0 14px !important; border: 0 !important; }
	#payment .woocommerce-info, #payment .woocommerce-notice { margin: 0; padding: 14px 16px !important; border: 1px dashed var(--bn-ink) !important; border-radius: 0 !important; background: #fff !important; font-size: 14px; line-height: 1.5; color: var(--bn-ink) !important; }
	#payment .woocommerce-info::before { color: var(--bn-blue) !important; }
	#payment .payment_box { background: var(--bn-cotton) !important; border-radius: 0 !important; }
	.woocommerce-privacy-policy-text p, .woocommerce-terms-and-conditions-wrapper { font-size: 13px; line-height: 1.55; color: var(--bn-muted); }

	/* The pay buttons: the site's ink slab in the mono, blue on hover. */
	.checkout-button, #place_order { width: 100%; min-height: 56px; margin: 14px 0 0 !important; border: 0 !important; border-radius: 0 !important; background: var(--bn-ink) !important; color: #fff !important; font-family: var(--bn-mono) !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 1px !important; text-transform: uppercase !important; transition: background-color 160ms ease, transform 160ms var(--bn-ease); }
	.checkout-button:active, #place_order:active { transform: scale(0.98); }
	@media (hover: hover) and (pointer: fine) { .checkout-button:hover, #place_order:hover { background: var(--bn-blue) !important; } }
	.rs-co-assure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 18px 0 0; border-top: 1px solid var(--bn-ink); border-left: 1px solid var(--bn-ink); font-family: var(--bn-mono); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: var(--bn-ink); }
	.rs-co-assure li { align-items: flex-start; padding: 12px; border-right: 1px solid var(--bn-ink); border-bottom: 1px solid var(--bn-ink); background: #fff; }
	.rs-co-assure .rs-co-ico { color: var(--bn-blue); }

	/* ---- the bag: the order table, ruled ---- */
	.shop_table.cart { border: 1px solid var(--bn-ink) !important; border-radius: 0 !important; background: #fff; }
	.shop_table.cart thead th { padding: 10px 12px !important; border: 0 !important; border-bottom: 1px solid var(--bn-ink) !important; background: var(--bn-tab) !important; font-family: var(--bn-mono) !important; font-size: 11.5px !important; font-weight: 400 !important; letter-spacing: .8px; text-transform: uppercase; color: var(--bn-ink) !important; }
	.shop_table.cart thead th + th, .shop_table.cart td + td { border-left: 1px solid var(--bn-line) !important; }
	.shop_table.cart td { padding: 16px 12px !important; border: 0 !important; border-bottom: 1px solid var(--bn-line) !important; vertical-align: middle; }
	.shop_table.cart .product-thumbnail img { width: 88px !important; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bn-canvas); mix-blend-mode: multiply; }
	.shop_table.cart td.product-name > a { font-size: 17px; font-weight: 500; color: var(--bn-ink) !important; text-decoration: none; }
	.shop_table.cart td.product-name :is(dl.variation, dl.variation *) { font-family: var(--bn-mono); font-size: 12px; color: var(--bn-muted) !important; }
	.shop_table.cart :is(.product-price, .product-subtotal) { font-family: var(--bn-mono); font-size: 14px; font-variant-numeric: tabular-nums; }
	.shop_table.cart .quantity input.qty { min-height: 44px; width: 64px; border: 1px solid var(--bn-ink) !important; border-radius: 0 !important; font-family: var(--bn-mono); text-align: center; }
	.shop_table.cart a.remove { font-family: var(--bn-mono); color: var(--bn-muted) !important; }
	@media (hover: hover) and (pointer: fine) { .shop_table.cart a.remove:hover { background: var(--bn-ink) !important; color: #fff !important; } }
	.shop_table.cart td.actions { background: var(--bn-cotton) !important; }
	.coupon { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
	.coupon input.input-text, .e-cart__column-start .coupon input#coupon_code { min-height: 44px; padding: 0 12px !important; border: 1px solid var(--bn-ink) !important; border-radius: 0 !important; background: #fff !important; font-family: var(--bn-mono); }
	.coupon .button, .e-apply-coupon { min-height: 44px; padding: 0 18px !important; border: 1px solid var(--bn-ink) !important; border-radius: 0 !important; background: #fff !important; color: var(--bn-ink) !important; font-family: var(--bn-mono) !important; font-size: 12px !important; font-weight: 400 !important; letter-spacing: .8px !important; text-transform: uppercase !important; }
	/* The bag is one column on this store: the totals close the form on the right, like the foot of a bon. */
	.e-cart__column-end { display: flex; justify-content: flex-end; width: 100% !important; max-width: none !important; margin-top: 28px; }
	.e-cart-totals.e-cart-section { width: min(100%, 460px); }

	/* ---- phone ---- */
	@media (max-width: 767px) {
		.rs-co-mini { border: 1px solid var(--bn-ink); border-radius: 0; background: #fff; font-family: var(--bn-mono); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
		.rs-co-mini__total { font-size: 17px; letter-spacing: 0; }
		:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper) { grid-template-columns: minmax(0, 1fr); }
		:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper) > .form-row { grid-column: 1 / -1; }
		.shop_table.cart { border: 0 !important; border-top: 1px solid var(--bn-ink) !important; background: transparent; }
		.shop_table.cart td + td { border-left: 0 !important; }
		.shop_table.cart tr.cart_item { border-bottom: 1px solid var(--bn-line); }
		.shop_table.cart td.actions { background: transparent !important; }
	}
}
