/**
 * Cart & checkout — match PDP / category typography and UI chrome.
 *
 * Selectors use both .bm-checkout-flow and native Woo body classes so styles
 * still apply if the custom body class is missing (cache, plugin conflict, etc.).
 */

body.bm-checkout-flow,
body.woocommerce-cart,
body.woocommerce-checkout {
	font-family: var(--benmartin-sans);
	color: var(--benmartin-ink);
	background: var(--benmartin-white);

	/* Kill Blocksy/Woo blue buttons on these pages */
	--theme-button-background-initial-color: var(--benmartin-btn-bg);
	--theme-button-background-hover-color: var(--benmartin-btn-bg-hover);
	--theme-button-text-initial-color: var(--benmartin-white);
	--theme-button-text-hover-color: var(--benmartin-white);
	--theme-button-border: none;
	--theme-button-border-radius: 0;
}

body.bm-checkout-flow :where(h1, h2, h3, h4),
body.woocommerce-cart :where(h1, h2, h3, h4),
body.woocommerce-checkout :where(h1, h2, h3, h4) {
	font-family: var(--benmartin-sans);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--benmartin-black);
}

/* Breadcrumbs / page title — same rail as category + PDP */
body.bm-checkout-flow .hero-section .ct-breadcrumbs,
body.bm-checkout-flow .woocommerce-breadcrumb,
body.woocommerce-cart .hero-section .ct-breadcrumbs,
body.woocommerce-checkout .hero-section .ct-breadcrumbs,
body.woocommerce-cart .woocommerce-breadcrumb,
body.woocommerce-checkout .woocommerce-breadcrumb {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--benmartin-muted);
	margin: 0 0 20px !important;
}

body.bm-checkout-flow .hero-section .ct-breadcrumbs a,
body.bm-checkout-flow .woocommerce-breadcrumb a,
body.woocommerce-cart .hero-section .ct-breadcrumbs a,
body.woocommerce-checkout .hero-section .ct-breadcrumbs a,
body.woocommerce-cart .woocommerce-breadcrumb a,
body.woocommerce-checkout .woocommerce-breadcrumb a {
	color: var(--benmartin-muted);
	text-decoration: none;
}

body.bm-checkout-flow .hero-section .page-title,
body.woocommerce-cart .hero-section .page-title,
body.woocommerce-checkout .hero-section .page-title {
	font-family: var(--benmartin-sans);
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--benmartin-black);
	line-height: 1.2;
}

/* Section labels */
body.bm-checkout-flow .cart_totals > h2,
body.bm-checkout-flow .ct-order-review > h3,
body.bm-checkout-flow #order_review_heading,
body.bm-checkout-flow .woocommerce-billing-fields > h3,
body.bm-checkout-flow .woocommerce-shipping-fields > h3,
body.bm-checkout-flow .woocommerce-additional-fields > h3,
body.bm-checkout-flow .ct-woocommerce-checkout h3,
body.woocommerce-cart .cart_totals > h2,
body.woocommerce-checkout .ct-order-review > h3,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3,
body.woocommerce-checkout .ct-woocommerce-checkout h3 {
	font-family: var(--benmartin-sans);
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--benmartin-black) !important;
	margin: 0 0 16px !important;
}

/* Tables */
body.bm-checkout-flow table.shop_table,
body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table {
	font-family: var(--benmartin-sans);
	font-size: 14px;
	border-color: var(--benmartin-line) !important;
}

body.bm-checkout-flow table.shop_table th,
body.woocommerce-cart table.shop_table th,
body.woocommerce-checkout table.shop_table th {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--benmartin-muted);
	border-color: var(--benmartin-line) !important;
}

body.bm-checkout-flow table.shop_table td,
body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table td {
	border-color: var(--benmartin-line) !important;
	color: var(--benmartin-ink);
	vertical-align: middle;
}

body.bm-checkout-flow table.shop_table .product-name a,
body.woocommerce-cart table.shop_table .product-name a,
body.woocommerce-checkout table.shop_table .product-name a {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--benmartin-black);
	text-decoration: none;
}

body.bm-checkout-flow table.shop_table .product-name a:hover,
body.woocommerce-cart table.shop_table .product-name a:hover {
	opacity: 0.75;
}

