/* Cart page and native mini-cart drawer only. Keep storefront/checkout styles untouched. */

body.eco-cart-active {
	--eco-cart-ink: #30435f;
	--eco-cart-border: #e5e9ef;
	--eco-cart-muted: #68778b;
	--eco-cart-surface: #fff;
	--eco-cart-soft: #f7f8fa;
}

body.eco-cart-active .woocommerce.row.row-large.row-divided {
	max-width: 1240px;
	margin-inline: auto;
	padding: 28px 20px 36px;
	border: 0;
	background: var(--eco-cart-surface);
}

body.eco-cart-active .col.large-7.pb-0.cart-auto-refresh,
body.eco-cart-active .cart-collaterals.large-5.col.pb-0 {
	padding-bottom: 0;
}

body.eco-cart-active .cart-auto-refresh,
body.eco-cart-active .cart-sidebar.col-inner,
body.eco-cart-active .cart_totals {
	min-width: 0;
}

body.eco-cart-active .cart-auto-refresh .cart-wrapper,
body.eco-cart-active .cart-sidebar.col-inner {
	padding: 0;
}

body.eco-cart-active table.shop_table,
body.eco-cart-active table.shop_table th,
body.eco-cart-active table.shop_table td {
	border-color: var(--eco-cart-border);
}

body.eco-cart-active table.shop_table {
	margin: 0;
	border: 1px solid var(--eco-cart-border);
	border-radius: 12px;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--eco-cart-surface);
	overflow: hidden;
}

body.eco-cart-active table.shop_table thead th {
	padding: 12px 10px;
	color: var(--eco-cart-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .045em;
	text-transform: uppercase;
}

body.eco-cart-active table.shop_table td {
	padding: 14px 10px;
	vertical-align: middle;
}

body.eco-cart-active table.shop_table td.product-remove {
	width: 34px;
	padding-inline: 7px;
}

body.eco-cart-active table.shop_table td.product-remove a.remove,
body.eco-cart-drawer-active #cart-popup li.mini_cart_item a.remove.remove_from_cart_button {
 display:flex;
 align-items:center;
 justify-content:center;
 width:32px;
 height:32px;
 margin:0;
 padding:0;
 border:0;
 border-radius:8px;
 background:transparent;
 color:#758196 !important;
 font-size:0;
 line-height:1;
}
body.eco-cart-active table.shop_table td.product-remove a.remove {position:static;}
body.eco-cart-active a.eco-cart-remove svg,
body.eco-cart-drawer-active #cart-popup a.eco-cart-remove svg {display:block;width:20px;height:20px;flex:none;pointer-events:none;}
body.eco-cart-active table.shop_table a.eco-cart-remove:hover,
body.eco-cart-drawer-active #cart-popup a.eco-cart-remove:hover {background:#f1f4f8;color:#30435f !important;}
body.eco-cart-active a.eco-cart-remove:focus-visible,
body.eco-cart-drawer-active #cart-popup a.eco-cart-remove:focus-visible {outline:2px solid #30435f;outline-offset:2px;}

body.eco-cart-active table.shop_table td.product-thumbnail {
	width: 76px;
}

body.eco-cart-active table.shop_table td.product-thumbnail img {
	width: 64px;
	max-width: 64px;
	border-radius: 8px;
}

