@import "compass";
@import "theme_variables";

/*******************************************************************
					Cart Block Styles
********************************************************************/
.cart_block {
	.cart_block_list {
		.remove_link {
			position: absolute;
			@include rtl-right(10px);
			top: 0px;
		}
	}
	.cart-images {
		@include rtl-float-left ();
		@include rtl-margin-right (10px);
	}
	.cart-info {
		overflow: hidden;
		position: relative;
		@include rtl-padding-right (30px);
		.product-name {
			@include rtl-text-align-right();
			a {
				@include rtl-float-left(); 
				color: #000;
			}
		}
		.quantity-formated {
			text-transform: uppercase; 
    		@include rtl-padding-right (5px); 
		}
	}
	dt {
		font-weight: normal;
		overflow: hidden;
		position: relative;
	}
	dd {
		position: relative;
		margin-bottom: 10px;
		.cart_block_customizations{
			border-top: 1px dashed $border-color;
			li {
				padding: 10px 20px;
				
				.deleteCustomizableProduct {
					position: absolute;
					@include rtl-right (10px);	
				}
			}
		}
		
	}
	.cart_block_no_products {
		margin: 0;
		padding: 10px 20px;
	}
	.cart-prices {
		border-top: $main-border;
		.cart-prices-line {
			overflow: hidden;
			padding: 7px 0;
		}
	}
	.cart-buttons {
		overflow: hidden;
		margin: 20px  0 0;
	}
}
/*******************************************************************
					Cart Block(Header) Styles
********************************************************************/
#header {
	.cart_block {
		position: absolute;
		@include rtl-right (0);
		z-index: 2222;
		display: none;
		height: auto;
		background: $white;
		width: 380px;
		border: $main-border;
		padding: 10px; 
		@include rtl-text-align-left();
		dt {
			//background: url(#{$image-base-path}cart-shadow.png) repeat-x;
			&.first_item {
				background: none;
			}
		}
		.product-atributes {
			a { 
				font-style: italic;
			}
		}
		.cart-prices {
		}
		.cart-buttons {
		}
	}
	
}

.cart_block #cart_block_summary,
.cart_block .title_block span,
#header .cart_block h4,
#header .cart_block .title_block,
#header .cart_block h4 {
	display: none
}

.cart_block .cart_block_shipping_cost,
.cart_block .cart_block_tax_cost,
.cart_block .cart_block_total,
.cart_block .cart_block_wrapping_cost {
	@include rtl-float-right ();
}

.cart_block table.vouchers {
	border-top: $main-border;
	clear: both;
	width: 100%;
	margin: 0 auto;
	margin-bottom: 10px;
	tr td {
		padding: 2px;
		&.quantity{
			@include rtl-margin-right (5px);
			min-width: 18px
		}
		&.delete{
			width: 15px;
			// background: url(img/delete.png) no-repeat scroll right center transparent;
		}
		i {
		}
	}
}
/*****************************************************************************
					Layer Cart Css
*****************************************************************************/
.layer_cart_overlay {
	background-color: #000;
	display: none;
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 98;
	@include opacity(.20);
}

* html .layer_cart_overlay {
	position: absolute;
	left: 0;
	@include rtl-margin-left(-160px);
	@include opacity(.20)
}

