/**
 * Goodlight Cart & Checkout Styles
 *
 * Styles the classic WooCommerce cart + checkout shortcodes ([woocommerce_cart]
 * and [woocommerce_checkout]) to match the Goodlight product page design.
 *
 * Design tokens are pulled from goodlight-product.css:
 *   - Body font: HelveticaNeueRoman
 *   - Heading/label font: HelveticaNeueMedium
 *   - Button font: Inter
 *   - Primary button: #222 bg / #fff text / 10px radius
 *   - Secondary button: #fff bg / 1px solid #222 / #222 text / 10px radius
 *   - Muted text: #686666
 *   - Subdued text: #999
 *   - Hairline: #e5e5e5
 *
 * Uses only standard WooCommerce classes so other plugins' hooks keep working.
 */

/* ============================================
   Base container + typography
   ============================================ */

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif;
	color: #222;
	max-width: 1240px;
	margin: 40px auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* Cart page two-column layout.
   The goodlight cart.php template override wraps .cart-collaterals inside
   form.woocommerce-cart-form (so the relocated Apply Coupon submit button
   remains a descendant of the form — WC's cart.js requires this). The form
   itself is therefore the grid container: items column left, totals sidebar
   right. Notices/cross-sells and any hooked output span the full width. */
.woocommerce-cart form.woocommerce-cart-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px 40px;
	align-items: start;
}

.woocommerce-cart form.woocommerce-cart-form > * {
	min-width: 0; /* prevent grid blowout from wide tables */
}

.woocommerce-cart form.woocommerce-cart-form > .goodlight-cart-items {
	grid-column: 1;
	overflow: visible; /* reset any inherited overflow-x:auto so the table can't spawn a scrollbar */
	width: 100%;
}

.woocommerce-cart form.woocommerce-cart-form > .cart-collaterals {
	grid-column: 2;
}

.woocommerce-cart .woocommerce *,
.woocommerce-checkout .woocommerce * {
	box-sizing: border-box;
}

.woocommerce-cart .woocommerce h2,
.woocommerce-cart .woocommerce h3,
.woocommerce-checkout .woocommerce h2,
.woocommerce-checkout .woocommerce h3,
#order_review_heading {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif !important;
	font-weight: 400 !important;
	color: #222;
	letter-spacing: 0.01em;
	margin: 0 0 16px;
	font-size: 20px;
}

/* Notice styles live in goodlight-notices.css (loaded site-wide). */

/* ============================================
   Buttons — primary (#222 filled)
   ============================================ */

.woocommerce-cart .woocommerce button.button,
.woocommerce-cart .woocommerce input.button,
.woocommerce-cart .woocommerce a.button,
.woocommerce-checkout .woocommerce button.button,
.woocommerce-checkout .woocommerce input.button,
.woocommerce-checkout .woocommerce a.button,
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order {
	display: inline-block;
	font-family: 'Inter', sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0.04em !important;
	background: #222 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	padding: 14px 24px !important;
	cursor: pointer;
	line-height: 1.4 !important;
	text-align: center;
	transition: background 0.2s;
	box-shadow: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
}

.woocommerce-cart .woocommerce button.button:hover,
.woocommerce-cart .woocommerce input.button:hover,
.woocommerce-cart .woocommerce a.button:hover,
.woocommerce-checkout .woocommerce button.button:hover,
.woocommerce-checkout .woocommerce input.button:hover,
.woocommerce-checkout .woocommerce a.button:hover,
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce #place_order:hover {
	background: #444 !important;
}

/* Proceed to Checkout + Place Order — full width */
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce #place_order {
	display: block;
	width: 100%;
	padding: 16px 24px !important;
	font-size: 15px !important;
}

/* Secondary style for coupon + "update cart" (outlined) */
.woocommerce-cart .woocommerce button[name="apply_coupon"],
.woocommerce-cart .woocommerce button[name="update_cart"],
.woocommerce-cart .woocommerce input[name="update_cart"] {
	background: #fff !important;
	color: #222 !important;
	border: 1px solid #222 !important;
}

