@import "../../vars";

.builder-item--header_cart_icon {}

.cart-icon-wrapper {
	display: flex;
	align-items: center;
}
.cart-icon-wrapper .stx-cart {
	display: flex;
}
.menu-item-nav-cart .stx-nav-cart {
	right: 0;
}
.stx-nav-cart {
	display: none;
	opacity: 0;
	visibility: hidden;
	background: var(--stx-site-bg);
	color: var(--stx-text-color);
	transition: all .3s;
	box-shadow: rgba(149,157,165, 0.2) 0 8px 24px;
	position: absolute;
	top: calc(100% + 10px);
	z-index: 100;
	width: 360px;
	text-align: left;
	--primaryBtnPadding: 13px 15px;
	--secondaryBtnPadding: 13px 15px;
}

@media (min-width: 960px) {
	.menu-item-nav-cart:focus-within .stx-nav-cart,
	.menu-item-nav-cart:hover .stx-nav-cart {
		opacity: 1;
		visibility: visible;
	}
	.stx-nav-cart {
		display: block;
	}
}
.stx-nav-cart .widget {
	overflow: hidden;
}
.stx-nav-cart li {
	padding: 20px 55px 20px 15px!important;
	border-bottom: 2px solid rgba(149,157,165, 0.2);
	font-size: .9em;
}
.stx-nav-cart li:last-child {
	border: 0;
}
.stx-nav-cart li .remove {
	top: 50%!important;
	left: 15px!important;
	transform: translateY(-50%);
}
.stx-nav-cart li .quantity {
	opacity: .5;
}
.stx-nav-cart li>:not(.remove) {
	margin-left: 100px!important;
	font-weight: inherit!important;
}
.stx-nav-cart li img {
	position: absolute;
	left: 35px;
	width: 60px!important;
	top: 50%;
	transform: translateY(-50%);
	margin-left: 10px!important;
}

.stx-nav-cart .widget_shopping_cart_content .total {
	border: 0;
	margin: 0;
	padding: 15px 20px;
	box-shadow: 0 -3px 9px -9px;
}
.stx-nav-cart .woocommerce-mini-cart {
	margin-right: -40px!important;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 300px;
}

.stx-nav-cart .widget_shopping_cart_content .buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 0 20px;
	grid-column-gap: 20px;
	margin-top: 0;
	margin-bottom: 20px;
	&:before {
		content: none;
	}
}
.cart-icon-wrapper .cart-count {
	padding-left: 5px;
	line-height: 1;
}

.theme-stax  .stx-nav-cart .widget_shopping_cart_content .buttons .button {
	--btnFs: var(--bodyFontSize);
	margin: 0;
	padding: 0.5rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dark-light-color);
	border-color: var(--border-color);
	&:hover {
		background-color: var(--dark-dark-color);
		color: var(--dark-contrast-color);
		border-color: var(--dark-dark-color);
	}
	&.checkout {
		color: var(--primary-color);
		border-color: var(--primary-color);
		&:hover {
			background-color: var(--primary-dark-color);
			color: var(--primary-contrast-color);
			border-color: var(--primary-dark-color);
		}
	}
}