body.bm-checkout-flow table.shop_table .product-name .variation,
body.bm-checkout-flow table.shop_table .product-name dl.variation,
body.woocommerce-cart table.shop_table .product-name .variation,
body.woocommerce-cart table.shop_table .product-name dl.variation {
	font-size: 12px;
	font-weight: 500;
	color: var(--benmartin-muted);
	margin-top: 6px;
}

body.bm-checkout-flow table.shop_table .amount,
body.bm-checkout-flow table.shop_table .product-price,
body.bm-checkout-flow table.shop_table .product-subtotal,
body.woocommerce-cart table.shop_table .amount,
body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal,
body.woocommerce-checkout table.shop_table .amount {
	font-size: 13px;
	font-weight: 700;
	color: var(--benmartin-black);
}

body.bm-checkout-flow table.shop_table .product-thumbnail img,
body.woocommerce-cart table.shop_table .product-thumbnail img {
	border-radius: var(--benmartin-radius);
	border: 1px solid var(--benmartin-line);
}

/* Cart totals / order review panels */
body.bm-checkout-flow .ct-woocommerce-cart-form .cart_totals,
body.bm-checkout-flow .ct-order-review,
body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals,
body.woocommerce-checkout .ct-order-review {
	background: var(--benmartin-white);
	border: 1px solid var(--benmartin-line) !important;
	border-radius: 0 !important;
	padding: 24px !important;
	box-shadow: none !important;
}

body.bm-checkout-flow .cart_totals table th,
body.bm-checkout-flow .ct-order-review table th,
body.woocommerce-cart .cart_totals table th,
body.woocommerce-checkout .ct-order-review table th {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--benmartin-muted);
}

body.bm-checkout-flow .cart_totals .order-total th,
body.bm-checkout-flow .cart_totals .order-total td,
body.bm-checkout-flow .ct-order-review .order-total th,
body.bm-checkout-flow .ct-order-review .order-total td,
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-checkout .ct-order-review .order-total th,
body.woocommerce-checkout .ct-order-review .order-total td {
	font-size: 14px;
	font-weight: 700;
	color: var(--benmartin-black);
	letter-spacing: 0;
	text-transform: none;
}

/* Quantity */
body.bm-checkout-flow .quantity,
body.woocommerce-cart .quantity {
	border: 1px solid var(--benmartin-black);
	background: var(--benmartin-white);
}

body.bm-checkout-flow .quantity input.qty,
body.woocommerce-cart .quantity input.qty {
	font-family: var(--benmartin-sans);
	font-size: 14px;
	font-weight: 600;
	color: var(--benmartin-black);
	border: 0;
	background: transparent;
}

/* Form fields */
body.bm-checkout-flow .woocommerce form .form-row label,
body.bm-checkout-flow .woocommerce-checkout .form-row label,
body.woocommerce-checkout .woocommerce form .form-row label,
body.woocommerce-checkout .woocommerce-checkout .form-row label {
	font-family: var(--benmartin-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--benmartin-black);
	margin-bottom: 6px;
}

body.bm-checkout-flow .woocommerce form .form-row .required,
body.woocommerce-checkout .woocommerce form .form-row .required {
	color: #c0392b;
	text-decoration: none;
}

body.bm-checkout-flow .woocommerce form .input-text,
body.bm-checkout-flow .woocommerce form textarea,
body.bm-checkout-flow .woocommerce form select,
body.bm-checkout-flow .woocommerce-checkout .input-text,
body.bm-checkout-flow .woocommerce-checkout textarea,
body.bm-checkout-flow .woocommerce-checkout select,
body.bm-checkout-flow .select2-container--default .select2-selection--single,
body.woocommerce-checkout .woocommerce form .input-text,
body.woocommerce-checkout .woocommerce form textarea,
body.woocommerce-checkout .woocommerce form select,
body.woocommerce-checkout .woocommerce-checkout .input-text,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
	font-family: var(--benmartin-sans) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: var(--benmartin-ink) !important;
	border: 1px solid var(--benmartin-line) !important;
	border-radius: 0 !important;
	background: var(--benmartin-white) !important;
	min-height: 44px;
	box-shadow: none !important;
}

