/* Quantity stepper */
.wc-child-mini-cart-header {
	display: flex;
	align-items: center;
	min-height: 60px;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
	background: #fff;
}

.wc-child-mini-cart-title {
	margin: 0;
	color: #2b3e37;
	font-size: 16px;
	font-weight: 400;
	line-height: 19px;
}

.wc-child-mini-cart-title strong {
	font-weight: 700;
}

.wc-child-mini-cart-title span {
	font-weight: 400;
}

/*
 * Elementor makes the drawer and its cart content fixed-height flex columns.
 * Keep the cart content at its natural height and scroll the drawer itself;
 * otherwise flex-shrink collapses the product list to 0px and its children
 * paint over the progress and cross-sell sections.
 */
.elementor-menu-cart__main {
	box-sizing: border-box;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
}

/* Match the original Ecosh desktop drawer proportions and outer corners. */
@media (min-width: 768px) {
	body:not(.elementor-editor-active) .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container,
	body:not(.elementor-editor-active) .elementor-menu-cart__container {
		--cart-menu-width: 456px !important;
	}

	body:not(.elementor-editor-active) .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container .elementor-menu-cart__main,
	body:not(.elementor-editor-active) .elementor-menu-cart__container .elementor-menu-cart__main {
		--cart-menu-width: 456px !important;
		width: 456px !important;
		min-width: 456px !important;
		max-width: 456px !important;
		inline-size: 456px !important;
		flex: 0 0 456px !important;
		border-radius: 20px 0 0 20px !important;
	}
}

@media (max-width: 767px) {
	.elementor-menu-cart__main {
		width: 100vw !important;
		max-width: 100vw !important;
		border-radius: 0 !important;
	}
}

.elementor-menu-cart__main .widget_shopping_cart_content {
	flex: 0 0 auto !important;
	height: auto !important;
	min-height: 100%;
	overflow: visible !important;
}

