/**
 * 4WD Shop Ecosystem - WooCommerce page styles (Divi fallback)
 *
 * Purpose: archives, single product, cart, checkout and My Account do not
 * receive Divi module styling, so WooCommerce defaults leak through. These
 * rules restore the brand look using the existing --fwd-* tokens.
 *
 * Scope: every rule is prefixed with a WooCommerce body class so nothing
 * leaks onto builder pages or the home page.
 *
 * Sections:
 *   1. Base typography
 *   2. Buttons
 *   3. Product archive grid
 *   4. Single product
 *   5. Cart and checkout (shared)
 *   6. Links
 *   7. My Account: layout and navigation
 *   8. My Account: addresses
 *   9. Cart layout
 *  10. Single product layout (Divi Theme Builder modules)
 *  11. Checkout (block checkout): terms and Place Order
 */


/* =========================================================
   1. Base typography
   ========================================================= */
body.woocommerce-page #main-content,
body.woocommerce-page #main-content p,
body.woocommerce-page #main-content li,
body.woocommerce-page #main-content td,
body.woocommerce-page #main-content th {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.woocommerce-page #main-content h1,
body.woocommerce-page #main-content h2,
body.woocommerce-page #main-content h3 {
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	color: var(--fwd-black, #000000);
	line-height: 1.2;
}


/* =========================================================
   2. Buttons (shop loop, single product, cart, checkout)
   ========================================================= */
/* !important on color/background is deliberate: a global color rule with
   !important exists on the page and would otherwise win. */
