/**
 * Midwest Storefront — cart / side-cart / checkout / confirmation.
 * Scoped under .mw-sf so nothing leaks into the live site. Mist palette,
 * Inter + JetBrains Mono (loaded by the chrome). Single breakpoint 820px.
 * The CART renders inside the site chrome; only CHECKOUT is chrome-less.
 *
 * Isolated preview build — see docs/cart-checkout-build-plan.md.
 */
.mw-sf {
	--ink: #141416;
	--muted: rgba(20, 20, 22, 0.55);
	--faint: rgba(20, 20, 22, 0.4);
	--grey: #3a3d42;
	--line: rgba(20, 20, 22, 0.1);
	--line-soft: rgba(20, 20, 22, 0.07);
	--mist: #f7f8f9;
	--paper: #fff;
	--green: #2d7a4a;
	--green-bg: rgba(45, 122, 74, 0.06);
	--orange: #d97a4a;
	--sans: 'Inter', system-ui, -apple-system, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1240px;

	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}
.mw-sf *, .mw-sf *::before, .mw-sf *::after { box-sizing: border-box; }

/* The Hello parent reset.css forces a:hover{color:#333366}=blue and
   button:focus{background:#cc3366}=pink. Neutralize both inside our scope
   (pink is also handled globally in style.css; this is belt-and-suspenders). */
.mw-sf a:hover, .mw-sf a:active { color: inherit; }
.mw-sf button:hover, .mw-sf button:focus, .mw-sf button:active { background: none; color: inherit; }