body.eco-cart-active table.shop_table td.product-name {
	color: var(--eco-cart-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

body.eco-cart-active table.shop_table td.product-name a {
	color: inherit;
}

body.eco-cart-active table.shop_table td.product-price,
body.eco-cart-active table.shop_table td.product-subtotal {
	white-space: nowrap;
	font-size: 13px;
}

/* The same native quantity control in the cart and the drawer. */
body.eco-cart-active .quantity.buttons_added,
body.eco-cart-drawer-active #cart-popup li.mini_cart_item .quantity.buttons_added {
 display:inline-flex;
 align-items:stretch;
 flex:0 0 auto;
 width:100px;
 min-width:100px;
 height:36px;
 min-height:36px;
 margin:0;
 padding:0;
 border:1px solid #dce2ea;
 border-radius:8px;
 background:#fff;
 box-shadow:none;
 overflow:hidden;
 opacity:1;
 vertical-align:middle;
}
body.eco-cart-active .quantity.buttons_added .minus,
body.eco-cart-active .quantity.buttons_added .plus,
body.eco-cart-drawer-active #cart-popup li.mini_cart_item .quantity.buttons_added .minus,
body.eco-cart-drawer-active #cart-popup li.mini_cart_item .quantity.buttons_added .plus {
 position:static;
 float:none;
 flex:0 0 30px;
 width:30px;
 min-width:30px;
 height:34px;
 min-height:34px;
 margin:0;
 padding:0;
 border:0;
 border-radius:0;
 background:#f4f6f9;
 box-shadow:none;
 color:#30435f;
 font-size:17px;
 font-weight:500;
 line-height:34px;
 text-align:center;
 letter-spacing:0;
 appearance:none;
 -webkit-appearance:none;
}
body.eco-cart-active .quantity.buttons_added .input-text.qty,
body.eco-cart-drawer-active #cart-popup li.mini_cart_item .quantity.buttons_added .input-text.qty {
 position:static;
 float:none;
 flex:1 1 auto;
 width:38px;
 min-width:0;
 max-width:none;
 height:34px;
 min-height:34px;
 margin:0;
 padding:0;
 border:0;
 border-inline:1px solid #dce2ea;
 border-radius:0;
 background:#fff;
 box-shadow:none;
 color:#30435f;
 font-size:16px;
 font-weight:500;
 line-height:34px;
 text-align:center;
 appearance:textfield;
 -moz-appearance:textfield;
}
body.eco-cart-active .quantity.buttons_added .qty::-webkit-inner-spin-button,
body.eco-cart-active .quantity.buttons_added .qty::-webkit-outer-spin-button,
body.eco-cart-drawer-active #cart-popup .quantity.buttons_added .qty::-webkit-inner-spin-button,
body.eco-cart-drawer-active #cart-popup .quantity.buttons_added .qty::-webkit-outer-spin-button {-webkit-appearance:none;margin:0;}

body.eco-cart-active .actions {
	padding: 14px 0 0 !important;
}

body.eco-cart-active .actions .coupon {
	display: flex;
	gap: 8px;
}

body.eco-cart-active .actions .coupon .input-text {
	min-height: 40px;
	font-size: 16px;
	border: 1px solid var(--eco-cart-border);
	border-radius: 8px;
	box-shadow: none;
}

body.eco-cart-active .actions .button {
	min-height: 40px;
	border-radius: 8px;
	font-size: 12px;
}

/* Remove only the secondary shop link; retain coupon/update controls and hidden fields. */
body.eco-cart-active .continue-shopping {display:none;}
body.eco-cart-active .cart-auto-refresh .actions:not(:has(.coupon)) {padding:0!important;border:0;}

body.eco-cart-active .cart_totals {
	padding: 20px;
	border: 1px solid var(--eco-cart-border);
	border-radius: 12px;
	background: var(--eco-cart-soft);
}

body.eco-cart-active .cart_totals > h2 {
	margin: 0 0 14px;
	color: var(--eco-cart-ink);
	font-size: 19px;
	font-weight: 600;
	text-transform: none;
}

body.eco-cart-active .cart_totals table.shop_table {
	border: 0;
	background: transparent;
}

body.eco-cart-active .cart_totals table.shop_table th,
body.eco-cart-active .cart_totals table.shop_table td {
	padding: 11px 0;
	border-width: 0 0 1px;
	background: transparent;
	font-size: 13px;
}

body.eco-cart-active .cart_totals table.shop_table tr:last-child th,
body.eco-cart-active .cart_totals table.shop_table tr:last-child td {
	border-bottom: 0;
}

body.eco-cart-active .cart_totals .woocommerce-shipping-totals.shipping,
body.eco-cart-active .cart_totals .woocommerce-shipping-totals.shipping th,
body.eco-cart-active .cart_totals .woocommerce-shipping-totals.shipping td,
body.eco-cart-active .cart_totals .shipping-calculator-form,
body.eco-cart-active .cart_totals .shipping-calculator-button {
	display: none !important;
}