.woocommerce-cart .woocommerce button[name="apply_coupon"]:hover,
.woocommerce-cart .woocommerce button[name="update_cart"]:hover,
.woocommerce-cart .woocommerce input[name="update_cart"]:hover {
	background: #222 !important;
	color: #fff !important;
}

/* Disabled state — don't override bg/color so outlined buttons stay outlined */
.woocommerce button.button:disabled,
.woocommerce input.button:disabled,
.woocommerce button.button[disabled],
.woocommerce input.button[disabled] {
	opacity: 0.5 !important;
	cursor: not-allowed !important;
}

/* ============================================
   Form inputs
   ============================================ */

.woocommerce-cart .woocommerce input[type="text"],
.woocommerce-cart .woocommerce input[type="email"],
.woocommerce-cart .woocommerce input[type="tel"],
.woocommerce-cart .woocommerce input[type="number"],
.woocommerce-cart .woocommerce input[type="password"],
.woocommerce-cart .woocommerce select,
.woocommerce-cart .woocommerce textarea,
.woocommerce-cart .woocommerce .input-text,
.woocommerce-checkout .woocommerce input[type="text"],
.woocommerce-checkout .woocommerce input[type="email"],
.woocommerce-checkout .woocommerce input[type="tel"],
.woocommerce-checkout .woocommerce input[type="number"],
.woocommerce-checkout .woocommerce input[type="password"],
.woocommerce-checkout .woocommerce select,
.woocommerce-checkout .woocommerce textarea,
.woocommerce-checkout .woocommerce .input-text {
	width: 100%;
	padding: 12px 14px;
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif;
	font-size: 15px;
	color: #222;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	line-height: 1.4;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.woocommerce-cart .woocommerce input:focus,
.woocommerce-cart .woocommerce select:focus,
.woocommerce-cart .woocommerce textarea:focus,
.woocommerce-checkout .woocommerce input:focus,
.woocommerce-checkout .woocommerce select:focus,
.woocommerce-checkout .woocommerce textarea:focus,
.woocommerce-checkout .woocommerce .input-text:focus {
	outline: none;
	border-color: #222;
	box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.08);
}

.woocommerce-cart .woocommerce label,
.woocommerce-checkout .woocommerce label {
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif;
	font-size: 13px;
	color: #686666;
	display: block;
	margin-bottom: 6px;
	letter-spacing: 0.02em;
}

.woocommerce-cart .woocommerce .required,
.woocommerce-checkout .woocommerce .required {
	color: #c3b5a1;
	text-decoration: none;
	border: none;
}

/* Select2 (if active — styled WC enhanced selects) */
.woocommerce-checkout .select2-container .select2-selection,
.woocommerce-cart .select2-container .select2-selection {
	border: 1px solid #e5e5e5 !important;
	border-radius: 10px !important;
	height: 46px !important;
	padding: 6px 10px !important;
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif !important;
}

.woocommerce-checkout .select2-container--default .select2-selection__rendered,
.woocommerce-cart .select2-container--default .select2-selection__rendered {
	line-height: 32px !important;
	color: #222 !important;
	padding: 0 !important;
}

.woocommerce-checkout .select2-container--default .select2-selection__arrow,
.woocommerce-cart .select2-container--default .select2-selection__arrow {
	height: 44px !important;
	right: 8px !important;
}

/* ============================================
   CART PAGE
   ============================================ */

/* Cart heading (WC wraps cart in .woocommerce) */
.woocommerce-cart .entry-title,
.woocommerce-cart .page-title {
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif !important;
	font-size: 36px !important;
	font-weight: 400 !important;
	margin: 0 0 32px !important;
	letter-spacing: -0.01em;
}

/* Cart table — fixed layout so columns can't overflow the items column in the
   2-col grid. Explicit column widths sized for the narrow (~460px) items column. */
.woocommerce-cart table.shop_table {
	width: 100%;
	max-width: 100%;
	border: none;
	border-collapse: collapse;
	border-radius: 0;
	margin-bottom: 32px;
	table-layout: fixed;
}

.woocommerce-cart table.shop_table th.product-remove,
.woocommerce-cart table.shop_table td.product-remove {
	width: 36px;
}

.woocommerce-cart table.shop_table th.product-thumbnail,
.woocommerce-cart table.shop_table td.product-thumbnail {
	width: 80px;
}

