/* Basket (cart) and Checkout — WooCommerce Blocks
   These pages render via client-side React components, so there's no
   custom markup to hook into here; every selector below targets
   WooCommerce Blocks' own stable class names. */

.woocommerce-cart .balance-content-area-inner,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	max-width: 72rem;
	margin: 0 auto;
}

/* Headings inside the blocks use inherited h2/h3, already Fraunces/navy via
   the site-wide heading rule — just tighten the top gap. */
.wc-block-cart__title,
.wc-block-checkout__title {
	color: var(--balance-navy);
}

/* Primary buttons (Proceed to Checkout, Place Order, Apply coupon) ------- */

.wc-block-cart .wc-block-components-button:not(.is-link) .wc-block-components-button__text,
.wc-block-checkout .wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	font-family: "Assistant", sans-serif;
	font-weight: 600;
}

.wc-block-cart .wc-block-components-button:not(.is-link),
.wc-block-checkout .wc-block-components-button:not(.is-link) {
	background-color: var(--balance-navy) !important;
	color: var(--balance-white) !important;
	border: none !important;
	border-radius: 999px !important;
}

.wc-block-cart .wc-block-components-button:not(.is-link):hover,
.wc-block-checkout .wc-block-components-button:not(.is-link):hover {
	background-color: var(--balance-blue) !important;
	color: var(--balance-white) !important;
}

.wc-block-cart .wc-block-components-button.is-link,
.wc-block-checkout .wc-block-components-button.is-link {
	color: var(--balance-navy) !important;
}

/* Cart line items --------------------------------------------------------- */

.wc-block-cart-items {
	border-top: 1px solid var(--balance-offwhite);
}

.wc-block-cart-items__row {
	border-bottom: 1px solid var(--balance-offwhite) !important;
	padding-top: 1.25rem !important;
	padding-bottom: 1.25rem !important;
}

.wc-block-components-product-name {
	color: var(--balance-navy);
	font-family: "Assistant", sans-serif;
	font-weight: 600;
}

.wc-block-cart-item__remove-link,
.wc-block-cart-item__save-for-later-link {
	color: var(--balance-blue) !important;
	font-weight: 600;
}

/* Cross-sell ("You may be interested in…") -------------------------------- */

.wp-block-woocommerce-cart-items-block .wp-block-woocommerce-product-collection {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--balance-offwhite);
	max-width: 16rem;
}

.wp-block-woocommerce-cart-items-block .wp-block-woocommerce-product-collection h2 {
	font-size: 1rem;
	color: var(--balance-navy);
}

/* Order summary / totals sidebar (cart + checkout) ------------------------ */

.wc-block-cart .wc-block-components-sidebar,
.wc-block-checkout__sidebar {
	background: var(--balance-offwhite);
	border-radius: 10px;
	padding: 1.5rem;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
	font-family: "Assistant", sans-serif;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--balance-navy);
	font-weight: 700;
	font-size: 1.1rem;
}

/* Coupon form -------------------------------------------------------------- */

.wc-block-components-totals-coupon-link {
	color: var(--balance-blue) !important;
}

/* Checkout form ------------------------------------------------------------ */

.wc-block-checkout__form .wc-block-components-checkbox__mark,
.wc-block-checkout .wc-block-components-radio-control__input {
	accent-color: var(--balance-navy);
}

.wc-block-checkout__shipping-method-option--selected {
	border-color: var(--balance-navy) !important;
}

.wc-block-checkout__terms {
	color: #6b6b6b;
	font-size: 0.9rem;
}

/* WhatsApp order-update disclosure, injected via JS after the phone field
   (see balance_enqueue_cart_checkout_assets) since Blocks Checkout renders
   client-side and has no server-side hook for this. */
.balance-whatsapp-disclosure {
	color: #6b6b6b;
	font-size: 0.8rem;
	margin: 0.35rem 0 1rem;
}

/* Trust icon row, near the Place Order button (matches the row used on
   single product pages — see product-purchase-options.css) -------------- */

.balance-trust-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--balance-offwhite);
}

.balance-trust-icons li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8rem;
	color: #6b6b6b;
}

.balance-trust-icons svg {
	width: 1.4rem;
	height: 1.4rem;
	color: var(--balance-blue);
	flex-shrink: 0;
}

/* Form fields (billing/shipping address, contact) -------------------------- */

.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-address-form input,
.wc-block-components-combobox input {
	border-radius: 6px;
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus {
	border-color: var(--balance-blue) !important;
}