body.eco-cart-active .cart_totals tr.eco-cart-delivery-note th,
body.eco-cart-active .cart_totals tr.eco-cart-delivery-note td {
	border-bottom: 1px solid var(--eco-cart-border);
}

body.eco-cart-active .cart_totals tr.eco-cart-delivery-note td {
	color: var(--eco-cart-muted);
	font-size: 12px;
}

body.eco-cart-active .cart_totals table.shop_table .order-total th,
body.eco-cart-active .cart_totals table.shop_table .order-total td,
body.eco-cart-active .cart_totals table.shop_table .order-total .amount {
	color: var(--eco-cart-ink);
	font-size: 18px;
	font-weight: 700;
}

body.eco-cart-active .cart_totals .checkout-button {
	display:flex;
	align-items:center;
	justify-content:center;
	width:100%;
	padding:12px 16px;
	box-sizing:border-box;
	line-height:1.3;
	text-align:center;
	min-height: 48px;
	margin: 14px 0 0;
	border: 0;
	border-radius: 9px;
	background: #30435f;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

body.eco-cart-active .cart-sidebar .payment-icons {display:flex;justify-content:center;gap:5px;width:100%;margin-top:12px;}

body.eco-cart-active .eco-cart-subtotal-duplicate {
	display: none !important;
}

body.eco-cart-active .eco-cart-recommendations {
	clear: both;
	width: 100%;
	max-width: 100%;
	margin: 26px 0 0;
	padding: 0;
}

body.eco-cart-active .eco-cart-recommendations > .cross-sells {
	width: 100%;
	max-width: none;
	margin: 0;
}

body.eco-cart-active .eco-cart-recommendations .cross-sells > h2 {
	margin: 0 0 14px;
	color: var(--eco-cart-ink);
	font-size: 18px;
	font-weight: 600;
}

body.eco-cart-active .eco-cart-recommendations .products.row {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	margin-inline: -8px;
	padding-bottom: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
}

body.eco-cart-active .eco-cart-recommendations .product-small.col {
	display: flex;
	flex: 0 0 210px;
	max-width: 210px;
	padding: 0 8px 16px;
	scroll-snap-align: start;
}

body.eco-cart-active .eco-cart-recommendations .product-small.col > .col-inner {
 display:flex;
 flex:1 1 auto;
 flex-direction:column;
 width:100%;
 min-width:0;
 height:auto!important;
}

body.eco-cart-active .eco-cart-recommendations .product-small.box {
	display:flex;
	flex:1 1 auto;
	flex-direction:column;
	width:100%;
	height: auto !important;
	margin: 0;
	border: 1px solid var(--eco-cart-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	overflow: hidden;
}

body.eco-cart-active .eco-cart-recommendations .product-small.box .box-image {
	flex:0 0 150px;
	margin: 0;
	height: 150px;
}

body.eco-cart-active .eco-cart-recommendations .product-small.box .box-image img {height:150px;object-fit:contain;}
body.eco-cart-active .eco-cart-recommendations .category {display:none;}
body.eco-cart-active .eco-cart-recommendations .badge-container {top:8px;left:8px;margin:0;}
body.eco-cart-active .eco-cart-recommendations .badge-container .badge {margin:0;transform:none;width:36px;height:36px;font-size:12px;}
body.eco-cart-active .eco-cart-recommendations [data-eco-cart-track]:focus-visible {outline:2px solid #30435f;outline-offset:2px;}
body.eco-cart-active .woocommerce.row:has(.woocommerce-cart-form.processing) .eco-cart-recommendations {pointer-events:none;opacity:.65;}
body.eco-cart-active .cart_totals > table:not(.shop_table) {display:none;}
body.eco-cart-active .cart_totals > h2 {display:block;}
body.eco-cart-active .cart_totals .eco-cart-delivery-note small {display:block;margin-top:4px;line-height:1.5;}
body.eco-cart-active .cart_totals .eco-cart-delivery-note th {vertical-align:top;}

body.eco-cart-active .eco-cart-recommendations .product-small.box .box-text,
body.eco-cart-active .eco-cart-recommendations .name.product-title,
body.eco-cart-active .eco-cart-recommendations .price-wrapper,
body.eco-cart-active .eco-cart-recommendations .add-to-cart-button {
	height: auto !important;
	min-height: 0 !important;
}

body.eco-cart-active .eco-cart-recommendations .product-small.box .box-text {
	display:flex;
	flex:1 1 auto;
	flex-direction:column;
	padding: 10px 11px 12px;
}

body.eco-cart-active .eco-cart-recommendations .box-text > .title-wrapper {
 flex:1 0 auto;
 min-width:0;
}

body.eco-cart-active .eco-cart-recommendations .name.product-title {
	margin: 0 0 7px;
	font-size: 13px;
	line-height: 1.35;
}

body.eco-cart-active .eco-cart-recommendations .price-wrapper {
 display:grid;
 flex:0 0 auto;
 grid-template-columns:max-content max-content;
 align-items:center;
 justify-content:center;
 column-gap:4px;
 row-gap:6px;
 margin:0 0 10px;
}
body.eco-cart-active .eco-cart-recommendations .price-wrapper > .star-rating {
 grid-column:1;
 grid-row:1;
 float:none;
 margin:0;
}
body.eco-cart-active .eco-cart-recommendations .price-wrapper > .review-count {
 grid-column:2;
 grid-row:1;
 margin:0;
 white-space:nowrap;
}
body.eco-cart-active .eco-cart-recommendations .price-wrapper > .price {
 grid-column:1 / -1;
 grid-row:2;
 display:block;
 margin:0;
}

body.eco-cart-active .eco-cart-recommendations .add-to-cart-button {
	flex:0 0 auto;
	margin: 0;
}

body.eco-cart-active .eco-cart-recommendations .add-to-cart-button .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
}

body.eco-cart-active .eco-cart-recommendations .stock,
body.eco-cart-active .eco-cart-recommendations .price,
body.eco-cart-active .eco-cart-recommendations .button {
	font-size: 12px;
}

/* Native off-canvas cart drawer. */
body.eco-cart-drawer-active #cart-popup,
body.eco-cart-drawer-active .mfp-wrap:has(#cart-popup) #cart-popup {
	width: min(420px, calc(100vw - 16px));
	height: 100%;
	min-height: 0;
	margin-left: auto;
	background: #fff;
	color: var(--eco-cart-ink, #30435f);
}

body.eco-cart-drawer-active .mfp-wrap:has(#cart-popup) .mfp-content.off-canvas-cart {
	width: min(420px, calc(100vw - 16px));
	max-width: 100%;
	height: 100%;
	margin-left: auto;
	background: #fff;
}

body.eco-cart-drawer-active #cart-popup .cart-popup-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 18px 18px calc(12px + env(safe-area-inset-bottom));
	background: #fff;
}

body.eco-cart-drawer-active #cart-popup .cart-popup-title {
	position: relative;
	flex: 0 0 auto;
	margin: 0 0 10px;
	padding: 0 42px 12px;
	border-bottom: 1px solid var(--eco-cart-border, #e5e9ef);
	text-align: center;
}

body.eco-cart-drawer-active #cart-popup .cart-popup-title > span {
	color: var(--eco-cart-ink, #30435f);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

body.eco-cart-drawer-active #cart-popup .cart-popup-title .is-divider {
	display: none;
}

body.eco-cart-drawer-active .mfp-wrap:has(#cart-popup) .mfp-close {
 position:absolute;
 top:8px;
 right:8px;
 display:flex;
 align-items:center;
 justify-content:center;
 width:44px;
 height:44px;
 margin:0;
 padding:0;
 border:1px solid #e5e9ef;
 border-radius:50%;
 background:#fff;
 color:#30435f;
 box-shadow:none;
 mix-blend-mode:normal;
 opacity:1;
 font-size:22px;
 line-height:1;
}
body.eco-cart-drawer-active .mfp-wrap:has(#cart-popup) .mfp-close svg {
 display:block;
 width:20px;
 height:20px;
 margin:0;
 stroke-width:1.8;
 pointer-events:none;
}
body.eco-cart-drawer-active .mfp-wrap:has(#cart-popup) .mfp-close:hover {background:#f4f6f9;opacity:1;}
body.eco-cart-drawer-active .mfp-wrap:has(#cart-popup) .mfp-close:focus-visible {outline:2px solid #30435f;outline-offset:2px;}

body.eco-cart-drawer-active #cart-popup .widget_shopping_cart,
body.eco-cart-drawer-active #cart-popup .widget_shopping_cart_content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	height: auto;
}

body.eco-cart-drawer-active #cart-popup .eco-drawer-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

body.eco-cart-drawer-active #cart-popup ul.woocommerce-mini-cart {
	display: block;
	flex: none;
	height: auto;
	margin: 0;
	padding: 0;
}

body.eco-cart-drawer-active #cart-popup li.mini_cart_item {
 position:relative;
 display:grid;
 grid-template-columns:60px minmax(0,1fr);
 column-gap:12px;
 row-gap:12px;
 align-items:center;
 min-height:0;
 margin:0;
 padding:16px 0;
 border-bottom:1px solid #e5e9ef;
 font-size:13px;
}
body.eco-cart-drawer-active #cart-popup li.mini_cart_item::before,
body.eco-cart-drawer-active #cart-popup li.mini_cart_item::after {display:none;}
body.eco-cart-drawer-active #cart-popup li.mini_cart_item > a:not(.remove) {
 grid-column:2;
 grid-row:1;
 display:block;
 min-width:0;
 min-height:0;
 margin:0;
 padding:0 34px 0 0;
 color:#30435f;
 font-size:14px;
 font-weight:600;
 line-height:1.4;
 overflow-wrap:anywhere;
}
body.eco-cart-drawer-active #cart-popup li.mini_cart_item > a:not(.remove) img {
 position:absolute;
 top:16px;
 left:0;
 float:none;
 width:60px;
 height:60px;
 margin:0;
 border-radius:8px;
 object-fit:contain;
}
body.eco-cart-drawer-active #cart-popup li.mini_cart_item a.remove.remove_from_cart_button {
 position:absolute;
 top:10px;
 right:0;
 left:auto;
}
body.eco-cart-drawer-active #cart-popup li.mini_cart_item .ux-mini-cart-qty {
 grid-column:2;
 grid-row:2;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:10px;
 min-width:0;
 margin:0;
 padding:0;
}
body.eco-cart-drawer-active #cart-popup li.mini_cart_item .ux-mini-cart-qty:before,
body.eco-cart-drawer-active #cart-popup li.mini_cart_item .ux-mini-cart-qty:after {display:none;}

