/* ==========================================================================
   WooCommerce-owned pages — cart, checkout, the order-pay invoice screen and
   the order-received confirmation — restyled to match the site.

   Uses the same tokens and button language as the rest of the build so the
   invoice a customer opens from their email doesn't look like a different site.
   ========================================================================== */

.woocommerce-page main,
.woocommerce main {
	background: var(--wp--preset--color--paper);
	padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 40px) clamp(48px, 6vw, 80px);
}
.woocommerce-page main > *,
.woocommerce main > * {
	max-width: 860px;
	margin-inline: auto;
}

/* ---- headings ------------------------------------------------------------ */
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	letter-spacing: -.01em;
	color: var(--wp--preset--color--ink);
	margin: 0 0 16px;
}
.woocommerce-page h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1; }
.woocommerce-page h2 { font-size: clamp(22px, 3vw, 30px); }
.woocommerce-page h3 { font-size: 18px; }
.woocommerce-page p { color: var(--wp--preset--color--muted); line-height: 1.65; }

/* ---- the order / invoice table ------------------------------------------- */
.woocommerce table.shop_table {
	width: 100%;
	border: 1px solid rgba(12,14,19,.12);
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: #fff;
	margin-bottom: 26px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 15px 18px;
	text-align: left;
	border-bottom: 1px solid rgba(12,14,19,.08);
	font-size: 15px;
	color: var(--wp--preset--color--ink);
	vertical-align: top;
}
.woocommerce table.shop_table th {
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--sand);
}
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td { font-weight: 800; background: #fff; }
.woocommerce table.shop_table tfoot tr:last-child th,
.woocommerce table.shop_table tfoot tr:last-child td {
	font-size: 19px;
	color: var(--wp--preset--color--ink);
	border-bottom: 0;
}
.woocommerce table.shop_table .amount { font-weight: 800; }

/* Line-item option meta (video intro, jersey swaps) stays readable. */
.woocommerce table.shop_table .wc-item-meta,
.woocommerce table.shop_table dl.variation {
	margin: 8px 0 0; padding: 0; font-size: 13.5px; color: var(--wp--preset--color--muted);
}
.woocommerce table.shop_table .wc-item-meta li { margin: 3px 0; list-style: none; }
.woocommerce table.shop_table .wc-item-meta strong { font-weight: 700; }

/* ---- payment methods on the order-pay screen ----------------------------- */
.woocommerce #payment,
.woocommerce-checkout #payment {
	background: #fff;
	border: 1px solid rgba(12,14,19,.12);
	border-radius: 16px;
	padding: 22px;
}
.woocommerce #payment ul.payment_methods {
	list-style: none; margin: 0 0 16px; padding: 0 0 16px;
	border-bottom: 1px solid rgba(12,14,19,.1);
}
.woocommerce #payment ul.payment_methods li { margin-bottom: 10px; }
.woocommerce #payment ul.payment_methods label {
	font-weight: 700; color: var(--wp--preset--color--ink); font-size: 15px; cursor: pointer;
}
.woocommerce #payment div.payment_box {
	background: var(--wp--preset--color--sand);
	border-radius: 11px; padding: 14px 16px; margin-top: 10px;
	font-size: 14px; color: var(--wp--preset--color--muted);
}