.woocommerce-cart table.shop_table th.product-name,
.woocommerce-cart table.shop_table td.product-name {
	width: auto; /* flexible — absorbs remaining space */
	overflow-wrap: anywhere;
}

.woocommerce-cart table.shop_table th.product-price,
.woocommerce-cart table.shop_table td.product-price {
	width: 72px;
}

.woocommerce-cart table.shop_table th.product-quantity,
.woocommerce-cart table.shop_table td.product-quantity {
	width: 90px;
}

.woocommerce-cart table.shop_table th.product-subtotal,
.woocommerce-cart table.shop_table td.product-subtotal {
	width: 82px;
}

.woocommerce-cart table.shop_table thead {
	background: transparent;
}

.woocommerce-cart table.shop_table thead th {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #686666;
	padding: 12px 12px;
	border-bottom: 1px solid #e5e5e5;
	background: transparent;
}

.woocommerce-cart table.shop_table tbody td {
	padding: 20px 12px;
	border-top: 1px solid #f0f0f0;
	vertical-align: middle;
	background: transparent;
	font-size: 15px;
	color: #222;
}

.woocommerce-cart table.shop_table tr.cart_item:first-child td {
	border-top: none;
}

/* Remove (×) — column width is set in the "Cart table" block above. */
.woocommerce-cart table.shop_table td.product-remove {
	padding-left: 0;
}

.woocommerce-cart table.shop_table td.product-remove a.remove {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: transparent !important;
	color: #999 !important;
	border: none;
	font-size: 20px;
	line-height: 22px;
	text-align: center;
	text-decoration: none;
	transition: color 0.18s ease, background 0.18s ease;
}

.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
	color: #222 !important;
	background: #f4f4f4 !important;
}

/* Thumbnail — column width is set in the "Cart table" block above. */
.woocommerce-cart table.shop_table td.product-thumbnail {
	padding-left: 0;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

/* Product name */
.woocommerce-cart table.shop_table td.product-name a {
	color: #222;
	text-decoration: none;
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 15px;
	border: none;
}

.woocommerce-cart table.shop_table td.product-name a:hover {
	text-decoration: underline;
}

.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
	color: #444;
	font-size: 15px;
}

.woocommerce-cart table.shop_table td.product-subtotal {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	color: #222;
}

/* Quantity */
.woocommerce-cart table.shop_table td.product-quantity .quantity input.qty {
	width: 70px;
	text-align: center;
	padding: 10px 8px;
	border-radius: 8px;
}

/* Coupon + update row */
.woocommerce-cart table.shop_table td.actions {
	padding: 24px 0 0;
	border-top: 1px solid #e5e5e5;
	background: transparent;
}

.woocommerce-cart .coupon {
	display: inline-flex;
	gap: 8px;
	align-items: stretch;
	flex-wrap: wrap;
}

.woocommerce-cart .coupon label {
	display: none;
}

.woocommerce-cart .coupon #coupon_code {
	width: 220px;
	min-width: 160px;
}

.woocommerce-cart table.shop_table td.actions input[name="update_cart"],
.woocommerce-cart table.shop_table td.actions button[name="update_cart"] {
	float: right;
}

/* Coupon rendered inside .wc-proceed-to-checkout by
   goodlight_render_cart_coupon_in_totals() — stacked above the checkout
   button, full-width input + apply button. */
.woocommerce-cart .wc-proceed-to-checkout .goodlight-cart-coupon {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 16px;
	padding: 0 0 16px;
	border-bottom: 1px solid #eeeae0;
}

.woocommerce-cart .wc-proceed-to-checkout .goodlight-cart-coupon #coupon_code {
	width: 100%;
	min-width: 0;
}

.woocommerce-cart .wc-proceed-to-checkout .goodlight-cart-coupon button[name="apply_coupon"] {
	width: 100%;
	margin: 0;
}

/* Cart collaterals (right column with totals) */
.woocommerce-cart .cart-collaterals {
	display: block;
	margin: 0;
	width: 100%;
	position: sticky;
	top: 24px;
}

