/* Carrinho em duas colunas — estilo marketplace */

body.woocommerce-cart,
body.edl-cart-page {
	background: #f4f6f8;
}

body.woocommerce-cart .edl-page,
body.woocommerce-cart .edl-woo--cart {
	padding-top: 24px;
	padding-bottom: 64px;
}

body.woocommerce-cart .edl-page__content,
body.woocommerce-cart .edl-page__article,
body.woocommerce-cart .woocommerce {
	background: transparent;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

body.woocommerce-cart .woocommerce-notices-wrapper:not(:empty),
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
	margin-bottom: 16px;
	border-radius: 12px;
}

body.woocommerce-cart .edl-cart,
.edl-cart {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	align-items: start;
}

.edl-cart__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 16px;
}

.edl-cart__title {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--edl-slate-900);
}

.edl-cart__count {
	margin: 4px 0 0;
	color: var(--edl-slate-500);
	font-size: 14px;
	font-weight: 500;
}

.edl-cart__continue {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--edl-primary);
	white-space: nowrap;
}

.edl-cart__continue:hover {
	color: var(--edl-primary-dark);
}

.edl-cart__continue .material-symbols-outlined {
	font-size: 18px;
}

/* Itens como cards */
body.woocommerce-cart .edl-cart table.shop_table.cart,
.edl-cart table.shop_table.cart {
	width: 100%;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.edl-cart table.shop_table.cart thead {
	display: none;
}

.edl-cart table.shop_table.cart tbody {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.edl-cart table.shop_table.cart tr.cart_item {
	position: relative;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	grid-template-areas:
		"thumb name"
		"thumb price"
		"thumb qty"
		"subtotal subtotal";
	gap: 8px 16px;
	align-items: start;
	margin: 0;
	padding: 16px;
	background: var(--edl-white);
	border: 1px solid var(--edl-slate-200);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.edl-cart table.shop_table.cart tr.cart_item td {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left !important;
}

.edl-cart table.shop_table.cart tr.cart_item td::before {
	display: none !important;
	content: none !important;
}

.edl-cart .product-thumbnail {
	grid-area: thumb;
}

body.woocommerce-cart .edl-cart table.cart .product-thumbnail a,
body.woocommerce-cart .edl-cart table.cart .product-thumbnail img,
.edl-cart .product-thumbnail a,
.edl-cart .product-thumbnail img {
	display: block;
	width: 88px;
	height: 88px;
	max-width: none;
	object-fit: contain;
	border-radius: 12px;
	background: var(--edl-slate-50);
	border: 1px solid var(--edl-slate-100);
}

.edl-cart .product-name {
	grid-area: name;
	padding-right: 72px !important;
}

.edl-cart .product-name a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--edl-slate-900);
	letter-spacing: -0.02em;
}

.edl-cart .product-name a:hover {
	color: var(--edl-primary);
}

.edl-cart .product-name dl.variation,
.edl-cart .product-name .variation {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--edl-slate-500);
}

.edl-cart .product-price {
	grid-area: price;
	font-size: 13px;
	color: var(--edl-slate-500);
}

.edl-cart .product-price del {
	opacity: 0.65;
	margin-right: 6px;
}

.edl-cart .product-price ins {
	text-decoration: none;
	font-weight: 700;
	color: var(--edl-slate-800);
}

.edl-cart .product-quantity {
	grid-area: qty;
}

.edl-cart .product-subtotal {
	grid-area: subtotal;
	padding-top: 8px !important;
	border-top: 1px solid var(--edl-slate-100) !important;
	font-size: 16px;
	font-weight: 800;
	color: var(--edl-primary);
}

.edl-cart .product-remove {
	position: absolute;
	top: 12px;
	right: 12px;
	width: auto;
}

body.woocommerce-cart .edl-cart a.remove,
.edl-cart a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: var(--edl-slate-50);
	color: transparent !important;
	font-size: 0 !important;
	line-height: 1;
	text-decoration: none;
}