body.bm-checkout-flow .woocommerce form .input-text:focus,
body.bm-checkout-flow .woocommerce form textarea:focus,
body.bm-checkout-flow .woocommerce form select:focus,
body.bm-checkout-flow .woocommerce-checkout .input-text:focus,
body.bm-checkout-flow .select2-container--default.select2-container--focus .select2-selection--single,
body.woocommerce-checkout .woocommerce form .input-text:focus,
body.woocommerce-checkout .woocommerce-checkout .input-text:focus {
	border-color: var(--benmartin-black) !important;
	outline: none;
}

body.bm-checkout-flow .select2-container--default .select2-selection--single,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
	height: 44px !important;
	display: flex !important;
	align-items: center;
	padding: 0 8px;
}

body.bm-checkout-flow .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: var(--benmartin-ink) !important;
	padding: 0 !important;
}

body.bm-checkout-flow .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 42px !important;
}

body.bm-checkout-flow .woocommerce-form__label-for-checkbox span,
body.bm-checkout-flow #ship-to-different-address label span,
body.bm-checkout-flow .woocommerce-terms-and-conditions-checkbox-text,
body.woocommerce-checkout .woocommerce-form__label-for-checkbox span,
body.woocommerce-checkout #ship-to-different-address label span,
body.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--benmartin-ink);
}

/* Primary buttons — match PDP ATC */
body.bm-checkout-flow .button,
body.bm-checkout-flow button.button,
body.bm-checkout-flow a.button,
body.bm-checkout-flow .checkout-button,
body.bm-checkout-flow #place_order,
body.bm-checkout-flow button[name="update_cart"],
body.bm-checkout-flow button[name="apply_coupon"],
body.bm-checkout-flow .woocommerce-button,
body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-cart a.button,
body.woocommerce-cart .checkout-button,
body.woocommerce-checkout .button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout a.button,
body.woocommerce-checkout #place_order {
	font-family: var(--benmartin-sans) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	min-height: 48px;
	padding: 12px 18px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.bm-checkout-flow .checkout-button,
body.bm-checkout-flow #place_order,
body.bm-checkout-flow a.checkout-button,
body.bm-checkout-flow .wc-proceed-to-checkout .button,
body.bm-checkout-flow button.button.alt,
body.bm-checkout-flow .button.alt,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout .button,
body.woocommerce-cart button.button.alt,
body.woocommerce-cart .button.alt,
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button.button.alt,
body.woocommerce-checkout .button.alt {
	background: var(--benmartin-btn-bg) !important;
	border: 1px solid var(--benmartin-btn-bg) !important;
	color: var(--benmartin-btn-text) !important;
	width: 100%;
}

body.bm-checkout-flow .checkout-button:hover,
body.bm-checkout-flow #place_order:hover,
body.bm-checkout-flow a.checkout-button:hover,
body.bm-checkout-flow .wc-proceed-to-checkout .button:hover,
body.bm-checkout-flow button.button.alt:hover,
body.bm-checkout-flow .button.alt:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout .button:hover,
body.woocommerce-cart .button.alt:hover,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout .button.alt:hover {
	background: var(--benmartin-btn-bg-hover) !important;
	border-color: var(--benmartin-btn-bg-hover) !important;
	color: var(--benmartin-btn-text) !important;
	opacity: 1 !important;
}

/* Secondary / outline buttons */
body.bm-checkout-flow button[name="update_cart"],
body.bm-checkout-flow button[name="apply_coupon"],
body.bm-checkout-flow .coupon .button,
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart .coupon .button {
	background: var(--benmartin-white) !important;
	border: 1px solid var(--benmartin-black) !important;
	color: var(--benmartin-black) !important;
	width: auto;
}

body.bm-checkout-flow button[name="update_cart"]:hover,
body.bm-checkout-flow button[name="apply_coupon"]:hover,
body.bm-checkout-flow .coupon .button:hover,
body.woocommerce-cart button[name="update_cart"]:hover,
body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart .coupon .button:hover {
	background: var(--benmartin-surface) !important;
	color: var(--benmartin-black) !important;
}

/* Coupon row */
body.bm-checkout-flow .coupon,
body.woocommerce-cart .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

body.bm-checkout-flow .coupon .input-text,
body.woocommerce-cart .coupon .input-text {
	flex: 1 1 160px;
	min-height: 48px !important;
}