.woocommerce-cart .cart-collaterals .cart_totals {
	background: #faf9f6;
	border-radius: 12px;
	padding: 28px;
	width: 100%;
	max-width: none;
	margin: 0;
	float: none;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
	margin: 0 0 16px;
	font-size: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
	margin-bottom: 20px;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th {
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #686666;
	text-transform: none;
	letter-spacing: 0;
	padding: 12px 0;
	border: none;
	border-bottom: 1px solid #eeeae0;
	background: transparent;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table td {
	font-size: 14px;
	color: #222;
	padding: 12px 0;
	border: none;
	border-bottom: 1px solid #eeeae0;
	background: transparent;
	text-align: right;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.order-total th,
.woocommerce-cart .cart-collaterals .cart_totals tr.order-total td {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 18px;
	color: #222;
	border-bottom: none;
	padding-top: 16px;
}

.woocommerce-cart .cart-collaterals .cart_totals tr.order-total .amount {
	font-size: 18px;
}

/* Hide the legacy cross-sells block if not needed — keep visible but unstyled clutter down */
.woocommerce-cart .cross-sells {
	margin-top: 40px;
}

.woocommerce-cart .cross-sells h2 {
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 16px;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */

.woocommerce-checkout .entry-title,
.woocommerce-checkout .page-title {
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif !important;
	font-size: 36px !important;
	font-weight: 400 !important;
	margin: 0 0 32px !important;
	letter-spacing: -0.01em;
}

/* Login / coupon toggles at top */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle {
	margin-bottom: 20px;
}

.woocommerce-checkout form.login,
.woocommerce-checkout form.checkout_coupon {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
	background: #fff;
	box-sizing: border-box;
}

/* Checkout coupon toggle form: input grows, Apply button natural width,
   both on a single row with matching height.
   `!important` on display: flex because WC's $.slideToggle writes an
   inline display value on the form element. */
.woocommerce-checkout form.checkout_coupon {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.woocommerce-checkout form.checkout_coupon[style*="display: none"],
.woocommerce-checkout form.checkout_coupon[style*="display:none"] {
	display: none !important;
}

.woocommerce-checkout form.checkout_coupon .form-row {
	margin: 0;
	padding: 0;
	width: auto;
	float: none;
	display: flex;
	align-items: center;
}

.woocommerce-checkout form.checkout_coupon .form-row-first {
	flex: 1 1 200px;
}

.woocommerce-checkout form.checkout_coupon .form-row-last {
	flex: 0 0 auto;
}

.woocommerce-checkout form.checkout_coupon #coupon_code {
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"] {
	padding: 12px 20px !important;
	width: auto;
	margin: 0;
	white-space: nowrap;
}

/* WC adds a clearfix div for its float layout — unneeded with flex. */
.woocommerce-checkout form.checkout_coupon .clear {
	display: none;
}

/* Main checkout form layout.
   Left column:  express checkout -> billing details -> payment -> place order
   Right column: order heading -> order review (summary only)

   WooCommerce Stripe Gateway injects its Express Checkout Element + "or"
   separator as direct children of form.checkout. We give them dedicated
   full-width grid areas at the top so they land above the form instead of
   auto-flowing into implicit rows at the bottom. The order-attribution
   hidden-input wrapper uses display:contents so it doesn't consume a cell.

   Payment is relocated out of #order_review by goodlight_relocate_checkout_payment()
   so it becomes a direct sibling of #customer_details and lands in the
   `payment` grid area below billing. */
.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas:
		"express   express"
		"separator separator"
		"details   heading"
		"details   review"
		"payment   review";
	gap: 16px 48px;
	align-items: start;
}

.woocommerce-checkout form.checkout #wc-stripe-express-checkout-element {
	grid-area: express;
}

.woocommerce-checkout form.checkout #wc-stripe-express-checkout-button-separator {
	grid-area: separator;
}

/* Hidden order-attribution inputs — flatten out of the grid so they don't
   claim a cell or add a row gap. */
.woocommerce-checkout form.checkout #wc-stripe-express-checkout__order-attribution-inputs {
	display: contents;
}

.woocommerce-checkout form.checkout #customer_details {
	grid-area: details;
}

.woocommerce-checkout form.checkout #payment {
	grid-area: payment;
	margin-top: 8px;
	padding-top: 24px;
	border-top: 1px solid #e5e5e5;
}