body.eco-cart-drawer-active #cart-popup li.mini_cart_item .product-subtotal.price-wrapper {
	margin:0 0 0 auto;
	color: var(--eco-cart-ink, #30435f);
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 1;
}

body.eco-cart-active table.shop_table tr.cart_item td.product-subtotal .amount,
body.eco-cart-drawer-active #cart-popup li.mini_cart_item .product-subtotal.price-wrapper .amount {font-size:inherit;font-weight:inherit;}

body.eco-cart-drawer-active #cart-popup .ux-mini-cart-cross-sells {
 margin:18px 0 14px;padding:12px;border:1px solid #edf0f4;border-radius:10px;background:#f8fafc;
}

body.eco-cart-drawer-active #cart-popup .ux-mini-cart-cross-sells > .ux-mini-cart-cross-sells__title {
	margin: 0 0 9px;
	color: var(--eco-cart-ink, #30435f);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}

body.eco-cart-drawer-active #cart-popup ul.ux-mini-cart-cross-sells__list {
	margin: 0;
	padding: 0;
}

body.eco-cart-drawer-active #cart-popup li.ux-mini-cart-cross-sells__list-item {
	position: relative;
	display: block;
 min-height:76px;
 margin:0;
 padding:12px 0;
 border:0;border-bottom:1px solid #e7ecf2;
 border-radius:0;background:transparent;
}

