@import 'quantity_form'; // quantity form

.xt_woofc-no-product {
	opacity: 0;
	visibility: hidden;
	height: 0;
	overflow: hidden;
	margin: 0 !important;
	transition: opacity .4s, visibility .4s, height 0.4s 0.2s;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1.4px;
	text-align: center!important;

	a{
		display: block;
		margin-top: 15%;
		text-align: center;
		border: 2px solid var(--xt-woofc-accent-color);
		color: var(--xt-woofc-accent-color);
		padding: 1rem 1rem;
		font-weight: 600;
		text-decoration: none;
		font-size: 90%;

		.xtfw-no-touchevents &:hover,
		.xtfw-no-touchevents &:focus {
			color: #fff;
			background: var(--xt-woofc-accent-color);
			text-decoration: none;
		}
	}
}

.xt_woofc-product-image {
	overflow: hidden;
	width: var(--xt-woofc-product-image-width);
	align-self: flex-start;
	display: inline-flex;
	border-radius: calc(var(--xt-woofc-product-image-border-radius) + var(--xt-woofc-product-image-border-width) + var(--xt-woofc-product-image-padding));
	border: var(--xt-woofc-product-image-border-width) solid var(--xt-woofc-product-image-border-color);
	padding: var(--xt-woofc-product-image-padding);

	.xt_woofc-squared-thumbnail & {
		height: var(--xt-woofc-product-image-height);
	}

	a {
		border-radius: var(--xt-woofc-product-image-border-radius);
		overflow: hidden;
	}

	img {
		display: block;
		width: 100%;
		height: auto;
	}
}

meta.xt_woofc-product-image {
	display: none;
}

.xt_woofc-product-details {
	padding: 0 0 0 4%;
	width: calc(100% - var(--xt-woofc-product-image-width));
	@include clearfix;

	@include MQ_MAX(XS) {
		width: 100%;
	}
}

.xt_woofc-product-body {
	flex-direction: column;

	p {
		margin-bottom: 8px;

		&:last-child {
			margin-bottom: 0;
		}

		&.xt_woofc-backorder-notification {
			margin-bottom: 10px;
			font-weight: 700;
		}
	}

}

.xt_woofc-product-title,
.xt_woofc-price {
	font-weight: bold;
	font-size: 13.5px;

	@include MQ_MIN(M) {
		font-size: 18px;
	}
}

.xt_woofc-product-title {
	/* truncate title with dots if too long */
	white-space: var(--xt-woofc-product-title-wrap);
	text-overflow: ellipsis;
	overflow: hidden;
	line-height: 1.2;
	flex: 1;
	flex-direction: column;
	padding-right: 4%;
	color: var(--xt-woofc-product-title-color);

	.remove,
	.qty {
		display: none;
	}

	a,
	span.xt_woofc-product-title-inner {
		color: var(--xt-woofc-product-title-color);

		+ * {
			margin-top: 10px;
		}
	}

	a {

		.xtfw-no-touchevents &:hover,
		.xtfw-touchevents &:focus {
			text-decoration: none;
			color: var(--xt-woofc-product-title-hover-color);
		}
	}

	> *:not(.xt_woofc-product-title-inner) {
		font-weight: 400;
	}

}

.xt_woofc-product-attributes {
	display: block;
	width: 75%;
	overflow: hidden;
	margin-bottom: 15px;

	p {
		margin: 0;
	}

	dl {
		display: flex;
		margin-right: 10px;
		margin-bottom: 0;
		line-height: 1.3;
		margin-top: 0;
		color: var(--xt-woofc-product-attributes-color);

		&.xt_woofc-sku {
			margin-bottom: 0;
		}

		&:last-child {
			margin-bottom: 0;
		}

		&:not(.xt_woofc-variation-inline):not(.xt_woofc-sku):before {
			margin-right: 4px;
		}

		&.xt_woofc-variation-inline {
			margin-right: 3px;
			display: inline;
			line-height: 1.5;
		}

		&.xt_woofc-variation-inline:after {
			content: '/';
		}

		&.xt_woofc-variation-inline:last-child:after {
			content: '';
		}

		dt {
			display: inline-block;
			text-transform: capitalize;
			font-weight: 600;
			margin-right: 5px;
		}

		dd {
			display: inline-block;
			margin-right: 5px;
			margin-bottom: 0;
		}
	}
}

.xt_woofc-price {
	display: flex;
	flex: 0;
	flex-direction: row;
	line-height: 1.2;
	color: var(--xt-woofc-product-price-color);
	position: relative;
	align-items: center;

	del {
		transform: translateY(calc(100% - 2px)) scale(0.8);
		transform-origin: right center;
		opacity: 0.7;
		position: absolute;
		right: 0;
	}

	ins {
		padding-bottom: 10px;
	}

	ins,
	del {
		background: none;
		color: var(--xt-woofc-product-price-color);
	}

	.tax_label {
		font-size: 12px;
		font-weight: 400;
		opacity: 0.7;
		text-align: right;
		white-space: nowrap;
		margin-left: 5px;
	}
}

.xt_woofc-actions {
	font-size: 12px;
	font-weight: 400;
	@include clearfix;
	display: flex;
	flex: 1;
	align-self: center;
	justify-content: flex-end;
	flex-wrap: wrap;

	a {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		color: var(--xt-woofc-product-remove-color);
		margin-left: 10px;

		.xtfw-no-touchevents &:hover,
		&:focus {
			color: var(--xt-woofc-product-remove-hover-color);
			text-decoration: none;
		}
	}

	@include MQ_MIN(M) {
		font-size: 14px;
	}
}

.xt_woofc-quantity {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}