.woocommerce-checkout form.checkout #order_review_heading {
	grid-area: heading;
	margin: 0;
}

.woocommerce-checkout form.checkout #order_review {
	grid-area: review;
}

/* Reset WC's default col-1 / col-2 — we're using grid outer-layout */
.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2 {
	width: 100%;
	float: none;
	padding: 0;
	margin-bottom: 0;
}

/* Digital-only shop: no shipping address section, no order-notes residue */
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
	display: none;
}

/* Headings inside billing/shipping sections */
.woocommerce-checkout #customer_details h3 {
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e5e5e5;
}

/* Form row grid */
.woocommerce-checkout .form-row {
	margin-bottom: 16px;
	padding: 0;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
	width: calc(50% - 8px);
	display: inline-block;
	vertical-align: top;
}

.woocommerce-checkout .form-row-first {
	margin-right: 12px;
}

.woocommerce-checkout .form-row-wide {
	width: 100%;
}

/* Order review box (sticky on desktop) */
.woocommerce-checkout #order_review_heading {
	margin: 0 0 16px;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.woocommerce-checkout #order_review {
	background: #faf9f6;
	border-radius: 12px;
	padding: 28px;
	position: sticky;
	top: 24px;
}

.woocommerce-checkout #order_review table.shop_table {
	width: 100%;
	border: none;
	margin-bottom: 20px;
}

.woocommerce-checkout #order_review table.shop_table thead th {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #686666;
	padding: 12px 0;
	border-bottom: 1px solid #eeeae0;
	background: transparent;
}

.woocommerce-checkout #order_review table.shop_table tbody td {
	padding: 14px 0;
	border-bottom: 1px solid #eeeae0;
	background: transparent;
	font-size: 14px;
	color: #222;
}

.woocommerce-checkout #order_review table.shop_table tfoot th,
.woocommerce-checkout #order_review table.shop_table tfoot td {
	padding: 12px 0;
	font-size: 14px;
	color: #444;
	border-top: 1px solid #eeeae0;
	background: transparent;
	text-align: right;
}

.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total th,
.woocommerce-checkout #order_review table.shop_table tfoot tr.order-total td {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 18px;
	color: #222;
	padding-top: 16px;
	border-top: 1px solid #222;
}

/* Payment methods */
.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
	padding: 0;
	border-bottom: 1px solid #eeeae0;
	margin: 0;
	background: transparent;
}

.woocommerce-checkout #payment ul.payment_methods li {
	padding: 12px 0;
	list-style: none;
	border-top: 1px solid #eeeae0;
	background: transparent;
}

.woocommerce-checkout #payment ul.payment_methods li:first-child {
	border-top: none;
}

.woocommerce-checkout #payment ul.payment_methods label {
	color: #222;
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 14px;
	margin: 0;
	display: inline-block;
}

.woocommerce-checkout #payment div.payment_box {
	background: #fff;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 10px 0;
	font-size: 13px;
	color: #444;
	line-height: 1.5;
	box-shadow: inset 0 0 0 1px #eeeae0;
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

/* Terms + place order */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	margin: 16px 0;
	font-size: 13px;
	color: #686666;
}

.woocommerce-checkout .form-row.place-order {
	padding: 16px 0 0;
	margin: 0;
}

/* ============================================
   ORDER RECEIVED (Thank You) PAGE
   ============================================ */

/* The order-received endpoint keeps the Checkout page title — hide it so the
   thank-you banner acts as the hero. */
.woocommerce-order-received .entry-title,
.woocommerce-order-received .page-title {
	display: none !important;
}

.woocommerce-order-received .woocommerce-order {
	max-width: 820px;
	margin: 0 auto;
}

/* Thank-you banner (<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received">)
   Uses .woocommerce-notice (not .woocommerce-message) so notice CSS doesn't touch it. */
