/*********************************************************************************
/*
/* scuba-o-rings cart
/*
/********************************************************************************/

* {box-sizing:border-box};

/* single product, view cart button after add to cart */

.added_to_cart.alt, 
.added_to_cart, 
.widget a.button.checkout  {
	margin-left: 5px;
}

/* header mini cart */

.site-header-cart .widget_shopping_cart {
	background-color: var(--background); 
	margin-top: 1px;
	box-shadow: 0 0 5px #bfbfbf;
}

/* hide 'view cart' button */

.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) {
	display: none !important;
}

.site-header-cart .widget_shopping_cart .buttons,
.site-header-cart .widget_shopping_cart .total {
//	background-color: var(--background);
}

/* mini cart */

.overlay {
	min-height: 100vh;
	height: 100%; 
	width: 0;
	position: fixed; 
	right: 0;
	top: 0;
	background-color: rgba(0, 0, 0, .4); 
	transition: 0.3s;
	z-index: 9999; 
	margin-right: 0 !important;
}

.overlay-active {
	overflow: hidden;
}

.mini-cart {
	min-height: 100vh;
	height: 100%; 
	width: 0;
//  max-width: 400px;
	max-width: 95%;
	background-color: White;
	float: right; 
	position: relative;
	transition: 0.3s;
	right: -1000px;
}

@media (min-width: 400px) {
	.mini-cart {
		max-width: 380px;
	}
}

@media (min-width: 700px) {
	.mini-cart {
		transition: 0.5s;
	}
}

.mini-cart .cart-header {
	display: flex;
	justify-content: space-between;
    align-items: center;
	border-bottom: 1px solid #e8e8e8;
}

.mini-cart .cart-icon::after {
	content: "\f07a";
	font-family: FontAwesome;
	font-size: 26px;
	margin-left: 10px;	
}

.mini-cart .cart-header h2 {
	margin: 0;
	padding: 10px;
	text-transform: uppercase;
	font-size: 28px;
	font-weight: 300;
}

.mini-cart .hide-mini-cart {
	font-size: 40px;
	line-height: 30px;
	cursor: pointer;
	margin-right: 10px;
}

/* cart contents */

.mini-cart .woocommerce,
.mini-cart .widget_shopping_cart_content {
	height: calc(100vh);
	clear: both;
	display: flex;
	flex-flow: column;
	overflow: auto;
	padding-bottom: 40px;
}

ul.product_list_widget {
    list-style: none;
    margin: 0;
}

/* cart item */

.product_list_widget li,
.widget_shopping_cart_content .product_list_widget li {
	display: flex;
}

.woocommerce-mini-cart-item .image-wrapper {
    flex: 1 0 30%;	
	align-content: center;
	padding: 5px;
}

.product_list_widget li img {
    max-width: 100%;
    //flex: 1 0 30%;
}

.widget_shopping_cart_content .product-details-wrapper,
.woocommerce-mini-cart-item.mini_cart_item .product-details-wrapper {
    display: flex;
    flex-direction: column;	
    position: relative;
	flex: 1 1 65%;
	text-align: center;
    //width: 65%;	
}

.widget_shopping_cart_content .product-details-wrapper a,
.widget_shopping_cart_content .product-details-wrapper span,
.widget_shopping_cart_content .product-details-wrapper div,
.woocommerce-mini-cart-item.mini_cart_item .product-details-wrapper a,
.woocommerce-mini-cart-item.mini_cart_item .product-details-wrapper span,
.woocommerce-mini-cart-item.mini_cart_item .product-details-wrapper div {
	margin-bottom: 10px;
}

.widget_shopping_cart_content .product_list_widget li a.remove,
.widget_shopping_cart .product_list_widget li a.remove  {
	margin: 0 5px;
}


a.remove {
    text-indent: -9999px;
    border: 0;
}
 
a.remove:before {
    font-family: FontAwesome;
    content: "\f057";
    float: left;
    text-indent: 0;
}

/* cart totals */

p.woocommerce-mini-cart__total.total,
p.woocommerce-mini-cart__buttons.buttons {
	text-align: center;
}

p.woocommerce-mini-cart__total.total {
	margin-top: 10px;
}

p.woocommerce-mini-cart__buttons.buttons {
	padding-bottom: 60px;						/* mini handheld footer bar obscures checkout button */
}

/* empty cart */

p.woocommerce-mini-cart__empty-message {
	text-align: center;
	margin-top: 30px;
}

/* add the cart to the checkout page to get the functionality, but hide the actual form */

.woocommerce-cart-form {
	display: none;
}

/* handheld footer bar cart link */

.storefront-handheld-footer-bar ul li.cart>a::before{
	content: "\f07a";			/* cart icon instead of basket icon */
}

@media (min-width: 768px) {

	p.woocommerce-mini-cart__buttons.buttons {
		padding-bottom: 0px;
	}

}

/* added to cart popup */

body {
	position: relative;
}

.added-to-cart-popup {
	position: fixed;
	bottom: 0px;
	left: 0;	
    text-align: center;
	width: 100%;	
	height: 90px;
    line-height: 90px;	
	font-size: 28px;
	background-color: #f8f8f8;
	z-index: 9999;
	border-top: 1px solid #e8e8e8;	
}