:root {
	--deer-cart-orange: #ff541f;
	--deer-cart-orange-dark: #f04413;
	--deer-cart-ink: #1d2430;
	--deer-cart-muted: #667085;
	--deer-cart-line: #ece7e2;
	--deer-cart-soft: #fff8f3;
}

body .mfp-content:has(#cart-popup),
body .off-canvas-cart .mfp-content,
body .mfp-content.off-canvas-cart {
	width: min(100vw, 560px) !important;
	max-width: 560px !important;
}

#cart-popup,
#cart-popup .cart-popup-inner,
#cart-popup .widget_shopping_cart_content {
	background: #fff;
}

#cart-popup .cart-popup-inner {
	padding: 22px 28px 26px !important;
}

#cart-popup .cart-popup-title {
	min-height: 58px;
	margin: 0;
	padding: 2px 56px 18px 0;
	border-bottom: 1px solid var(--deer-cart-line);
	color: var(--deer-cart-ink);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	text-align: left !important;
}

#cart-popup .cart-popup-title .is-divider {
	display: none;
}

.deer-mini-cart {
	color: var(--deer-cart-ink);
	font-size: 15px;
}

.deer-mini-cart.is-loading {
	opacity: .58;
	pointer-events: none;
}

.deer-mini-cart__notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--deer-cart-line);
	color: #596170;
	font-size: 15px;
}

.deer-mini-cart__check {
	display: grid;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	place-items: center;
	border-radius: 50%;
	background: #eff8f1;
	color: #13a047;
	font-size: 20px;
	font-weight: 700;
}

#cart-popup .deer-mini-cart__list {
	max-height: none;
	margin: 0 !important;
	padding: 18px 0 6px !important;
	border: 0;
}

#cart-popup .deer-mini-cart__item {
	position: relative;
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 18px;
	min-height: 132px;
	margin: 0 !important;
	padding: 0 42px 18px 0 !important;
	border: 0 !important;
}

.deer-mini-cart__image {
	display: grid;
	width: 118px;
	height: 118px;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--deer-cart-line);
	border-radius: 10px;
	background: #fff;
}

#cart-popup .deer-mini-cart__image img {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;
}

.deer-mini-cart__product {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
}

#cart-popup .deer-mini-cart__name {
	display: -webkit-box;
	overflow: hidden;
	color: var(--deer-cart-ink);
	font-size: 17px;
	font-weight: 750;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.deer-mini-cart__product .variation {
	margin: 4px 0 0;
	color: var(--deer-cart-muted);
	font-size: 12px;
}

.deer-mini-cart__price {
	margin-top: 8px;
	color: var(--deer-cart-orange);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.2;
}

#cart-popup .deer-mini-cart__remove {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	display: grid !important;
	width: 34px !important;
	height: 34px !important;
	place-items: center;
	border: 1px solid #eadfda !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: #ef3b2d !important;
	font-size: 24px !important;
	line-height: 1 !important;
}

.deer-mini-cart__quantity {
	display: grid;
	grid-template-columns: 42px 48px 42px;
	height: 42px;
	margin-top: 12px;
	overflow: hidden;
	border: 1px solid #e2e4e8;
	border-radius: 9px;
}

.deer-mini-cart__qty-button,
.deer-mini-cart__qty-value {
	display: grid;
	min-width: 0;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	place-items: center;
	border: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--deer-cart-ink) !important;
	font-size: 18px !important;
}

.deer-mini-cart__qty-value {
	border-right: 1px solid #e2e4e8;
	border-left: 1px solid #e2e4e8;
	font-weight: 700;
}

.deer-mini-cart__shipping-progress {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 14px;
	margin: 4px 0 18px;
	padding: 16px;
	border: 1px solid #ffd9c8;
	border-radius: 12px;
	background: var(--deer-cart-soft);
}

.deer-mini-cart__truck {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border-radius: 50%;
	background: #fff0e8;
	font-size: 27px;
}

.deer-mini-cart__shipping-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.deer-mini-cart__shipping-copy strong {
	font-size: 16px;
}

.deer-mini-cart__shipping-copy > span,
.deer-mini-cart__shipping-copy small {
	color: var(--deer-cart-muted);
}

