/* Checkout pallet-row cache-safe alignment pass. */

/* Keep brand orange on monetary values, not on every heading and divider. */
body.muf-modern.woocommerce-cart .ops-summary > h3,
body.muf-modern.woocommerce-cart .ops-summary .ops-sum-row.grand > :first-child,
body.muf-modern.woocommerce-checkout :is(.muf-checkout-contact, .muf-checkout-billing, .muf-checkout-delivery, .muf-checkout-order) > .ops-co-h3,
body.muf-modern.woocommerce-checkout #ship-to-different-address,
body.muf-modern.woocommerce-checkout .muf-checkout-additional > h4,
body.muf-modern.woocommerce-checkout #ops-checkout-boxes .ops-method-card strong,
body.muf-modern.woocommerce-checkout .muf-order-payment__title {
  color: #171914 !important;
}

body.muf-modern.woocommerce-cart .ops-summary > .ops-sum-row,
body.muf-modern.woocommerce-checkout .muf-checkout-order .ops-order-table td {
  border-bottom-color: #deded8 !important;
}

body.muf-modern.woocommerce-cart .muf-cart-coupon-label,
body.muf-modern.woocommerce-checkout .muf-checkout-contact__grid .woocommerce-account-fields,
body.muf-modern.woocommerce-checkout .woocommerce-shipping-fields,
body.muf-modern.woocommerce-checkout .muf-checkout-additional {
  border-top-color: #deded8 !important;
}

/* Strong separators and numbered steps keep the brand accent. */
body.muf-modern.woocommerce-cart .ops-summary .ops-sum-row.grand,
body.muf-modern.woocommerce-checkout .muf-checkout-order .ops-order-grand,
body.muf-modern.woocommerce-checkout .muf-order-payment__title {
  border-top-color: var(--muf-r41-orange, #db8d00) !important;
}

body.muf-modern.woocommerce-checkout :is(.muf-checkout-contact, .muf-checkout-billing, .muf-checkout-delivery, .muf-checkout-order) > .ops-co-h3::before {
  background: var(--muf-r41-orange, #db8d00) !important;
  color: #fff !important;
}

body.muf-modern.woocommerce-checkout .muf-checkout-order .ops-order-grand {
  color: #171914 !important;
}

body.muf-modern.woocommerce-checkout .muf-checkout-order .ops-order-grand > :last-child,
body.muf-modern.woocommerce-checkout .muf-checkout-order .ops-order-grand > :last-child .amount {
  color: var(--muf-r41-orange, #db8d00) !important;
}

/* Undo the old checkout-wide h3 rule that enlarged the normal footer headings. */
body.muf-modern.woocommerce-checkout .muf-footer__grid h3 {
  margin: 0 0 17px !important;
  color: var(--muf-mustard, #f5b844) !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

@media (min-width: 621px) {
  body.muf-modern.woocommerce-checkout .ops-pallet-zone-wrap label.ops-zone-option {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: none !important;
  }

  body.muf-modern.woocommerce-checkout .ops-pallet-zone-wrap label.ops-zone-option > div {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
  }

  body.muf-modern.woocommerce-checkout .ops-pallet-zone-wrap label.ops-zone-option > div > div {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    column-gap: 18px !important;
    align-items: start !important;
  }

  body.muf-modern.woocommerce-checkout .ops-pallet-zone-wrap label.ops-zone-option > div > div > span:first-of-type {
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  body.muf-modern.woocommerce-checkout .ops-pallet-zone-wrap label.ops-zone-option > div > div > span:nth-of-type(2) {
    grid-column: 2 !important;
    justify-self: end !important;
    float: none !important;
    margin-left: 0 !important;
    color: var(--muf-success-copy, #347044) !important;
    white-space: nowrap !important;
  }

  body.muf-modern.woocommerce-checkout .ops-pallet-zone-wrap label.ops-zone-option > div > div > p {
    grid-column: 1 / -1 !important;
  }
}
