/**
 * 
 * 14. External (vendor) elements styling
 * 
 */

/** 14.01 Photoswipe style tweaks **/
.pswp-active .head-sticky-visible {
	transform: translateY(-100%);
}

.pswp-active.single-product .product span.onsale {
	opacity: 0;
	visibility: hidden;
}

.pswp {
	.pswp__img {
		max-width: initial;
	}
}

/** 14.02 Swiper style tweaks **/
.swiper-wrapper {
	@include box-sizing(content-box !important);
	.swiper-slide {
		float: left;
		margin: 0;
		overflow: hidden;
		max-width: 100%; // to avoid image size glitch when loading in woo single
		
		.swiper-slide-inner,
		.slide-target {
			width: 100%;
			height: 100%;
			position: absolute;
			top: 0;
			left: 0;
		}
	}
}

.shrk-swiper-container {
	width: 100%;
	height: auto;
	min-height: 80px; //dont fully collapse in any case
	overflow: hidden;
	position: relative;

	.shrk-swiper-container {
		height: 100%;

		.swiper-wrapper {
			height: 100%;
		}
	}

	&.swiper-height-auto.swiper-container-horizontal .swiper-slide-inner {
		height: auto;
	}

	&.woocommerce {
		ul.products {
			margin: 0;

			li.product {
				overflow: visible;
				padding: 0;
				border-right: 0;

				a.added_to_cart {
					display: none; 
				}
			}
		}

		&.swiper-container-autoheight {
			ul.products {
				align-items: center; // [b56aef7]
			}
		}	
	}
}

.swiper-slide {
	.title {
		font-style: italic;
		font-size: 42px;
		margin-top: 80px;
		margin-bottom: 0;
		line-height: 45px;
	}
}

// Hidden initially
.prev_swipe, 
.next_swipe {
	opacity: 0;
}

.product-grid-images-slider {
	// Hidden initially
	.prev_swipe, .next_swipe, .pagination-wrapper, .swiper-scrollbar {
		visibility: hidden;
	}

	&.shrk-swiper-container {
		.prev_swipe, .next_swipe, .pagination-wrapper, .swiper-scrollbar {
			visibility: visible;
		}	
	}

	.swiper-slide {
		img {
			position: absolute;
			width: 100%;
			height: 100%;
			top: 0;
			left: 0;
		}

		.image-wrap {
			height: 0;
			padding-bottom: 100%;			
		}
	}
}

.shrk-swiper-container {
	.pagination-wrapper {
		text-align: center;
	}

	.swiper-pagination {
		display: none;
	}

	&.swiper-show-pagination > .swiper-pagination {
		display: block;
	}

	&.swiper-hide-pagination > .swiper-pagination {
		display: none !important;
	}

	.swiper-scrollbar,
	.swiper-scrollbar-drag {
		border-radius: 0;
	}

	&.product-grid-images-slider .pagination {
		display: none;
	}

	.swiper-slide {
		background-size: cover;
		background-position: center center;

		&:before {
			@extend %loading-spinner;
			@include pos-abs-center-x-center-y(30px);
			@include transition(opacity 0.1s linear);	
			content: '';
			opacity: 0;
			display:none;
			border-color: $color-dark-gray;
		}

		&.swiper-slide-active.swiper-lazy-not-loaded {
			&:before {
				display: block;
				opacity: 1;
			}
		}

	}

	&.swiper-dragging {
		.swiper-slide.swiper-lazy-not-loaded {
			&:before {
				display: block;
				opacity: 1;
			}
		}
	}

	&.swiper-container-horizontal > .swiper-scrollbar {
		left: 2%;
		height: 3px;
		width: 96%;
	}

	.swiper-lazy {
		opacity: 0;
		@include transition(opacity 0.1s linear);

		&.swiper-lazy-loaded {
			opacity: 1;
		}
	}
}

.shrk-swiper-container {
	.slide-inner-image {
		@extend %abs-cover-parent;
		background-size: cover;
		background-position: center center;		
	}

	.swiper-slide .swiper-slide-inner {
		position: relative;
	}

	.swiper-slide-inner .zoom-icon {
		position: absolute;
		top: 5px;
		right: 5px;
		font-size: 25px;
		color: rgba(255, 255, 255, 0.77);
		padding: 5px;
		opacity: 0;
		background-color: rgba(2, 1, 1, 0.36);
		border-radius: 3px;
		width: 40px;
		height: 40px;
	}

	.swiper-slide-active .swiper-slide-inner:hover .zoom-icon {
		opacity: 1;
	}

	.swiper-slide .swiper-slide-inner {
		display: table-cell;
		vertical-align: middle;
	}
}