/* ---- Checkout-only chrome-less header (focused flow) ---- */
.mw-sf__header { border-bottom: 1px solid var(--line); background: var(--mist); }
.mw-sf__header-in { max-width: var(--wrap); margin: 0 auto; padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; }
.mw-sf__logo { display: block; width: 168px; height: 21px; background-color: var(--ink); -webkit-mask: var(--mw-logo) no-repeat left center / contain; mask: var(--mw-logo) no-repeat left center / contain; }
.mw-sf__header-nav { display: flex; align-items: center; gap: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.mw-sf__header-nav a { color: var(--muted); text-decoration: none; }
.mw-sf__header-nav a:hover { color: var(--ink); }

/* ---- Page shell ---- */
.mw-sf__main { max-width: var(--wrap); margin: 0 auto; padding: 48px 32px 80px; }
.mw-sf__titlerow { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.mw-sf__title { font-family: var(--sans); font-weight: 600; font-size: 40px; letter-spacing: -1.4px; margin: 0; }
.mw-sf__title span { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--muted); margin-left: 12px; }
.mw-sf__back { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.mw-sf__back:hover { color: var(--ink); }

.mw-sf__grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }

/* ---- Rewards / free-ship progress bar (visual only) ---- */
.mw-sf-rewards { background: var(--mist); padding: 18px 20px; margin-bottom: 32px; }
.mw-sf-rewards__msg { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mw-sf-rewards__msg svg { width: 17px; height: 17px; flex: none; color: var(--ink); }
.mw-sf-rewards__msg b { font-weight: 600; }
.mw-sf-rewards.is-unlocked .mw-sf-rewards__msg { color: var(--green); }
.mw-sf-rewards.is-unlocked .mw-sf-rewards__msg svg { color: var(--green); }
.mw-sf-rewards__track { position: relative; height: 6px; background: #e3e5e8; display: flex; gap: 3px; overflow: hidden; }
.mw-sf-rewards__seg { height: 100%; background: var(--ink); flex: 0 0 auto; }
.mw-sf-rewards__seg.is-empty { background: #e3e5e8; }
.mw-sf-rewards.is-unlocked .mw-sf-rewards__seg { background: var(--green); }
.mw-sf-rewards__blocks { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mw-sf-rewards__block { font-family: var(--mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); color: var(--faint); }
.mw-sf-rewards__block.is-earned { color: var(--green); border-color: rgba(45, 122, 74, 0.4); background: var(--green-bg); }
.mw-sf-rewards__block .ic { width: 11px; height: 11px; }

/* ---- Line items ---- */
.mw-sf-item { display: grid; grid-template-columns: 104px 1fr auto; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.mw-sf-item:first-child { padding-top: 0; }
.mw-sf-item__media { width: 104px; height: 104px; background: var(--mist); border: 1px solid var(--line-soft); overflow: hidden; }
.mw-sf-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-sf-item__title { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: -0.3px; margin: 0 0 4px; }
.mw-sf-item__title a { color: var(--ink); text-decoration: none; }
.mw-sf-item__variation { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.mw-sf-item__lead { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); margin: 8px 0 14px; }
.mw-sf-item__qtyrow { display: flex; align-items: center; gap: 18px; }
.mw-sf-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); height: 38px; }
.mw-sf-qty button { appearance: none; background: none; border: 0; cursor: pointer; width: 36px; height: 100%; font-size: 16px; line-height: 1; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; }
.mw-sf-qty button:hover { background: var(--mist); color: var(--ink); }
.mw-sf-qty input { width: 42px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-family: var(--sans); font-size: 14px; color: var(--ink); background: #fff; -moz-appearance: textfield; padding: 0; }
.mw-sf-qty input::-webkit-outer-spin-button, .mw-sf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mw-sf-item__remove { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; }
.mw-sf-item__remove:hover { color: var(--ink); text-decoration: underline; }
.mw-sf-item__price { text-align: right; font-weight: 600; font-size: 17px; white-space: nowrap; }
.mw-sf-item__each { font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; color: var(--faint); margin-top: 4px; text-align: right; }
.mw-sf-item.is-busy { opacity: 0.5; pointer-events: none; }

/* ---- Order summary card ---- */
.mw-sf-summary { border: 1px solid var(--line); }
.mw-sf-summary__head { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.mw-sf-summary__body { padding: 18px 22px; }
.mw-sf-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--grey); margin: 0 0 10px; }
.mw-sf-row--total { border-top: 1px solid var(--ink); margin-top: 16px; padding-top: 16px; }
.mw-sf-row--total .mw-sf-row__k { font-family: var(--sans); font-weight: 700; font-size: 19px; color: var(--ink); }
.mw-sf-row--total .mw-sf-row__k sup { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 1px; color: var(--muted); vertical-align: super; margin-left: 3px; }
.mw-sf-row--total .mw-sf-row__v { font-weight: 700; font-size: 22px; color: var(--ink); }
.mw-sf-row__v.is-free { color: var(--green); }
.mw-sf-summary__note { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }
.mw-sf-cobtn { display: block; width: 100%; text-align: center; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; font-weight: 700; text-transform: uppercase; text-decoration: none; padding: 18px; border: 0; cursor: pointer; margin-top: 4px; }
.mw-sf-cobtn, .mw-sf-cobtn:hover, .mw-sf-cobtn:focus { color: #fff !important; }
.mw-sf-cobtn:hover { background: #000; }
.mw-sf-paymenticons { display: flex; gap: 6px; justify-content: center; padding: 14px 0 4px; }
.mw-sf-paymenticons span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.5px; border: 1px solid var(--line); padding: 3px 7px; color: var(--muted); }
.mw-sf-trust { border-top: 1px solid var(--line); padding: 16px 22px; display: flex; gap: 12px; }
.mw-sf-trust svg { width: 18px; height: 18px; flex: none; color: var(--ink); margin-top: 2px; }
.mw-sf-trust__t { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; margin: 0 0 4px; }
.mw-sf-trust__d { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---- Order bump + cross-sells: built but HIDDEN via flag ---- */
.mw-sf-bump[hidden], .mw-sf-crosssell[hidden] { display: none !important; }
.mw-sf-bump { display: flex; align-items: center; gap: 12px; border: 1px dashed var(--line); margin: 0 22px; padding: 12px; }
.mw-sf-bump__img { width: 44px; height: 44px; background: var(--mist); flex: none; }
.mw-sf-bump__save { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.mw-sf-bump__name { font-weight: 600; font-size: 13px; }
.mw-sf-bump__price s { color: var(--faint); }

/* ---- Empty cart ---- */
.mw-sf-empty { text-align: center; padding: 80px 0; }
.mw-sf-empty__t { font-family: var(--sans); font-weight: 600; font-size: 26px; letter-spacing: -0.5px; margin: 0 0 8px; }
.mw-sf-empty__d { color: var(--muted); margin: 0 0 24px; }

/* ---- Mobile ---- */
@media (max-width: 820px) {
	.mw-sf__header-in { padding: 16px 18px; }
	.mw-sf__main { padding: 28px 18px 60px; }
	.mw-sf__title { font-size: 28px; }
	.mw-sf__grid { grid-template-columns: 1fr; gap: 28px; }
	.mw-sf-item { grid-template-columns: 80px 1fr; grid-template-areas: "media body" "media price"; gap: 14px; }
	.mw-sf-item__media { width: 80px; height: 80px; grid-area: media; }
	.mw-sf-item__body { grid-area: body; }
	.mw-sf-item__pricecol { grid-area: price; }
	.mw-sf-item__price, .mw-sf-item__each { text-align: left; }
}

/* ============================ Side cart drawer ============================ */
.mw-sc-overlay { position: fixed; inset: 0; background: rgba(20, 20, 22, 0.4); z-index: 99998; opacity: 0; transition: opacity 0.25s; }
.mw-sc-overlay.is-on { opacity: 1; }
.mw-sc { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: #fff; z-index: 99999; transform: translateX(100%); transition: transform 0.28s ease; box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12); }
.mw-sc.is-open { transform: none; }
.mw-sc__inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.mw-sc__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); flex: none; }
.mw-sc__title { font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }
.mw-sc__title b { color: var(--muted); font-weight: 700; }
.mw-sc__close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0; width: 32px; }
.mw-sc__rewards { padding: 0 22px; flex: none; }
.mw-sc__rewards .mw-sf-rewards { margin: 16px 0 0; }
.mw-sc__items { flex: 1 1 auto; overflow-y: auto; padding: 4px 22px; }
.mw-sc__items .mw-sf-item { grid-template-columns: 72px 1fr; gap: 14px; padding: 18px 0; }
.mw-sc__items .mw-sf-item__media { width: 72px; height: 72px; }
.mw-sc__items .mw-sf-item__pricecol { grid-column: 2; text-align: left; margin-top: 6px; }
.mw-sc__items .mw-sf-item__price, .mw-sc__items .mw-sf-item__each { text-align: left; }
.mw-sc__items .mw-sf-empty { padding: 56px 0; }
.mw-sc__foot { flex: none; border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.mw-sc__subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.mw-sc__tax { font-size: 11.5px; color: var(--muted); margin: 0 0 14px; }
.mw-sc__continue { display: block; width: 100%; text-align: center; margin-top: 10px; padding: 6px 0; background: none; border: 0; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.mw-sc__continue:hover { color: var(--ink); }
.mw-sc-demo { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; font-weight: 700; text-transform: uppercase; border: 0; padding: 14px 24px; cursor: pointer; }
.mw-sc-demo:hover { background: #000; }
@media (max-width: 820px) { .mw-sc { width: 100%; max-width: 100%; } }

/* ====================== Checkout (skinned Woo classic) ====================== */
body.mw-sf-checkout-page { background: #fff; color-scheme: light; min-height: 100vh; }
html:has(body.mw-sf-checkout-page) { background: #fff; }
.mw-sf--checkout { min-height: 100vh; }
.mw-sf-checkout__steps { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin: 0 0 30px; }
.mw-sf-checkout__steps b { color: var(--ink); }
.mw-sf-checkout form.checkout.woocommerce-checkout { display: grid; grid-template-columns: 1fr 432px; gap: 56px; align-items: start; }
.mw-sf-checkout #customer_details { grid-column: 1; }
.mw-sf-checkout #order_review_heading { display: none; }
.mw-sf-checkout #order_review { grid-column: 2; grid-row: 1 / 50; position: sticky; top: 24px; border: 1px solid var(--line); padding: 22px; }
.mw-sf-checkout .col2-set .col-1, .mw-sf-checkout .col2-set .col-2 { width: 100%; float: none; }
.mw-sf-checkout h3 { font-family: var(--sans); font-weight: 600; font-size: 21px; letter-spacing: -0.5px; margin: 30px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.mw-sf-checkout #customer_details h3:first-child { margin-top: 0; }
.mw-sf-checkout .form-row { margin: 0 0 15px; padding: 0; }
.mw-sf-checkout label { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; line-height: 1.4; }
.mw-sf-checkout label.checkbox { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--grey); display: flex; gap: 8px; align-items: flex-start; }
.mw-sf-checkout input.input-text, .mw-sf-checkout textarea, .mw-sf-checkout select, .mw-sf-checkout .select2-container .select2-selection { width: 100%; border: 1px solid var(--line) !important; padding: 12px 14px; font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff; border-radius: 0; height: auto; min-height: 46px; box-shadow: none; }
.mw-sf-checkout .select2-container .select2-selection__rendered { line-height: 22px; padding: 0; color: var(--ink); }
.mw-sf-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.mw-sf-checkout input.input-text:focus, .mw-sf-checkout select:focus, .mw-sf-checkout textarea:focus { border-color: var(--ink) !important; outline: 0; }
.mw-sf-checkout .woocommerce-input-wrapper { display: block; width: 100%; }
.mw-sf-checkout #order_review .shop_table { width: 100%; font-size: 13.5px; margin-bottom: 16px; }
.mw-sf-checkout #order_review .shop_table th, .mw-sf-checkout #order_review .shop_table td { padding: 8px 0; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.mw-sf-checkout #order_review .shop_table td.product-total, .mw-sf-checkout #order_review .shop_table th.product-total { text-align: right; }
.mw-sf-checkout #order_review .order-total .woocommerce-Price-amount { font-size: 19px; font-weight: 700; }
.mw-sf-checkout #payment { background: transparent; border-radius: 0; }
.mw-sf-checkout #payment ul.payment_methods { border: 0; padding: 0; margin: 0 0 12px; }
.mw-sf-checkout #payment div.payment_box { background: var(--mist); border-radius: 0; font-size: 13px; }
.mw-sf-checkout #payment div.payment_box::before { display: none; }
.mw-sf-checkout #place_order { display: block; width: 100%; background: var(--ink) !important; color: #fff !important; font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; font-weight: 700; text-transform: uppercase; padding: 18px; border: 0; border-radius: 0; cursor: pointer; margin-top: 8px; }
.mw-sf-checkout #place_order:hover { background: #000 !important; }
.mw-sf-checkout .woocommerce-info, .mw-sf-checkout .woocommerce-message { background: var(--mist); border-top-color: var(--ink); color: var(--ink); }
@media (max-width: 820px) {
	.mw-sf-checkout form.checkout.woocommerce-checkout { grid-template-columns: 1fr; gap: 0; }
	.mw-sf-checkout #order_review { grid-column: 1; position: static; margin-top: 28px; }
}

/* ============ Custom checkout form (.mw-co) — full design match ============ */
.mw-co__main { min-width: 0; }
.mw-co__summary { position: sticky; top: 24px; }
.mw-co__summary #order_review { background: var(--mist); border: 1px solid rgba(20, 20, 22, 0.14); padding: 22px; }
.mw-co__summary .mw-co-sum__thumb { background: #fff; }
.mw-co__sec { margin-bottom: 40px; }
.mw-co__sec:last-child { margin-bottom: 0; }

/* Section headers with A/B/C/D badge + optional right link */
.mw-co .mw-co__h { font-family: var(--sans); font-weight: 600; font-size: 22px; letter-spacing: -0.6px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); display: block; text-transform: none; color: var(--ink); }
.mw-co .mw-co__h i { font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 1px; color: var(--faint); margin-right: 9px; vertical-align: 2px; }
.mw-co__sechead { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink); margin-bottom: 20px; padding-bottom: 12px; }
.mw-co__sechead .mw-co__h { border: 0; margin: 0; padding: 0; }
.mw-co__login { font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.mw-co__login:hover { color: var(--ink); }

/* Field grid — first/last, city/zip, country/state side-by-side */
.mw-co__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mw-co__fields .form-row { grid-column: 1 / -1; margin: 0 0 15px; padding: 0; }
.mw-co__fields .form-row-first { grid-column: 1; }
.mw-co__fields .form-row-last { grid-column: 2; }
.mw-co__fields .mw-apt { display: none; }
.mw-co__apt-toggle { grid-column: 1 / -1; justify-self: start; display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--grey); text-decoration: none; border-bottom: 1px solid var(--grey); padding: 0 0 1px; margin: 2px 0 14px; }
.mw-co__apt-toggle:hover { color: var(--ink); }

/* Checkboxes — design uses plain sentence-case grey (override the mono field-label rule) */
.mw-co .mw-co__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--grey); margin: 14px 0 0; cursor: pointer; line-height: 1.5; font-family: var(--sans); letter-spacing: 0; text-transform: none; font-weight: 400; }
.mw-co .mw-co__check input { margin-top: 1px; flex: none; width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }
.mw-co .mw-co__check b { color: var(--ink); font-weight: 600; }

/* Create-account promo block */
.mw-co .mw-co__promo { display: flex; gap: 12px; align-items: flex-start; background: var(--mist); border: 1px solid var(--line); padding: 16px 18px; margin: 16px 0 0; cursor: pointer; font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.mw-co .mw-co__promo input { margin-top: 1px; flex: none; width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }
.mw-co__promo-txt { font-size: 13px; color: var(--grey); line-height: 1.55; }
.mw-co__promo-txt b { color: var(--ink); font-weight: 700; }
.mw-co__pts { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; color: var(--orange); font-weight: 700; white-space: nowrap; margin-top: 2px; }
/* Create-account password reveal (shown when "Create an account" is checked) */
.mw-co__acct { margin: -1px 0 0; padding: 16px 18px; background: var(--mist); border: 1px solid var(--line); border-top: 0; }
.mw-co__acct-label { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.mw-co__acct input.input-text { background: #fff; }
.mw-co__acct-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }

/* Shipping method cards (relocated into section C) */
.mw-co__ship { display: flex; flex-direction: column; gap: 10px; }
.mw-co .mw-co-ship { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 15px 18px; cursor: pointer; font-family: var(--sans); text-transform: none; letter-spacing: 0; margin: 0; }
.mw-co .mw-co-ship:has(input:checked) { border-color: var(--ink); background: var(--mist); }
.mw-co .mw-co-ship input { flex: none; width: auto; min-height: 0; margin: 0; }
.mw-co-ship__body { flex: 1; font-size: 14px; color: var(--ink); }
.mw-co-ship__body b { font-weight: 600; }
.mw-co-ship__cost { font-weight: 600; font-size: 14px; white-space: nowrap; }
.mw-co__loading { font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; color: var(--faint); }

/* Rich order summary */
/* Summary bar — desktop: plain header look; mobile: collapsible mist tap-bar. */
.mw-co-sum__bar { display: flex; align-items: baseline; justify-content: space-between; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 14px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); text-align: left; cursor: default; }
.mw-co-sum__bar-l { display: flex; align-items: baseline; gap: 7px; }
.mw-co-sum__bar-ic, .mw-co-sum__chev, .mw-co-sum__bar-total { display: none; }
.mw-co-sum__body { display: block; }
.mw-co-sum__item { display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.mw-co-sum__thumb { position: relative; width: 46px; height: 46px; background: var(--mist); border: 1px solid var(--line-soft); }
.mw-co-sum__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mw-co-sum__qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.mw-co-sum__info { min-width: 0; }
.mw-co-sum__name { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0 0 4px; line-height: 1.3; }
.mw-co-sum__lead { font-family: var(--mono); font-size: 9px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--faint); margin: 0; }
.mw-co-sum__price { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.mw-co-sum__totals { padding: 16px 0 6px; }
.mw-co-sum__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.mw-co-sum__row span:last-child { color: var(--ink); }
.mw-co-sum__row--total { border-top: 1px solid var(--ink); margin-top: 12px; padding-top: 16px; }
.mw-co-sum__row--total span:first-child { font-size: 17px; font-weight: 600; color: var(--ink); }
.mw-co-sum__row--total span:first-child sup { font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 1px; color: var(--muted); vertical-align: super; margin-left: 3px; }
.mw-co-sum__row--total span:last-child { font-size: 20px; font-weight: 600; color: var(--ink); }
.mw-co-sum__row--total .woocommerce-Price-amount { font-size: 20px; font-weight: 600; }
.mw-co-free { color: var(--green); font-weight: 600; }
.mw-co-sum .mw-sf-trust { padding-top: 16px; margin-top: 4px; }

/* ---- Discount code row ---- */
.mw-co-sum__disc { padding: 16px 0 0; }
.mw-co-sum__disc-toggle { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.mw-co-sum__disc-toggle:hover { color: var(--ink); }
.mw-co-sum__disc-form:not([hidden]) { display: flex; gap: 8px; margin-top: 12px; }
.mw-co-sum__disc-input { flex: 1; min-width: 0; min-height: 42px; border: 1px solid var(--line); padding: 10px 12px; font-family: var(--sans); font-size: 14px; background: #fff; border-radius: 0; }
.mw-co-sum__disc-apply { background: var(--ink); color: #fff; border: 0; padding: 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.mw-co-sum__disc-apply:hover { background: #000; }
/* ---- Store credit (new design: orange icon + switch + $-amount field + "Use max" + hint) ---- */
.mw-co-sum__credit { padding: 16px 0; min-width: 0; }
.mw-co-sum__credit-row { display: flex; align-items: center; gap: 14px; }
.mw-co-sum__credit-ic { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--orange); color: var(--orange); }
.mw-co-sum__credit-ic svg { width: 15px; height: 15px; }
.mw-co-sum__credit-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mw-co-sum__credit-title { font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mw-co-sum__credit-bal { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); }
.mw-co-sum__switch { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; display: inline-block; }
.mw-co-sum__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.mw-co-sum__track { position: absolute; inset: 0; background: #eeeff1; transition: background 0.15s ease; }
.mw-co-sum__track::before { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.mw-co-sum__switch input:checked + .mw-co-sum__track { background: var(--ink); }
.mw-co-sum__switch input:checked + .mw-co-sum__track::before { transform: translateX(18px); }
.mw-co-sum__credit-amt { padding-top: 14px; }
.mw-co-sum__credit-amt[hidden] { display: none; }
.mw-co-sum__ca-row { display: flex; gap: 10px; }
.mw-co-sum__ca-field { position: relative; flex: 1; min-width: 0; }
.mw-co-sum__cur { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 14px; pointer-events: none; }
.mw-co-sum__credit-input { width: 100%; min-width: 0; height: 46px; border: 1px solid var(--line); padding: 0 14px 0 28px; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink); background: #fff; border-radius: 0; }
.mw-co-sum__usemax { flex: none; background: #fff; color: var(--ink); border: 1px solid var(--ink); height: 46px; padding: 0 16px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.3px; text-transform: uppercase; cursor: pointer; }
.mw-co-sum__usemax:hover { background: var(--ink); color: #fff; }
.mw-co-sum__ca-hint { display: block; margin-top: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--faint); }
.mw-co-sum__row--disc a.woocommerce-remove-coupon { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: underline; margin-left: 7px; }
.mw-co-sum__row--disc a.woocommerce-remove-coupon:hover { color: var(--ink); }
.mw-co-sum__plugins:empty { display: none; }
.mw-co-sum__plugins { padding-top: 12px; font-size: 13px; }
/* ---- Footer terms ---- */
.mw-co .woocommerce-privacy-policy-text { display: none; }
.mw-co__terms { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 22px 0 0; }
.mw-co__terms a { color: var(--muted); text-decoration: underline; }
.mw-co__terms a:hover { color: var(--ink); }
/* ---- Place-Order lock icon ---- */
.mw-co__pay #place_order::before { content: ""; display: inline-block; width: 12px; height: 13px; margin-right: 9px; vertical-align: -2px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }
/* ---- Email + Street field icons ---- */
.mw-co #billing_email { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b3' stroke-width='1.6'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E") no-repeat right 14px center / 17px !important; padding-right: 42px !important; }
.mw-co #billing_address_1 { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b3' stroke-width='1.6'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat right 14px center / 16px !important; padding-right: 42px !important; }

/* Hide FunnelKit's injected order-bump / slide-cart / checkout elements (storefront.css
   only loads on our preview flows, so this never touches the live site). */
.mw-sf [class*="wfob"], .mw-sf [class*="wfacp"], .mw-sf [class*="wffn"], .mw-co [class*="wfob"], .mw-co [class*="wfacp"], [class*="fkcart"], [id*="fkcart"] { display: none !important; }

/* ---- Checkout field + payment polish ---- */
/* Checkboxes + radios → ink (was browser-default blue) */
.mw-co input[type="checkbox"], .mw-co input[type="radio"], .mw-co .mw-co-ship input { accent-color: var(--ink); }
/* Consistent field spacing (beat Woo's tighter .form-row margin) */
.mw-co .mw-co__fields .form-row { margin: 0 0 16px; }
.mw-co .mw-co__fields .form-row > label { margin-bottom: 7px; }
/* QB card fields: number full width, expiration + CVV side by side (.mwa-qb-cols wraps the two) */
.mw-co__pay .mwa-qb-cols { display: flex; gap: 12px; }
.mw-co__pay .mwa-qb-cols > .mwa-qb-col { flex: 1 1 50%; margin: 0; }
/* Force the single gateway's box open — Woo's slide-toggle collapses it to h:0 after
   we relocate #payment / after AJAX. Style the QB inputs to match our fields. */
/* #payment carries FunnelKit's wfacp_anim class, which our [class*=wfacp] hide rule
   accidentally matched — keep the payment box fully visible. */
.mw-co__pay #payment, .mw-co__pay #payment ul.payment_methods, .mw-co__pay #payment li.wc_payment_method { display: block !important; max-height: none !important; overflow: visible !important; opacity: 1 !important; }
.mw-co__pay #payment li.wc_payment_method { list-style: none; }
.mw-co__pay .payment_box { display: block !important; height: auto !important; overflow: visible !important; opacity: 1 !important; padding: 18px; }
.mw-co__pay .mwa-qb-row { margin: 0 0 14px; }
.mw-co__pay .mwa-qb-label { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.mw-co__pay .mwa-qb-input { width: 100%; min-height: 46px; border: 1px solid var(--line); padding: 12px 14px; font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff; border-radius: 0; }
.mw-co__pay .mwa-qb-input:focus { border-color: var(--ink); outline: 0; }
/* Selects center their value (vs top-aligned inputs) — nudge padding so the gap
   under the floating label matches the text fields. */
#billing_country_field select, #billing_state_field select, #shipping_country_field select, #shipping_state_field select { padding-top: 31px !important; padding-bottom: 5px !important; }
/* Stop Woo's select2 swapping in over our styled native country/state selects
   (that's the on-load flash/shrink). Hide select2's box, force the native select back. */
.mw-co .form-row .select2-container { display: none !important; }
.mw-co .form-row select.country_select, .mw-co .form-row select.state_select, .mw-co .form-row select.select2-hidden-accessible { position: static !important; width: 100% !important; height: 58px !important; clip: auto !important; opacity: 1 !important; display: block !important; }
/* Client-side card validation states (empty card blocks the order). */
.mw-co .mwa-qb-input.mw-co-fieldbad { border-color: #d14343 !important; }
.mw-co .mwa-qb-row { position: relative; }
.mw-co__pay .mw-co-fielderr { background: #fdf1f0; border: 1px solid #e3b6b1; color: #8a2b20; padding: 12px 14px; margin: 0 0 14px; font-size: 13px; line-height: 1.5; }
.mw-co-formerr { background: #fdf1f0; border: 1px solid #e3b6b1; color: #8a2b20; padding: 14px 16px; margin: 0 0 24px; font-size: 13.5px; font-weight: 600; }

/* ---- Robust field grouping by ID (survives Woo's logged-in locale re-classing,
   which otherwise drops city/zip/country/state back to full-width) ---- */
.mw-co__fields > #billing_first_name_field, .mw-co__fields > #billing_city_field, .mw-co__fields > #billing_country_field,
.mw-co__fields > #shipping_first_name_field, .mw-co__fields > #shipping_city_field, .mw-co__fields > #shipping_country_field { grid-column: 1; }
.mw-co__fields > #billing_last_name_field, .mw-co__fields > #billing_postcode_field, .mw-co__fields > #billing_state_field,
.mw-co__fields > #shipping_last_name_field, .mw-co__fields > #shipping_postcode_field, .mw-co__fields > #shipping_state_field { grid-column: 2; }
.mw-co__fields > #billing_company_field, .mw-co__fields > #billing_address_1_field, .mw-co__fields > #billing_address_2_field, .mw-co__fields > #billing_phone_field,
.mw-co__fields > #shipping_company_field, .mw-co__fields > #shipping_address_1_field, .mw-co__fields > #shipping_address_2_field, .mw-co__fields > #shipping_phone_field { grid-column: 1 / -1; }

/* ---- Validation states ---- */
/* Woo prepends the error notice INTO the grid form, squishing the columns — keep it full-width. */
form.mw-co > .woocommerce-NoticeGroup, form.mw-co > .woocommerce-error, form.mw-co > .woocommerce-message, form.mw-co > .woocommerce-info { grid-column: 1 / -1; }
.mw-co .form-row.woocommerce-invalid input.input-text, .mw-co .form-row.woocommerce-invalid select, .mw-co .form-row.woocommerce-invalid textarea { border-color: #d14343 !important; }
.mw-co .form-row.woocommerce-invalid > label { color: #d14343 !important; }
.mw-co-fieldnote { display: block; font-family: var(--sans); font-size: 10px; color: #d14343; margin-top: 5px; line-height: 1.4; }
.mw-co ul.woocommerce-error { background: #fdf1f0; border: 1px solid #e3b6b1; list-style: none; padding: 16px 18px; margin: 0 0 24px; font-size: 13px; }
.mw-co .woocommerce-error, .mw-co .woocommerce-error li, .mw-co .woocommerce-error li strong, .mw-co .woocommerce-error a, .mw-co .woocommerce-NoticeGroup .woocommerce-error li { color: #8a2b20 !important; }
/* QB gateway rate-limiter notices (warning → blocked). The plugin's own CSS doesn't
   load on our custom checkout, so its icon balloons; size + tint them here to match. */
.mw-co__pay svg { max-width: 56px; max-height: 56px; }
.mw-co__pay .mwa-qb-warning, .mw-co__pay .mwa-qb-blocked { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid; font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.mw-co__pay .mwa-qb-warning { background: #fdf6e6; border-color: #e6c97a; color: #6b5200; }
.mw-co__pay .mwa-qb-blocked { background: #fdf1f0; border-color: #e3b6b1; color: #8a2b20; }
.mw-co__pay .mwa-qb-notice-icon { width: 20px !important; height: 20px !important; max-width: 20px !important; max-height: 20px !important; flex: none; margin-top: 1px; }
.mw-co__pay .mwa-qb-notice-body { flex: 1; min-width: 0; }
.mw-co__pay .mwa-qb-notice-body strong { display: block; font-weight: 700; margin-bottom: 3px; }
.mw-co__pay .mwa-qb-notice-body p { margin: 0; }

/* ============ Design-faithful field treatment: labels float INSIDE the field top,
   value below, 58px tall — matches midwest_checkout_registration.html exactly ============ */
.mw-co .mw-co__fields .form-row { position: relative; margin: 0 0 12px; padding: 0; }
.mw-co .mw-co__fields .form-row > label { position: absolute; top: 9px; left: 14px; margin: 0; z-index: 2; pointer-events: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); line-height: 1; }
.mw-co .form-row input.input-text, .mw-co .form-row textarea, .mw-co .form-row select { width: 100%; height: 58px; min-height: 58px; padding: 26px 14px 8px !important; border: 1px solid rgba(20, 20, 22, 0.14) !important; border-radius: 0; background: #fff; font-size: 15px; color: var(--ink); }
.mw-co .form-row { position: relative; margin: 0 0 12px; padding: 0; width: 100% !important; float: none !important; }
.mw-co .form-row > label { position: absolute; top: 9px; left: 14px; margin: 0; z-index: 2; pointer-events: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); line-height: 1; }
.mw-co .mw-co__fields textarea { height: auto; min-height: 84px; }
.mw-co .mw-co__fields .woocommerce-input-wrapper { display: block; width: 100%; }
.mw-co .mw-co__fields select { line-height: 1.2; }
/* Section headings → 17px like the design */
.mw-co .mw-co__h { font-size: 17px; letter-spacing: -0.2px; padding-bottom: 14px; }
.mw-co__sechead { padding-bottom: 14px; }

@media (max-width: 820px) {
	/* Summary -> top of the page, collapses to a tap-bar (design: mobile checkout). */
	.mw-co__summary { position: static; margin: 0 0 8px; order: -1; }
	.mw-co__summary #order_review { padding: 0; border: 0; background: none; }
	.mw-co-sum__bar { background: var(--mist); border: 1px solid rgba(20, 20, 22, 0.14); padding: 14px 16px; font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 600; cursor: pointer; align-items: center; }
	.mw-co-sum__bar-l { align-items: center; gap: 9px; }
	.mw-co-sum__bar-ic { display: inline-block; flex: none; }
	.mw-co-sum__chev { display: inline-block; flex: none; transition: transform 0.2s ease; }
	.mw-co__summary.is-open .mw-co-sum__chev { transform: rotate(180deg); }
	.mw-co-sum__bar-total { display: block; font-weight: 700; font-size: 16px; }
	.mw-co__summary:not(.is-open) .mw-co-sum__body { display: none; }
	.mw-co__summary.is-open .mw-co-sum__body { display: block; background: var(--mist); border: 1px solid rgba(20, 20, 22, 0.14); border-top: 0; padding: 4px 16px 18px; }
	.mw-co__summary.is-open .mw-co-sum__thumb { background: #fff; }
	/* Sticky checkout bar — pinned to the viewport bottom, carries legal + live total. */
	.mw-co__mfoot, .mw-co__mfoot[hidden] { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #fff; border-top: 1px solid rgba(20, 20, 22, 0.14); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.07); }
	.mw-co__mfoot-legal { font-size: 11px; color: var(--muted); line-height: 1.4; margin: 0 0 10px; }
	.mw-co__mfoot-legal a { color: var(--muted); text-decoration: underline; }
	.mw-co__mfoot-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--ink); color: #fff; border: 0; height: 54px; font-family: var(--mono); font-size: 12px; letter-spacing: 1.4px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
	.mw-co__mfoot-lock { width: 12px; height: 13px; flex: none; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat; }
	/* room for the fixed bar; hide the in-form Place Order (sticky bar is the CTA, proxies it) */
	.mw-sf-checkout form.checkout.woocommerce-checkout { padding-bottom: 132px; }
	.mw-co__pay #place_order { display: none !important; }
	/* Discount + store credit, moved out of the collapsed summary into their own section. */
	.mw-co__mpromo { display: block; }
	.mw-co__mpromo .mw-co__h { margin-bottom: 14px; }
	.mw-co__mpromo .mw-co-sum__disc { display: block; width: 100%; padding: 0; }
	.mw-co__mpromo .mw-co-sum__credit { display: block; width: 100%; padding: 16px 0 0; margin-top: 14px; border-top: 1px solid var(--line); }
}
/* Mobile keeps the design's side-by-side field groups — just tighten gaps/padding so they fit */
@media (max-width: 600px) {
	.mw-co__fields { gap: 0 10px; }
	.mw-co .mw-co__fields input.input-text, .mw-co .mw-co__fields select { padding: 11px 10px; font-size: 14px; }
	.mw-sf__header-in { padding: 14px 18px; }
	.mw-sf__header-nav { gap: 12px; font-size: 9px; letter-spacing: 1px; }
}