.edl-cart a.remove::before {
	content: "delete";
	font-family: "Material Symbols Outlined", sans-serif;
	font-size: 18px;
	color: var(--edl-slate-500);
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.edl-cart a.remove:hover {
	background: #fef2f2;
}

.edl-cart a.remove:hover::before {
	color: #dc2626;
}

/* Quantidade +/- */
.edl-cart .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--edl-slate-200);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.edl-cart .quantity .screen-reader-text {
	position: absolute;
}

.edl-cart .quantity input.qty {
	width: 42px;
	min-height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.edl-cart .quantity input.qty::-webkit-outer-spin-button,
.edl-cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.edl-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: var(--edl-slate-800);
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}

.edl-qty-btn:hover {
	background: var(--edl-slate-50);
	color: var(--edl-primary);
}

/* Cupom + atualizar */
.edl-cart tr.edl-cart__actions-row,
.edl-cart tr:has(> td.actions) {
	display: block;
	background: var(--edl-white);
	border: 1px solid var(--edl-slate-200);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
	padding: 16px;
}

.edl-cart td.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 !important;
	border: 0 !important;
	text-align: left !important;
}

.edl-cart td.actions::before {
	display: none !important;
}

.edl-cart .coupon {
	display: flex;
	flex: 1 1 260px;
	align-items: center;
	gap: 0;
	min-width: min(100%, 280px);
	border: 1px solid var(--edl-slate-200);
	border-radius: 12px;
	background: var(--edl-slate-50);
	overflow: hidden;
}

.edl-cart-coupon__icon {
	display: inline-flex;
	padding: 0 0 0 12px;
	color: var(--edl-primary);
}

.edl-cart .coupon .input-text {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	background: transparent;
	padding: 12px 10px;
	box-shadow: none;
}

.edl-cart .coupon button[name="apply_coupon"] {
	margin: 0;
	border: 0;
	border-radius: 0;
	min-height: 46px;
	padding: 0 16px;
	background: var(--edl-grad-btn);
	color: #fff;
	font-weight: 800;
}

.edl-cart button[name="update_cart"] {
	margin: 0;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--edl-slate-200);
	border-radius: 12px;
	background: #fff;
	color: var(--edl-slate-800);
	font-weight: 700;
}

.edl-cart button[name="update_cart"]:disabled {
	opacity: 0.45;
}

/* Resumo sticky */
body.woocommerce-cart .edl-cart__aside,
.edl-cart__aside {
	min-width: 0;
}

body.woocommerce-cart .edl-cart .cart-collaterals,
body.woocommerce-cart .edl-cart .cart-collaterals .cart_totals,
body.woocommerce-page .edl-cart .cart-collaterals .cart_totals,
.edl-cart .cart-collaterals,
.edl-cart .cart_totals {
	width: 100% !important;
	float: none !important;
	max-width: none;
}

