/* Pages the approved design does not draw (cart, checkout, account), styled from the design's tokens.
   Scoped to .mf-page; plugin styles stay loaded on these pages (payments, couriers, checkout fields). */
.mf-page { padding: 48px 0 88px; font-family: var(--body); color: var(--ink); }
.woocommerce-cart .mf-page { padding-bottom: 32px; }
.mf-page .woocommerce h2, .mf-page .woocommerce h3 { margin: 0 0 18px; font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.mf-page a { color: var(--ink); }
.mf-page table.shop_table { width: 100%; border: 1px solid var(--line); border-radius: 0; border-collapse: collapse; background: var(--white); }
.mf-page table.shop_table th, .mf-page table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.mf-page table.shop_table th { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mf-page table.shop_table img { width: 72px; height: auto; background: #f7f7f2; }
.mf-page .button, .mf-page button.button, .mf-page a.checkout-button, .mf-page #place_order, .mf-page .woocommerce-Button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 4px; background: var(--ink); color: white;
  font: 800 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.mf-page a.checkout-button, .mf-page #place_order { background: var(--lime); color: var(--ink); width: 100%; }
.mf-page .button:disabled, .mf-page .button.disabled { opacity: .45; }
.mf-page input.input-text, .mf-page select, .mf-page textarea, .mf-page .select2-selection {
  min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: white;
  font: 15px var(--body); color: var(--ink); box-sizing: border-box; }
.mf-page .quantity input.qty { width: 72px; min-height: 44px; text-align: center; }
.mf-page label { font-size: 12px; font-weight: 700; }
.mf-page .cart_totals, .mf-page #order_review, .mf-page .woocommerce-checkout-review-order { padding: 24px; border: 1px solid var(--line); background: var(--white); }
.mf-page .woocommerce-message, .mf-page .woocommerce-info, .mf-page .woocommerce-error {
  margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--lime); background: white; list-style: none; font-size: 14px; }
.mf-page .woocommerce-error { border-left-color: var(--orange); }
.mf-page #payment { background: #f7f7f2; border-radius: 0; }
.mf-page .woocommerce a.button.alt, .mf-page .woocommerce button.button.alt, .mf-page .woocommerce #place_order, .mf-page .woocommerce a.checkout-button {
  background: var(--lime); color: var(--ink); border-color: transparent; }
.mf-page .woocommerce button.button, .mf-page .woocommerce a.button, .mf-page .woocommerce input.button {
  min-height: 48px; padding: 0 20px; border-radius: 4px; background: var(--ink); color: white;
  font: 800 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.mf-page .woocommerce button.button:disabled, .mf-page .woocommerce button.button:disabled[disabled] { background: var(--ink); color: white; opacity: .4; }
.mf-page .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--white); }
.mf-page .woocommerce-MyAccount-navigation li { border-top: 1px solid var(--line); }
.mf-page .woocommerce-MyAccount-navigation li:first-child { border-top: 0; }
.mf-page .woocommerce-MyAccount-navigation a { display: block; padding: 12px 16px; font-size: 13px; font-weight: 700; text-decoration: none; }
.mf-page .woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: white; }
/* Readable content column for posts, plain pages and the not-found page. */
.mf-content .mf-article, .mf-page > .container > .elementor { max-width: 820px; }
.mf-article { font-size: 16px; line-height: 1.7; }
.mf-article h2 { margin: 42px 0 14px; font-family: var(--display); font-size: 38px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.mf-article h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 800; }
.mf-article img { max-width: 100%; height: auto; }
.mf-article ul, .mf-article ol { padding-left: 22px; }
.mf-article table { width: 100%; border-collapse: collapse; }
.mf-article th, .mf-article td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.mf-post-grid .article-card { min-height: 260px; }
.mf-empty { font-size: 16px; }
.mf-list-status { display: grid; justify-items: start; gap: 16px; }
.mf-list-status[hidden] { display: none; }
.mf-list-status .mf-empty { margin: 0; }
/* The title band keeps the design's h1 look when the page content carries the h1 itself. */
.inner-hero p.mf-page-title { max-width: 800px; margin: 0; font-family: var(--display); font-size: clamp(72px, 8vw, 120px); font-weight: 900; line-height: .82; text-transform: uppercase; }
/* Guides (blog posts). The design draws a fixed "VS" behind the hero image of its comparison guide; the mark now
   comes from the data (the design's sample keeps "VS", real posts carry none). */
