.mini-cart {
	position: relative;

	.mini-cart__button {
		display: block;
		padding: 0 14px;
	}

	ul {
		margin: 0;
		padding: 0;
	}

	&.hide-on-empty {
		[data-count="0"] {
			display: none;
		}
	}

	.mini-cart-icon {
		position: relative;
		display: block;
		width: 22px;
		height: 30px;
		text-align: center;
		font-size: 24px;
		line-height: 30px;
		cursor: pointer;

		&:before {
			@extend %FontAwesomeRegular;
			position: absolute;
			top: 0;
			left: 0;
			color: inherit;
			content: '\f290';
			/*line-height: 0;
			transform: translate(0, -50%);*/
		}

		&:after {
			position: absolute;
			bottom: -4px;
			right: -12px;
			padding: 0 4px;
			min-width: 20px;
			height: 20px;
			border-radius: 20px;
			color: #fff;
			background: #111;
			content: attr(data-count);
			font-weight: 700;
			font-size: 12px;
			line-height: 20px;
		}
	}

	&.style-svg {
		.mini-cart-icon {
			width: 30px;
			font-size: 30px;

			&:before {
				font-family: 'Arial';
				content: '';
				width: 1em;
				height: 1em;

				background-color: currentColor;
				-webkit-mask-image: url('assets/svg/bag.svg');
				mask-image: url('assets/svg/bag.svg');
			}
		}
	}

	.widget_shopping_cart_content {
		@extend %NormalTransition;
		position: absolute;
		top: calc(100% + 20px);
		right: 0;
		z-index: 99999;
		visibility: hidden;
		overflow: auto;
		padding: 30px 20px 27px;
		max-height: 80vh;
		width: 360px;
		border: 0;
		background-color: #fff;
		box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
		opacity: 0;

		li {
			> a {
				&:not(.remove) {
					display: block;
					padding-right: 25px;
					font-size: 15px !important;
					font-weight: 500;
				}
			}

		}
	}

	&:hover {
		.widget_shopping_cart_content {
			top: 100%;
			visibility: visible;
			opacity: 1;
		}
	}
}

.woocommerce-mini-cart__empty-message {
	text-align: center;

	.empty-basket {
		font-size: 70px;
	}

	.empty-message {
		font-size: 16px;
		font-style: italic;
	}

	.button {
		width: 100%;
		height: 48px;
		line-height: 46px;
	}
}

.widget_shopping_cart_content {
	.cart-footer {
		margin-top: 30px;
		padding-top: 16px;
		border-top: 2px solid #f3f3f3;
	}

	.total {
		@extend %clearfix;

		.amount {
			float: right;
		}
	}

	.buttons {
		@extend %clearfix;
		margin: 6px 0 0;

		.button {
			padding: 0 20px !important;
			height: 48px;
			width: 48%;
			line-height: 46px;
			text-align: center;
			float: left;
		}

		> a {
			margin-top: 10px;
		}

		.checkout {
			float: right;
		}
	}
}

.cart_list.product_list_widget {
	li {
		@extend %clearfix;
		position: relative;
		display: block;
		list-style-type: none;
		padding-left: 100px;
		min-height: 80px;

		+ li {
			margin-top: 20px !important;
		}

		img {
			position: absolute;
			top: 0;
			left: 0;
			float: none !important;
			margin-right: 20px;
			width: 80px;
			height: 80px;
			border-radius: 0;
		}

		.quantity {
			display: block;
			font-size: 15px;
		}

		.remove {
			position: relative !important;
			float: right;
			width: 20px;
			height: 20px;
			color: inherit !important;
			font-size: 0;
			line-height: 1.5;

			&:hover {
				background: transparent;
				color: initial !important;
			}

			&:after {
				@extend %FontAwesomeRegular;
				content: '\f00d';
				font-size: 18px;
				position: absolute;
				top: 4px;
				left: 3px;
			}
		}
	}

	a {
		font-weight: normal;
		font-size: 16px;
	}
}

@include media-breakpoint-down(sm) {
	.mini-cart {
		.widget_shopping_cart_content {
			display: none !important;
		}
	}
}