.deer-mini-cart__progress-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.deer-mini-cart__progress-track {
	flex: 1;
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: #e5e7eb;
}

.deer-mini-cart__progress-track span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--deer-cart-orange), #ff7a22);
}

.deer-mini-cart__progress-row b {
	color: var(--deer-cart-orange);
}

.deer-mini-cart__summary {
	display: grid;
	gap: 0;
	margin-bottom: 18px;
}

.deer-mini-cart__row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	border-bottom: 1px dashed #e5e7eb;
	font-size: 15px;
}

.deer-mini-cart__grand-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
	padding: 16px;
	border: 1px solid #ffd9c8;
	border-radius: 10px;
	background: var(--deer-cart-soft);
}

.deer-mini-cart__grand-total > div {
	display: flex;
	flex-direction: column;
}

.deer-mini-cart__grand-total strong {
	font-size: 17px;
}

.deer-mini-cart__grand-total small {
	color: var(--deer-cart-muted);
}

.deer-mini-cart__grand-total > b {
	color: var(--deer-cart-orange);
	font-size: 24px;
}

#cart-popup .deer-mini-cart__buttons {
	display: flex !important;
	margin: 0 !important;
	flex-direction: column;
	gap: 10px;
}

#cart-popup .deer-mini-cart__buttons .button {
	display: flex;
	width: 100%;
	min-height: 52px;
	margin: 0 !important;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
}

#cart-popup .deer-mini-cart__checkout {
	order: 1;
	border-color: var(--deer-cart-orange) !important;
	background: linear-gradient(90deg, var(--deer-cart-orange), #ff691e) !important;
	color: #fff !important;
}

#cart-popup .deer-mini-cart__view-cart {
	order: 2;
	border: 1px solid var(--deer-cart-orange) !important;
	background: #fff !important;
	color: var(--deer-cart-orange) !important;
}

.deer-mini-cart__trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--deer-cart-line);
}

.deer-mini-cart__trust span {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 10px;
	border-right: 1px solid var(--deer-cart-line);
	color: #4b5563;
	font-size: 12px;
	line-height: 1.35;
}

.deer-mini-cart__trust span:last-child {
	border-right: 0;
}

.deer-mini-cart__trust b {
	font-weight: 500;
}

.deer-mini-cart__empty {
	display: grid;
	min-height: 360px;
	padding: 60px 20px;
	place-items: center;
	align-content: center;
	gap: 12px;
	text-align: center;
}

.deer-mini-cart__empty > span {
	font-size: 44px;
}

.deer-mini-cart__empty .button {
	border-radius: 8px;
	background: var(--deer-cart-orange);
	color: #fff;
}

@media (max-width: 549px) {
	body .mfp-content:has(#cart-popup),
	body .off-canvas-cart .mfp-content,
	body .mfp-content.off-canvas-cart {
		width: 100vw !important;
		max-width: 100vw !important;
	}

	#cart-popup .cart-popup-inner {
		padding: 16px 16px 20px !important;
	}

	#cart-popup .cart-popup-title {
		font-size: 21px;
	}

	#cart-popup .deer-mini-cart__item {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 12px;
		padding-right: 34px !important;
	}

	.deer-mini-cart__image {
		width: 92px;
		height: 104px;
	}

	#cart-popup .deer-mini-cart__name {
		font-size: 15px;
	}

	.deer-mini-cart__price {
		font-size: 19px;
	}

	.deer-mini-cart__quantity {
		grid-template-columns: 36px 42px 36px;
		height: 38px;
		margin-top: 9px;
	}

	.deer-mini-cart__shipping-progress {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 10px;
		padding: 13px;
	}

	.deer-mini-cart__truck {
		width: 42px;
		height: 42px;
		font-size: 21px;
	}

	.deer-mini-cart__shipping-copy strong {
		font-size: 14px;
	}

	.deer-mini-cart__grand-total {
		padding: 13px;
	}

	.deer-mini-cart__grand-total > b {
		font-size: 20px;
	}

	.deer-mini-cart__trust span {
		gap: 4px;
		padding: 0 5px;
		font-size: 10px;
	}
}

