/* ==========================================================================
   WooCommerce Side Area Cart styles
   ========================================================================== */

$content-width: 395px;
$content-padding: 50px 40px 130px;

.widget.widget_alloggio_core_woo_side_area_cart {
	margin: 0 !important;
}

.qodef-woo-side-area-cart {
	position: relative;
	display: inline-block;
	vertical-align: top;
	height: 100%;
	padding: 0 8px;
	
	.qodef-m-inner {
		@include qodefRelativeLayout();
		height: 100%;
	}
	
	.qodef-m-opener {
		position: relative;
		display: flex;
		align-items: center;
		height: 100%;
	}
	
	.qodef-m-opener-icon {
		display: block;
		font-size: 19px;
		
		> * {
			display: block;
			line-height: inherit;
			
			&:before {
				display: block;
				line-height: inherit;
			}
		}
	}
	
	.qodef-m-opener-count {
		position: relative;
		top: 2px;
		right: -4px;
		font-size: 13px;
		font-weight: 400;
		
		&:before {
			content: '(';
		}
		
		&:after {
			content: ')';
		}
	}
	
	.qodef-m-content {
		position: fixed;
		top: 0;
		right: -$content-width;
		height: 100vh;
		width: $content-width;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: $content-padding;
		font-size: $text-font-size;
		background-color: #fff;
		border-left: 1px solid $border-color;
		overflow: hidden;
		visibility: hidden;
		z-index: 9999;
		transition: $sliding-area-transition;
		
		.admin-bar & {
			top: 32px;
			height: calc(100vh - 32px);
		}
	}
	
	.qodef-m-content-title {
		margin: 0 0 35px;
	}
	
	.qodef-m-close {
		position: absolute;
		top: 38px;
		right: 38px;
		display: block;
		color: #606060;
		z-index: 1000;
		
		.qodef-m-lines {
			position: relative;
			width: 31px;
			height: 19px;
			display: flex;
			justify-content: space-between;
			flex-direction: column;
		}
		
		.qodef-m-line {
			left: 0;
			height: 1px;
			width: 100%;
			background-color: currentColor;
			
			&.qodef--1 {
				transform: rotate(45deg) translate(3px,8px);
			}
			
			&.qodef--2 {
				transform: rotate(-45deg) translate(0,1px);
				-ms-transform-origin: 0 0;
				transform-origin: 0 100%;
			}
		}
		
		&:hover {
			color: $main-color;
		}
	}
	
	.qodef-m-items {
		@include qodefRelativeLayout();
	}
	
	.qodef-m-item {
		position: relative;
		display: flex;
		align-items: flex-start;
		margin-top: 30px;
		
		&:first-child {
			margin-top: 0;
		}
	}
	
	.qodef-e-image {
		flex-shrink: 0;
		width: 134px;
		margin-right: 15px;
		
		a, img {
			display: block;
		}
	}
	
	.qodef-e-content {
		@include qodefRelativeLayout();
		padding-right: 20px;
	}
	
	.qodef-e-title {
		margin: 0;
	}
	
	.qodef-e-price {
		@include qodefHeadingStyle('h4');
		margin: 0;
	}
	
	.qodef-e-quantity {
		margin: 4px 0 0;
	}
	
	.qodef-e-remove {
		position: absolute;
		top: 1px;
		right: 0;
		font-size: 23px;
		line-height: 1;
	}
	
	.qodef-m-order-details {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 0;
		margin-top: 30px;
		border-top: 1px solid $border-color;
		border-bottom: 1px solid $border-color;
		
		> * {
			margin: 0;
		}
	}
	
	.qodef-m-order-amount {
		@include qodefHeadingStyle('h4');
		line-height: 1;
	}
	
	.qodef-m-action {
		position: absolute;
		bottom: 40px;
		left: 0;
		width: 100%;
		padding: 0 40px;
		display: flex;
		justify-content: space-between;
	}
	
	.qodef-m-action-link {
		padding: 12px 27px !important;
	}
	
	.qodef-m-posts-not-found {
		margin: 0;
	}
	
	&.qodef--opened {
		
		.qodef-m-content {
			right: 0;
			visibility: visible;
		}
	}
}

.qodef-woo-side-area-cart-cover {
	position: fixed;
	top: 0;
	left: 0;
	width: calc(100% - #{$content-width});
	height: 100vh;
	overflow: hidden;
	z-index: 1002;
}