.shrk-swiper-container {
	.prev_swipe, .next_swipe {
		color: rgba(0, 0, 0, 1);
		background-color: #fff;
		position: absolute;
		top: 50%;
		margin-top: -40px;
		height: 80px;
		width: 80px;
		font-size: 50px;
		line-height: 80px;
		cursor: pointer;
		opacity: 0;
		z-index: 12;
		@include transition(opacity $duration-opacity ease-in-out);
		
		i {
			user-select: none;
			@include transition(color $duration-opacity ease-in-out);
		}

		&:hover {
			i {
				color: $color-primary; /* redux[color: main_theme_color] */	
			}			
		}
	}


	&.dark-controls {
		.prev_swipe, .next_swipe {
			color: $color-light-gray;
			background-color: #000;
		}

		.swiper-pagination .swiper-pagination-bullet {
			background-color: #000;
			opacity: 0.8;

			&.swiper-pagination-bullet-active {
				opacity: 1;
			}
		}
	}

	&.transp-controls {
		.prev_swipe, .next_swipe {
			background-color: transparent;
		}

		.prev_swipe i, .next_swipe i {
			color: #fff;
		}

		&.dark-controls {
			.prev_swipe i, .next_swipe i {
				color: $color-darker-gray;
			}			
		}
	}

	.prev_swipe {
		left: 0;
	}
	.next_swipe {
		right: 0;
	}

	.next_swipe.loading,
	.prev_swipe.loading {
		&:after {
			content: '';
			@extend %loading-spinner;
			position: absolute;
			top: 50%;
			left: 50%;
			width: 20px;
			height: 20px;
			margin-top: -10px;
			margin-left: -10px;
			border-color: $color-primary; /* redux[border-color: main_theme_color] */
		}

		i {
			opacity: 0;
		}
	}

	&:hover {
		.prev_swipe, .next_swipe {
			opacity: 0.8;
		}
		
		.swiper-button-disabled {
			opacity: 0.3; 
		}

		.swiper-pagination {
			opacity: 0.8;
		}
	}

	&.swiper-container-vertical {
		> .prev_swipe, > .next_swipe {
			left: 50%;
			margin: 0;
			@include transform(translateX(-50%));

			i {
				@include transform(rotate(90deg));
			}
		}
		> .next_swipe {
			top: auto; bottom: 0;
		}
		> .prev_swipe {
			top: 0; bottom: auto;
 		} 

 		> .swiper-pagination {	
			width: 20px;
			right: 20px;
 		}
	}

	&:hover .pagination {
		opacity: 1;
	}

	&.small-arrows {
		.next_swipe, .prev_swipe {
			width: 60px;
			height: 60px;
			margin-top: -30px;
			font-size: 40px;
			line-height: 60px;

			i {
				&:before {
					width: 100%;
					font-size: 40px;
					line-height: 40px;
					margin: 0;
				}
			}
		}
	}

	&.xs-arrows {
		.next_swipe, .prev_swipe {
			width: 40px;
			height: 40px;
			margin-top: -20px;
			font-size: 30px;
			line-height: 40px;

			i {
				&:before {
					width: 100%;
					font-size: 30px;
					line-height: 40px;
					margin: 0;
				}
			}
		}
	}

	@include until($bp-xs) {
		&.small-arrows,
		&.xs-arrows {
			.next_swipe, .prev_swipe {
				width: 40px;
				height: 40px;
				margin-top: -20px;
				font-size: 30px;
				line-height: 40px;

				i {
					&:before {
						width: 100%;
						font-size: 30px;
						line-height: 40px;
						margin: 0;
					}
				}
			}
		}
	}

	&.arrows-hidden-xs {
		@include until($bp-xs) {
			.next_swipe, .prev_swipe {
				display: none !important;
			}
		}
	}

	.swiper-pagination {
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		margin-bottom: 1em;
		opacity: 0;

		.touch-device & {
			opacity: 0.6;
		}

		.pagination {
			margin: 0;
		}
		
		.swiper-pagination-bullet {
			display: inline-block;
			width: 12px;
			height: 12px;
			border-radius: 12px;
			background-color: $color-lighter-gray;
			border: 0;
			margin: 0 4px;
			cursor: pointer;

			&.swiper-pagination-bullet-active {
				background-color: $color-primary; /* redux[background-color: main_theme_color] */
			}
		}
	}

	&.pagination-shown-only-xs {
		.swiper-pagination {
			@include at-least($bp-xs) {
				display: none !important;
			}
		}
	}
}