#layer_cart {
	background-color: $light-background;
	position: absolute;
	display: none;
	width: $container-lg - $grid-gutter-width;
	margin-right: 0;
	margin-left: 10px; 
	@include rtl-right(15px);
	z-index: 9999;
	@include border-radius(4px);
	.layer_cart_product {
		padding: 30px 30px 30px 30px;
		overflow: hidden;
		position: static;
		.title {
			font: 400 23px/29px $headings-font-family;
			color: #46a74e;
			margin-bottom: 22px;
			margin-top: 20px;
			text-transform: uppercase;
			display: block;
			@include rtl-padding-right (100px);
			@media (max-width: $screen-xs-max) { // max 767px
				font-size: 18px;
				@include rtl-padding-right(0);
				line-height: normal;
			}
			i {
				font-size: 30px;
				line-height: 30px;
				@include rtl-float-left ();
				@include rtl-padding-right(8px);
				@media (max-width: $screen-xs-max) { // max 767px
					font-size: 22px;
					line-height: 22px;
				}
			}
		}
		.product-image-container {
			max-width: 178px;
			border: $main-border;
			padding: 5px;
			@include rtl-float-left ();
			@include rtl-margin-right (30px);
			@media (max-width: $screen-xs) { // max 480px
				float: none;
				margin-right: 0;
				margin-bottom: 10px;	
			}
		}
		.layer_cart_product_info {
			padding: 38px 0 0 0;
			#layer_cart_product_title {
				display: block;
				padding-bottom: 8px;
			}
			> div {
				padding-bottom: 7px;
				strong {
					@include rtl-padding-right (3px);
				}
			}
		}
	}
	.layer_cart_cart {
		background: #fafafa;
		border-left: $main-border;
		padding: 21px 30px 170px 30px;
		@include border-radius(0px 4px 4px 0px);
		position: relative;
		@media (min-width: $screen-lg) { // min 1200px
			min-height: 422px;
		}
		
		@media (min-width: $screen-md) and (max-width: $screen-md-max) { // min 992px max 1199px
			min-height: 360px;
		}

		@media (max-width: $screen-sm-max) { // max 991px
			border-left: none;
			border-top: $main-border;
		}
		.title {
			font: 400 23px/29px $headings-font-family;
			color: $text-color;
			border-bottom: $main-border;	
			padding-bottom: 13px;
			margin-bottom: 17px;
			margin-top: 20px;
			text-transform: uppercase;
			display: block;
			@media (max-width: $screen-xs-max) { // max 767px
				font-size: 18px;
			}
		}
		.layer_cart_row {
			padding: 0 0 7px 0;
		}
		.button-container {
			position: absolute;
			bottom: 0;
			left: 0;
			width: 100%;
			padding: 0px 30px 20px 30px;
			
		}
	}
	.cross {
		position: absolute;
		@include rtl-right(7px);
		top: 8px;
		width: 25px;
		height: 25px;
		cursor: pointer;
		color: $text-color;
		z-index: 2;
		&:before {
			content: "\f057";
			display: block;
			font-family: $font-icon;
			font-size: 25px;
			line-height: 25px;
		}
		&:hover {
			color: $link-hover-color;	
		}
	}
	.continue {
		cursor: pointer;
	}
	p {
		padding: 0px;
	}
}
/************************************************************************
						Layer Cart Caroucel
*************************************************************************/
#layer_cart {
	.crossseling {
		.crossseling-content {
			border-top: $main-border;
			padding: 26px 30px 40px 30px;
			position: relative;
		}
		h2 {
			font: 400 23px/26px $headings-font-family;
			color: $text-color;
			margin-bottom: 25px;
		}
		#blockcart_list {
			max-width: 773px;
			width: 84%;
			margin: 0 auto;
			overflow: hidden;
			ul {
				display: block;
				li {
					@include rtl-float-left ();
					width: 178px;
					margin: 0 0px 0 0;
					.product-image-container {
						border: $main-border;
						text-align: center;
						padding: 5px;
						margin-bottom: 15px;
						
						img {
							width: 100%;
						}	
					}
					.product-name {
						padding-bottom: 5px;
						
						a {
							font-size: 15px;
							line-height: 20px;
						}
					}
				}
			}
			a.bx-prev,
			a.bx-next {
				display: block;
				font-family: $font-icon;
				font-size: 20px;
				line-height: 20px;
				width: 20px;
				height: 20px;
				color: $text-color;
				text-indent: -5000px;
				position: absolute;
				top: 45%;
				margin-top: -20px;
				&:after {
					display: block;
					text-indent: 0;
				}
				&:hover {
					color: #c0c0c0;
				}
				&.disabled {
					display: none;
				}
			}
			a.bx-prev {
				left: 5%;
				&:after {
					content: "\f137";
				}
			}
			a.bx-next {
				right: 5%;
				&:after {
					content: "\f138";
				}
			}
			.bx-controls {
				overflow: hidden;
			}
		}
	}
}