/* Maison Valère (Baudoin & Lange) — "maison". A fitting salon rather than a till: one centred column, the
   chosen pieces presented first on a cream card ruled like letter paper, then the client's details, then
   payment last. Bodoni for the words that matter, Jost small caps for the rest, bordeaux for the one action. */

html body.rs-co--maison {
	--mv-ink: var(--e-global-color-primary, #231C17);
	--mv-body: var(--e-global-color-text, #3D352F);
	--mv-wine: var(--e-global-color-accent, #6B2826);
	--mv-wine-dk: var(--e-global-color-rs_accentdk, #521D1C);
	--mv-cream: var(--e-global-color-rs_cream, #F8F4F0);
	--mv-stone: var(--e-global-color-rs_stone, #EFE8DE);
	--mv-line: var(--e-global-color-rs_line, #E6DED3);
	--mv-muted: var(--e-global-color-rs_muted, #756B62);
	--mv-serif: var(--e-global-typography-primary-font-family, "Bodoni Moda"), serif;
	--mv-sans: var(--e-global-typography-text-font-family, "Jost"), sans-serif;
	--mv-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--mv-w: 720px;

	/* ---- steps: three roman numerals, centred ---- */
	.rs-co-steps { margin: 0 auto 44px; max-width: var(--mv-w); }
	.rs-co-steps ol { justify-content: center; counter-reset: mvstep; gap: 0; }
	.rs-co-steps li { counter-increment: mvstep; gap: 10px; font-family: var(--mv-sans); font-size: 11px; font-weight: 500; letter-spacing: 2.2px; text-transform: uppercase; color: var(--mv-muted); }
	.rs-co-steps li + li::before { content: ""; width: 48px; height: 1px; margin: 0 18px; background: var(--mv-line); }
	.rs-co-steps__n { font-size: 0; }
	.rs-co-steps__n::before { content: counter(mvstep, upper-roman) "."; font-family: var(--mv-serif); font-size: 17px; font-style: italic; letter-spacing: 0; text-transform: none; }
	.rs-co-steps li.is-now { color: var(--mv-ink); }
	.rs-co-steps li.is-now .rs-co-steps__n::before { color: var(--mv-wine); }
	.rs-co-steps li.is-done { color: var(--mv-ink); }
	@media (hover: hover) and (pointer: fine) { .rs-co-steps li.is-done a:hover .rs-co-steps__t { text-decoration: underline; text-underline-offset: 4px; } }

	/* ---- one centred column: the selection, the details, then payment ---- */
	.e-checkout__container { display: flex !important; flex-direction: column; gap: 0; max-width: var(--mv-w); margin: 0 auto; }
	.e-checkout__column-end, .e-checkout__column-inner { display: contents !important; }
	.e-checkout__order_review { order: 1; }
	.e-checkout__column-start { order: 2; align-self: stretch; width: auto !important; margin-top: 56px; }
	.e-coupon-box { order: 3; }
	.e-checkout__order_review-2 { order: 4; }
	.e-cart__container { display: flex !important; flex-direction: column; max-width: var(--mv-w); margin: 0 auto; }
	.e-cart__column-start, .e-cart__column-end { align-self: stretch; width: auto !important; }

	/* ---- headings: Bodoni, centred over the card, left over the form ---- */
	:is(.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3, .cart_totals h2, #order_review_heading) { margin: 0 0 24px !important; padding: 0 !important; border: 0 !important; background: none !important; font-family: var(--mv-serif) !important; font-size: 30px !important; font-weight: 400 !important; letter-spacing: -.3px !important; line-height: 1.15 !important; text-transform: none !important; color: var(--mv-ink) !important; }
	.cart_totals h2, #order_review_heading { text-align: center; }

	/* ---- the card: cream, ruled inside like letter paper ---- */
	.e-checkout__order_review, .e-cart-totals.e-cart-section { position: relative; padding: 40px 44px !important; background: var(--mv-cream) !important; border: 1px solid var(--mv-line) !important; border-radius: 0 !important; box-shadow: none !important; outline: 1px solid var(--mv-line); outline-offset: -9px; }
	.cart_totals, #order_review, .e-coupon-box, .e-checkout__order_review-2 { padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; }
	.cart_totals table :is(th, td), .woocommerce-checkout-review-order-table :is(th, td) { padding: 14px 0 !important; border: 0 !important; border-bottom: 1px solid var(--mv-line) !important; background: transparent !important; color: var(--mv-ink) !important; font-family: var(--mv-sans) !important; font-size: 14px; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; }
	:is(.cart_totals table, .woocommerce-checkout-review-order-table) th { font-size: 11px !important; font-weight: 500 !important; letter-spacing: 2.2px !important; text-transform: uppercase !important; }
	.woocommerce-checkout-review-order-table tr.cart_item > td { padding: 18px 0 !important; }
	.woocommerce-checkout-review-order-table td.product-name { column-gap: 22px !important; font-family: var(--mv-serif) !important; font-size: 19px !important; line-height: 1.25; }
	.woocommerce-checkout-review-order-table :is(.product-quantity, dl.variation, dl.variation *) { font-family: var(--mv-sans); color: var(--mv-muted) !important; font-weight: 400 !important; font-size: 13px; letter-spacing: .2px; }
	.woocommerce-checkout-review-order-table td.product-total { font-size: 15px; }
	.rs-co-thumb { width: 96px; background: #fff; }
	.rs-co-thumb img { aspect-ratio: 1; object-fit: contain; }
	:is(.cart_totals, .woocommerce-checkout-review-order-table) .order-total :is(th, td) { padding-top: 22px !important; border-bottom: 0 !important; }
	:is(.cart_totals, .woocommerce-checkout-review-order-table) .order-total td .amount { font-family: var(--mv-serif) !important; font-size: 32px !important; font-weight: 400 !important; letter-spacing: -.4px; font-variant-numeric: lining-nums; }
	#shipping_method li { margin: 0 0 8px; }
	#shipping_method li label { font-size: 14px; }
	#shipping_method input[type=radio], .woocommerce form .form-row input[type=checkbox], #ship-to-different-address input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--mv-wine); }
	.woocommerce-shipping-destination, .woocommerce-shipping-calculator a { font-size: 13px; color: var(--mv-muted) !important; }
	.wps_recurring_bifurcation_wrapper :is(th, td, h4, li, label) { font-size: 12px !important; color: var(--mv-muted) !important; }

	/* Complimentary delivery: a line of type with a hairline meter, at the head of the card. */
	.rs-co-free { margin: 0 0 28px; text-align: center; color: var(--mv-wine); }
	.rs-co-free__t { justify-content: center; font-family: var(--mv-sans); font-size: 13px; letter-spacing: .3px; color: var(--mv-body); }
	.rs-co-free__t strong { font-weight: 500; color: var(--mv-wine); }
	.rs-co-free__t .rs-co-ico { color: var(--mv-wine); }
	.rs-co-free__bar { max-width: 280px; margin: 0 auto; height: 1px; background: var(--mv-line); overflow: visible; }
	.rs-co-free__bar span { top: -1px; bottom: -1px; background: var(--mv-wine); }

	/* ---- the details: open on the page, underlined fields as on the rest of the site ---- */
	.woocommerce-additional-fields, .woocommerce-shipping-fields { margin-top: 36px; }
	.woocommerce-shipping-fields { margin-bottom: 20px; }
	#ship-to-different-address { margin: 0 !important; padding: 0 !important; border: 0 !important; font-family: var(--mv-serif) !important; font-size: 22px !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; }
	#ship-to-different-address label { display: flex !important; align-items: center; gap: 14px; margin: 0; font: inherit !important; color: var(--mv-ink) !important; cursor: pointer; }
	.woocommerce form .form-row label { margin: 0 0 4px; font-family: var(--mv-sans) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: 2.2px !important; text-transform: uppercase !important; color: var(--mv-ink) !important; }
	.woocommerce form .form-row .required { color: var(--mv-wine) !important; text-decoration: none; }
	.woocommerce form .form-row :is(input.input-text, select), .select2-container .select2-selection--single { min-height: 48px; padding: 10px 0 !important; border: 0 !important; border-bottom: 1px solid #A39A90 !important; border-radius: 0 !important; background: transparent !important; font-family: var(--mv-sans); font-size: 16px; color: var(--mv-ink); box-shadow: none !important; transition: border-color 160ms ease; }
	.woocommerce form .form-row textarea { height: auto !important; min-height: 96px !important; padding: 12px 14px !important; border: 1px solid #A39A90 !important; border-radius: 0 !important; background: transparent !important; font-size: 16px; }
	.woocommerce form .form-row :is(input.input-text, select):focus { border-bottom: 1px solid var(--mv-ink) !important; box-shadow: 0 1px 0 var(--mv-ink) !important; outline: none; }
	.woocommerce form .form-row textarea:focus { border-color: var(--mv-ink) !important; box-shadow: 0 0 0 1px var(--mv-ink) !important; outline: none; }
	.woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select) { border-bottom-color: #A1262A !important; }
	.woocommerce-error { border: 1px solid var(--mv-wine) !important; border-radius: 0 !important; background: var(--mv-cream) !important; color: var(--mv-ink) !important; }
	.woocommerce-error :is(li, a) { color: var(--mv-ink) !important; }

	/* ---- payment, last, under its own rule ---- */
	.e-coupon-box { margin: 40px 0 0 !important; padding: 24px 0 0 !important; border-top: 1px solid var(--mv-line) !important; text-align: center; }
	.e-checkout-secondary-title, .e-coupon-anchor-description { font-family: var(--mv-sans) !important; font-size: 13px !important; color: var(--mv-muted) !important; }
	.e-checkout-secondary-title a, .showcoupon { color: var(--mv-wine) !important; text-decoration: underline; text-underline-offset: 3px; }
	.e-checkout__order_review-2 { margin-top: 24px; }
	#payment { padding: 0 !important; background: transparent !important; border: 0 !important; }
	#payment ul.payment_methods { padding: 0 0 16px !important; border: 0 !important; }
	#payment .woocommerce-info, #payment .woocommerce-notice { margin: 0; padding: 16px 18px !important; border: 1px solid var(--mv-line) !important; border-radius: 0 !important; background: var(--mv-cream) !important; font-size: 13px; line-height: 1.55; color: var(--mv-body) !important; }
	#payment .woocommerce-info::before { color: var(--mv-wine) !important; }
	#payment .payment_box { background: var(--mv-cream) !important; border-radius: 0 !important; }
	.woocommerce-privacy-policy-text p, .woocommerce-terms-and-conditions-wrapper { font-size: 12px; line-height: 1.6; color: var(--mv-muted); text-align: center; }

	/* The one action, in bordeaux. */
	.checkout-button, #place_order { width: 100%; min-height: 56px; margin: 16px 0 0 !important; border: 0 !important; border-radius: 0 !important; background: var(--mv-wine) !important; color: #fff !important; font-family: var(--mv-sans) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: 2.6px !important; text-transform: uppercase !important; transition: background-color 200ms ease, transform 160ms var(--mv-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(--mv-wine-dk) !important; } }
	.rs-co-assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 22px 0 0; font-family: var(--mv-sans); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mv-body); }
	.rs-co-assure li { gap: 8px; }
	.rs-co-assure .rs-co-ico { width: 15px; height: 15px; color: var(--mv-wine); }

	/* ---- the bag: the selection laid out on the page, the card beneath ---- */
	.e-cart__column-start { margin-bottom: 40px; }
	.shop_table.cart { border: 0 !important; border-top: 1px solid var(--mv-line) !important; }
	.shop_table.cart thead { display: none; }
	.shop_table.cart td { padding: 26px 8px !important; border: 0 !important; border-bottom: 1px solid var(--mv-line) !important; vertical-align: middle; }
	.shop_table.cart .product-thumbnail img { width: 132px !important; max-width: none; aspect-ratio: 1; object-fit: contain; background: #fff; }
	.shop_table.cart td.product-name > a { font-family: var(--mv-serif); font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--mv-ink) !important; text-decoration: none; }
	.shop_table.cart td.product-name :is(dl.variation, dl.variation *) { font-size: 13px; color: var(--mv-muted) !important; }
	.shop_table.cart :is(.product-price, .product-subtotal) { font-size: 15px; }
	.shop_table.cart .product-price { color: var(--mv-muted); }
	.shop_table.cart .quantity input.qty { min-height: 44px; width: 56px; border: 0 !important; border-bottom: 1px solid #A39A90 !important; border-radius: 0 !important; background: transparent !important; text-align: center; }
	.shop_table.cart a.remove { color: var(--mv-muted) !important; transition: color 160ms ease; }
	@media (hover: hover) and (pointer: fine) { .shop_table.cart a.remove:hover { background: transparent !important; color: var(--mv-wine) !important; } }
	.coupon { margin-top: 24px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
	.coupon input.input-text { min-height: 44px; border: 0 !important; border-bottom: 1px solid #A39A90 !important; border-radius: 0 !important; background: transparent !important; }
	.coupon .button, .e-apply-coupon { min-height: 44px; padding: 0 22px !important; border: 1px solid var(--mv-ink) !important; border-radius: 0 !important; background: transparent !important; color: var(--mv-ink) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: 2.2px !important; text-transform: uppercase !important; }

	/* ---- phone ---- */
	@media (max-width: 767px) {
		.rs-co-steps { margin-bottom: 32px; }
		.rs-co-steps li { gap: 6px; font-size: 10px; letter-spacing: 1.4px; }
		.rs-co-steps li + li::before { width: 16px; margin: 0 8px; }
		.rs-co-steps__n::before { font-size: 15px; }
		.e-checkout__order_review, .e-cart-totals.e-cart-section { padding: 28px 22px !important; }
		.e-checkout__column-start { margin-top: 40px; }
		:is(.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3, .cart_totals h2, #order_review_heading) { font-size: 26px !important; }
		.rs-co-thumb { width: 72px; }
		.woocommerce-checkout-review-order-table td.product-name { font-size: 17px !important; }
		.shop_table.cart tr.cart_item { grid-template-columns: 104px minmax(0, 1fr) auto !important; }
		.shop_table.cart td.product-thumbnail img { width: 104px !important; }
		.shop_table.cart td.product-name > a { font-size: 20px; }
		.rs-co-assure { justify-content: flex-start; flex-direction: column; gap: 10px; }
	}
}