.touch-device .shrk-swiper-container {
	.prev_swipe, .next_swipe {
		opacity: 0.8;
	}
}

.one-slide > .shrk-swiper-container,
.one-slide.shrk-swiper-container {
	> .prev_swipe, 
	> .next_swipe, 
	> .pagination, 
	> .swiper-pagination,
	> .swiper-scrollbar {
		display: none;
	}
}

/** 14.03 Slab text styles **/
.txt-slab-wrapper {
	padding: 0;
	margin: 0 auto;

	strong {
		color: $color-primary; /* redux[color: main_theme_color] */	
	}

	.slabtext {
		@extend %text-theme;
		line-height: 0.8em;
		opacity: 0;
		@include transition( opacity $duration-opacity $fn-cubic );
	}

	.slabtexted & {
		.slabtext {
			display: inline-block;
			white-space: nowrap;
		}		
	}

	.slabtextinactive & {
		.slabtext {
			display: inline;
			white-space: normal;
			font-size: 1em !important;
			letter-spacing: inherit !important;
			word-spacing: inherit !important;
			letter-spacing: 0 !important;
			word-spacing: 0 !important;
		}
	}

	.slabtextdone .slabtext {
		display: block;
		opacity: 1;
	}
}

.search-form,
.yith-ajaxsearchform-container > form {
	.wrap-search:after {
		content: '';
		display: none;
		right: 13px;
		top: 50%;
		margin-top: -7px;
		position: absolute;
		border-color: $color-primary; /* redux[border-color: main_theme_color] */
		border-width: 2px;
		width: 15px;
		height: 15px;
		@extend %loading-spinner;
	}

	&.loading {
		.wrap-search:after {
			display: block;
		}
	}
}


/** 14.04 YITH Plugins styling **/
/* 14.04.1 wcas - ajax search */
.yith-ajaxsearchform-container {
	> form {
		.wrap-search {
			position: relative;

			input {
				width: 100%;
				padding-right: 35px;
			}
		}
	}

	.autocomplete-suggestions {
		position: relative !important; //override inline js style, go relateive to get box-shadow
		border: none;
		border-top: 1px dashed $color-lighter-gray;
		border-radius: 0;
		color: $color-darker-gray;

		.autocomplete-suggestion {
			font-size: 14px;
			
			@include transition(color $duration-color ease-in-out);
			&:hover, &.autocomplete-selected {
				background-color: transparent;
				color: $color-primary; /* redux[color: main_theme_color] */
			}
		}
	}
}

/* 14.04.2 Wishlist */
.yith-wcwl-add-to-wishlist {
	.ajax-loading {
		position: absolute;
		top: 0;
		left: 0;
		margin: 0;
		width: 100% !important;
		display: block !important;
		height: 100% !important;
		background-color: $color-darker-gray;

		&:after {
			@extend %loading-spinner;
			content: '';
			position: absolute;
			top: 50%;
			left: 50%;
			margin: -10px 0 0 -10px;
			display: block !important;						
		}
	}
}

.touch-device .woocommerce ul.products li.product .yith-wcwl-add-to-wishlist {
	opacity: 1;
}

// Popup message
#yith-wcwl-popup-message {
    @extend %uppercase;
	color: $color-light-gray;
    background: $color-darker-gray;
    border: 0;
    border-radius: 0;
    line-height: 15px;
    padding: 25px;
    position: fixed;
    text-align: center;
    top: 50%;
    left: 50%;
    margin-left: 0 !important;
    font-weight: 700;
    opacity: 0.8;
    z-index: 10000; /* Thanks WP -.- */
    @include transform(translateX(-50%));
}