body.bm-checkout-flow .coupon .button,
body.woocommerce-cart .coupon .button {
	flex: 0 0 auto;
	min-width: 120px;
	width: auto !important;
}

body.bm-checkout-flow .woocommerce-form-coupon-toggle .woocommerce-info,
body.bm-checkout-flow .woocommerce-info,
body.bm-checkout-flow .woocommerce-message,
body.bm-checkout-flow .woocommerce-error,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-error {
	font-family: var(--benmartin-sans);
	font-size: 13px;
	font-weight: 500;
	border-radius: 0;
	border-color: var(--benmartin-line);
}

body.bm-checkout-flow .woocommerce-info a,
body.bm-checkout-flow .woocommerce-message a,
body.woocommerce-cart .woocommerce-info a,
body.woocommerce-cart .woocommerce-message a,
body.woocommerce-checkout .woocommerce-info a {
	font-weight: 700;
	text-decoration: underline;
}

/* Payment methods */
body.bm-checkout-flow #payment,
body.woocommerce-checkout #payment {
	background: var(--benmartin-surface) !important;
	border: 1px solid var(--benmartin-line) !important;
	border-radius: 0 !important;
}

body.bm-checkout-flow #payment ul.payment_methods,
body.woocommerce-checkout #payment ul.payment_methods {
	border-bottom-color: var(--benmartin-line) !important;
	padding: 16px !important;
}

body.bm-checkout-flow #payment ul.payment_methods li,
body.woocommerce-checkout #payment ul.payment_methods li {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

body.bm-checkout-flow #payment div.payment_box,
body.woocommerce-checkout #payment div.payment_box {
	font-size: 13px;
	font-weight: 500;
	color: var(--benmartin-muted);
	background: var(--benmartin-white) !important;
	border-radius: 0 !important;
}

body.bm-checkout-flow #payment div.form-row,
body.woocommerce-checkout #payment div.form-row {
	padding: 16px !important;
}

/* —— Empty cart —— */
body.woocommerce-cart .wc-empty-cart-message,
body.woocommerce-cart .cart-empty,
body.bm-checkout-flow .wc-empty-cart-message,
body.bm-checkout-flow .cart-empty {
	font-family: var(--benmartin-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--benmartin-ink);
	text-align: center;
	padding: 28px 16px;
	margin: 0 0 18px;
	border: 1px solid var(--benmartin-line);
	background: var(--benmartin-surface);
}

body.woocommerce-cart .return-to-shop,
body.bm-checkout-flow .return-to-shop {
	text-align: center;
	margin: 0 0 40px;
}

body.woocommerce-cart .return-to-shop .button,
body.bm-checkout-flow .return-to-shop .button,
body.woocommerce-cart .wc-block-cart__empty-cart__products .wc-block-components-button,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-button {
	width: auto !important;
	min-width: 200px;
	background: var(--benmartin-btn-bg) !important;
	border: 1px solid var(--benmartin-btn-bg) !important;
	color: var(--benmartin-btn-text) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	border-radius: 0 !important;
	min-height: 48px !important;
}

body.woocommerce-cart .return-to-shop .button:hover,
body.bm-checkout-flow .return-to-shop .button:hover {
	background: var(--benmartin-btn-bg-hover) !important;
	border-color: var(--benmartin-btn-bg-hover) !important;
	color: var(--benmartin-btn-text) !important;
	opacity: 1 !important;
}

/* Cross-sells / "New in store" on cart — match homepage card type */
body.woocommerce-cart .cross-sells,
body.bm-checkout-flow .cross-sells,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block,
body.woocommerce-cart .wc-block-cart__empty-cart {
	margin-top: 40px;
}

body.woocommerce-cart .cross-sells > h2,
body.woocommerce-cart .cart-collaterals .cross-sells > h2,
body.bm-checkout-flow .cross-sells > h2,
body.woocommerce-cart .wp-block-heading,
body.woocommerce-cart .wc-block-product-new__title,
body.woocommerce-cart .wp-block-woocommerce-product-new .wp-block-heading {
	font-family: var(--benmartin-sans) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	text-align: left !important;
	color: var(--benmartin-black) !important;
	margin: 0 0 18px !important;
}