/* Keep OceanWP's floated mini-cart product rows inside their list. */
.widget_shopping_cart_content ul.woocommerce-mini-cart::after {
	display: table;
	clear: both;
	content: "";
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products {
	display: block;
	flex: 0 0 auto !important;
	box-sizing: border-box;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	max-height: none;
	margin: 0 !important;
	padding: 14px 12px !important;
	background: #f6f7f7;
	overflow: visible;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products--scrollable {
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item {
	position: relative;
	display: block !important;
	float: none !important;
	clear: both;
	box-sizing: border-box;
	width: 100%;
	max-width: 388px;
	height: auto !important;
	min-height: 89px !important;
	max-height: none !important;
	margin: 0 auto 8px !important;
	padding: 12px !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.10);
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item:last-child {
	margin-bottom: 0 !important;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item > .owp-grid-wrap {
	display: grid !important;
	grid-template-columns: 50px minmax(0, 1fr);
	grid-template-rows: auto;
	align-items: center;
	column-gap: 16px;
	row-gap: 0;
	width: 100%;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.thumbnail {
	display: flex !important;
	float: none !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 50px !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.thumbnail > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.thumbnail img {
    display: block;
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    object-fit: contain;
}


.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.content {
	display: block !important;
	float: none !important;
	box-sizing: border-box;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 30px 0 0 !important;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.content h3 {
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #242529;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.content h3 a {
	display: block;
	color: inherit !important;
	font: inherit !important;
	text-decoration: none !important;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products .variation {
	margin: -4px 0 6px !important;
	font-size: 10px;
	line-height: 1.2;
}

.wc-child-cart-item-qty-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 26px;
	margin: 0;
}

.wc-child-qty-stepper {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	box-sizing: border-box;
	height: 26px;
	border: 1px solid #dfe3e1;
	border-radius: 20px;
	background: #fff;
	overflow: hidden;
}

.wc-child-qty-stepper.is-updating {
	opacity: 0.5;
	pointer-events: none;
}

.wc-child-qty-btn {
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	min-height: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #a5aaa7;
	font-size: 13px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
}

.wc-child-qty-btn:hover {
	background: #f5f7f6 !important;
	color: #242529;
}

.wc-child-qty-input {
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-right: 1px solid #dfe3e1;
	border-left: 1px solid #dfe3e1;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	color: #242529;
	text-align: center;
	font-size: 11px;
	line-height: 24px;
	-moz-appearance: textfield;
}

.wc-child-qty-input::-webkit-outer-spin-button,
.wc-child-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wc-child-item-price {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	box-sizing: border-box;
	width: auto;
	min-width: 95px;
	min-height: 17px;
	margin-left: auto;
	color: #2b3e37;
	font-family: Lato, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	vertical-align: middle;
	white-space: nowrap;
}

.wc-child-item-price > .amount,
.wc-child-item-price > span > .amount {
	color: #2b3e37;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.wc-child-item-price del {
	color: rgba(37, 39, 44, 0.35);
	font-family: Lato, Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: line-through;
	opacity: 1;
}

.wc-child-item-price del .amount {
	color: inherit;
	font: inherit;
	line-height: 1;
}

.wc-child-item-price ins {
	color: #2b3e37;
	font-family: Lato, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
}

.wc-child-item-price ins .amount {
	color: inherit;
	font: inherit;
	line-height: 1;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item a.remove,
.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item a.remove_from_cart_button {
	position: absolute !important;
	top: auto !important;
	right: 10px !important;
	bottom: 12px !important;
	left: auto !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 24px !important;
	height: 24px !important;
	min-width: 24px;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
	border: 1px solid #dfe3e1 !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #b3b8b5 !important;
	font-size: 18px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	text-align: center;
	text-decoration: none !important;
}

.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item a.remove:hover,
.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item a.remove_from_cart_button:hover {
	border-color: #bfc5c2 !important;
	background: #f8f9f8 !important;
	color: #737975 !important;
}

@media (max-width: 480px) {
	.widget_shopping_cart_content ul.wc-child-mini-cart-products {
		padding: 12px 10px !important;
	}

	.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item {
		padding: 10px !important;
	}

	.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item > .owp-grid-wrap {
		grid-template-columns: 46px minmax(0, 1fr);
		column-gap: 16px;
	}

	.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.thumbnail {
		width: 46px !important;
	}

	.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.thumbnail img {
		width: 40px !important;
		height: 40px !important;
		max-width: 40px !important;
	}

	.widget_shopping_cart_content ul.wc-child-mini-cart-products .owp-grid.content {
		padding-right: 28px !important;
	}

	.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item a.remove,
	.widget_shopping_cart_content ul.wc-child-mini-cart-products > li.woocommerce-mini-cart-item a.remove_from_cart_button {
		right: 8px !important;
		bottom: 10px !important;
	}
}

/* Cross-sells */
.wc-child-after-products {
	clear: both;
	width: 100%;
}

.wc-child-cross-sells {
	padding: 10px 16px 14px;
	border-top: 0;
	border-bottom: 1px solid #e0e0e0;
}

.wc-child-cross-sells__heading {
	font-weight: 600;
	text-align: center;
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.3;
}

.wc-child-cross-sells__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: stretch;
	gap: 10px;
}

.wc-child-cross-sell-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	text-align: center;
	gap: 4px;
}

.wc-child-cross-sell-item__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 100px);
	height: 100px;
}

.wc-child-cross-sell-item__image img {
	width: 100%;
	height: 100%;
	border-radius: 6px;
	object-fit: contain;
}

.wc-child-cross-sell-item__name {
	font-size: 12px;
	line-height: 1.3;
	color: #333;
	text-decoration: none;
}

.wc-child-cross-sell-item__price {
	font-size: 13px;
	font-weight: 600;
	color: #2b3e37;
}

.wc-child-cross-sell-item__button {
	display: inline-block;
	margin-top: auto;
	padding: 5px 12px;
	background: #2b3e37;
	color: #fff;
	border-radius: 20px;
	font-size: 12px;
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.wc-child-cross-sell-item__image {
		width: min(100%, 84px);
		height: 84px;
	}
}

.wc-child-cross-sell-item__button:hover {
	background: #0b7d49;
}

.wc-child-cross-sell-item__button.added::after {
	content: "\2713";
	margin-left: 4px;
}

/* Totals */
.wc-child-mini-cart-totals {
	padding: 0;
}

.wc-child-totals-breakdown {
	padding: 16px 20px 14px;
}

.wc-child-mini-cart-totals p.wc-child-totals-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 0;
	border: 0;
	margin: 0 0 8px;
	color: #242529;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
}

.wc-child-totals-breakdown .wc-child-totals-row:last-child {
	margin-bottom: 0;
}

.wc-child-totals-breakdown .amount {
	color: #242529;
	font-weight: 400;
}

.wc-child-mini-cart-totals p.wc-child-totals-row--order-total {
	padding: 14px 20px;
	margin: 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	font-size: 16px;
	font-weight: 700;
}

.wc-child-totals-row--order-total .amount {
	color: #2b3e37;
	font-weight: 700;
}

.wc-child-disclaimer {
	padding: 8px 20px 0;
	margin: 0;
	font-size: 11px;
	line-height: 1.4;
	color: #888;
	text-align: center;
}