body.eco-cart-drawer-active #cart-popup li.ux-mini-cart-cross-sells__list-item > a:not(.button) {
	display: block;
	min-width: 0;
	padding-left: 52px;
	padding-right: 80px;
	color: var(--eco-cart-ink, #30435f);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

body.eco-cart-drawer-active #cart-popup li.ux-mini-cart-cross-sells__list-item > a:not(.button) img {
	position: absolute;
	top: 50%;
	left: 0;
	transform:translateY(-50%);
	float: none;
	width: 42px;
	height: 48px;
	margin: 0;
	border-radius: 8px;
	object-fit: contain;
}

body.eco-cart-drawer-active #cart-popup li.ux-mini-cart-cross-sells__list-item .product-title {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

body.eco-cart-drawer-active #cart-popup li.ux-mini-cart-cross-sells__list-item .price-wrapper {
	margin: 5px 80px 0 52px;
	color: var(--eco-cart-muted, #68778b);
	font-size: 13px;
}

body.eco-cart-drawer-active #cart-popup li.ux-mini-cart-cross-sells__list-item > a.button {
	position: absolute;
	right: 0;
	top: 50%;
	bottom:auto;
	transform:translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 72px;
	min-width: 72px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--eco-cart-border, #e5e9ef);
	border-radius: 8px;
	background: #fff;
	color: var(--eco-cart-ink, #30435f);
	font-size: 12px;
	line-height:1;
	letter-spacing:0;
	text-transform: none;
}