.edl-cart .cart_totals {
	background: var(--edl-white);
	border: 1px solid var(--edl-slate-200);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.edl-cart-summary__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.edl-cart-summary__count {
	margin: 0 0 16px;
	color: var(--edl-slate-500);
	font-size: 13px;
}

.edl-cart .cart_totals table.shop_table {
	border: 0;
	border-radius: 0;
	width: 100%;
}

.edl-cart .cart_totals table.shop_table th,
.edl-cart .cart_totals table.shop_table td {
	padding: 12px 0;
	border: 0;
	border-top: 1px solid var(--edl-slate-100);
	background: transparent;
	font-size: 14px;
	text-align: left;
}

.edl-cart .cart_totals table.shop_table td::before {
	display: none !important;
}

.edl-cart .cart_totals table.shop_table td {
	text-align: right;
	font-weight: 700;
}

.edl-cart .cart_totals .cart-subtotal th,
.edl-cart .cart_totals .cart-subtotal td {
	border-top: 0;
	padding-top: 0;
}

.edl-cart .cart_totals .order-total th,
.edl-cart .cart_totals .order-total td {
	padding-top: 16px;
	border-top: 2px solid var(--edl-slate-200);
	font-size: 18px;
	font-weight: 800;
	color: var(--edl-primary);
}

body.woocommerce-cart .edl-cart .cart_totals table.shop_table,
body.woocommerce-cart .edl-cart .cart_totals table.shop_table tbody {
	display: block;
	width: 100%;
	table-layout: auto;
}

body.woocommerce-cart .edl-cart .cart_totals table.shop_table tr {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

body.woocommerce-cart .edl-cart .cart_totals tr.woocommerce-shipping-totals,
body.woocommerce-cart .edl-cart .cart_totals tr.shipping {
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

body.woocommerce-cart .edl-cart .cart_totals tr.woocommerce-shipping-totals th,
body.woocommerce-cart .edl-cart .cart_totals tr.shipping th,
body.woocommerce-cart .edl-cart .cart_totals tr.woocommerce-shipping-totals td,
body.woocommerce-cart .edl-cart .cart_totals tr.shipping td {
	display: block;
	width: 100% !important;
	max-width: 100%;
	padding-right: 0;
	text-align: left !important;
	white-space: normal;
	vertical-align: top;
	font-weight: 500;
}

body.woocommerce-cart .edl-cart .cart_totals tr.woocommerce-shipping-totals th,
body.woocommerce-cart .edl-cart .cart_totals tr.shipping th {
	padding-top: 14px;
	padding-bottom: 0;
	font-weight: 700;
}

body.woocommerce-cart .edl-cart ul#shipping_method,
body.woocommerce-cart .edl-cart ul.woocommerce-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	float: none !important;
	display: block;
	text-align: left;
}

body.woocommerce-cart .edl-cart ul#shipping_method li,
body.woocommerce-cart .edl-cart ul.woocommerce-shipping-methods li {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px;
	margin: 0 0 8px !important;
	padding: 0 !important;
	text-indent: 0 !important;
	list-style: none !important;
	width: 100% !important;
	float: none !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	line-height: 1.45;
	text-align: left;
}

body.woocommerce-cart .edl-cart ul#shipping_method li *,
body.woocommerce-cart .edl-cart ul.woocommerce-shipping-methods li * {
	text-indent: 0 !important;
}

body.woocommerce-cart .edl-cart ul#shipping_method input.shipping_method,
body.woocommerce-cart .edl-cart ul.woocommerce-shipping-methods input.shipping_method {
	float: none !important;
	flex: 0 0 auto;
	margin: 3px 0 0;
	vertical-align: top;
}

body.woocommerce-cart .edl-cart ul#shipping_method input[type="hidden"],
body.woocommerce-cart .edl-cart ul.woocommerce-shipping-methods input[type="hidden"] {
	display: none;
}

body.woocommerce-cart .edl-cart ul#shipping_method label,
body.woocommerce-cart .edl-cart ul.woocommerce-shipping-methods label {
	display: inline !important;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-weight: 700;
	color: var(--edl-slate-900);
	white-space: nowrap;
	text-align: left;
}

body.woocommerce-cart .edl-cart ul#shipping_method li p,
body.woocommerce-cart .edl-cart ul#shipping_method li small,
body.woocommerce-cart .edl-cart ul.woocommerce-shipping-methods li p,
body.woocommerce-cart .edl-cart ul.woocommerce-shipping-methods li small {
	display: block;
	flex-basis: 100%;
	margin: 4px 0 0 22px;
	font-size: 12px;
	font-weight: 500;
	color: var(--edl-slate-500);
	white-space: normal;
}

body.woocommerce-cart .edl-cart .woocommerce-shipping-destination {
	margin: 8px 0 4px;
	font-size: 12px;
	font-weight: 500;
	color: var(--edl-slate-500);
	line-height: 1.45;
	text-align: left;
}

body.woocommerce-cart .edl-cart .shipping-calculator-button {
	display: none !important;
}

body.woocommerce-cart .edl-cart .shipping-calculator-form,
body.woocommerce-cart .edl-cart #shipping-calculator-form {
	display: block !important;
	margin-top: 10px;
}

body.woocommerce-cart .edl-cart-cep,
body.woocommerce-cart .edl-cart .woocommerce-shipping-calculator {
	margin: 10px 0 0;
	text-align: left;
}

body.woocommerce-cart .edl-cart-cep .form-row {
	margin: 0;
}

body.woocommerce-cart .edl-cart-cep label {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--edl-slate-500);
	text-align: left;
}

