/**
 * C.P. Lauman - Custom WooCommerce Functions
 *
 * @package		cplauman-custom-wc
 * @author		Jerry Simmons <jerry@montereypremier.com>
 * @copyright	2018 Jerry Simmons
 * @license		GPL-2.0+
 **/


/*** SINGLE PRODUCT - SPECIFICATIONS TAB ***/
div.mp_wc_single_product_detail_section {}
table.mp_wc_single_product_attributes_table {}
tr.mp_wc_single_product_attribute_row {}
th.mp_wc_single_product_attribute_name {}
td.mp_wc_single_product_attribute_value {}

	tr.mp_wc_single_product_attribute_row:nth-child(even) { background-color: #f4f4f4; }

	.mp_wc_single_product_attributes_table th.mp_wc_single_product_attribute_name,
	.mp_wc_single_product_attributes_table td.mp_wc_single_product_attribute_value {
		border: none;
	}

	th.mp_wc_single_product_attribute_name,
	td.mp_wc_single_product_attribute_value {
		width: 50%;
	}


/*** SINGLE PRODUCT - RELATED PRODUCTS 4 COLUMNS ***/
	.woocommerce .related.products ul.products.columns-4 li.product {
		width: calc(25% - 22.5px);
		margin-right: 30px;
		clear: none;
	}

	.woocommerce .related.products ul.products.columns-4 li.product:last-of-type {
		margin-right: 0;
	}

/*** PRODUCTS LAYOUT ***/
.mp_wc_shop_loop_cta_buttons > div {
	width: 49%;
	display: inline-block;
}

/*** HAND TRUCK BUILDER SHORTCODE ***/

/* Step Wrapper */
.mp_build_step_wrapper {
	margin: 0 0 25px;
	padding: 10px;
}

/* One Step At A Time */
.mp_build_step_wrapper.unselected + .mp_build_step_wrapper .mp_build_step_options { display: none; }
.mp_build_step_wrapper.selected + .mp_build_step_wrapper.optional + .mp_build_step_wrapper .mp_build_step_options { display: block; }


/* Prerequisite Message */
.mp_build_step_wrapper.selected + .mp_build_step_wrapper .mp_build_step_prerequisite { display: none; }
.mp_build_step_wrapper.selected + .mp_build_step_wrapper.optional + .mp_build_step_wrapper .mp_build_step_prerequisite { display: none; }
.mp_build_step_wrapper.unselected:first-of-type .mp_build_step_prerequisite { display: none; }
.mp_build_step_wrapper.selected .mp_build_step_prerequisite { display: none; }

/* Assembly Step */
.mp_build_step_wrapper.assembly_step .mp_build_step_options { text-align: center; }

.mp_build_step_wrapper.assembly_step .mp_build_truck_option_wrapper {
	cursor: default;
	margin: 0 40px;
}

/* Individual Options */
.mp_build_truck_option_wrapper {
	position: relative;
	display: inline-block;
	padding: 10px;
	margin: 5px;
	max-width: calc(20% - 10px);
	transition: all .25s ease;
	text-align: center;
	border: solid 2px transparent;
	border-radius: 5px;
}
.mp_build_truck_option_wrapper:hover { box-shadow: 0 0 10px rgba(0,0,0,.25); }

.mp_build_truck_option_image {
	max-width: 100px;
	object-fit: contain;
}
.mp_build_truck_option_selected { border: solid 2px #ed202e; }


/* Add To Quote Button */
a.mp_build_truck_button.disabled {
	opacity: .5;
	pointer-events: none;
}


/*** TEMP UNORGANIZED CSS ***/

.mp_wc_single_brake_options_section {
	margin: 30px 0 0;
}

.mp_wc_single_brake_options_heading {
	font-weight: 600;
	font-size: 100%;
	color: #000;
}

.mp_wc_single_brake_option_wrapper {
	display: inline-block;
	margin: 10px;
	padding: 0 10px;
	text-align: center;
}
.mp_wc_single_brake_option_wrapper img { max-width: 150px; }


