/******************************************************************
Site Name:
Author:

Stylesheet: Responsive WooCommerce Styles - Widgets

******************************************************************/

//
// Cart sidebar
//

ul.cart_list,
ul.product_list_widget {
	list-style: none outside;
	padding: 0;
	margin: 0;

	li {
		padding: 4px 0;
		margin: 0;
		@include clearfix();
		list-style: none;

		a {
			display: block;
			font-weight: 700;
		}

		img {
			float: right;
			margin-left: 4px;
			width: 32px;
			height: auto;
			box-shadow: none;
		}

		dl {
			margin: 0;
			padding-left: 1em;
			border-left: 2px solid rgba(0, 0, 0, 0.1);
			@include clearfix();

			dt,
			dd {
				float: left;
				margin-bottom: 1em;
			}

			dt {
				font-weight: 700;
				padding: 0 0 0.25em;
				margin: 0 4px 0 0;
				clear: left;
			}

			dd {
				padding: 0 0 0.25em;

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

		.star-rating {
			float: none;
		}
	}
}

.widget_shopping_cart {
	.total {
		border-top: 3px double $secondary;
		padding: 4px 0 0;

		strong {
			min-width: 40px;
			display: inline-block;
		}
	}

	.cart_list li {
		padding-left: 2em;
		position: relative;
		padding-top: 0;

		a.remove {
			position: absolute;
			top: 0;
			left: 0;
		}
	}

	.buttons {
		@include clearfix();

		a {
			margin-right: 5px;
			margin-bottom: 5px;
		}
	}
}

@include media-breakpoint-down('md') {

	ul.cart_list,
	ul.product_list_widget {
		li {
			@include mediaright();
		}
	}

}

//
// Layered nav widget
//

.woocommerce-widget-layered-nav-list {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none outside;
}

.woocommerce-widget-layered-nav-list__item {
	@include clearfix();
	padding: 0 0 1px;
	list-style: none;

	a,
	span {
		padding: 1px 0;
	}
}

.woocommerce-widget-layered-nav-list__item--chosen a::before {
	@include iconbefore( "\e013" );
	color: $red;
}

.woocommerce-widget-layered-nav-dropdown__submit {
	margin-top: 1em;
}

.widget_layered_nav_filters ul {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none outside;
	overflow: hidden;
	zoom: 1;

	li {
		float: left;
		padding: 0 1em 1px 1px;
		list-style: none;

		a {
			text-decoration: none;

			&::before {
				@include iconbefore( "\e013" );
				color: $red;
				vertical-align: inherit;
				margin-right: 0.5em;
			}
		}
	}
}

//
// Price filter widget
//

.widget_price_filter {
	.price_slider {
		margin-bottom: 1em;
	}

	.price_slider_amount {
		text-align: right;
		line-height: 2.4;
		font-size: 0.8751em;

		.button {
			font-size: 1.15em;
			float: left;
		}
	}

	.ui-slider {
		position: relative;
		text-align: left;
		margin-left: 0.5em;
		margin-right: 0.5em;
	}

	.ui-slider .ui-slider-handle {
		position: absolute;
		z-index: 2;
		width: 1em;
		height: 1em;
		background-color: $primary;
		border-radius: 1em;
		cursor: ew-resize;
		outline: none;
		top: -0.3em;

		// rtl:ignore
		margin-left: -0.5em;
	}

	.ui-slider .ui-slider-range {
		position: absolute;
		z-index: 1;
		font-size: 0.7em;
		display: block;
		border: 0;
		border-radius: 1em;
		background-color: $primary;
	}

	.price_slider_wrapper .ui-widget-content {
		border-radius: 1em;
		background-color: darken($primary, 30%);
		border: 0;
	}

	.ui-slider-horizontal {
		height: 0.5em;
	}

	.ui-slider-horizontal .ui-slider-range {
		top: 0;
		height: 100%;
	}

	.ui-slider-horizontal .ui-slider-range-min {
		left: -1px;
	}

	.ui-slider-horizontal .ui-slider-range-max {
		right: -1px;
	}
}

//
// Rating Filter Widget
//

.widget_rating_filter ul {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none outside;

	li {
		@include clearfix();
		padding: 0 0 1px;
		list-style: none;

		a {
			padding: 1px 0;
			text-decoration: none;
		}

		.star-rating {
			float: none;
			display: inline-block;
		}
	}

	li.chosen a::before {
		@include iconbefore( "\e013" );
		color: $red;
	}
}
