/*
Scout Books Custom Products CSS
*/

.tm-extra-product-options {

	#tm-extra-product-options-review {
		ul {
			li {
				float  : left;
				margin : 0 0 10px 40px;
			}
		}
	}

	h3.tc-cell.tm-section-label {
		display : none;
	}

	.radio_image, .radio-image {
		pointer-events : auto !important;
	}

	.checkbox_image, .checkbox-image {
		pointer-events : auto !important;
	}

	.tmcp-field-wrap {
		> label {
			cursor : pointer;

			&:hover {
				opacity : .4;
			}
		}
	}

	ul.tmcp-ul-wrap.tm-extra-product-options-checkbox {
		li.tmcp-field-wrap {
			input[type="checkbox"] {
				&:checked {
					+ {
						label {
							+ {
								.amount {
									font-weight : normal !important;
								}
							}
						}
					}
				}
			}
		}
	}

	input.use_images {
		&:checked {
			+ {
				label {
					.radio_image, .radio-image {
						-moz-box-shadow : none !important;
						box-shadow      : none !important;
					}

					.checkbox_image, .checkbox-image {
						-moz-box-shadow : none !important;
						box-shadow      : none !important;
					}
				}
			}
		}
	}
}

.woocommerce {

	.product_cat-diy {
		.tc-element-container {
			ul.tmcp-ul-wrap {
				margin-left : 0px;

				li.tmcp-field-wrap {
					margin-right : 10px;
				}
			}
		}
	}

	.tc-element-container {
		ul.tmcp-ul-wrap {
			/* margin-left : 0px; */

			li.tmcp-field-wrap {
				float : left;
			}
		}

	}

	.tm-extra-product-options {
		#tm-extra-product-options-review {
			ul {
				li {
					margin-left : 25px;
				}
			}
		}
	}

	.product_cat-custom {
		.tm-extra-product-options {
			#tm-extra-product-options-review {
				ul {
					li {
						margin-left : 40px;
					}
				}
			}
		}
	}


	.tm-epo-required {
		display : none;
	}

	.product_meta {
		display : none;
	}

	.tm-epo-variation-section {
		img {
			background-color : white;
		}

		input[type=radio] {
			&:checked {
				+ {
					label {
						.radio_image {
							box-sizing         : border-box;
							-moz-box-sizing    : border-box;
							-webkit-box-sizing : border-box;
							border             : 2px solid #f9db48;
							background-color   : #f9db48;
						}
					}
				}
			}
		}
	}

	.tm-extra-product-options {
		.cell {
			padding : 0px;
			margin  : 0px;
		}


		.tcwidth-100 {
			&.tc-container {
				margin-bottom : 0;
			}
		}

		.cpfclear {
			height     : 0;
			margin     : 0;
			padding    : 0;
			min-height : 0;
			overflow   : visible;
			width      : 100%;
			float      : left;
			position   : relative;
		}

		.tm-epo-field-label.tm-has-required {
			padding : 0px;
		}

		.reset_variations {
			display : none;
		}


		.radio_image, .radio-image {
			border-radius : 50%;
			width         : 80px !important;
			height        : 80px !important;
			padding       : 0px;
			margin        : 0px;
			max-width     : none;
			border        : none;
		}

		.checkbox_image, .checkbox-image {
			border-radius : 50%;
			width         : 80px !important;
			height        : 80px !important;
			padding       : 0px;
			margin        : 0px;
			max-width     : none;
			border        : none;

			&.checked {
				cursor              : default;
				position            : absolute;
				top                 : 0px;
				left                : 0px;
				background-image    : url('../imgs/checked.png');
				background-position : center center;
				background-size     : 80px 80px;
				background-color    : white;
				opacity             : .4;
			}
		}
	}

	.tm-extra-product-options-inner {
		margin-bottom : 10px;
	}

	.tc-container {
		.tc-row {
			.tc-element-container {
				&:not(.tm-extra-product-options-container) {
					&:nth-child(2), &:nth-child(3) {
						margin : 0 15px 10px 15px;
					}
				}
			}
		}
	}

	.tm-extra-product-options-container, .tc-element-container {
		border-top : 1px solid rgba(49, 42, 24, .5);

		.custom-options-selected {
			margin : 0;

			ul {
				width : 100%;
			}
		}

	ul.tm-extra-product-options-checkbox{
		li.tmcp-field-wrap {
			padding : 0px !important;
			/* margin  : 0px 0px 10px 10px; */
		}
	}
	
		ul.tm-extra-product-options-variations {
			li.tmcp-field-wrap {
				padding : 0px !important;
				width   : 80px !important;
				margin  : 0px 0px 10px 10px;
			}
	
			> :first-child {
				margin-left : 0px !important;
			}
	
			&.tm-variation-ul-image, &.tm-element-ul-radio, &.tm-element-ul-checkbox {
				display : block;
			}
		}

		.tmcp-field-wrap {
			label {
				span {
					margin-top : 10px !important;
				}
			}

			span {
				padding    : 0px;
				text-align : center;
				display    : block;
			}

			span.amount {
				display : block;
			}
		}
	}

	.attributes-container {
		border-top : 1px solid rgba(49, 42, 24, .5);

		ul.tmcp-ul-wrap {
			li.tmcp-field-wrap {
				padding : 0px !important;
				width   : 80px !important;
				margin  : 0px 0px 10px 10px;
				margin  : 0px 10px 10px 0px;
			}
		}
	}

	#custom-options-container {
		/* margin-top : 18px; */
		/* float      : left;
		width      : 100%;
		position: sticky;
		bottom: 100px;
		background-color: white; */
	
		.radio-image{
			border-radius: 50%;
			width: 80px !important;
			height: 80px !important;
			padding: 0px;
			margin: 0px;
			max-width: none;
			border: none;
		}
	}

	.tc-row {
		#custom-options-container {
			margin-top : 0;
		}

		ul.tm-extra-product-options-radio {
			margin-left : 0;
		}
	}
	
	.tm-element-description {
		display: flex;
		align-items: center;
		padding-bottom: 5px;
		
		div {
			height: 20px;
			margin-right: 5px;
		}
	}
	
	
	.tm-description {
		margin-bottom : 0px !important;
		
		p {
			padding-bottom : 5px;
		}
	}

	.custom-options-selected.tm-extra-product-options-container, .custom-options-selected.tc-element-container {
		ul.tmcp-ul-wrap {
			li.tmcp-field-wrap {
				margin : 0px 10px 10px 0px;
			}
		}
	}

	.tm-extra-product-options-container.custom-options-selected, .tc-element-container.custom-options-selected {
		.radio_image, .radio-image {
			cursor : default;

			&:hover {
				opacity : 1;
			}
		}

		.checkbox_image, .checkbox-image {
			cursor : default;

			&:hover {
				opacity : 1;
			}
		}
	}

	div.options_wrapper {
		float  : left;
		margin : 0px 24px 0px 0px;
	}

	.alert-div {
		div.tm-description {
			p {
				padding : 0px 0px 5px 0px;
			}

			background : #f9db48;
			padding    : 10px;
		}
	}
}

.tc-extra-product-options {
	.tmcp-field-wrap {
		label {
			display : inline-block !important;
		}
	}
}


#tm-extra-product-options {
	.tm-epo-field-label {
		display : none;
	}

	.tm-epo-element-label {
		display : none;
	}

	.custom-options {
		overflow : hidden !important;
	}
}

#tm-extra-product-options-fields {
	.custom-options {
		.cell {
			visibility     : hidden;
			padding-bottom : 10px !important;

			&:first {
				visibility : visible;
			}
		}

		//height : 280px;
	}
}

.custom-options-selected {
	span {
		display : none;
	}
}


.custom-options ul.tmcp-elements{
	
	margin: 0px !important;

	li.tmcp-field-wrap {
		flex: 0 !important;
		margin-right: 10px !important;
	}
}

.woocommerce-product-gallery__image {
	pointer-events: none;
}
