/* Moment Makers — Checkout & Cart design
   Fonts: Fraunces (display) + Inter (body/UI) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

body.woocommerce-checkout, body.woocommerce-cart {
	--mm-paper: #F6F5F1;
	--mm-ink: #22261F;
	--mm-ink-soft: #5C6058;
	--mm-brick: #880000;
	--mm-brick-dark: #6B0000;
	--mm-brass: #A9792C;
	--mm-line: #DDD6C8;
	--mm-card: #FFFFFF;
	background: var(--mm-paper);
	color: var(--mm-ink);
	font-family: 'Inter', sans-serif;
}

body.woocommerce-checkout .woocommerce,
body.woocommerce-cart .woocommerce {
	max-width: 1080px;
	margin: 0 auto;
	padding: 48px 24px 80px;
}

/* ---------- Headings ---------- */
body.woocommerce-checkout h3,
body.woocommerce-checkout #order_review_heading {
	font-family: 'Fraunces', serif;
	font-weight: 500;
	font-size: 22px;
	color: var(--mm-ink);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--mm-line);
	position: relative;
}

/* Numbered steps — checkout is a real sequence, so the numbering earns its place */
body.woocommerce-checkout .woocommerce-billing-fields > h3::before {
	content: "01";
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: #fff;
	background: var(--mm-brick);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-right: 10px;
	vertical-align: middle;
}
body.woocommerce-checkout .woocommerce-shipping-fields > h3::before {
	content: "02";
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: var(--mm-brick);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-right: 10px;
	vertical-align: middle;
}
body.woocommerce-checkout #order_review_heading::before {
	content: "03";
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: var(--mm-brick);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-right: 10px;
	vertical-align: middle;
}

/* ---------- Two-column layout ---------- */
body.woocommerce-checkout form.checkout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
}
body.woocommerce-checkout #customer_details {
	flex: 1 1 520px;
	min-width: 320px;
}
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #order_review_heading {
	flex: 1 1 380px;
	min-width: 300px;
}

/* ---------- Form fields ---------- */
body.woocommerce-checkout .form-row label {
	font-size: 13px;
	font-weight: 500;
	color: var(--mm-ink-soft);
	margin-bottom: 6px;
	display: block;
}
body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea {
	font-family: 'Inter', sans-serif;
	background: var(--mm-card);
	border: 1px solid var(--mm-line);
	border-radius: 6px;
	padding: 12px 14px;
	width: 100%;
	font-size: 15px;
	color: var(--mm-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus {
	outline: none;
	border-color: var(--mm-brick);
	box-shadow: 0 0 0 3px rgba(140, 58, 43, 0.14);
}

/* ---------- Order summary card — the gift-tag signature ---------- */
body.woocommerce-checkout #order_review,
body.woocommerce-cart .cart-collaterals .cart_totals {
	background: var(--mm-card);
	border: 1px solid var(--mm-line);
	border-radius: 10px;
	padding: 28px 24px 24px;
	position: relative;
	position: sticky;
	top: 24px;
}
/* the punched hole */
body.woocommerce-checkout #order_review::before,
body.woocommerce-cart .cart-collaterals .cart_totals::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 28px;
	width: 16px;
	height: 16px;
	background: var(--mm-paper);
	border: 1px solid var(--mm-line);
	border-radius: 50%;
}
/* the thread */
body.woocommerce-checkout #order_review::after,
body.woocommerce-cart .cart-collaterals .cart_totals::after {
	content: "";
	position: absolute;
	top: -22px;
	left: 34px;
	width: 4px;
	height: 16px;
	border-left: 2px dashed var(--mm-brass);
	transform: rotate(12deg);
}

body.woocommerce-checkout table.shop_table,
body.woocommerce-cart table.shop_table {
	border: none;
	width: 100%;
}
body.woocommerce-checkout table.shop_table th,
body.woocommerce-cart table.shop_table th {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mm-ink-soft);
	border-bottom: 1px solid var(--mm-line);
	padding-bottom: 10px;
}
body.woocommerce-checkout table.shop_table td,
body.woocommerce-cart table.shop_table td {
	border-bottom: 1px solid var(--mm-line);
	padding: 14px 0;
	font-size: 15px;
}
body.woocommerce-checkout table.shop_table tr:last-child td,
body.woocommerce-cart table.shop_table tr:last-child td {
	border-bottom: none;
}
body.woocommerce-checkout .order-total .amount,
body.woocommerce-cart .order-total .amount {
	font-family: 'Fraunces', serif;
	font-size: 22px;
	color: var(--mm-brick);
}

/* Savings / on-sale badge, tuned to the brass accent */
body.woocommerce-checkout del,
body.woocommerce-cart del {
	color: var(--mm-ink-soft);
	opacity: 0.7;
}
body.woocommerce-checkout ins,
body.woocommerce-cart ins {
	text-decoration: none;
	color: var(--mm-brick);
	font-weight: 600;
}

/* ---------- Shipping & payment method cards ---------- */
body.woocommerce-checkout ul#shipping_method,
body.woocommerce-checkout ul.payment_methods {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}
body.woocommerce-checkout ul#shipping_method li,
body.woocommerce-checkout ul.payment_methods li.wc_payment_method {
	border: 1px solid var(--mm-line);
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 10px;
	background: var(--mm-card);
	transition: border-color 0.15s ease;
}
body.woocommerce-checkout ul#shipping_method li:has(input:checked),
body.woocommerce-checkout ul.payment_methods li:has(input:checked) {
	border-color: var(--mm-brick);
	background: #FBF3F1;
}
body.woocommerce-checkout .payment_box {
	background: transparent;
	font-size: 14px;
	color: var(--mm-ink-soft);
	padding: 10px 0 0 28px;
}

/* ---------- Buttons ---------- */
body.woocommerce-checkout #place_order,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart input.button {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	background: var(--mm-brick);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 16px 28px;
	width: 100%;
	cursor: pointer;
	transition: background 0.15s ease;
}
body.woocommerce-checkout #place_order:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-cart input.button:hover {
	background: var(--mm-brick-dark);
}
body.woocommerce-checkout #place_order:focus-visible,
body.woocommerce-cart .checkout-button:focus-visible {
	outline: 3px solid var(--mm-brass);
	outline-offset: 2px;
}

/* ---------- Notices ---------- */
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info {
	font-family: 'Inter', sans-serif;
	border-top-color: var(--mm-brick);
	border-radius: 6px;
	padding: 14px 18px;
}

/* ---------- Mobile ---------- */
@media (max-width: 782px) {
	body.woocommerce-checkout .woocommerce,
	body.woocommerce-cart .woocommerce {
		padding: 28px 16px 60px;
	}
	body.woocommerce-checkout #order_review {
		position: static;
	}
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	body.woocommerce-checkout *,
	body.woocommerce-cart * {
		transition: none !important;
	}
}
