.mini-cart {
	position: relative;
	ul {
		margin: 0;
		padding: 0;
	}
	&.hide-on-empty {
		[data-count="0"] {
			display: none;
		}
	}
	.mini-cart-icon {
		position: relative;
		display: block;
		width: 30px;
		height: 30px;
		text-align: center;
		font-size: 15px;
		line-height: 30px;
		cursor: pointer;
		&:before {
			position: absolute;
			top: 50%;
			left: 0;
			color: inherit;
			content: "\f290";
			font-family: 'FontAwesome';
			line-height: normal;
			font-weight: normal;
			transform: translate(0, -50%);
		}
		&:after {
			position: absolute;
			top: -4px;
			right: 0;
			color: inherit;
			content: attr(data-count);
			font-weight: bold;
			font-size: 13px;
		}
	}
	.widget_shopping_cart_content {
		@extend %transit;
		position: absolute;
		top: calc(100% + 20px);
		right: 0;
		z-index: 99999;
		visibility: hidden;
		overflow: auto;
		max-height: 700px;
		width: 360px;
		background-color: #ffffff;
		opacity: 0;
		border: 1px solid #eeeeee;
		border-bottom: 2px solid transparent;
		padding: 30px 20px 27px;
		li {
			> a {
				&:not(.remove) {
					font-size: 16px !important;
					font-weight: 700;
				}
			}
		}
		.empty {
			margin: 0;
		}
	}
	&.open {
		.widget_shopping_cart_content {
			top: 100%;
			visibility: visible;
			opacity: 1;
		}
	}
}

.widget_shopping_cart_content {
	.cart-footer {
		display: flex;
		align-items: center;
		margin-top: 30px;
		border-top: 1px solid #eeeeee;
		padding-top: 22px;
	}
	.total {
		width: 100%;
		font-size: 16px;
		border-top: 0 !important;
		padding: 0 !important;
		text-align: left;
		.amount {
			font-size: 20px;
			font-weight: 700;
		}
	}

	.buttons {
		display: inline-block;
		a {
			display: inline-block;
			text-align: center;
			margin-left: 6px;
			white-space: nowrap;
		}
	}
	.button.checkout {
		display: none;
	}
}

.cart_list.product_list_widget {
	li {
		@extend %clearfix;
		display: block;
		list-style-type: none;
		+ li {
			padding-top: 30px !important;
			margin-top: 30px !important;
			border-top: 1px solid #dddddd !important;
		}
		img {
			float: left !important;
			margin-right: 20px;
			width: 80px;
			height: 80px;
		}
		.quantity {
			display: block;
			font-size: 16px;
			.amount {
				color: $secondary-color;
				font-weight: 700;
			}
		}
		.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 {
				position: absolute;
				top: 2px;
				left: 3px;
				content: '\f1f8';
				font-size: 14px;
				font-family: FontAwesome;
			}
		}
	}
	a {
		font-weight: normal;
		font-size: 16px;
	}
}

.cart-footer {
	display: flex;
}