.woocommerce-order-received .woocommerce-thankyou-order-received,
.woocommerce-order-received p.woocommerce-notice--success {
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif !important;
	font-size: 28px;
	font-weight: 400;
	color: #222;
	text-align: center;
	padding: 44px 24px;
	margin: 0 0 32px;
	background: #faf9f6;
	border: none !important;
	border-radius: 16px;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

/* Order overview list (order #, date, email, total, payment method).
   Receipt-style: one item per row with label left, value right. Always
   balanced regardless of value length. */
.woocommerce-order-received ul.woocommerce-order-overview,
.woocommerce-order-received ul.order_details {
	display: flex;
	flex-direction: column;
	padding: 8px 28px;
	margin: 0 0 40px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	list-style: none;
}

.woocommerce-order-received ul.woocommerce-order-overview li,
.woocommerce-order-received ul.order_details li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 16px 0;
	margin: 0;
	list-style: none;
	border: none;
	border-bottom: 1px solid #f0f0f0;
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif;
	font-size: 12px;
	color: #686666;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.4;
}

.woocommerce-order-received ul.woocommerce-order-overview li:last-child,
.woocommerce-order-received ul.order_details li:last-child {
	border-bottom: none;
}

.woocommerce-order-received ul.woocommerce-order-overview li strong,
.woocommerce-order-received ul.order_details li strong {
	flex: 0 1 auto;
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: #222;
	text-transform: none;
	letter-spacing: 0;
	text-align: right;
	word-break: break-word;
}

/* Section wrappers */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-order-downloads,
.woocommerce-order-received .woocommerce-customer-details {
	margin: 0 0 40px;
}

.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-order-downloads__title,
.woocommerce-order-received .woocommerce-column__title,
.woocommerce-order-received section > h2 {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #222;
	margin: 0 0 16px;
}

/* Order details + downloads tables */
.woocommerce-order-received table.shop_table {
	width: 100%;
	border: none;
	border-collapse: collapse;
	border-radius: 0;
	margin: 0 0 24px;
	background: transparent;
}

.woocommerce-order-received table.shop_table thead th {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #686666;
	text-align: left;
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid #e5e5e5;
	background: transparent;
}

.woocommerce-order-received table.shop_table thead th:last-child {
	text-align: right;
	padding-right: 0;
}

.woocommerce-order-received table.shop_table tbody td {
	padding: 18px 12px 18px 0;
	border-bottom: 1px solid #f0f0f0;
	background: transparent;
	font-size: 15px;
	color: #222;
	vertical-align: top;
}

.woocommerce-order-received table.shop_table tbody td:last-child {
	text-align: right;
	padding-right: 0;
}

.woocommerce-order-received table.shop_table tbody td.product-name a,
.woocommerce-order-received table.shop_table tbody td.download-product a {
	color: #222;
	text-decoration: none;
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	border: none;
}

.woocommerce-order-received table.shop_table tbody td.product-name a:hover,
.woocommerce-order-received table.shop_table tbody td.download-product a:hover {
	text-decoration: underline;
}

.woocommerce-order-received table.shop_table tbody td.product-name .product-quantity {
	margin-left: 8px;
	color: #686666;
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif;
	font-weight: 400;
}

/* Line-item meta (variations, add-ons) */
.woocommerce-order-received table.shop_table tbody td .wc-item-meta {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: #686666;
}

.woocommerce-order-received table.shop_table tbody td .wc-item-meta li {
	margin: 2px 0;
	padding: 0;
	list-style: none;
}

/* Table footer totals (subtotal, payment method, total) */
.woocommerce-order-received table.shop_table tfoot th,
.woocommerce-order-received table.shop_table tfoot td {
	padding: 12px 0;
	font-size: 14px;
	color: #686666;
	border: none;
	border-top: 1px solid #eeeae0;
	background: transparent;
}

.woocommerce-order-received table.shop_table tfoot th {
	text-align: left;
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif;
	font-weight: 400;
}

.woocommerce-order-received table.shop_table tfoot td {
	text-align: right;
	color: #222;
}

.woocommerce-order-received table.shop_table tfoot tr:last-child th,
.woocommerce-order-received table.shop_table tfoot tr:last-child td {
	font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
	font-size: 18px;
	color: #222;
	padding-top: 16px;
	border-top: 1px solid #222;
}

/* Download buttons — Goodlight is digital-only, this is the key CTA */
.woocommerce-order-received td.download-file a,
.woocommerce-order-received a.woocommerce-MyAccount-downloads-file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	background: #222;
	color: #fff;
	border: none;
	border-radius: 10px;
	text-decoration: none;
	line-height: 1.4;
	transition: background 0.2s ease;
}

