/* Ekholm & Co. (Bergfabel) — "stitch". A cloth house with a tailor's calm: oat paper, loden green, the
   Hedvig serif. The order is a woven label, cloth-coloured with a stitched edge sewn just inside it; the
   way to free delivery is a tailor's tape measure; the steps are joined by a line of stitches. */

html body.rs-co--stitch {
	--ek-ink: var(--e-global-color-primary, #2A2A2E);
	--ek-loden: var(--e-global-color-secondary, #4B5A3E);
	--ek-loden-dk: var(--e-global-color-rs_accentdk, #3A4630);
	--ek-body: var(--e-global-color-text, #33332F);
	--ek-cloth: var(--e-global-color-rs_cream, #E7E1D6);
	--ek-oat: var(--e-global-color-rs_white, #F4F1EA);
	--ek-line: var(--e-global-color-rs_line, #D6CFC2);
	--ek-muted: var(--e-global-color-rs_muted, #5F5B54);
	--ek-serif: var(--e-global-typography-primary-font-family, "Hedvig Letters Serif"), Georgia, serif;
	--ek-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--ek-stitch: 1px dashed color-mix(in srgb, var(--ek-loden) 70%, transparent);

	/* ---- steps: joined by stitches ---- */
	.rs-co-steps { margin: 0 0 36px; }
	.rs-co-steps ol { align-items: center; }
	.rs-co-steps li { gap: 8px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ek-muted); }
	.rs-co-steps li + li::before { content: ""; width: 56px; margin: 0 16px; border-top: var(--ek-stitch); }
	.rs-co-steps__n { font-family: var(--ek-serif); font-size: 18px; letter-spacing: 0; text-transform: none; }
	.rs-co-steps li.is-done { color: var(--ek-ink); }
	.rs-co-steps li.is-now { color: var(--ek-loden); }
	.rs-co-steps li.is-now .rs-co-steps__t { padding-bottom: 3px; border-bottom: 1px solid var(--ek-loden); }
	@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; } }

	/* ---- the form ---- */
	#customer_details :is(.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3) { margin: 0 0 22px !important; padding: 0 !important; border: 0 !important; font-family: var(--ek-serif) !important; font-size: 28px !important; font-weight: 400 !important; letter-spacing: -.3px !important; line-height: 1.2 !important; text-transform: none !important; color: var(--ek-ink) !important; }
	.woocommerce-shipping-fields, .woocommerce-additional-fields { margin-top: 32px; }
	.woocommerce-shipping-fields { margin-bottom: 18px; }
	#ship-to-different-address { margin: 0 !important; padding: 0 !important; border: 0 !important; font-family: var(--ek-serif) !important; font-size: 20px !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: 12px; margin: 0; font: inherit !important; color: var(--ek-ink) !important; cursor: pointer; }
	.woocommerce form .form-row label { margin: 0 0 6px; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ek-ink) !important; }
	.woocommerce form .form-row .required { color: var(--ek-loden) !important; text-decoration: none; }
	.woocommerce form .form-row :is(input.input-text, select), .woocommerce form .form-row .select2-container .select2-selection--single { min-height: 48px; padding: 0 14px !important; border: 1px solid #A59D8F !important; border-radius: 0 !important; background: #fff !important; font-size: 16px; color: var(--ek-ink); box-shadow: none !important; transition: border-color 160ms ease, box-shadow 160ms ease; }
	.woocommerce form .form-row textarea { height: auto !important; min-height: 96px !important; padding: 12px 14px !important; border: 1px solid #A59D8F !important; border-radius: 0 !important; background: #fff !important; font-size: 16px; }
	.woocommerce form .form-row :is(input.input-text, textarea):focus { border-color: var(--ek-loden) !important; box-shadow: 0 0 0 1px var(--ek-loden) !important; outline: none; }
	.woocommerce form .form-row.woocommerce-invalid :is(input.input-text, select) { border-color: #A1262A !important; }
	:is(.woocommerce form .form-row, #ship-to-different-address, .woocommerce-account-fields, .e-checkout__order_review-2) input[type=checkbox], #shipping_method input[type=radio] { width: 17px; height: 17px; accent-color: var(--ek-loden); }
	.woocommerce-error { border: 1px solid #A1262A !important; border-radius: 0 !important; background: #fff !important; color: var(--ek-ink) !important; }
	.woocommerce-error :is(li, a) { color: var(--ek-ink) !important; }

	/* ---- the woven label ---- */
	.e-checkout__column-inner, .e-cart-totals.e-cart-section { padding: 0 !important; background: none !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; }
	.e-checkout__order_review, .cart_totals { position: relative; padding: 30px 30px 26px !important; background: var(--ek-cloth) !important; border: 0 !important; border-radius: 0 !important; outline: var(--ek-stitch) !important; outline-offset: -8px; box-shadow: none !important; }
	#order_review, .e-coupon-box, .e-checkout__order_review-2 { padding: 0 !important; background: transparent !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; }
	:is(.cart_totals h2, #order_review_heading) { margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; font-family: var(--ek-serif) !important; font-size: 24px !important; font-weight: 400 !important; letter-spacing: -.2px !important; line-height: 1.2 !important; text-align: center; text-transform: none !important; color: var(--ek-ink) !important; }
	:is(.cart_totals table, .woocommerce-checkout-review-order-table) :is(th, td) { padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--ek-ink) 14%, transparent) !important; background: transparent !important; color: var(--ek-ink) !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; letter-spacing: 1.2px !important; text-transform: uppercase !important; }
	.woocommerce-checkout-review-order-table td.product-name { font-family: var(--ek-serif); font-size: 16px; line-height: 1.3; }
	.woocommerce-checkout-review-order-table :is(.product-quantity, dl.variation, dl.variation *) { font-family: var(--e-global-typography-text-font-family, inherit); color: var(--ek-muted) !important; font-weight: 400 !important; font-size: 13px; }
	.rs-co-thumb { width: 64px; background: var(--ek-oat); }
	.rs-co-thumb img { aspect-ratio: 4 / 5; object-fit: cover; }
	:is(.cart_totals, .woocommerce-checkout-review-order-table) .order-total > * { padding-top: 18px !important; border-bottom: 0 !important; }
	:is(.cart_totals, .woocommerce-checkout-review-order-table) .order-total td .amount { font-family: var(--ek-serif) !important; font-size: 28px !important; font-weight: 400 !important; letter-spacing: -.3px; }
	#shipping_method li { margin: 0 0 6px; }
	#shipping_method li label { font-size: 14px; }
	.woocommerce-shipping-destination, .woocommerce-shipping-calculator a { font-size: 13px; color: var(--ek-muted) !important; }
	.wps_recurring_bifurcation_wrapper :is(th, td, h4, li, label) { font-size: 12px !important; color: var(--ek-muted) !important; }

	/* Free delivery, measured on a tailor's tape. */
	.rs-co-free { margin: 0 0 22px; color: var(--ek-loden); }
	.rs-co-free__t { justify-content: center; font-size: 13px; color: var(--ek-ink); }
	.rs-co-free__t strong { font-weight: 600; color: var(--ek-loden); }
	.rs-co-free__t .rs-co-ico { color: var(--ek-loden); }
	.rs-co-free__bar { height: 14px; border: 1px solid color-mix(in srgb, var(--ek-ink) 30%, transparent); background:
		linear-gradient(90deg, var(--ek-ink) 1px, transparent 1px) 0 0 / 30px 9px repeat-x,
		linear-gradient(90deg, var(--ek-muted) 1px, transparent 1px) 0 0 / 6px 5px repeat-x, var(--ek-oat); }
	.rs-co-free__bar span { background: color-mix(in srgb, var(--ek-loden) 38%, transparent); }

	/* Coupon, payment and the action. */
	.e-coupon-box { margin-top: 18px !important; }
	.e-checkout-secondary-title, .e-coupon-anchor-description { font-size: 13px !important; color: var(--ek-muted) !important; }
	.e-checkout-secondary-title a, .showcoupon { color: var(--ek-loden) !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 solid var(--ek-line) !important; border-radius: 0 !important; background: #fff !important; font-size: 13px; line-height: 1.55; color: var(--ek-ink) !important; }
	#payment .woocommerce-info::before { color: var(--ek-loden) !important; }
	#payment .payment_box { background: var(--ek-cloth) !important; border-radius: 0 !important; }
	.woocommerce-privacy-policy-text p, .woocommerce-terms-and-conditions-wrapper { font-size: 12px; line-height: 1.6; color: var(--ek-muted); }
	.checkout-button, #place_order { width: 100%; min-height: 54px; margin: 14px 0 0 !important; border: 0 !important; border-radius: 0 !important; background: var(--ek-loden) !important; color: var(--ek-oat) !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 1.2px !important; text-transform: uppercase !important; transition: background-color 200ms ease, transform 160ms var(--ek-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(--ek-loden-dk) !important; } }
	.rs-co-assure { margin: 18px 0 0; padding-top: 16px; gap: 8px; border-top: var(--ek-stitch); font-size: 13px; color: var(--ek-ink); }
	.rs-co-assure .rs-co-ico { color: var(--ek-loden); }

	/* ---- the bag ---- */
	.shop_table.cart { border: 0 !important; }
	.shop_table.cart thead th { padding: 0 8px 12px !important; border: 0 !important; border-bottom: 1px solid var(--ek-ink) !important; font-size: 11px !important; font-weight: 400 !important; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ek-ink) !important; }
	.shop_table.cart td { padding: 20px 8px !important; border: 0 !important; border-bottom: 1px solid var(--ek-line) !important; vertical-align: middle; }
	.shop_table.cart .product-thumbnail img { width: 96px !important; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ek-cloth); }
	.shop_table.cart td.product-name > a { font-family: var(--ek-serif); font-size: 19px; color: var(--ek-ink) !important; text-decoration: none; }
	.shop_table.cart td.product-name :is(dl.variation, dl.variation *) { font-size: 13px; color: var(--ek-muted) !important; }
	.shop_table.cart :is(.product-price, .product-subtotal) { font-variant-numeric: tabular-nums; }
	.shop_table.cart .quantity input.qty { min-height: 44px; width: 60px; border: 1px solid #A59D8F !important; border-radius: 0 !important; background: #fff !important; text-align: center; }
	.shop_table.cart a.remove { color: var(--ek-muted) !important; }
	@media (hover: hover) and (pointer: fine) { .shop_table.cart a.remove:hover { background: transparent !important; color: var(--ek-loden) !important; } }
	.coupon { margin-top: 20px !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
	.coupon input.input-text { min-height: 46px; padding: 0 14px !important; border: 1px solid #A59D8F !important; border-radius: 0 !important; background: #fff !important; }
	.coupon .button, .e-apply-coupon { min-height: 46px; padding: 0 22px !important; border: 1px solid var(--ek-loden) !important; border-radius: 0 !important; background: transparent !important; color: var(--ek-loden) !important; font-size: 12px !important; font-weight: 400 !important; letter-spacing: 1.2px !important; text-transform: uppercase !important; }
	.e-cart__column-end { margin-top: 32px; }

	/* ---- phone ---- */
	@media (max-width: 767px) {
		.rs-co-steps li { gap: 6px; font-size: 11px; letter-spacing: .8px; }
		.rs-co-steps li + li::before { width: 18px; margin: 0 8px; }
		.rs-co-steps__n { font-size: 16px; }
		.rs-co-mini { background: var(--ek-cloth); outline: var(--ek-stitch); outline-offset: -5px; }
		.rs-co-mini__n { color: var(--ek-muted); opacity: 1; }
		.rs-co-mini__total { font-family: var(--ek-serif); font-size: 19px; }
		.e-checkout__order_review, .cart_totals { padding: 24px 20px 20px !important; }
		.e-checkout__column-inner, .e-cart-totals.e-cart-section { margin-top: 20px; }
	}
}
