
// --------------------------------------------------------------------------------------------
// WOOCOMMERCE LAYOUT
// --------------------------------------------------------------------------------------------

.woocommerce, .woocommerce-page {

	.col2-set {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-ms-flex-direction: row;
		flex-direction: row;
		-webkit-box-align: stretch;
		-ms-flex-align: stretch;
		align-items: stretch;
   		margin-left: -15px;
   		margin-right: -15px;

		.col-1,
		.col-2 {
			-webkit-box-flex: 1;
			-ms-flex: 1 0 0px;
			flex: 1 0 0;
			padding-left: 15px;
			padding-right: 15px;
		}
	}
	
	.form-row-first,
	.form-row-last {
		float: left;
		width: 47%;
		overflow: visible;
	}

	.form-row-last {
		float: right;
	}

	.form-row-wide {
		clear: both;
	}

	.variation {
		display: block;
		margin-bottom: 0;
		overflow: hidden;
		font-size:12px;

		dt,dd {
			display: block;
			float: left;
			clear: both;
			color: rgb(178, 178, 178);

			p {
				color: #b2b2b2;
			}
		}

		dt {
			margin-right: 5px;
		}

		dd {
			clear: none;
			position: relative;
			top:-3px;
		}

		p {
			margin-bottom: 0;
		}
	}

	.woocommerce-Address {

		.title {
			position: relative;
			
			h3 {
				display: inline-block;
				margin-bottom:0;
			}
		}

		.edit {
			font-size: 12px;
			display: inline-block;
			margin-left: 5px;
			text-decoration:none;
			border-bottom:1px solid #E6E6E6;

			&:hover {
				border-color:#A6A6A6;
			}
		}
	}

	input[name="save_account_details"],
	input[name="save_address"],
	input[name="track"] {
		padding: 12px 32px;
		@include btn-color-primary;
	}

	ul.order_details {
		margin-bottom: 20px;
		margin-left:28px;

		li {
			margin-bottom: 15px;
			font-size: 16px;

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

	ul.woocommerce-thankyou-order-details,
	ul.wc-bacs-bank-details {
		display: flex;
		-webkit-display: flex;
		display: -webkit-flex;
		-ms-display: flex;
		flex-direction: row;
		-webkit-flex-direction: row;
		-ms-flex-direction: row;
		justify-content: space-between;
		-webkit-justify-content: space-between; 
		-ms-justify-content: space-between;

	   	.amount {
	   		color:$heading-color;
	   	}

		li {
			flex-grow: 1;
			-ms-flex-grow: 1;
			-webkit-flex-grow: 1;
			padding-left: 20px;
			padding-right: 20px;
			margin-bottom: 20px;
			border-right: 1px solid #dfdfdf;
			text-align: center;
			color:$body-color;

			strong {
				display:block;
				margin-top:10px;
				color:$heading-color;
			}

			&:last-child {
				border-right:none;
			}
		}

		& + p {
			font-size: 16px;
			background-color: #f8f8f8;
			padding-top: 20px;
			padding-bottom: 20px;
			padding-right: 15px;
			padding-left: 15px;
			margin-bottom: 30px;
			text-align: center;
		}
	}
}

// ------------------------------------------
// WOOCOMMERCE MESSAGE 
// ------------------------------------------ 

.woocommerce-message {

	.button {
		float: right;
		color:white;
		text-decoration: none;
		font-weight: bold;
   		background-color: transparent;
		padding: 0;
		border: none;
		text-decoration: underline;
		color: #328C34;
		margin-left: 10px;

		&:hover,
		&:focus {
			background-color: transparent;
		}
	}
}

.woocommerce-error,
.woocommerce-info {

	.button {
		display: none;
	}
}

//Country selector for new woocommerce

.woocommerce-checkout,
.woocommerce-account {
	
	.woocommerce {
		
		> p {
			font-size: 14px;
			letter-spacing: .3px;
			padding: 15px 25px;
			background-color: #F9F9F9;
			line-height: 1.8;

			strong {
				color:black;
			}

			a {
				@include border-link;
			}
		}
	}
}

.woocommerce-cart, 
.woocommerce-checkout { //hide cart hover on cart and chackout pages

	// .shopping-cart  {

	// 	> a {
	// 		cursor: default;			
	// 	}
	// }

	.dropdown-wrap-cat {
		display: none; 
	}
}

// ------------------------------------------
// SELECT2 FORM STYLES
// ------------------------------------------

body {

	.select2-container {

		.select2-selection {
			text-align: left;
			border-radius:0;
			border: 1px solid rgba(129, 129, 129, 0.25);
			font-size: 14px;
			line-height: 18px;
			padding: 0 10px;
			min-height: 40px;
			-webkit-transition: border-color .4s;
			transition: border-color .4s;
	
			.select2-selection__rendered {
				line-height: 40px;
				padding-left: 0;
			}
	
			.select2-selection__arrow {
				height: 38px;
				right: 6px;
				@extend %select-caret-down;
				background-position: left 5px top 50%;
				background-repeat: no-repeat;
				background-size: auto 5px;

				b {
					display: none;
				}
			}

			.select2-selection__clear {
				height: 38px;
				font-size: 18px;
				font-weight: 400;
				color: #6B6B6B;
			}
		
			.select2-search__field {
				outline: none;
			}
	
			&:focus {
				outline: none;
			}
		}

		.select2-selection--multiple {

			.select2-selection__rendered {
				display: block;
				margin-bottom: 9px;

				li {
					margin-top: 9px;
				}

				.select2-selection__choice {
					margin-right: 10px;
					padding: 3px 8px;
					font-size: 12px;
					font-weight: 600;
					color: #4E4E4E;
					background-color: #F1F1F1;
					border-radius: 0;
					border: none;
					line-height: 1;
				}

				.select2-search--inline {
					line-height: 1;
					margin-right: 0;
				}
			}

			.select2-selection__choice__remove {
				color: inherit;
				font-size: 13px;

				&:hover {
					color: inherit; 
				}
			}

			.select2-search__field {
				height: auto;
			}
		}

		.select2-dropdown {
			border-radius: 0;
			border-color: rgba(129, 129, 129, 0.25);
		}

		&.select2-container--focus {

			.select2-selection--multiple {
				border-color: rgba(129, 129, 129, 0.25);
			}
		}

		&.select2-container--open {

			.select2-selection__arrow {
				-webkit-transform: rotate(180deg);
				transform: rotate(180deg);
			}
		}
	}
	
	.select2-drop-active {
		border-color: rgba(129, 129, 129, 0.25);
	
		.select2-search {
			padding:10px;
	
			input {
				padding-right: 35px!important;
				padding-left: 10px!important;
				padding-top: 10px!important;
				padding-bottom: 10px!important;
				background-image: none;
				color: rgb(116, 116, 116);
			}
	
			&:after {
				content: "\e090";
				font-size: 18px;
				color: #8C8C8C;
				font-family: 'Simple-Line-Icons';
				position: absolute;
				right: 20px;
				top: 50%;
				transform:translateY(-50%);
				-ms-transform:translateY(-50%);
				-webkit-transform:translateY(-50%);
			}
		}
	
		&.select2-drop {
	
			&.select2-drop-above {
				border-color: rgba(129, 129, 129, 0.25);
			}
		}
	}
	
	.select2-search__field {
		height: 40px;
	}
	
	.select2-container--default {
	
		.select2-results__option[aria-selected=true],
		.select2-results__option[data-selected=true] {
			
			&:focus {
				outline: none;
			}
		}
	
		.select2-results__option--highlighted[aria-selected] {
			background-color: $primary-color;
		}
	}
}

// ------------------------------------------
// CHANGE VARIABLE PRICE OPTION
// ------------------------------------------

.basel-price-outside {
	
	// .price {

	// 	> .price {
	// 		font-size: inherit;
	// 	}
	// }

	.woocommerce-variation {
		height: auto !important;
		animation: none;
	}

	.woocommerce-variation-price {
		display: none;
	}
}

// ------------------------------------------
// QUICK VIEW CONTENT
// ------------------------------------------ 

.popup-quick-view {
	max-width: 920px;
	background-color: white;
	margin: 65px auto;
	position:relative;
	box-shadow: 4px 4px 17px rgba(0, 0, 0, 0.3);

	.product-images {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		-ms-flex-direction: column;
		flex-direction: column;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
		-webkit-box-pack: center;
		-ms-flex-pack: center;
		justify-content: center;
		overflow: hidden;

		> .images {
			width: 100%;
		}

		&:hover .view-details-btn {
			-webkit-transform: translateY(0%);
			transform: translateY(0%);
		}
	}

	.view-details-btn { 
		position: absolute;
		bottom: 0;
		left: 15px;
		right: 15px;
		display: block;
		padding: 15px;
		z-index: 2;
		background-color: rgba(0, 0, 0, 0.9);
		line-height: 1.2;
		font-weight: 600;
		font-size: 16px;
		color: white;
		text-decoration: none;
		text-align: center;
		text-transform: uppercase;
		letter-spacing: .3px;
		backface-visibility: hidden;
		-webkit-backface-visibility: hidden;
		perspective: 800px;
		-webkit-perspective: 800px;

		-webkit-transform: translateY(100%);
		transform: translateY(100%);
		-webkit-transition: all .25s ease;
		transition: all .25s ease;

		&:hover {
			background-color: rgba(0, 0, 0, 1);
		}
	}

	.entry-summary {

		@extend %brand-without-float;

		.basel-product-brands {
			margin-right: 15px;
			margin-bottom: 5px;
			display: inline-block;
			vertical-align: middle;

			img {
				max-width: 65px;
			}
		}

		> .product_type_simple,
		.product_type_variable {
			@include btn-color-black;
			margin-bottom: 20px;
			margin-right:15px;
		}

		.view-details-btn {
			display: none;
			font-size: 14px;
			padding-top: 9px;
			padding-bottom: 9px;
			padding-left: 20px;
			padding-right: 20px;
			margin-bottom: 20px;
			line-height: 18px;
			text-transform: uppercase;
			letter-spacing: .3px;
			border-radius: 0;
			border:2px solid black;
			text-decoration:none;
			text-align: center;
			-webkit-transition:all 0.25s ease-in-out;
			transition:all 0.25s ease-in-out;

			&:hover,
			&:focus {
				background-color:black;
				color: #FFF;

			}
		}

		.entry-title {
			font-size: 32px;
			margin-bottom: 5px;

			a {
				font-family: inherit;
				font-weight: inherit;
				font-style: inherit;
				text-decoration: none;

				&:hover {
					color: $primary-color;
				}
			}
		}

		.woocommerce-product-rating {
			margin-bottom:5px;
		}

		.price {
			font-size: 28px;
			margin-bottom: 7px;
		}

		div[itemprop="description"] {
			margin-bottom:20px;
		}

		.woocommerce-review-link {
			display: none;
		}

		.woocommerce-breadcrumb,
		.yoast-breadcrumb {
			display:none;
		}

		.product_meta {
			border-top: none;
			padding-top: 0;
			margin-top: 0;
		}

		.share-title {
			font-weight:bold;
			color: #1B1919;
			margin-right:5px;

			&:after {
				content:":";
			}
		}

		.social-icons {
			display:inline-block;
		}
	}

	.single-product-content {

		.product-image-summary {
			margin-bottom:0;

			.owl-controls {
				margin-top:0;
			}
		}
	}

	.owl-carousel {

		.owl-nav {
			
			> div {

				&.owl-next {
					right:-20px;
				}

				&.owl-prev  {
					left:-20px;
				}
			}
		}

		.owl-dots {
			display: none;
		}

		&:hover .owl-nav div.owl-next {
			right:0;
		}

		&:hover .owl-nav div.owl-prev {
			left:0;
		}
	}

	.mfp-close {
		font-size:0;
		@include close-btn( $height:1px, $width:30px, $color: black);
		opacity:1;

		&:after,
		&:before {
			right: 9px;
		}

		&:after {
			transform:rotate(-45deg);
			-webkit-transform:rotate(-45deg);
			-ms-transform:rotate(-45deg);
		}

		&:before {
			-webkit-transform:rotate(45deg);
			-ms-transform:rotate(45deg);
			transform:rotate(45deg);
		}
	}

	// ------------------------------------------
	// SCROLL VERSION
	// ------------------------------------------ 

	.single-product-content {

		.product-image-summary {
			display: flexbox;
	   		display: flex;
	   		display: -webkit-flex;
	   		display: -ms-flex;
	   		flex-direction: row;
			-webkit-flex-direction: row;
			-ms-flex-direction: row;
	   		-webkit-align-items: stretch;
			-ms-flex-align: stretch;
			align-items: stretch;
	   		min-height: 400px;

			&:before,
			&:after {
				display: none;
			}
		}

		.variations {
			position: relative;

			td {
				padding-bottom: 10px;
			}

			.reset_variations {
				position: absolute;
				bottom: -15px;
				left: 0;
				margin-left: 0;
			}

			.basel-swatch {
				cursor: pointer;
			}
		}
	}

	.basel-scroll-content {
		padding-left: 15px;
		padding-right: 60px;
		padding-bottom: 25px;
		padding-top: 35px;
	}

	// .basel-scroll {

	// 	.basel-scroll-pane {
	// 		right: 15px;
	// 	}
	// }

	.price {
		color:$primary-color;

		.amount {
			color:$primary-color;
		}

		del {
			color: #bbb;

			.amount {
				color: #bbb;
			}
		}
	}
}
.mfp-close-btn-in .popup-wrapper .mfp-close {
	color: white;
}

// ------------------------------------------
// POPUP ADDED TO CART 
// ------------------------------------------ 

.popup-added_to_cart {
	position: relative;
	max-width: 450px;
	width: 100%;
	margin: 0 auto;
	background-color: white;
	border: 2px solid rgba(101, 101, 101, 0.25);
	text-align: center;
	overflow: hidden;
	padding: 20px 40px 0 40px;

	p {
		font-size: 20px;
		font-weight: bold;
		color:#1B1919;
		font-family: $title-font;
		text-transform: uppercase;
	}

	a {
		margin-bottom: 20px;
		margin-left: 10px;
		margin-right: 10px;
	}

	&:after {
		@include font-icon($icon-shopping-art-down);
		position: absolute;
		bottom: 0;
		right: -14px;
		line-height: 110px;
		z-index: 1;
		font-size: 161px;
		color: rgba(123, 123, 123, 0.10);
		transform: rotate(-30deg);
		-ms-transform: rotate(-30deg);
		-webkit-transform: rotate(-30deg);
	}

	.close-popup {
		@include border-link;
		display: inline-block;
		position: relative;
		z-index: 2;

		&:hover {
			color:black;
		}
	}

	.view-cart {
		padding-left: 40px;
		padding-right: 40px;
		position: relative;
		z-index: 2;
	}

	.mfp-close {
		font-size: 28px;
		opacity: 1;
	}
}

.mfp-close-btn-in .mfp-close {
	color:rgba(0, 0, 0, 0.6);

	&:hover,
	&:focus {
		color:rgba(0, 0, 0, 1);
		background-color:transparent;
	}
}

// ------------------------------------------
// WOOCOMMERCE BREADCRUMB
// ------------------------------------------ 

.woocommerce-breadcrumb {

	a {
		margin-right: 5px;

		&:after {
			content:"/";
			margin-left: 5px;
		}
		
		&:first-child {

			&:before {
				@include font-icon($icon-home);
				margin-right: 5px;
			}
		}
	}
}

.yoast-breadcrumb {

	> span {

		> span {

			> a {

				&:before {
					@include font-icon($icon-home);
					margin-right: 5px;
				}
			}
		}
	}
}

.woocommerce-breadcrumb,
.yoast-breadcrumb {
	font-size: 13px;
	line-height:20px;
	display: inline-block;
	color:#9E9E9E;
	vertical-align: middle;

	a {
		color: #1B1919;
		text-decoration: none;
		font-style: normal;

		&:hover {
			text-decoration: none;
		}
	}
}

// ------------------------------------------
// HIDDEN SCREEN READER TEXT
// ------------------------------------------ 

[class*="screen-reader"] {
	position: absolute !important;
	clip: rect(1px 1px 1px 1px); //* IE6, IE7 *//
	clip: rect(1px, 1px, 1px, 1px);
}

.add_to_cart_inline {

	ins {
		padding:0;
		text-decoration:none;
	}

	> a {
		@include btn-color-black;
		margin-left:10px;

		&.added {
			display:none;
		}

		&:after {
			border-color:white;
		}
	}
}

// ------------------------------------------
// WOOCOMMERCE SINGLE PRODUCT ELEMENT
// ------------------------------------------ 

.woocommerce {

	> .single-product[data-product-page-preselected-id] {
		
		.woocommerce-breadcrumb,
		.yoast-breadcrumb {
			line-height: 40px;
		}
	}
}

// ------------------------------------------
// WOOCOMMERCE LOADER
// ------------------------------------------ 

.blockOverlay {

	&:after {
		position: absolute;
		top:50%;
		left:50%;
		margin-top: -20px;
		margin-left: -20px;
		@include loader($size:40px, $b-width:2px, $color:rgb(0,0,0));
		@include act-loader;
	}
}

// ------------------------------------------
// Store Notice Text
// ------------------------------------------ 

p.demo_store {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	font-size: 14px;
  	// line-height: 1.6;
	padding: 10px 0;
	text-align: center;
	background-color: rgba(0,0,0,.9);
	color: #fff;
	z-index: 299;
  	border-top: 2px solid rgba(255, 255, 255, 0.1);

  	&.woocommerce-store-notice {
		padding-left: 125px;
		padding-right: 125px;
	}
}

.woocommerce-store-notice__dismiss-link {
	position: absolute;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	-webkit-transform: translateY(-50%);
	display: inline-block;
	font-size: 12px;
	line-height: 12px;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 13px;
	padding-right: 14px;
	text-transform: uppercase;
	letter-spacing: .3px;
	border: 2px solid white;
	color:white;
	text-decoration: none;
	text-align: center;
	-webkit-transition: all 0.25s ease-in-out;
	transition: all 0.25s ease-in-out;

	 &:hover,
	 &:focus {
		color:white;
		text-decoration: none;
	 	border-color: $primary-color;
	 }
}

// ------------------------------------------
// APPLE PAY BUTTON
// ------------------------------------------ 

.product-quick-view .apple-pay-button-wrapper,
.quick-shop-wrapper .product-quick-view {
   display:none;
}

@supports (-webkit-appearance:-apple-pay-button) {
   
	.apple-pay-button-wrapper,
	.apple-pay-button-checkout-separator {
		margin-bottom: 10px;
	}

	.apple-pay-button-checkout-separator {
		color:#212121 ;
		font-weight:600;
		font-size:12px;
	}

	body.single-product div.product form.cart div.quantity,
	.single-product div.product form.cart div.quantity input[type=“button”],
	.single-product div.product form.cart div.quantity ~ .button {
		width:auto;
	}

	.single-product div.product form.cart div.quantity {
		margin-right: 10px;
	}

	.single-product div.product form.cart div.quantity input[type=“number”] {
		width:30px;
	}

	body.single-product div.product form.cart .apple-pay-button-wrapper {
		display: inline-block;
		vertical-align:middle;
	}

	body.single-product div.product form.cart .apple-pay-button {
		margin-right: 10px;
		max-width: 20%;
	}
}