body.eco-cart-drawer-active #cart-popup .ux-mini-cart-footer {
	display:flex;
	flex-direction:column;
	gap:16px;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 12px 0 0;
	border-top: 1px solid var(--eco-cart-border, #e5e9ef);
	background: #fff;
}

body.eco-cart-drawer-active #cart-popup .ux-mini-cart-footer p.woocommerce-mini-cart__total.total {
	display: flex;
	align-items:baseline;
	justify-content: space-between;
	margin:0!important;
	padding:0;
	border:0;
	line-height:1.4;
	color: var(--eco-cart-ink, #30435f);
	font-size: 16px;
	font-weight: 700;
}

body.eco-cart-drawer-active #cart-popup .ux-mini-cart-footer p.woocommerce-mini-cart__buttons.buttons {
	display: grid;
	grid-template-columns: minmax(0,1fr);
	gap: 8px;
	margin: 0;
}

body.eco-cart-drawer-active #cart-popup .ux-mini-cart-footer p.woocommerce-mini-cart__buttons.buttons a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--eco-cart-ink, #30435f);
	border-radius: 8px;
	background: #fff;
	color: var(--eco-cart-ink, #30435f);
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	line-height: 1.3;
}

body.eco-cart-drawer-active #cart-popup .ux-mini-cart-footer p.woocommerce-mini-cart__buttons.buttons a.button.checkout {
	background: #30435f;
	color: #fff;
}

body.eco-cart-drawer-active #cart-popup .payment-icons.inline-block {
	flex: 0 0 auto;
	margin: 10px 0 0;
	padding: 0;
	text-align: center;
}