body.woocommerce-cart [data-products],
body.woocommerce-cart ul.products,
body.bm-checkout-flow [data-products],
body.bm-checkout-flow ul.products,
body.woocommerce-cart .wc-block-grid__products,
body.woocommerce-cart .wc-block-product-template {
	--text-horizontal-alignment: start;
	--horizontal-alignment: flex-start;
	text-align: left;
}

body.woocommerce-cart [data-products] .product,
body.woocommerce-cart ul.products .product,
body.bm-checkout-flow [data-products] .product,
body.bm-checkout-flow ul.products .product,
body.woocommerce-cart .wc-block-grid__product,
body.woocommerce-cart .wc-block-product {
	text-align: left !important;
}

body.woocommerce-cart [data-products] .woocommerce-loop-product__title,
body.woocommerce-cart [data-products] .woocommerce-loop-product__title a,
body.woocommerce-cart ul.products .woocommerce-loop-product__title,
body.woocommerce-cart ul.products .woocommerce-loop-product__title a,
body.bm-checkout-flow [data-products] .woocommerce-loop-product__title,
body.bm-checkout-flow [data-products] .woocommerce-loop-product__title a,
body.woocommerce-cart .wc-block-grid__product-title,
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-product .wp-block-post-title,
body.woocommerce-cart .wc-block-product .wp-block-post-title a {
	font-family: var(--benmartin-sans) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: left !important;
	color: var(--benmartin-black) !important;
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 3 !important;
	line-clamp: 3 !important;
	overflow: hidden !important;
	margin: 0 0 4px !important;
}

body.woocommerce-cart [data-products] .product .price,
body.woocommerce-cart ul.products .product .price,
body.bm-checkout-flow [data-products] .product .price,
body.bm-checkout-flow ul.products .product .price,
body.woocommerce-cart .wc-block-grid__product-price,
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-product .wc-block-components-product-price {
	font-family: var(--benmartin-sans) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-align: left !important;
	color: var(--benmartin-black) !important;
	margin: 0 0 6px !important;
}

body.woocommerce-cart [data-products] .ct-woo-card-actions,
body.woocommerce-cart [data-products] .ct-woo-card-extra,
body.bm-checkout-flow [data-products] .ct-woo-card-actions,
body.bm-checkout-flow [data-products] .ct-woo-card-extra {
	--theme-button-background-initial-color: var(--benmartin-btn-bg);
	--theme-button-background-hover-color: var(--benmartin-btn-bg-hover);
	--theme-button-text-initial-color: var(--benmartin-btn-text);
	--theme-button-text-hover-color: var(--benmartin-btn-text);
	justify-content: flex-start !important;
}

/* Force black CTAs on cart product loops (Select options / Read more / ATC) */
body.woocommerce-cart ul.products li.product .button,
body.woocommerce-cart ul.products li.product a.button,
body.woocommerce-cart ul.products li.product .add_to_cart_button,
body.woocommerce-cart [data-products] .product .button,
body.woocommerce-cart [data-products] .product a.button,
body.woocommerce-cart [data-products] .ct-woo-card-actions .button,
body.woocommerce-cart [data-products] .ct-woo-card-extra .button,
body.bm-checkout-flow ul.products li.product .button,
body.bm-checkout-flow [data-products] .product .button,
body.bm-checkout-flow [data-products] .ct-woo-card-actions .button,
body.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link,
body.woocommerce-cart .wc-block-components-product-button .wp-block-button__link,
body.woocommerce-cart .wc-block-product .wp-block-button__link {
	background: var(--benmartin-btn-bg) !important;
	background-color: var(--benmartin-btn-bg) !important;
	border: 1px solid var(--benmartin-btn-bg) !important;
	color: var(--benmartin-btn-text) !important;
	font-family: var(--benmartin-sans) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	min-height: 40px !important;
	padding: 10px 14px !important;
	width: auto !important;
	max-width: 100%;
}

body.woocommerce-cart ul.products li.product .button:hover,
body.woocommerce-cart [data-products] .product .button:hover,
body.bm-checkout-flow ul.products li.product .button:hover,
body.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
body.woocommerce-cart .wc-block-product .wp-block-button__link:hover {
	background: var(--benmartin-btn-bg-hover) !important;
	background-color: var(--benmartin-btn-bg-hover) !important;
	border-color: var(--benmartin-btn-bg-hover) !important;
	color: var(--benmartin-btn-text) !important;
	opacity: 1 !important;
}