.guide-visual::before { content: attr(data-mark); }
.guide-copy img { max-width: 100%; height: auto; }
/* Plain post markup only: zero specificity, so every rule of the design (checklist, sources, answer) wins. */
:where(.guide-chapter) :where(ul:not([class]), ol:not([class])) { padding-left: 22px; color: #4f5a54; }
:where(.guide-chapter) :where(ul:not([class]), ol:not([class])) > :where(li) { margin: 6px 0; }
:where(.guide-chapter) :where(blockquote) { margin: 22px 0; padding: 18px 24px; border-left: 4px solid var(--lime); background: #f4f6ef; }
:where(.guide-answer) :where(ul) { margin: 0; padding-left: 20px; }
.mf-shell { margin: 22px 0; }
/* A single word longer than the line (e.g. a domain name) breaks instead of widening the page. */
.guide-hero h1, .guide-chapter h2, #guide-page .faq-intro h2 { overflow-wrap: anywhere; }
/* Favorites and compare pages (inc/lists.php): the catalog's cards and the design's comparison table. */
.mf-list .product-grid { margin-top: 0; }
.mf-compare-table thead th { vertical-align: top; }
.mf-compare-product { display: grid; gap: 10px; color: white; text-decoration: none; }
.mf-compare-product img { width: 120px; height: 120px; object-fit: contain; background: white; }
.mf-compare-product span { font-size: 12px; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.mf-compare-remove { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--lime); font: 800 9px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
/* Social links from XStore's "follow" shortcode (inc/pages.php). */
.mf-follow { display: flex; flex-wrap: wrap; gap: 10px; }
.mf-follow a { padding: 10px 16px; border: 1px solid var(--line); color: var(--ink); font: 800 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.mf-follow a:hover { border-color: var(--ink); }
/* Content pages rendered from their Elementor data (inc/content.php): reading column, side-by-side columns where the
   page had them, and Contact Form 7 forms in the design's field and button style. */
.mf-built { max-width: 1100px; }
.mf-built > :first-child { margin-top: 0; }
.mf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 64px; align-items: start; }
.mf-col > :first-child { margin-top: 0; }
.mf-built h3 { margin: 26px 0 8px; font-family: var(--display); font-size: 24px; line-height: 1; text-transform: uppercase; }
.mf-built img { display: block; max-width: 100%; height: auto; }
.mf-built .wpcf7 p { margin: 0 0 14px; }
.mf-built .wpcf7 label { display: block; font-size: 12px; font-weight: 800; }
.mf-built .wpcf7 input:not([type=checkbox]):not([type=radio]):not([type=submit]), .mf-built .wpcf7 select, .mf-built .wpcf7 textarea {
  width: 100%; max-width: 100%; box-sizing: border-box; margin-top: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--ink); font: 500 15px/1.4 var(--body); }
.mf-built .wpcf7 textarea { min-height: 140px; }
.mf-built .wpcf7 input:focus, .mf-built .wpcf7 select:focus, .mf-built .wpcf7 textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.mf-built .wpcf7-list-item { margin: 0 18px 0 0; }
.mf-built .wpcf7 input[type=submit] { width: auto; min-height: 52px; padding: 0 28px; border: 0; border-radius: 4px; background: var(--lime); color: var(--ink); font: 800 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.mf-built .wpcf7 input[type=submit]:disabled { opacity: .45; cursor: not-allowed; }
.mf-built:not(:has(.mf-cols)) { max-width: 820px; }
.mf-built .wpcf7 { max-width: 680px; }
/* WooCommerce draws its notice icons with its own icon font, which these pages do not load (it showed as a
   square); the design's lime rule already marks the notice. */
.mf-page .woocommerce-info::before, .mf-page .woocommerce-message::before, .mf-page .woocommerce-error::before { content: none; display: none; }
.mf-page .woocommerce-info, .mf-page .woocommerce-message, .mf-page .woocommerce-error { padding-left: 22px; }
/* The custom product quantity is not present on these native commerce pages; the cart-specific stepper below
   wraps WooCommerce's own quantity input without changing its submitted field. */
.mf-page .woocommerce .quantity { display: inline-flex; width: auto; border: 0; background: none; }
.mf-page .woocommerce .quantity .qty { width: 72px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); text-align: center; }
.mf-page .woocommerce button[name=apply_coupon] { white-space: nowrap; }

/* Cart: preserve the native form while making each line scannable and quantities directly editable. */
.mf-page .woocommerce-cart-form { margin-bottom: 30px; }
.mf-page .woocommerce-cart-form table.shop_table { border: 0; box-shadow: 0 14px 42px rgb(13 20 16 / 7%); }
.mf-page .woocommerce-cart-form table.shop_table thead { background: #f3f5ef; }
.mf-page .woocommerce-cart-form table.shop_table th, .mf-page .woocommerce-cart-form table.shop_table td { vertical-align: middle; }
.mf-page .woocommerce-cart-form .product-thumbnail { width: 104px; }
.mf-page .woocommerce-cart-form .product-thumbnail img { display: block; width: 84px; height: 84px; padding: 6px; border: 1px solid var(--line); border-radius: 4px; background: #f7f7f2; object-fit: contain; box-sizing: border-box; }
.mf-page .woocommerce-cart-form .product-name a { font-size: 15px; font-weight: 800; line-height: 1.45; text-decoration: none; }
.mf-page .woocommerce-cart-form .product-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mf-page .woocommerce-cart-form .product-remove { width: 44px; text-align: center; }
.mf-page .woocommerce-cart-form a.remove { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: #a53024 !important; font-size: 22px; line-height: 1; text-decoration: none; }
.mf-page .woocommerce-cart-form a.remove:hover, .mf-page .woocommerce-cart-form a.remove:focus-visible { border-color: #a53024; background: #fff3f1; }
.mf-page .woocommerce-cart-form .quantity { display: inline-grid; grid-template-columns: 40px 54px 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: white; }
.mf-page .woocommerce-cart-form .quantity .qty { width: 54px; min-height: 42px; padding: 0 4px; border: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); appearance: textfield; }
.mf-page .woocommerce-cart-form .quantity .qty::-webkit-inner-spin-button, .mf-page .woocommerce-cart-form .quantity .qty::-webkit-outer-spin-button { margin: 0; appearance: none; }
.mf-page .woocommerce-cart-form .dvk-cart-qty { display: grid; place-items: center; width: 40px; min-height: 42px; padding: 0; border: 0; background: #f7f7f2; color: var(--ink); font: 800 20px/1 var(--body); cursor: pointer; }
.mf-page .woocommerce-cart-form .dvk-cart-qty:hover, .mf-page .woocommerce-cart-form .dvk-cart-qty:focus-visible { background: var(--lime); outline: 0; }
.mf-page .woocommerce-cart-form td.actions { padding: 20px; }
.mf-page .woocommerce-cart-form td.actions .coupon { display: flex; float: left; gap: 10px; }
.mf-page .woocommerce-cart-form td.actions .coupon .input-text { width: min(240px, 48vw); margin: 0; }
.mf-page .cart-collaterals { display: flex; justify-content: flex-end; }
.mf-page .cart-collaterals .cart_totals { float: none; width: min(100%, 580px); box-shadow: 0 14px 42px rgb(13 20 16 / 7%); box-sizing: border-box; }
.mf-page .cart-collaterals .cart_totals h2 { padding-bottom: 16px; border-bottom: 4px solid var(--lime); }
.mf-page .cart-collaterals .cart_totals table { margin-bottom: 20px; }

/* Keep the cart summary beside the product table only while both columns remain comfortably readable. */
@media (min-width: 1280px) {
  .woocommerce-cart .mf-page .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); gap: 32px; align-items: start; }
  .woocommerce-cart .mf-page .woocommerce > :not(.woocommerce-cart-form):not(.cart-collaterals) { grid-column: 1 / -1; }
  .woocommerce-cart .mf-page .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
  .woocommerce-cart .mf-page .woocommerce > .woocommerce-cart-form { min-width: 0; margin-bottom: 0; }
  .woocommerce-cart .mf-page .woocommerce > .cart-collaterals { display: block; min-width: 0; }
  .woocommerce-cart .mf-page .woocommerce > .cart-collaterals .cart_totals { position: sticky; top: 24px; width: 100%; }
}

@media (max-width: 760px) {
  .mf-page { padding-top: 30px; }
  .mf-page .woocommerce-cart-form table.shop_table, .mf-page .woocommerce-cart-form table.shop_table tbody { display: block; }
  .mf-page .woocommerce-cart-form table.shop_table thead { display: none; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "image name" "image price" "quantity quantity" "subtotal subtotal"; column-gap: 14px; padding: 18px; border: 1px solid var(--line); border-bottom: 0; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item td { display: block; width: auto; padding: 4px 0; border: 0; text-align: left !important; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item td::before { float: none; margin-right: 6px; font-weight: 800; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-remove { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 0; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-thumbnail { display: block !important; grid-area: image; width: 88px; padding-top: 0; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-thumbnail::before, .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-name::before { content: none; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-thumbnail img { width: 88px; height: 88px; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-name { grid-area: name; padding: 4px 42px 4px 0; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-price { grid-area: price; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-quantity { grid-area: quantity; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-quantity::before { content: attr(data-title); }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-subtotal { grid-area: subtotal; display: flex; justify-content: space-between; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 800; }
  .mf-page .woocommerce-cart-form table.shop_table tr.cart_item .product-subtotal::before { content: attr(data-title); }
  .mf-page .woocommerce-cart-form table.shop_table tr:last-child td.actions { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); }
  .mf-page .woocommerce-cart-form td.actions .coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; float: none; gap: 10px; }
  .mf-page .woocommerce-cart-form td.actions .coupon .input-text { width: 100%; }
  .mf-page .woocommerce-cart-form td.actions > button[name=update_cart] { width: 100%; }
  .mf-page .cart-collaterals { display: block; }
  .mf-page .cart-collaterals .cart_totals { padding: 20px; }
}

@media (max-width: 440px) {
  .mf-page .woocommerce-cart-form td.actions .coupon { grid-template-columns: 1fr; }
  .mf-page .woocommerce-cart-form td.actions .coupon .button { width: 100%; }
}

/* Checkout: customer data and the complete native order transaction remain visible in two balanced cards. */
.mf-page form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 46%); grid-template-areas: "notices notices" "details heading" "details review"; column-gap: 34px; align-items: start; }
.mf-page form.woocommerce-checkout > .woocommerce-NoticeGroup, .mf-page form.woocommerce-checkout > .woocommerce-notices-wrapper { grid-area: notices; }
.mf-page form.woocommerce-checkout #customer_details { grid-area: details; display: grid; gap: 22px; min-width: 0; }
.mf-page form.woocommerce-checkout #customer_details .col-1, .mf-page form.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
.mf-page .woocommerce-billing-fields, .mf-page .woocommerce-shipping-fields, .mf-page .woocommerce-additional-fields { padding: 26px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 14px 42px rgb(13 20 16 / 7%); box-sizing: border-box; }
.mf-page .woocommerce-billing-fields__field-wrapper, .mf-page .woocommerce-shipping-fields__field-wrapper, .mf-page .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.mf-page .woocommerce-billing-fields__field-wrapper .form-row, .mf-page .woocommerce-shipping-fields__field-wrapper .form-row, .mf-page .woocommerce-additional-fields__field-wrapper .form-row { grid-column: 1 / -1; width: auto; margin: 0 0 14px; padding: 0; }
.mf-page .woocommerce-billing-fields__field-wrapper .form-row-first, .mf-page .woocommerce-shipping-fields__field-wrapper .form-row-first { grid-column: 1; }
.mf-page .woocommerce-billing-fields__field-wrapper .form-row-last, .mf-page .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: 2; }
.mf-page form.woocommerce-checkout #order_review_heading { grid-area: heading; margin: 0 0 14px; }
.mf-page form.woocommerce-checkout #order_review { grid-area: review; position: sticky; top: 24px; min-width: 0; padding: 26px; box-shadow: 0 14px 42px rgb(13 20 16 / 7%); box-sizing: border-box; }
.mf-page .woocommerce-checkout-review-order-table { margin-bottom: 0; border: 0; }
.mf-page .woocommerce-checkout-review-order-table .product-name { padding-left: 0; font-weight: 700; line-height: 1.4; }
.mf-page .woocommerce-checkout-review-order-table .product-total { padding-right: 0; text-align: right; white-space: nowrap; }
.mf-page .woocommerce-checkout-review-order-table .product-quantity { color: var(--muted); }
.mf-page .woocommerce-checkout-review-order-table tfoot th { padding-left: 0; }
.mf-page .woocommerce-checkout-review-order-table tfoot td { padding-right: 0; text-align: right; }
.mf-page .woocommerce-checkout-review-order-table .order-total > * { border-top: 4px solid var(--lime); font-size: 17px; }
.mf-page .dvk-checkout-coupon { margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--lime); background: #f7f7f2; }
.mf-page .dvk-checkout-coupon__copy { display: grid; gap: 3px; margin-bottom: 12px; }
.mf-page .dvk-checkout-coupon__copy strong { font-size: 14px; }
.mf-page .dvk-checkout-coupon__copy span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.mf-page .dvk-checkout-coupon__controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mf-page .dvk-checkout-coupon__controls .input-text { width: 100%; min-width: 0; }
.mf-page .dvk-checkout-coupon__controls .button { min-height: 48px; white-space: nowrap; }
.mf-page .dvk-checkout-coupon__notices .woocommerce-message, .mf-page .dvk-checkout-coupon__notices .woocommerce-error { margin: 12px 0 0; background: var(--white); }
.mf-page .woocommerce-checkout-payment { margin-top: 18px; }
.mf-page .wc_payment_methods { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.mf-page .wc_payment_method { padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.mf-page .wc_payment_method > input[type=radio] { width: 18px; height: 18px; margin-right: 8px; accent-color: var(--ink); vertical-align: middle; }
.mf-page .wc_payment_method > label { font-size: 14px; cursor: pointer; }
.mf-page .wc_payment_method .payment_box { margin: 12px 0 0; padding: 14px; background: #f7f7f2; font-size: 13px; line-height: 1.55; }
.mf-page .woocommerce-terms-and-conditions-wrapper { display: grid; gap: 10px; margin: 18px 0; }
.mf-page .woocommerce-privacy-policy-text { color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 920px) {
  .mf-page form.woocommerce-checkout { grid-template-columns: 1fr; grid-template-areas: "notices" "details" "heading" "review"; }
  .mf-page form.woocommerce-checkout #customer_details { margin-bottom: 28px; }
  .mf-page form.woocommerce-checkout #order_review { position: static; }
}

@media (max-width: 600px) {
  .mf-page .woocommerce-billing-fields, .mf-page .woocommerce-shipping-fields, .mf-page .woocommerce-additional-fields, .mf-page form.woocommerce-checkout #order_review { padding: 18px; }
  .mf-page .woocommerce-billing-fields__field-wrapper, .mf-page .woocommerce-shipping-fields__field-wrapper, .mf-page .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
  .mf-page .woocommerce-billing-fields__field-wrapper .form-row-first, .mf-page .woocommerce-billing-fields__field-wrapper .form-row-last, .mf-page .woocommerce-shipping-fields__field-wrapper .form-row-first, .mf-page .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: 1; }
  .mf-page .dvk-checkout-coupon__controls { grid-template-columns: 1fr; }
  .mf-page .dvk-checkout-coupon__controls .button { width: 100%; }
}