// Share buttons
.yith-wcwl-share {
	.yith-wcwl-share-title {
		@extend %uppercase;
	}

	ul, ul li {
		height: auto;
	}
}

// Wishlist widget
.woocommerce .widget_wishlist_content {
	.cart_list {
		li {
			.button {
				display: none; // hide when not purchasable product
			}

			.add_to_cart_button {
				background-color: $color-primary; /* redux[background-color: main_theme_color] */
				margin-right: 50px;
				display: inline-block;
				opacity: 0;
				color: #fff;
				@include button(default, small);
				
				&.loading { 
					opacity: 0.7;
					padding-right: 2.418em;

					&:after {
						right: 0.7em;
						margin-top: -0.53em;
						display: inline-block;
					}
				}
				&.added {
					padding-right: 2.418em;
					opacity: 1;

					&:before {
						position: absolute;
						@extend %ion;
						left: auto;
						right: 0.7em;
						line-height: 1.5em;
						display: inline-block;
						content: $ionicon-var-android-done;
					}

					&:after {
						display: none;
					}
				}

				&:hover {
					color: #fff;
				}

				.touch-device & {
					opacity: 0.8;
					padding-left: 0;
					background-color: transparent;
					color: $color-dark-gray;

					&.loading,
					&.added {
						background-color: $color-primary; /* redux[background-color: main_theme_color] */
						color: #fff;
						padding-left: 10px;
					}
				}
			}

			.added_to_cart {
				display: none;
			}

			&:hover {
				.add_to_cart_button {
					opacity: 1;
				}
			}

		}

		.product-stock-status {
			opacity: 0.5;
			margin-right: 7px;
		}
	}

	.buttons .button {
		margin-top: 1.5em;
	}
}

.widget_wishlist.hide_wishlist_widget_if_empty.empty_wishlist {
	display: none;
}

.woocommerce table.wishlist_table {
	font-size: 100%;

	@include at-least($bp-sm) {
		th.product-price,
		th.product-stock-stauts, /* ;) */
		th.product-stock-status,
		td.product-add-to-cart .button {
			white-space: nowrap;
		}
	}

	thead th {
		border-top: 0;

		&.product-name {
			width: 100%;
		}
	}

	tr td.product-stock-status {

		span.wishlist-in-stock {
			color: $color-dark-gray;
		}

		span.wishlist-out-of-stock {
			color: $color-red;
		}
	}

	a.button {
		@include button(default, small);
		margin-bottom: 0;

		&.remove_from_wishlist {
			display: none !important;
		}

		&.add_to_cart_button:before,
		&.ajax_add_to_cart:before,
		&.product_type_external:before {
			display: none;
		}

		&.loading {
			.btn-text {
				visibility: hidden;
			}

			&:after {
				right: auto;
				left: 50%;
				margin-left: -0.5em;
			}
		}
	}

	.dateadded {
		font-weight: 500;
		font-size: 0.8em;
	}

	@include until($bp-xxs) {
		th, thead {
			display: none;
		}

		tr, td,
		td.product-remove,
		td.product-name,
		td.product-price,
		td.product-add-to-cart {
			display: block;
			border: 0;
		}

		tr {
			position: relative;
			float: left;
			width: 100%;
			border-top: 1px solid rgba(0,0,0,0.1);
		}

		td.product-remove {
			position: absolute;
			top: 0;
			right: 0;
		}

		td.product-name {
			float: left;
			width: 100%;
			padding-right: 30px;
		}

		td.product-price {
			float: left;
		}

		td.product-add-to-cart {
			float: right;
		}
	}
}

.woocommerce .wishlist-title {
	text-align: center;
	width: 100%;
	
	h2 {
		@include heading-small-alt();	
	}
}