/* Razorpay method logos under the description. */
body.woocommerce-checkout .bm-razorpay-method__text,
body.bm-checkout-flow .bm-razorpay-method__text {
	margin: 0;
}

body.woocommerce-checkout .bm-razorpay-icons,
body.bm-checkout-flow .bm-razorpay-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

body.woocommerce-checkout .bm-razorpay-icons img,
body.bm-checkout-flow .bm-razorpay-icons img {
	display: block;
	width: auto;
	height: 28px;
	max-width: 52px;
	object-fit: contain;
	background: var(--benmartin-white, #fff);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 3px;
	padding: 3px 5px;
	box-sizing: content-box;
}

.wc-block-components-radio-control--highlight-checked :is(.wc-block-components-radio-control-accordion-option--checked-option-highlighted,label.wc-block-components-radio-control__option--checked-option-highlighted) {
    box-shadow: inset 0 0 0 1.5px #707070 !important;
}

/* Only free shipping is offered, so the method picker is redundant. The free rate still applies. */
body.bm-checkout-flow .wp-block-woocommerce-checkout-shipping-methods-block,
body.woocommerce-checkout .wp-block-woocommerce-checkout-shipping-methods-block {
	display: none !important;
}

/* Block-based cart/checkout */
body.bm-checkout-flow .wc-block-cart,
body.bm-checkout-flow .wc-block-checkout,
body.bm-checkout-flow .wp-block-woocommerce-cart,
body.bm-checkout-flow .wp-block-woocommerce-checkout,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wc-block-checkout {
	font-family: var(--benmartin-sans);
	color: var(--benmartin-ink);
}

body.bm-checkout-flow .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-product-name {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
}

body.bm-checkout-flow .wc-block-components-product-price,
body.bm-checkout-flow .wc-block-formatted-money-amount,
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-formatted-money-amount {
	font-size: 13px !important;
	font-weight: 700 !important;
}

body.bm-checkout-flow .wc-block-cart__submit-button,
body.bm-checkout-flow .wc-block-components-checkout-place-order-button,
body.bm-checkout-flow .wc-block-components-button:not(.is-link),
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	border-radius: 0 !important;
	min-height: 48px !important;
	background: var(--benmartin-btn-bg) !important;
	border-color: var(--benmartin-btn-bg) !important;
	color: var(--benmartin-btn-text) !important;
}

.wc-block-components-form .wc-block-components-text-input label, .wc-block-components-text-input label {
    margin-top: -3px;
}

body.bm-checkout-flow .wc-block-cart__submit-button:hover,
body.bm-checkout-flow .wc-block-components-checkout-place-order-button:hover,
body.bm-checkout-flow .wc-block-components-button:not(.is-link):hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background: var(--benmartin-btn-bg-hover) !important;
	border-color: var(--benmartin-btn-bg-hover) !important;
	color: var(--benmartin-btn-text) !important;
	opacity: 1 !important;
}

body.bm-checkout-flow .wc-block-components-text-input input,
body.bm-checkout-flow .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	font-family: var(--benmartin-sans) !important;
	font-size: 14px !important;
	border-radius: 0 !important;
}

body.woocommerce-checkout .woocommerce form .input-text,
body.woocommerce-checkout .woocommerce form textarea,
body.woocommerce-checkout .woocommerce form select,
body.woocommerce-checkout .select2-container--default .select2-selection--single,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select {
	border-color: #a6a6a6 !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .woocommerce form .input-text:focus,
body.woocommerce-checkout .woocommerce form textarea:focus,
body.woocommerce-checkout .woocommerce form select:focus {
	border-color: #a6a6a6 !important;
}

@media (max-width: 767px) {
	body.bm-checkout-flow .ct-woocommerce-cart-form .cart_totals,
	body.bm-checkout-flow .ct-order-review,
	body.woocommerce-cart .ct-woocommerce-cart-form .cart_totals,
	body.woocommerce-checkout .ct-order-review {
		padding: 18px !important;
	}

	body.bm-checkout-flow .coupon,
	body.woocommerce-cart .coupon {
		flex-direction: column;
	}

	body.bm-checkout-flow .coupon .button,
	body.woocommerce-cart .coupon .button {
		width: 100% !important;
	}
}