/* Product cards use the same aligned rows at every width; keep table headings accessible. */
body.eco-cart-active .woocommerce-cart-form__contents > thead {
 display:table-header-group !important;
 position:absolute;
 width:1px;
 height:1px;
 overflow:hidden;
 clip:rect(0,0,0,0);
 clip-path:inset(50%);
 white-space:nowrap;
}
 body.eco-cart-active table.shop_table tr.cart_item {
  position:relative;
  display:grid;
  grid-template-columns:64px 100px minmax(0,1fr);
  align-items:center;
  column-gap:12px;
  row-gap:12px;
  padding:16px 12px;
  border-bottom:1px solid var(--eco-cart-border);
 }
 body.eco-cart-active table.shop_table tr.cart_item td {
  display:block;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
 }
 body.eco-cart-active table.shop_table tr.cart_item td::before {display:none;}
 body.eco-cart-active table.shop_table tr.cart_item td.product-remove {
  position:absolute;
  top:10px;
  right:8px;
  width:32px;
  height:32px;
 }
 body.eco-cart-active table.shop_table tr.cart_item td.product-thumbnail {
  grid-column:1;
  grid-row:1 / span 2;
  align-self:start;
 }
 body.eco-cart-active table.shop_table tr.cart_item td.product-thumbnail img {
  display:block;
  width:64px;
  max-width:64px;
  height:64px;
  margin:0;
  object-fit:contain;
 }
 body.eco-cart-active table.shop_table tr.cart_item td.product-name {
  grid-column:2 / 4;
  grid-row:1;
  padding:0 30px 0 0;
  font-size:14px;
  text-align:left;
 }
 body.eco-cart-active table.shop_table tr.cart_item td.product-quantity {
  grid-column:2;
  grid-row:2;
  justify-self:start;
  text-align:left;
 }
 body.eco-cart-active table.shop_table tr.cart_item td.product-subtotal {
  grid-column:3;
  grid-row:2;
  justify-self:end;
  align-self:center;
  text-align:right;
  font-size:17px;
  font-weight:700;
 }
 body.eco-cart-active table.shop_table tr.cart_item td.product-price {display:none;}

	body.eco-cart-active .mobile-product-price {
		display: block !important;
		margin-top: 3px;
		color: var(--eco-cart-muted);
		font-size: 13px;
		font-weight: 400;
	}

	body.eco-cart-active .mobile-product-price__qty {display:none;}
	body.eco-cart-active .mobile-product-price::after {content:' / шт.';}


@media (max-width: 849px) {
	body.eco-cart-active .woocommerce.row.row-large.row-divided {
		padding: 18px 14px 28px;
	}

	body.eco-cart-active .col.large-7.pb-0.cart-auto-refresh,
	body.eco-cart-active .cart-collaterals.large-5.col.pb-0 {
		flex-basis: 100%;
		max-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}

	body.eco-cart-active .cart-auto-refresh {
		margin-bottom: 22px;
	}

	body.eco-cart-active .actions .coupon {
		flex-wrap: wrap;
	}

	body.eco-cart-active .actions .coupon .input-text {
		flex: 1 1 150px;
		min-width: 0;
	}

	body.eco-cart-active .cart_totals {
		padding: 16px;
	}

	body.eco-cart-active .eco-cart-recommendations {
		margin-top: 22px;
	}

	body.eco-cart-active .eco-cart-recommendations .products.row {
		display: flex;
		flex-wrap: nowrap;
		width: auto;
		margin: 0 -14px;
		padding: 0 14px 6px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
	}

	body.eco-cart-active .eco-cart-recommendations .product-small.col {
		flex: 0 0 190px;
		width: 190px;
		max-width: 190px;
		padding: 0 7px 10px;
		scroll-snap-align: start;
	}

	body.eco-cart-active .eco-cart-recommendations .product-small.box .box-image img {
		width: 100%;
	}
}

@media (max-width: 430px) {
	body.eco-cart-active .woocommerce.row.row-large.row-divided {
		padding-inline: 10px;
	}

	body.eco-cart-active .actions .coupon .button {
		flex: 1 1 auto;
	}

	body.eco-cart-active .eco-cart-recommendations .product-small.col {
		flex-basis: 185px;
		width: 185px;
		max-width: 185px;
	}

	body.eco-cart-drawer-active #cart-popup .cart-popup-inner {
		padding-right: 14px;
		padding-left: 14px;
	}
}

/* Recommendations remain visually secondary to the actual cart contents. */
body.eco-cart-drawer-active #cart-popup li.ux-mini-cart-cross-sells__list-item:last-child {border-bottom:0;}
body.eco-cart-drawer-active #cart-popup .ux-mini-cart-cross-sells > .ux-mini-cart-cross-sells__title {margin:0 0 2px;font-size:13px;font-weight:600;color:#657187;}
body.eco-cart-drawer-active #cart-popup .ux-mini-cart-footer p.woocommerce-mini-cart__buttons.buttons a.button:not(.checkout) {border-color:#cbd4df;}
body.eco-cart-drawer-active #cart-popup .ux-mini-cart-footer p.woocommerce-mini-cart__buttons.buttons a.button.checkout {font-size:15px;}