body.woocommerce-cart .edl-cart-cep__row {
	display: flex;
	align-items: stretch;
	gap: 8px;
}

body.woocommerce-cart .edl-cart-cep input.input-text,
body.woocommerce-cart .edl-cart #calc_shipping_postcode {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--edl-slate-200);
	border-radius: 10px;
	background: #fff;
	text-align: left;
}

body.woocommerce-cart .edl-cart-cep button[name="calc_shipping"],
body.woocommerce-cart .edl-cart .shipping-calculator-form button[name="calc_shipping"] {
	flex: 0 0 auto;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 10px;
	background: var(--edl-grad-btn);
	color: #fff;
	font-weight: 800;
}

.edl-cart .wc-proceed-to-checkout {
	margin: 16px 0 0;
	padding: 0;
}

.edl-cart-checkout,
.edl-cart a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 54px;
	margin: 0;
	border: 0;
	border-radius: 12px;
	background: var(--edl-grad-btn);
	color: #fff !important;
	font-weight: 800;
	font-size: 16px;
	box-shadow: 0 10px 20px rgba(252, 89, 4, 0.22);
}

.edl-cart-checkout:hover,
.edl-cart a.checkout-button:hover {
	filter: brightness(0.97);
	color: #fff !important;
}

.edl-cart-trust {
	list-style: none;
	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--edl-slate-100);
	display: grid;
	gap: 8px;
}

.edl-cart-trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--edl-slate-500);
}

.edl-cart-trust .material-symbols-outlined {
	color: #16a34a;
	font-size: 18px;
}

/* Cross-sells abaixo das colunas */
.edl-cart-page .cross-sells,
body.woocommerce-cart .cross-sells {
	margin-top: 32px;
	padding-top: 8px;
}

.edl-cart-page .cross-sells > h2,
body.woocommerce-cart .cross-sells > h2 {
	margin: 0 0 20px;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

/* Vazio */
.edl-cart-empty {
	max-width: 480px;
	margin: 48px auto;
	padding: 48px 24px;
	text-align: center;
	background: var(--edl-white);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.edl-cart-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: var(--edl-surface-low);
	color: var(--edl-primary);
}

.edl-cart-empty__icon .material-symbols-outlined {
	font-size: 40px;
}

.edl-cart-empty__title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 800;
}

.edl-cart-empty__text {
	margin: 0 0 24px;
	color: var(--edl-slate-500);
}

.edl-cart-empty__btn,
.edl-cart-empty a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: 12px;
	background: var(--edl-grad-btn);
	color: #fff;
	font-weight: 800;
}

@media (min-width: 900px) {
	body.woocommerce-cart .edl-cart,
	.edl-cart {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
		gap: 24px;
	}

	.edl-cart__aside {
		position: sticky;
		top: calc(var(--edl-header-h) + 16px);
	}

	.edl-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 96px minmax(0, 1fr) 140px 120px;
		grid-template-areas:
			"thumb name qty subtotal"
			"thumb price qty subtotal";
		align-items: center;
		padding: 20px;
	}

	.edl-cart .product-thumbnail a,
	.edl-cart .product-thumbnail img {
		width: 96px;
		height: 96px;
	}

	.edl-cart .product-name {
		padding-right: 0 !important;
	}

	.edl-cart .product-quantity {
		justify-self: end;
	}

	.edl-cart .product-subtotal {
		justify-self: end;
		align-self: center;
		padding-top: 0 !important;
		border-top: 0 !important;
		font-size: 18px;
		text-align: right;
	}

	.edl-cart .product-remove {
		top: 16px;
		right: 16px;
	}
}

@media (max-width: 899px) {
	body.woocommerce-cart .edl-page,
	body.woocommerce-cart .edl-woo--cart {
		padding-bottom: 32px;
	}

	.edl-cart,
	.edl-cart__main,
	.edl-cart__aside,
	.edl-cart .cart-collaterals,
	.edl-cart .cart_totals {
		min-width: 0;
		max-width: 100%;
	}

	.edl-cart .wc-proceed-to-checkout {
		position: static;
		margin: 16px 0 0;
		padding: 0;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.edl-cart-checkout,
	.edl-cart a.checkout-button {
		display: flex;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
}