/* 14.04.3 Magnifier */
.woocommerce.single-product {
	div.product {

		.yith_magnifier_zoom_magnifier {
			border:1px solid $color-lighter-gray;
		}

		.yith_magnifier_gallery {
			li a {
				margin: 0;
			}
		}

		.thumbnails #slider-prev,
		.thumbnails #slider-next {
			cursor: pointer;
			width: 30px;
			height: 30px;
			background: none;
			position: absolute;
			background-color: #fff;
			top: 50%;
			margin-top: -15px;
			text-align: center;
			opacity: 0.8;

			&:before {
				@extend %ion;
				@extend %simple-transition;
				content: $ionicon-var-ios-arrow-left;
				color: $color-dark-gray;
				font-size: 22px;
				line-height: 30px;
			}

			&:hover {
				&:before {
					color: $color-primary; /* redux[color: main_theme_color] */
				}
			}
		}

		.thumbnails #slider-next:before { content: $ionicon-var-ios-arrow-right; }

		.thumbnails.noslider {
			.yith_magnifier_gallery li.yith_magnifier_thumbnail {
				width: 23.5%;
				margin-right: 2%;
				margin-bottom: 4px;

				&.last {
					margin-right: 0; 
				}

				a:hover {
					opacity: 1;
				}
			}
		}

		.yith_magnifier_loading {
			@extend %uppercase;
			color: $color-darker-gray;
			background: rgba(255, 255, 255, 0.5);
			padding: 3px;
			border: 0;
			position: absolute;
			text-align: center;
			top: 0;
			z-index: 99;
			font-weight: 900;
			height: 100%;
			width: 100%;
			text-indent: -9999px;

			&:before {
				@extend %loading-spinner;
				content: '';
				border-color: $color-darker-gray;
				@include pos-abs-center-x-center-y(30px);
			}
		}
	
		@include at-least($bp-sm) {
			.side-thumbs {
				.images {
					position: relative;
					padding-left: ($woo-side-thumbs-size+$woo-side-thumbs-gap);
				}

				.one-slide.images {
					padding-left: 0;
				}

				.thumbnails {
					position: absolute;
					top: 0;
					left: 0;
					width: $woo-side-thumbs-size;
					height: 100%;
					padding: 0;

					overflow-y: auto;
					@include custom-scrollbars( 4px );

					.yith_magnifier_gallery li.yith_magnifier_thumbnail,
					> a  {
						width: 100%;
						margin-bottom: $woo-side-thumbs-gap;

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

		&.one-image {
			.side-thumbs {
				.images {
					padding-left: 0; // to affect other ext templates, like yith-magnifier's
				}
			}
		}
	}
}


/* 14.04.4 Quickview */
#yith-quick-view-modal,
#yith-quick-view-modal.open {
	.yith-wcqv-main {
		overflow-x: hidden;
		overflow-y: auto;
		padding: 0;
		box-shadow: none;
		background-color: transparent;
		@include transform(translate3d(25%,0,0));
		@include transition(all 0.3s $fn-cubic, box-shadow 0.3s 0.3s $fn-cubic, background-color 0.3s 0.3s $fn-cubic);
	}

	.yith-wcqv-wrapper {
		height: auto !important;
		padding: 0;
	}

	div.product {
		overflow: hidden;
		min-height: 400px;
		width: 1000px;

		> .product {
			display: flex;
			flex-direction: row;
			align-items: center;
		}

		@include until($bp-sm) {
			width: 100%;

			.product_title {
				font-size: 28px;
				margin-bottom: 0;
			}

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

			.price {
				margin-bottom: 15px;
				font-size: 22px;
			}

			.share-button {
				display: none;
			}
		}

		.onsale {
		    top: 0;
		    right: auto;
		    left: 0;

			.badges-style-b & {
		    	top: 25px;
		    	left: 25px;
		    }
		}

		.product-images,
		.entry-summary {
			width: 50%;
			margin-bottom: 0;
			background-color: #fff;
		}

		.entry-summary {
			z-index: 1;
			@include transform(translate3d(-100%,0,0));
			@include transition(transform 0.3s $fn-cubic);

			&:after {
				@extend %loading-spinner;
				content: '';
				display: block;
				border-color: $color-darker-gray;
				width: 16px;
				height: 16px;
				position: absolute;
				right: 10px;
				top: 10px;
			}
		}

		.thumbnails {
			display: none;
		}
	}

	div.entry-summary {
		display: flex;
		justify-content: center;
		flex-direction: column;
		flex-wrap: nowrap;
		text-align: left;
		padding: 35px;
		margin: 0;
		height: 100%;
		position: absolute;
		top: 0;
		right: 0;
		overflow-x: hidden;
		overflow-y: auto;
		@include custom-scrollbars( 6px );

		h1.product_title {
			margin-bottom: 0;
		}

		.summary-content {
			display: flex;
			flex-direction: column;
			max-height: 100%; // IE fix
		}

		div[itemprop="description"],
		.woocommerce-product-details__short-description {
			overflow-y: auto;
			@include custom-scrollbars( 6px );
			padding: 0 6px 0 0;
		}

		form.cart {
			flex-shrink: 0;
			margin-bottom: 1.6em;
		}

		.product_meta {
			padding: 0;
			text-align: left;
		}
	}

	// X button
	#yith-quick-view-close {
		border: 0;
		color: transparent;
		font-size: 0;
		top: 10px;
		right: 10px;
		opacity: 0;
		@include transition(opacity 0.3s 0.3s $fn-cubic);

		&:before {
			@extend %ion;
			content: $ionicon-var-close-round;
			color: $color-dark-gray;
			font-size: 20px;
			@include transition(color $duration-color $fn-cubic);
		}

		&:hover {
			color: transparent;

			&:before {
				color: $color-darker-gray;
			}
		}
	}

	&.qv-shrk-show {
		.yith-wcqv-main {
			box-shadow: 0 0 35px 5px rgba(0,0,0, 0.2);
			background-color: #fff;
			@include transform(translate3d(0,0,0));
		}

		div.product .entry-summary {
			@include transform(translate3d(0,0,0));

			&:after {
				display: none;
			}
		}

		#yith-quick-view-close {
			opacity: 1;
		}
	}
}

