:root {
	--k5-cart-red: #bd1720;
	--k5-cart-red-dark: #9f0f17;
	--k5-cart-orange: #ffa713;
	--k5-cart-border: #ead8c2;
	--k5-cart-muted: #777;
}

body.k5-mini-cart-open .mfp-bg {
	background: #281f1c !important;
	opacity: .72 !important;
}

body.k5-mini-cart-open .mfp-content {
	width: 380px !important;
	max-width: 92vw !important;
	margin-right: 0 !important;
	margin-left: auto !important;
}

#cart-popup {
	width: 380px !important;
	max-width: 92vw !important;
	min-height: 100vh;
	background: #fff;
	color: #242424;
}

#cart-popup .cart-popup-title,
#cart-popup .uppercase {
	color: var(--k5-cart-red);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .03em;
}

#cart-popup .is-divider {
	width: 30px;
	height: 2px;
	margin: 13px auto 4px;
	background: #eadfd8;
}

#cart-popup .mfp-close {
	top: 7px;
	right: 7px;
	color: #555;
	font-size: 35px;
	opacity: 1;
}

#cart-popup .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 92px);
	height: calc(100vh - 92px);
}

#cart-popup .woocommerce-mini-cart {
	order: 1;
	flex: 1 1 auto;
	overflow-x: hidden;
	overflow-y: auto;
	margin: 0;
	padding: 0 18px;
}

#cart-popup .woocommerce-mini-cart-item {
	position: relative;
	min-height: 94px;
	margin: 0 !important;
	padding: 18px 29px 18px 70px !important;
	border-bottom: 1px solid #eee2da;
	font-size: 14px;
	line-height: 1.35;
}

#cart-popup .woocommerce-mini-cart-item > a:not(.remove) {
	display: block !important;
	min-height: 40px;
	padding: 0 !important;
	color: #171717;
	font-weight: 600;
	line-height: 1.35;
}

#cart-popup .woocommerce-mini-cart-item > a:not(.remove):hover {
	color: var(--k5-cart-red);
}

#cart-popup .woocommerce-mini-cart-item img {
	position: absolute;
	top: 18px;
	left: 0;
	width: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	object-fit: cover;
	border-radius: 5px;
}

#cart-popup .woocommerce-mini-cart-item .remove {
	position: absolute !important;
	top: 18px !important;
	right: 0 !important;
	left: auto !important;
	display: grid !important;
	width: 22px !important;
	height: 22px !important;
	place-items: center;
	padding: 0 !important;
	border: 0 !important;
	color: #555 !important;
	background: transparent !important;
	line-height: 1 !important;
}

#cart-popup .k5-mini-trash {
	display: block;
	width: 15px;
	height: 15px;
	fill: currentColor;
}

#cart-popup .k5-mini-cart-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 9px;
}

#cart-popup .k5-mini-qty {
	display: inline-grid;
	grid-template-columns: 27px 31px 27px;
	height: 30px;
	overflow: hidden;
	border: 1px solid #eadfd8;
	border-radius: 8px;
	background: #fff;
}

#cart-popup .k5-mini-qty__button,
#cart-popup .k5-mini-qty__input {
	width: 100% !important;
	min-width: 0 !important;
	height: 28px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #fff !important;
	color: #3b3b3b !important;
	font-size: 13px !important;
	line-height: 28px !important;
	text-align: center;
}

#cart-popup .k5-mini-qty__button {
	cursor: pointer;
}

#cart-popup .k5-mini-qty__button:hover {
	background: #fff7f2 !important;
	color: var(--k5-cart-red) !important;
}

#cart-popup .k5-mini-qty__input {
	border-right: 1px solid #eee2da !important;
	border-left: 1px solid #eee2da !important;
}

#cart-popup .k5-mini-line-subtotal {
	margin-left: auto;
	color: #d45a5f;
	font-weight: 700;
	white-space: nowrap;
}

#cart-popup .k5-mini-line-subtotal .amount {
	color: inherit;
}

#cart-popup .woocommerce-mini-cart-item.is-updating {
	opacity: .48;
	pointer-events: none;
}

#cart-popup .woocommerce-mini-cart__total {
	order: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 18px !important;
	padding: 18px 0 14px !important;
	border-top: 1px solid #eadfd8;
	border-bottom: 0 !important;
	font-size: 14px;
	font-weight: 400;
}

#cart-popup .woocommerce-mini-cart__total strong {
	font-weight: 400;
}

#cart-popup .woocommerce-mini-cart__total .amount {
	color: var(--k5-cart-red);
	font-size: 17px;
	font-weight: 700;
}

#cart-popup .k5-mini-free-shipping {
	order: 2;
	margin: 15px 18px 0;
	padding: 17px 16px 16px;
	border: 1px solid var(--k5-cart-border);
	border-radius: 12px;
	background: #fff;
}

#cart-popup .k5-mini-free-shipping__message {
	margin: 0 0 18px;
	color: #5d4c44;
	font-size: 13px;
	line-height: 1.55;
}

#cart-popup .k5-mini-free-shipping__message strong,
#cart-popup .k5-mini-free-shipping__message .amount {
	color: var(--k5-cart-red);
	font-weight: 700;
}

#cart-popup .k5-mini-free-shipping__track {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: repeating-linear-gradient(135deg, #f1e8dc 0, #f1e8dc 8px, #faf6f0 8px, #faf6f0 16px);
}

#cart-popup .k5-mini-free-shipping__track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--k5-cart-red);
	transition: width .25s ease;
}

#cart-popup .woocommerce-mini-cart__buttons {
	order: 4;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin: 0 !important;
	padding: 0 18px 18px;
}

#cart-popup .woocommerce-mini-cart__buttons .button {
	display: grid !important;
	width: 100%;
	min-height: 43px;
	margin: 0 !important;
	place-items: center;
	border: 0 !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	background: var(--k5-cart-red) !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

#cart-popup .woocommerce-mini-cart__buttons .button:hover {
	background: var(--k5-cart-red-dark) !important;
}

#cart-popup .woocommerce-mini-cart__buttons .checkout {
	background: var(--k5-cart-orange) !important;
}

#cart-popup .woocommerce-mini-cart__buttons .checkout:hover {
	background: #ef9700 !important;
}

#cart-popup .woocommerce-mini-cart__empty-message {
	padding: 28px 22px;
	text-align: center;
}

@media (max-width: 480px) {
	body.k5-mini-cart-open .mfp-content,
	#cart-popup {
		width: min(360px, 92vw) !important;
		max-width: 92vw !important;
	}

	#cart-popup .woocommerce-mini-cart {
		padding-right: 14px;
		padding-left: 14px;
	}

	#cart-popup .k5-mini-free-shipping,
	#cart-popup .woocommerce-mini-cart__total {
		margin-right: 14px !important;
		margin-left: 14px !important;
	}

	#cart-popup .woocommerce-mini-cart__buttons {
		padding-right: 14px;
		padding-left: 14px;
	}
}