.woocommerce-order-received td.download-file a:hover,
.woocommerce-order-received a.woocommerce-MyAccount-downloads-file:hover {
	background: #444;
	color: #fff;
}

/* Customer details (billing address) */
.woocommerce-order-received .woocommerce-customer-details address {
	font-family: 'HelveticaNeueRoman', Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #222;
	font-style: normal;
	padding: 24px 28px;
	background: #faf9f6;
	border: none;
	border-radius: 12px;
}

.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email,
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone {
	margin-bottom: 0;
}

/* Two-column layout for billing + shipping if both are shown */
.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns .woocommerce-column {
	width: 100%;
	float: none;
	padding: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
	.woocommerce-checkout form.checkout {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		grid-template-areas:
			"express"
			"separator"
			"details"
			"heading"
			"review"
			"payment";
		gap: 32px;
	}

	.woocommerce-checkout #order_review {
		position: static;
	}

	/* Cart: stack items above totals */
	.woocommerce-cart form.woocommerce-cart-form {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.woocommerce-cart form.woocommerce-cart-form > .goodlight-cart-items,
	.woocommerce-cart form.woocommerce-cart-form > .cart-collaterals {
		grid-column: 1;
	}

	.woocommerce-cart .cart-collaterals {
		position: static;
	}

	.woocommerce-cart .cart-collaterals .cart_totals {
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.woocommerce-cart .woocommerce,
	.woocommerce-checkout .woocommerce {
		padding: 0 16px;
		margin: 24px auto;
	}

	.woocommerce-cart .entry-title,
	.woocommerce-checkout .entry-title {
		font-size: 28px !important;
	}

	.woocommerce-checkout .form-row-first,
	.woocommerce-checkout .form-row-last {
		width: 100%;
		display: block;
		margin-right: 0;
	}

	/* WC responsive cart table — mobile card view */
	.woocommerce-cart table.shop_table_responsive tbody tr {
		display: block;
		border: 1px solid #e5e5e5;
		border-radius: 10px;
		padding: 16px;
		margin-bottom: 12px;
	}

	.woocommerce-cart table.shop_table_responsive tbody tr td {
		display: block;
		padding: 6px 0;
		border: none;
		text-align: right;
	}

	.woocommerce-cart table.shop_table_responsive tbody tr td::before {
		content: attr(data-title) ": ";
		font-family: 'HelveticaNeueMedium', Helvetica, Arial, sans-serif;
		color: #686666;
		float: left;
		margin-right: 12px;
	}

	.woocommerce-cart .coupon {
		width: 100%;
	}

	.woocommerce-cart .coupon #coupon_code {
		width: 100%;
	}

	/* Order received — smaller hero, single-column overview */
	.woocommerce-order-received .woocommerce-thankyou-order-received,
	.woocommerce-order-received p.woocommerce-notice--success {
		font-size: 22px;
		padding: 32px 20px;
	}

	.woocommerce-order-received ul.woocommerce-order-overview,
	.woocommerce-order-received ul.order_details {
		padding: 4px 20px;
	}

	.woocommerce-order-received ul.woocommerce-order-overview li,
	.woocommerce-order-received ul.order_details li {
		padding: 14px 0;
		font-size: 11px;
	}

	.woocommerce-order-received ul.woocommerce-order-overview li strong,
	.woocommerce-order-received ul.order_details li strong {
		font-size: 14px;
	}

	/* Stack order details table as cards */
	.woocommerce-order-received table.shop_table tbody tr {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid #f0f0f0;
	}

	.woocommerce-order-received table.shop_table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 4px 0;
		border: none;
	}

	.woocommerce-order-received table.shop_table tbody td:last-child {
		text-align: right;
	}
}

/* ============================================
   Showit compatibility
   Showit's sections wrap everything in transforms + padded .se containers;
   strip any inherited max-widths that fight our grid.
   ============================================ */

.page .woocommerce-cart .woocommerce,
.page .woocommerce-checkout .woocommerce {
	position: relative;
	z-index: 1;
}