// in loop button
li.product .product-meta {
	.yith-wcqv-button {
		position: absolute;
		bottom: 100%;
		left: 0;
		margin-bottom: 5px;
		padding: 0px 10px;
		width: 100%;
		color: $color-darker-gray;
		background-color: #FFF;
		text-align: center;
		z-index: 1;
		font-size: 85%;
		line-height: 26px;

		&:visited {
			color: $color-darker-gray;
		}

		&:hover,
		&:hover:visited {
			color: #fff;
		}

		&.loading {
			padding: 0 10px;

			&:after	{
				display: none;
			}
		}

		.products-transparent .woocommerce.products-meta-bg &,
		.woocommerce.products-transparent.products-meta-bg & {
			&:hover,
			&:active,
			&:focus {
				color: $color-primary; /* redux[color: main_theme_color] */
			}
		}

		.products.list & {
			font-size: 100%;
		}
	}
}

//In table quickview button 
.woocommerce table.shop_table {
	a.yith-wcqv-button {
		padding: 5px !important;
		background-color: transparent !important;
		text-align: center;

		.btn-text {
			display: none;
		}

		.tooltip {
			@include tooltip-bottom();
		}

		&:before {
			@extend %ion;
			color: inherit;
			content: $ionicon-var-search;
		}

		.blockUI {
			display: none !important;
		}

		&:hover {
			&:before {
				color: $color-primary; /* redux[color: main_theme_color] */
			}

			.tooltip {
				@extend %opacity-animate-visible;
			}
		}

		&:after {
			@extend %loading-spinner;
			border-color: $color-primary; /* redux[border-color: main_theme_color] */
			display: none;
			width: 14px;
			height: 14px;
			position: absolute;
			right: 50%;
			margin-right: -7px;
		}

		&.loading {
			&:before {
				opacity: 0;
			}

			&:after {
				display: block;
			}
		}
	}
}

// Hide quickview button on mobile when plugin option says so
.wcqv-no-mobile {
	@include until($bp-xs) {
		.yith-wcqv-button {
			display: none !important;
		}
	}
}


/** 14.05 Mailchimp plugin **/
.mc4wp-form {
	.mc4wp-form-fields {
		input {
			border: 0;
			line-height: 1.5em;
		}

		input[type="submit"] {
			@include button-large();
		}
	}

	@include until($bp-xs) {
		.mc4wp-form-fields, .mc4wp-form-fields input {
			text-align: center;
		}

		input[type="submit"] {
			margin: 1em auto 0 auto;
		}
	}

	@include at-least($bp-xs) {
		.mc4wp-form-fields {
			display: table;
			width: 100%;
			table-layout: auto;

			.wrap-submit,
			.wrap-input {
				display: table-cell;
				vertical-align: bottom;
			}

			.wrap-input {
				width: 100%;
				padding-right: 20px;
			}

			.wrap-submit {
				width: 1%;
			}
		}
	}
}

