/* Phase 7h (naturali-sitewide.php): compact footer on every page, quieter cart, shorter checkout.
   Loaded only with the 7h flag on, and never on the homepage, which has its own copy of the footer. */

/* ---------------------------------------------------------------- footer: the homepage's compact footer */
.nfx-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; padding: 40px 20px 32px; background: #e8f5f5; border-top: 1px solid #e6e6ef; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; color: #6b6b85; }
.nfx-foot p { margin: 0; }
.nfx-foot a { color: #3a3a93; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.nfx-foot a:hover { color: #2e2e78; }
.nfx-foot--legal { margin-top: 32px; padding-block: 24px; font-size: 14px; }
@media (min-width: 900px) { .nfx-foot { padding: 40px max(24px, calc((100% - 712px) / 2)) 32px; } }

/* ---------------------------------------------------------------- checkout header: logo only */
.nfx-head { display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 20px; background: #fff; border-bottom: 1px solid #e6e6ef; }
.nfx-logo { display: flex; align-items: center; min-height: 44px; }
.nfx-logo img { height: 44px; width: auto; }

/* ---------------------------------------------------------------- cart */
.nfx-tier { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #e8f5f5; color: #1a1a4e; font-size: 15px; font-weight: 600; line-height: 1.4; }
.nfx-cart .woocommerce-cart-form .coupon,
.nfx-cart .woocommerce-cart-form button[name="update_cart"] { display: none !important; }
.nfx-cart .woocommerce-cart-form td.actions { padding: 0 !important; border: 0 !important; }
.nfx-cart .woocommerce-cart-form table.cart thead { display: none; }
.nfx-cart .woocommerce-cart-form table.cart,
.nfx-cart .woocommerce-cart-form table.cart tbody { display: block; border: 0; }
.nfx-cart .woocommerce-cart-form table.cart tr.cart_item {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb name name" "thumb qty total" "thumb remove remove";
	column-gap: 14px; row-gap: 8px; align-items: center; padding: 16px 0; border-bottom: 1px solid #e6e6ef; background: none !important;
}
.nfx-cart .woocommerce-cart-form table.cart tr.cart_item td { display: block !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
.nfx-cart .woocommerce-cart-form table.cart tr.cart_item td::before { display: none !important; content: none !important; }
.nfx-cart .woocommerce-cart-form td.product-thumbnail { grid-area: thumb; align-self: start; }
.nfx-cart .woocommerce-cart-form td.product-thumbnail img { width: 64px !important; height: 64px !important; max-width: none; object-fit: cover; border-radius: 10px; }
.nfx-cart .woocommerce-cart-form td.product-name { grid-area: name; font-weight: 700; line-height: 1.35; }
.nfx-cart .woocommerce-cart-form td.product-name a { color: #1a1a4e; text-decoration: none; }
.nfx-cart .woocommerce-cart-form table.cart tr.cart_item td.product-price { display: none !important; }
.nfx-cart .cart-summary { display: none; } /* Kadence's "Cart Summary" heading repeats the page title */
.nfx-cart .woocommerce-cart-form td.product-quantity { grid-area: qty; }
.nfx-cart .woocommerce-cart-form td.product-subtotal { grid-area: total; text-align: right !important; font-weight: 700; white-space: nowrap; }
.nfx-cart .woocommerce-cart-form td.product-remove { grid-area: remove; }
.nfx-cart .woocommerce-cart-form a.nfx-remove { display: inline-block; width: auto; height: auto; font-size: 14px; font-weight: 600; line-height: 1.4; color: #6b6b85 !important; background: none !important; text-decoration: underline; text-underline-offset: 2px; border-radius: 0; }
.nfx-cart .woocommerce-cart-form a.nfx-remove:hover { color: #1a1a4e !important; }
/* Quantity stepper (naturali-sitewide.js adds the buttons) */
.nfx-step { display: inline-flex; align-items: center; border: 1.5px solid #8f8fa8; border-radius: 12px; overflow: hidden; background: #fff; }
.nfx-step input.qty { width: 44px !important; height: 40px; padding: 0 !important; border: 0 !important; text-align: center; font-size: 16px; font-weight: 700; color: #1a1a4e; background: #fff; -moz-appearance: textfield; appearance: textfield; }
.nfx-step input.qty::-webkit-outer-spin-button, .nfx-step input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nfx-step__btn { width: 40px; height: 40px; padding: 0; border: 0; background: #f4f4f9; color: #1a1a4e; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; }
.nfx-step__btn:hover, .nfx-step__btn:focus-visible { background: #e6e6ef; color: #1a1a4e; }
.nfx-cart .blockUI.blockOverlay { background: rgba(255,255,255,.6) !important; }

/* ---------------------------------------------------------------- checkout */
.nfx-co-links { margin: 0 0 20px; font-size: 15px; color: #6b6b85; }
.nfx-co-links a { color: #3a3a93; font-weight: 700; }
.nfx-checkout .woocommerce-form-login-toggle,
.nfx-checkout .woocommerce-form-coupon-toggle,
.nfx-checkout .woocommerce-shipping-fields,
.nfx-checkout #billing_city_field,
.nfx-checkout #shipping_city_field,
.nfx-checkout .woocommerce-additional-fields { display: none !important; }
.nfx-checkout .nfx-country strong { display: block; padding: 4px 0; font-size: 16px; color: #1a1a4e; }
.nfx-checkout .wc_payment_method > label { font-weight: 700; color: #1a1a4e; }