body.woocommerce-page a.button,
body.woocommerce-page button.button,
body.woocommerce-page input.button,
body.woocommerce-page #respond input#submit,
body.woocommerce-page .single_add_to_cart_button.button.alt,
body.woocommerce-page .checkout-button.button.alt,
body.woocommerce-page #place_order,
body.woocommerce-page .wc-block-components-button:not(.is-link) {
	display: inline-block;
	background: var(--fwd-primary, #f1651f) !important;
	color: var(--fwd-white, #ffffff) !important;
	border: 2px solid var(--fwd-primary, #f1651f) !important;
	border-radius: 3px;
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3em;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-align: center;
	padding: 0.75em 1.5em;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-page a.button:hover,
body.woocommerce-page button.button:hover,
body.woocommerce-page input.button:hover,
body.woocommerce-page #respond input#submit:hover,
body.woocommerce-page .single_add_to_cart_button.button.alt:hover,
body.woocommerce-page .checkout-button.button.alt:hover,
body.woocommerce-page #place_order:hover,
body.woocommerce-page .wc-block-components-button:not(.is-link):hover {
	background: var(--fwd-primary-hover, #d84e0b) !important;
	border-color: var(--fwd-primary-hover, #d84e0b) !important;
	color: var(--fwd-white, #ffffff) !important;
}

body.woocommerce-page a.button:focus-visible,
body.woocommerce-page button.button:focus-visible,
body.woocommerce-page #place_order:focus-visible {
	outline: 2px solid var(--fwd-black, #000000);
	outline-offset: 2px;
}

/* Disabled state (variation / out of stock) */
body.woocommerce-page button.button:disabled,
body.woocommerce-page button.button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}


/* =========================================================
   3. Product archive grid
   ========================================================= */
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
	font-size: 16px;
	font-weight: 700;
	color: var(--fwd-dark, #333333);
	padding: 0.5em 0;
}

body.woocommerce-page ul.products li.product .price,
body.woocommerce-page div.product p.price,
body.woocommerce-page div.product span.price {
	color: var(--fwd-primary, #f1651f);
	font-weight: 700;
}

body.woocommerce-page ul.products li.product .onsale,
body.woocommerce-page span.onsale {
	background: var(--fwd-primary, #f1651f);
	color: var(--fwd-white, #ffffff);
	border-radius: 3px;
	font-weight: 700;
}

/* Result count and sorting */
body.woocommerce-page .woocommerce-result-count {
	color: var(--fwd-text, #555555);
	font-size: 14px;
}

body.woocommerce-page .woocommerce-ordering select {
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	padding: 0.5em 0.75em;
	background: var(--fwd-white, #ffffff);
	color: var(--fwd-dark, #333333);
}

/* Pagination */
body.woocommerce-page nav.woocommerce-pagination ul {
	border: 0;
}

body.woocommerce-page nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0 3px;
}

body.woocommerce-page nav.woocommerce-pagination ul li a,
body.woocommerce-page nav.woocommerce-pagination ul li span {
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	color: var(--fwd-dark, #333333);
	padding: 0.5em 0.9em;
}

body.woocommerce-page nav.woocommerce-pagination ul li a:hover,
body.woocommerce-page nav.woocommerce-pagination ul li span.current {
	background: var(--fwd-primary, #f1651f);
	border-color: var(--fwd-primary, #f1651f);
	color: var(--fwd-white, #ffffff);
}


/* =========================================================
   4. Single product
   ========================================================= */
body.woocommerce-page div.product .stock.in-stock {
	color: var(--fwd-success, #8bc34a);
	font-weight: 600;
}

body.woocommerce-page div.product .stock.out-of-stock {
	color: var(--fwd-error, #e53935);
	font-weight: 600;
}

body.woocommerce-page .quantity .qty {
	height: 48px;
	width: 70px;
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	background: var(--fwd-white, #ffffff);
	color: var(--fwd-dark, #333333);
	text-align: center;
}

body.woocommerce-page div.product form.cart .single_add_to_cart_button {
	min-height: 48px;
}

/* Tabs */
body.woocommerce-page .woocommerce-tabs ul.tabs li.active a,
body.woocommerce-page .et_pb_tabs_controls li.et_pb_tab_active a {
	color: var(--fwd-black, #000000);
	border-bottom: 3px solid var(--fwd-primary, #f1651f);
}

/* Attribute table */
body.woocommerce-page table.shop_attributes th {
	color: var(--fwd-dark, #333333);
	font-weight: 700;
}

body.woocommerce-page table.shop_attributes td p {
	margin: 0;
	padding: 0;
}


/* =========================================================
   5. Cart and checkout (shared)
   ========================================================= */
body.woocommerce-page table.shop_table {
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
}

body.woocommerce-page table.shop_table th {
	background: var(--fwd-bg-light, #f5f5f5);
	color: var(--fwd-dark, #333333);
}

body.woocommerce-page .woocommerce form .form-row input.input-text,
body.woocommerce-page .woocommerce form .form-row textarea,
body.woocommerce-page .woocommerce form .form-row select {
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	padding: 0.7em;
	background: var(--fwd-white, #ffffff);
	color: var(--fwd-dark, #333333);
}

body.woocommerce-page .woocommerce form .form-row input.input-text:focus,
body.woocommerce-page .woocommerce form .form-row textarea:focus {
	border-color: var(--fwd-primary, #f1651f);
	outline: 0;
}

/* Notices */
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info {
	border-top-color: var(--fwd-primary, #f1651f);
}

body.woocommerce-page .woocommerce-error {
	border-top-color: var(--fwd-error, #e53935);
}


/* =========================================================
   6. Links
   ========================================================= */
/* .edit is excluded so the My Account address buttons keep their own colors */
body.woocommerce-page #main-content .woocommerce a:not(.button):not(.edit) {
	color: var(--fwd-primary, #f1651f);
}

body.woocommerce-page #main-content .woocommerce a:not(.button):not(.edit):hover {
	color: var(--fwd-primary-hover, #d84e0b);
}


/* =========================================================
   7. My Account: layout and navigation
   ========================================================= */
/* Two-column layout: nav on the left, content on the right */
body.woocommerce-account .woocommerce::after {
	content: "";
	display: table;
	clear: both;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
	float: left;
	width: 26%;
	margin: 0 0 24px;
	box-sizing: border-box;
	background: var(--fwd-white, #ffffff);
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-content {
	float: right;
	width: 70%;
	box-sizing: border-box;
}

/* Menu list reset */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--fwd-border, #e0e0e0);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
	border-bottom: 0;
}

/* Links. !important on color and background is needed because the global
   link rule in section 6 uses a #main-content selector. */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 14px 20px;
	border-left: 4px solid transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--fwd-dark, #333333) !important;
	background: transparent !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hover and keyboard focus */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:focus-visible {
	color: var(--fwd-primary, #f1651f) !important;
	background: var(--fwd-bg-light, #f5f5f5) !important;
}

/* Active page */
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	color: var(--fwd-primary, #f1651f) !important;
	background: var(--fwd-bg-light, #f5f5f5) !important;
	border-left-color: var(--fwd-primary, #f1651f);
}

/* Log out sits apart from the account pages */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--fwd-light, #999999) !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	color: var(--fwd-error, #e53935) !important;
}

/* Mobile: stack the nav above the content */
@media (max-width: 767px) {
	body.woocommerce-account .woocommerce-MyAccount-navigation,
	body.woocommerce-account .woocommerce-MyAccount-content {
		float: none;
		width: 100%;
	}

	body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
		padding: 12px 16px;
	}
}


/* =========================================================
   8. My Account: addresses
   ========================================================= */
/* Cards: two columns on desktop, stacked on mobile */
body.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: 16px;
	width: 100%;
}

/* WooCommerce clearfix pseudo-elements would otherwise occupy grid cells */
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after {
	content: none !important;
	display: none !important;
}

/* Beat WooCommerce's .col-1 / .col-2 float and 48% width rules */
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
body.woocommerce-account .woocommerce-Addresses .u-column1,
body.woocommerce-account .woocommerce-Addresses .u-column2 {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 20px 24px;
	box-sizing: border-box;
	background: var(--fwd-white, #ffffff);
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
}

/* Title left, action right, on one row */
body.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--fwd-border, #e0e0e0);
}

/* WooCommerce clearfix pseudo-elements become empty flex items */
body.woocommerce-account .woocommerce-Address-title::before,
body.woocommerce-account .woocommerce-Address-title::after {
	content: none !important;
	display: none !important;
}

/* The oversized heading fix; flex lets the title take the free space */
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
	float: none !important;
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--fwd-black, #000000);
}

/* "Add / Edit address" as a small outlined button */
body.woocommerce-account .woocommerce-Address-title a.edit {
	float: none !important;
	flex: 0 0 auto;
	display: inline-block;
	white-space: nowrap;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--fwd-primary, #f1651f) !important;
	background: transparent !important;
	border: 2px solid var(--fwd-primary, #f1651f);
	border-radius: 3px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-account .woocommerce-Address-title a.edit:hover,
body.woocommerce-account .woocommerce-Address-title a.edit:focus-visible {
	background: var(--fwd-primary, #f1651f) !important;
	color: var(--fwd-white, #ffffff) !important;
}

/* Address body: drop the italic, make it readable */
body.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	font-size: 15px;
	line-height: 1.6;
	color: var(--fwd-text, #555555);
}

/* Intro sentence above the cards */
body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
	color: var(--fwd-text, #555555);
	font-size: 15px;
}

/* Mobile: stack the cards */
@media (max-width: 767px) {
	body.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: 1fr;
	}
}


/* =========================================================
   9. Cart layout
   ========================================================= */
/* Cart table */
body.woocommerce-cart table.woocommerce-cart-form__contents {
	width: 100%;
	table-layout: auto;
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--fwd-white, #ffffff);
}

body.woocommerce-cart table.woocommerce-cart-form__contents thead th {
	padding: 14px 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--fwd-text, #555555);
	background: var(--fwd-bg-light, #f5f5f5);
	border-bottom: 1px solid var(--fwd-border, #e0e0e0);
}

body.woocommerce-cart table.woocommerce-cart-form__contents tbody td {
	padding: 18px 16px;
	vertical-align: middle;
	border-top: 1px solid var(--fwd-border, #e0e0e0);
	color: var(--fwd-dark, #333333);
}

body.woocommerce-cart table.woocommerce-cart-form__contents tbody tr:first-child td {
	border-top: 0;
}

/* Column sizing: narrow remove/thumbnail, product name takes the rest */
body.woocommerce-cart table.woocommerce-cart-form__contents .product-remove {
	width: 40px;
	padding-right: 0;
}

body.woocommerce-cart table.woocommerce-cart-form__contents .product-thumbnail {
	width: 96px;
	min-width: 96px;
}

body.woocommerce-cart table.woocommerce-cart-form__contents .product-name {
	min-width: 220px;
}

body.woocommerce-cart table.woocommerce-cart-form__contents .product-price,
body.woocommerce-cart table.woocommerce-cart-form__contents .product-subtotal {
	white-space: nowrap;
}

/* Thumbnail: larger so the product is recognizable */
body.woocommerce-cart table.woocommerce-cart-form__contents td.product-thumbnail img {
	display: block;
	width: 80px !important;
	min-width: 80px;
	height: 80px;
	max-width: none;
	object-fit: cover;
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
}

/* Product name: bold, dark, no hover effect.
   !important is needed because the generic link rule uses #main-content. */
body.woocommerce-cart .woocommerce-cart-form a:not(.button):not(.remove),
body.woocommerce-cart .woocommerce-cart-form a:not(.button):not(.remove):hover,
body.woocommerce-cart .woocommerce-cart-form a:not(.button):not(.remove):focus {
	color: var(--fwd-dark, #333333) !important;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none !important;
	opacity: 1 !important;
	transition: none !important;
}

body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail a:hover img {
	opacity: 1 !important;
}

/* Remove link: quiet gray circle, red only on hover */
body.woocommerce-cart table.woocommerce-cart-form__contents a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	font-weight: 400;
	color: var(--fwd-light, #999999) !important;
	background: transparent !important;
	border: 1px solid var(--fwd-border, #e0e0e0);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.woocommerce-cart table.woocommerce-cart-form__contents a.remove:hover {
	color: var(--fwd-white, #ffffff) !important;
	background: var(--fwd-error, #e53935) !important;
	border-color: var(--fwd-error, #e53935);
}

/* Prices */
body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal {
	font-weight: 700;
	color: var(--fwd-dark, #333333);
}

/* Quantity input */
body.woocommerce-cart table.woocommerce-cart-form__contents .quantity .qty {
	width: 70px;
	height: 44px;
	text-align: center;
}

/* Cart actions row (coupon and update).
   Stays a real table cell so it spans all six columns. */
body.woocommerce-cart table.woocommerce-cart-form__contents td.actions {
	display: table-cell;
	padding: 16px;
	text-align: right;
	background: var(--fwd-bg-light, #f5f5f5);
}

/* Coupon group on the left */
body.woocommerce-cart td.actions .coupon {
	display: flex;
	align-items: center;
	gap: 8px;
	float: left;
	margin: 0;
	padding: 0;
}

/* Coupon input: same bordered style as the other fields */
body.woocommerce-cart td.actions .coupon input#coupon_code {
	float: none;
	width: 200px;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	background: var(--fwd-white, #ffffff);
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	color: var(--fwd-dark, #333333);
	box-sizing: border-box;
}

body.woocommerce-cart td.actions .coupon input#coupon_code:focus {
	border-color: var(--fwd-primary, #f1651f);
	outline: 0;
}

/* Secondary action buttons: smaller than the checkout button, never wrap */
body.woocommerce-cart td.actions button.button {
	height: 44px;
	margin: 0;
	padding: 0 20px;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
}

/* Update cart on the right */
body.woocommerce-cart td.actions > button[name="update_cart"] {
	float: right;
}

/* Update cart: outlined, so it does not compete with checkout */
body.woocommerce-cart td.actions button[name="update_cart"] {
	background: var(--fwd-white, #ffffff) !important;
	color: var(--fwd-dark, #333333) !important;
	border: 2px solid var(--fwd-dark, #333333) !important;
}

body.woocommerce-cart td.actions button[name="update_cart"]:hover:not(:disabled) {
	background: var(--fwd-dark, #333333) !important;
	color: var(--fwd-white, #ffffff) !important;
}

/* Disabled state: grey and quiet instead of faded orange */
body.woocommerce-cart td.actions button[name="update_cart"]:disabled {
	opacity: 1;
	background: transparent !important;
	color: var(--fwd-light, #999999) !important;
	border-color: var(--fwd-border, #e0e0e0) !important;
	cursor: not-allowed;
}

/* Cart totals card */
body.woocommerce-cart .cart_totals {
	float: none;
	width: 100%;
	padding: 20px 24px 24px;
	background: var(--fwd-white, #ffffff);
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	box-sizing: border-box;
}

@media (min-width: 981px) {
	/* Keeps the summary in view while scrolling a long cart */
	body.woocommerce-cart .et_pb_wc_cart_totals {
		position: sticky;
		top: 20px;
	}
}

body.woocommerce-cart .cart_totals h2 {
	margin: 0 0 14px;
	padding: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-bottom: 1px solid var(--fwd-border, #e0e0e0);
}

/* Totals table: no inner box, simple rows */
body.woocommerce-cart .cart_totals table.shop_table {
	border: 0;
	border-radius: 0;
	margin: 0 0 18px;
	background: transparent;
}

body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
	padding: 10px 0;
	background: transparent;
	border: 0;
	font-size: 15px;
	color: var(--fwd-text, #555555);
}

body.woocommerce-cart .cart_totals table.shop_table td {
	text-align: right;
}

body.woocommerce-cart .cart_totals tr.order-total th,
body.woocommerce-cart .cart_totals tr.order-total td {
	padding-top: 14px;
	border-top: 1px solid var(--fwd-border, #e0e0e0);
	font-size: 18px;
	font-weight: 700;
	color: var(--fwd-black, #000000);
}

body.woocommerce-cart .cart_totals tr.order-total .amount {
	color: var(--fwd-primary, #f1651f);
}

/* Checkout button: full width, the clear primary action */
body.woocommerce-cart .wc-proceed-to-checkout {
	padding: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: block;
	width: 100%;
	margin: 0;
	padding: 1em 1.5em;
	font-size: 17px;
	text-align: center;
	box-sizing: border-box;
}

/* Links inside the totals card: no hover effect */
body.woocommerce-cart .cart_totals a:not(.button),
body.woocommerce-cart .cart_totals a:not(.button):hover,
body.woocommerce-cart .cart_totals a:not(.button):focus {
	color: var(--fwd-primary, #f1651f) !important;
	text-decoration: none !important;
	transition: none !important;
}

/* Cart: tablet. Gives the product name a bit less room. */
@media (max-width: 1100px) {
	body.woocommerce-cart table.woocommerce-cart-form__contents .product-name {
		min-width: 160px;
	}

	body.woocommerce-cart td.actions .coupon input#coupon_code {
		width: 150px;
	}
}

/* Cart: mobile. WooCommerce switches the table to stacked rows below 769px. */
@media (max-width: 768px) {
	body.woocommerce-cart table.woocommerce-cart-form__contents .product-name {
		min-width: 0;
	}

	body.woocommerce-cart table.woocommerce-cart-form__contents td.actions {
		display: block;
		text-align: left;
	}

	body.woocommerce-cart td.actions .coupon {
		float: none;
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 10px;
	}

	body.woocommerce-cart td.actions .coupon input#coupon_code,
	body.woocommerce-cart td.actions button.button,
	body.woocommerce-cart td.actions > button[name="update_cart"] {
		float: none;
		width: 100%;
	}

	body.woocommerce-cart table.woocommerce-cart-form__contents td.product-thumbnail img {
		width: 64px !important;
		min-width: 64px;
		height: 64px;
	}
}


/* =========================================================
   10. Single product layout (Divi Theme Builder modules)
   ========================================================= */
/* Price: larger, sits directly above the stock badge */
body.single-product .et_pb_wc_price p.price {
	margin: 0 0 8px;
	padding: 0;
	font-size: 30px;
	line-height: 1.1;
	font-weight: 700;
	color: var(--fwd-primary, #f1651f);
}

/* Stock status at the top: a small pill badge instead of plain text */
body.single-product .et_pb_wc_stock p.stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 18px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Status dot */
body.single-product .et_pb_wc_stock p.stock::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

body.single-product .et_pb_wc_stock p.stock.in-stock {
	color: #4c7a1f;
	background: #eef6e4;
}

body.single-product .et_pb_wc_stock p.stock.out-of-stock {
	color: var(--fwd-error, #e53935);
	background: #fdecec;
}

body.single-product .et_pb_wc_stock p.stock.available-on-backorder {
	color: #8a5a00;
	background: #fff4dc;
}

/* Brand label above the title */
body.single-product .fwd-product-brand-label {
	margin-bottom: 6px !important;
}

/* Title */
body.single-product .et_pb_wc_title h1 {
	margin: 0;
	padding: 0 0 16px;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--fwd-black, #000000);
}

/* SKU and category line */
body.single-product .et_pb_wc_meta .product_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	padding: 12px 0;
	border-top: 1px solid var(--fwd-border, #e0e0e0);
	border-bottom: 1px solid var(--fwd-border, #e0e0e0);
	font-size: 13px;
	color: var(--fwd-light, #999999);
}

/* Remove Divi's " / " separators between meta items */
body.single-product .et_pb_wc_meta_layout_inline .product_meta > span::after {
	display: none !important;
}

body.single-product .et_pb_wc_meta .product_meta .sku,
body.single-product .et_pb_wc_meta .product_meta a {
	font-weight: 700;
	color: var(--fwd-dark, #333333) !important;
	text-decoration: none;
}

body.single-product .et_pb_wc_meta .product_meta a:hover {
	color: var(--fwd-primary, #f1651f) !important;
}

/* Tabs: white active tab joined to the panel */
body.single-product .et_pb_wc_tabs {
	border: 1px solid var(--fwd-border, #e0e0e0);
	border-radius: 3px;
	overflow: hidden;
}

body.single-product .et_pb_wc_tabs .et_pb_tabs_controls {
	background: var(--fwd-bg-light, #f5f5f5);
	border-bottom: 1px solid var(--fwd-border, #e0e0e0);
}

body.single-product .et_pb_wc_tabs .et_pb_tabs_controls li {
	border-right: 1px solid var(--fwd-border, #e0e0e0);
}

body.single-product .et_pb_wc_tabs .et_pb_tabs_controls li a {
	padding: 12px 22px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--fwd-text, #555555) !important;
}

body.single-product .et_pb_wc_tabs .et_pb_tabs_controls li.et_pb_tab_active {
	background: var(--fwd-white, #ffffff);
}

body.single-product .et_pb_wc_tabs .et_pb_tabs_controls li.et_pb_tab_active a {
	color: var(--fwd-black, #000000) !important;
	border-bottom: 0;
	box-shadow: inset 0 3px 0 var(--fwd-primary, #f1651f);
}

body.single-product .et_pb_wc_tabs .et_pb_tab {
	padding: 22px 26px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--fwd-text, #555555);
}

/* The tab already names the section, so hide the repeated h2 */
body.single-product .et_pb_wc_tabs .et_pb_tab_content > h2,
body.single-product .et_pb_wc_tabs .woocommerce-Reviews-title {
	display: none;
}

/* Attribute table: zebra rows, compact */
body.single-product table.shop_attributes {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

body.single-product table.shop_attributes th,
body.single-product table.shop_attributes td {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--fwd-border, #e0e0e0);
	font-size: 14px;
	font-style: normal;
	background: transparent;
	vertical-align: top;
}

body.single-product table.shop_attributes th {
	width: 40%;
	text-align: left;
	color: var(--fwd-dark, #333333);
}

body.single-product table.shop_attributes tr:nth-child(even) th,
body.single-product table.shop_attributes tr:nth-child(even) td {
	background: var(--fwd-bg-light, #f5f5f5);
}

/* Add to cart area */
body.single-product .et_pb_wc_add_to_cart {
	margin-top: 24px;
}

/* The stock badge at the top already shows "in stock", hide the repeat */
body.single-product .et_pb_wc_add_to_cart p.stock.in-stock {
	display: none;
}

/* Quantity and button on one row, same width as the express pay buttons */
body.single-product .et_pb_wc_add_to_cart form.cart {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	max-width: 440px;
	margin: 0;
}

body.single-product .et_pb_wc_add_to_cart form.cart::before,
body.single-product .et_pb_wc_add_to_cart form.cart::after {
	display: none !important;
}

body.single-product .et_pb_wc_add_to_cart form.cart .quantity {
	float: none !important;
	flex: 0 0 80px;
	margin: 0 !important;
}

/* Quantity box. Divi's Add to Cart module strips the border and colors the
   number blue, so these rules need !important to win. */
body.single-product .et_pb_wc_add_to_cart form.cart .quantity input.qty {
	width: 100% !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 8px !important;
	box-sizing: border-box;
	background: var(--fwd-white, #ffffff) !important;
	border: 1px solid var(--fwd-border, #e0e0e0) !important;
	border-radius: 3px !important;
	font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 1 !important;
	text-align: center;
	color: var(--fwd-dark, #333333) !important;
	transition: border-color 0.2s ease;
}

body.single-product .et_pb_wc_add_to_cart form.cart .quantity input.qty:hover {
	border-color: var(--fwd-light, #999999) !important;
}

body.single-product .et_pb_wc_add_to_cart form.cart .quantity input.qty:focus {
	border-color: var(--fwd-primary, #f1651f) !important;
	outline: 0;
}

body.single-product .et_pb_wc_add_to_cart form.cart .single_add_to_cart_button {
	float: none !important;
	flex: 1 1 auto;
	height: 52px;
	min-height: 52px;
	margin: 0 !important;
	padding: 0 1.5em !important;
	font-size: 16px !important;
	line-height: 1 !important;
}

/* Stripe Apple Pay / Google Pay buttons: same width as the row above */
body.single-product .et_pb_wc_add_to_cart #wc-stripe-express-checkout-element {
	width: 100%;
	max-width: 440px;
	margin-top: 12px !important;
}

/* Out of stock: turn the repeated text into a clear notice box
   where the button would normally be */
body.single-product .et_pb_wc_add_to_cart p.stock.out-of-stock {
	display: block;
	margin: 0;
	padding: 14px 18px;
	background: var(--fwd-bg-light, #f5f5f5);
	border-left: 4px solid var(--fwd-error, #e53935);
	border-radius: 3px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--fwd-dark, #333333);
}

/* Product image: soft frame */
body.single-product .et_pb_wc_images .woocommerce-product-gallery__image img {
	border-radius: 3px;
}

/* Single product: mobile */
@media (max-width: 767px) {
	body.single-product .et_pb_wc_price p.price {
		font-size: 26px;
	}

	body.single-product .et_pb_wc_title h1 {
		font-size: 26px;
	}

	body.single-product .et_pb_wc_tabs .et_pb_tabs_controls li a {
		padding: 10px 14px;
	}

	body.single-product .et_pb_wc_tabs .et_pb_tab {
		padding: 18px;
	}

	body.single-product .et_pb_wc_add_to_cart form.cart,
	body.single-product .et_pb_wc_add_to_cart #wc-stripe-express-checkout-element {
		max-width: none;
	}
}


/* =========================================================
   11. Checkout (block checkout): terms and Place Order
   ========================================================= */
/* Terms line: smaller, centered, sits close to the button */
body.woocommerce-checkout .wc-block-checkout__terms {
	margin: 24px 0 12px !important;
	padding: 16px 0 0 !important;
	border-top: 1px solid var(--fwd-border, #e0e0e0);
	text-align: center;
}

/* WooCommerce adds its own separator line, which doubles ours */
body.woocommerce-checkout .wc-block-checkout__terms--with-separator::before {
	display: none !important;
}

body.woocommerce-checkout .wc-block-checkout__terms .wc-block-components-checkbox__label {
	display: block;
	font-size: 13px;
	line-height: 1.6;
	color: var(--fwd-light, #999999);
}

body.woocommerce-checkout .wc-block-checkout__terms a {
	color: var(--fwd-dark, #333333) !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.woocommerce-checkout .wc-block-checkout__terms a:hover {
	color: var(--fwd-primary, #f1651f) !important;
}

/* Place Order: tall, centered text, shopping bag icon before the label */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	padding: 0 24px !important;
	font-size: 18px !important;
	letter-spacing: 1px;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	text-align: center;
}

/* Shopping bag with a check mark: "complete my order". Decorative only. */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text::before {
	content: "";
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l1 14H5z'/%3E%3Cpath d='M9 7V6a3 3 0 0 1 6 0v1'/%3E%3Cpath d='M9.5 14l2 2 3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l1 14H5z'/%3E%3Cpath d='M9 7V6a3 3 0 0 1 6 0v1'/%3E%3Cpath d='M9.5 14l2 2 3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Processing state: WooCommerce swaps in a spinner, keep it centered */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-spinner {
	position: static;
	margin: 0 auto;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button[aria-disabled="true"] {
	opacity: 0.6;
	cursor: wait;
}