/** 14.06 Ninja forms **/
.ninja-forms-cont {
	.rating-cancel a, 
	.ninja-forms-star-rating a {
		@include transition(opacity $duration-opacity $fn-cubic);
	}
}

.dark .ninja-forms-req-symbol {
	color: $color-dark-gray;
}

/** 14.07 WPML **/
.menu-item-language img.iclflag {
	transform: translateY(-1px);
	margin-right: 6px;
}

.widget_icl_lang_sel_widget {
	#lang_sel {
		font-family: inherit;

		a.lang_sel_sel {
			background-color: transparent;
			background-image: none;
			border: 0;
		}

		li {
			background-color: transparent;
			float: none;
			margin-bottom: 5px !important;

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

		img.iclflag {
			transform: translateY(-1px);
			margin-right: 6px;
		}

		ul ul {
			@extend %dropdown-hidden;
			border: 0;
			padding: 5px 0 !important;
			margin: 2px 0 0;
			background-color: #fff;
			box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.1);
			height: auto;
			width: auto;
			z-index: 10;

			a, 
			a:visited,
			ul a:visited {
				border: 0;
			}
		}

		li:hover {
			ul {
				@extend %dropdown-visible;
			}
		}
	}
}

#lang_sel_footer {
	@extend %text-theme;
	padding: 12px 7px;

	.lang_sel_sel {
		position: relative;

		&:after {
			content: '';
			position: absolute;
			display: block;
			bottom: 0;
			left: 0;
			width: 100%;
			height: 2px;
			background-color: $color-primary; /* redux[background-color: main_theme_color] */
		}
	}
}

/** 14.08 Instagram widget plugin **/
.widget .instagram-pics {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	align-content: space-between;

	&.instagram-size-thumbnail li {
		flex-basis: 32%;
		width: 32%;
		margin-bottom: 5px;
	}

	&.instagram-size-large li,
	&.instagram-size-small li {
		flex-basis: 48%;
		width: 48%;
		margin-bottom: 10px;
	}

	&.instagram-size-original li {
		margin-bottom: 15px;
	}
}

/** 14.09 Flexslider styles **/
.wpb_content_element.theme-style .flexslider {
	border: 0;

	.flex-control-nav {
		top: auto;
		bottom: 10px;
		opacity: 0.5;
	}

	.flex-direction-nav {
		.flex-prev, .flex-next {
			text-shadow: none;

			&:before {
				@extend %ion;
			}
		}

		.flex-prev:before {
			content: $ionicon-var-ios-arrow-left;
		}

		.flex-next:before {
			content: $ionicon-var-ios-arrow-right;
		}
	}
}

.wpb_content_element.theme-style.dark .flexslider {
	.flex-control-nav {
		a {
			background-color: $color-light-gray;

			&.flex-active {
				background-color: #fff;
			}
		}
	}

	.flex-direction-nav a {
		color: $color-lighter-gray;
	}
}

/** 14.10 WooCommerce Variation swatches **/
.woocommerce .tawcvs-swatches {
	.swatch {
		width: 34px;
		height: 34px;
		line-height: 34px;
		margin-right: 17px;
		border: 0;
	}

	.swatch-label {
		background-color: #e2e2e2;
	}

	.swatch.selected {
		box-shadow: 0 0 1px 2px rgba(0, 0, 0, 0.15);
		border: 0;

		&:before {
			top: 11px;
			left: 14px;
		}
	}

	.swatch-image {
		img {
			@include transform(translateY(-2px) scale(1.1));
		}
	}
}

/** 14.11  SearchWP Live Ajax Search **/
.searchwp-live-search-results {
	box-sizing: border-box;
	background: #fff;
	width:      315px;
	max-height: 300px;
	border-top: 1px dashed #F7F7F7;	
	padding: 10px 0;
	font-size: 14px;
	box-shadow: 0px 4px 7px rgba(0, 0, 0, 0.1);
	@include custom-scrollbars(6px);

	.searchwp-live-search-result p {
		font-size: 14px;
	}

	&.results-ready {
		opacity: 1;
	}

	&.loading {
		opacity: 0;
	}

	&:empty {
		opacity: 0 !important;
	}
}