/* ---- buttons — same language as every other CTA on the site -------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order,
.woocommerce #payment #place_order {
	background: var(--wp--preset--color--accent-cta) !important;
	color: #fff !important;
	font-family: inherit;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: .01em;
	padding: 16px 30px;
	border: 0;
	border-radius: 11px;
	box-shadow: var(--wp--custom--shadow--cta);
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s;
	line-height: 1.2;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #place_order:hover { background: var(--wp--preset--color--accent-dark) !important; }
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible,
.woocommerce #place_order:focus-visible {
	outline: 3px solid var(--wp--preset--color--ink); outline-offset: 3px;
}
/* Disabled/processing must still read clearly. */
.woocommerce .button:disabled,
.woocommerce .button.disabled { opacity: .72; cursor: progress; color: #fff !important; }

/* ---- notices ------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 12px;
	padding: 15px 18px;
	font-size: 14.5px;
	list-style: none;
	margin: 0 0 22px;
	border: 1.5px solid;
}
.woocommerce-message { background: #EAF7EE; border-color: #1E7A3C; color: #14572A; }
.woocommerce-info    { background: var(--wp--preset--color--sand); border-color: rgba(12,14,19,.2); color: var(--wp--preset--color--ink); }
.woocommerce-error   { background: #FDECEA; border-color: #B3261E; color: #7A1A15; }

/* ---- order-received confirmation ---------------------------------------- */
.woocommerce .woocommerce-order > p:first-child,
.woocommerce-order-received .woocommerce-thankyou-order-received {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase;
	font-size: clamp(24px, 3.4vw, 34px);
	line-height: 1.1;
	color: var(--wp--preset--color--ink);
	margin-bottom: 22px;
}
.woocommerce ul.order_details {
	list-style: none; margin: 0 0 28px; padding: 22px;
	display: flex; flex-wrap: wrap; gap: 22px 34px;
	background: var(--wp--preset--color--sand); border-radius: 16px;
}
.woocommerce ul.order_details li {
	font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.woocommerce ul.order_details li strong {
	display: block; margin-top: 6px; font-size: 17px; letter-spacing: 0;
	text-transform: none; color: var(--wp--preset--color--ink);
}

/* ---- form fields --------------------------------------------------------- */
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce form .form-row label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; color: var(--wp--preset--color--ink); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	font: inherit;
	font-size: 16px; /* avoids iOS zoom-on-focus */
	padding: 13px 15px;
	border: 1.5px solid rgba(12,14,19,.22);
	border-radius: 11px;
	background: #fff;
	color: var(--wp--preset--color--ink);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-cta);
	box-shadow: 0 0 0 3px rgba(208,53,12,.3);
}

/* ---- mobile -------------------------------------------------------------- */
@media (max-width: 620px) {
	/* Stack the order table into readable rows rather than a squashed grid. */
	.woocommerce table.shop_table thead { display: none; }
	.woocommerce table.shop_table,
	.woocommerce table.shop_table tbody,
	.woocommerce table.shop_table tfoot,
	.woocommerce table.shop_table tr,
	.woocommerce table.shop_table th,
	.woocommerce table.shop_table td { display: block; width: 100%; }
	.woocommerce table.shop_table tr { border-bottom: 1px solid rgba(12,14,19,.1); }
	.woocommerce table.shop_table tr:last-child { border-bottom: 0; }
	.woocommerce table.shop_table td,
	.woocommerce table.shop_table tfoot th { border-bottom: 0; padding: 12px 16px; }
	.woocommerce table.shop_table tfoot tr { display: flex; justify-content: space-between; align-items: baseline; }
	/* The header row is hidden when stacked, so re-label the body cells —
	   otherwise "× 1" and "$45.00" appear as bare unlabelled rows. */
	.woocommerce table.shop_table tbody td.product-quantity,
	.woocommerce table.shop_table tbody td.product-subtotal,
	.woocommerce table.shop_table tbody td.product-total {
		display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
		padding-top: 6px; padding-bottom: 6px;
	}
	.woocommerce table.shop_table tbody td.product-quantity::before,
	.woocommerce table.shop_table tbody td.product-subtotal::before,
	.woocommerce table.shop_table tbody td.product-total::before {
		font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
		color: var(--wp--preset--color--muted);
	}
	.woocommerce table.shop_table tbody td.product-quantity::before { content: "Quantity"; }
	.woocommerce table.shop_table tbody td.product-subtotal::before,
	.woocommerce table.shop_table tbody td.product-total::before { content: "Amount"; }
	/* Keep the item and its figures visually grouped. */
	.woocommerce table.shop_table tbody tr { padding-bottom: 8px; }
	.woocommerce a.button,
	.woocommerce button.button,
	.woocommerce input.button,
	.woocommerce #place_order { width: 100%; text-align: center; }
	.woocommerce ul.order_details { flex-direction: column; gap: 16px; }
}