.navbar ul li .searchwp-live-search-result a {
	text-transform: initial;
	font-weight: normal;
}

.searchwp-live-search-result {
	p {
		padding:0;
		margin:0;
	}

	&:last-of-type p {
		border-bottom:0;
	}

	a {
		display:block;
		padding: 0 15px;
		line-height: 25px;
		white-space:nowrap;
		overflow:hidden;
		text-overflow:ellipsis;
		@include color-link-inv();

		&:focus {
			text-decoration: none;
			color: $color-primary; /* redux[color: main_theme_color] */	
		}
	}
}

.searchwp-live-search-results {
	opacity:0;
	transition:opacity .25s ease-in-out;
	height:0;
	overflow:hidden;
	z-index:999;
	position: static;
	display:none;
	width: 100%;
}

.searchwp-live-search-results-showing {
	display:block;
	opacity:1;
	height:auto;
	overflow:auto;
}

.searchwp-live-search-no-results {
	margin: 0;
	padding-left: 15px;
	cursor: pointer;
	text-align: left;
	line-height: 25px;
	font-size: 14px;
}

.wrap-results {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	z-index: 10;
}

.search-dropdown.sub-menu {
	overflow: visible;
}


/** 14.12  WC Ajax Product Filter **/
body .wcapf-layered-nav ul li {
	&:before {
		display: none;
	}

	> a {
		&:before {
			content: "";
			display: inline-block;
			width: 12px;
			height: 12px;
			border-radius: 6px;
			position: relative;
			top: 2px;
			margin-right: 8px;
			line-height: 1em;
			background-color: #B5B1AF;
			border: 3px solid #B5B1AF;
			transition: background-color 0.1s ease-in-out, border-color 0.1s ease-in-out;
		}

		&:hover {
			&:before {
				background-color: #fff;
			}
		}
	}

	&.chosen {
		> a:before {
			background-color: #fff;	
		}
	}
}

body .wcapf-active-filters a {
	@extend %text-theme;
	background-color: transparent;
	font-size: 12px;
}

.wcapf-price-filter-widget .slider-values {
	@extend %text-theme;
	display: flex;
    justify-content: space-between;
}

body .wcapf-before-update {
	background-image: none;
	background-color: $color-body-background;
	min-height: 350px;
	opacity: 0.9;
	z-index: 15;

	&:after {
		content: '';
		position: absolute;
		@extend %loading-spinner;
		border-color: $color-primary; /* redux[border-color: main_theme_color] */
		width: 60px;
		height: 60px;
		top: 0;
		left: 50%;
		margin-left: -30px;
		margin-top: 200px;
	}
}

.page-cover-widgets {
	.widget {
		display: flex;
		align-items: center;
		margin-top: 3em;
		flex-direction: column;

		.widget-title {
			margin-bottom: 0.7em;
			padding-bottom: 0;
			border-bottom: 0;
			font-size: 17px;
		}
	}
}

.page-cover-widgets {
	.wcapf-layered-nav {
		ul li {
			display: inline-block;
			padding-right: 1.2em;

			a {
				margin-right: 0.3em;
			}

			&:last-child {
				padding-right: 0;
			}
		}
	}
}

.wcapf-price-filter-widget {
	.noUi-target {
		box-shadow: none;
	}

	.noUi-horizontal .noUi-handle {
		background-image: none;
		position: absolute;
		z-index: 2;
		width: 1.2em;
		height: 1.2em;
		border-radius: 0px;
		cursor: ew-resize;
		outline: none;
		top: -.3em;
		margin-left: -.5em;
		border: 0;
		background-color: $color-dark-gray;
		box-shadow: 1px 1px 5px -1px rgba(0,0,0,0.7);

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

	.noUi-origin:last-child .noUi-handle {
		box-shadow: -1px 1px 5px -1px rgba(0, 0, 0, 0.7);
	}

	.noUi-target {
		z-index: 1;
		display: block;
		border: 0;
		border-radius: 1px;
		background-color: $color-dark-gray;
		height: 10px;
	}

	.noUi-horizontal.noUi-extended {
		padding-right: 8px;
		padding-left: 8px;
	}

	.slider-values {
		opacity: 0.8;
		font-size: 90%;
	}
}
