/* Checkout Shop EW - frontend styles. Scoped to plugin widgets only. */
.checkout-shop-ew,
.checkout-shop-ew * {
	box-sizing: border-box;
}

.checkout-shop-ew {
	width: 100%;
	max-width: 100%;
}

.checkout-shop-ew a {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.checkout-shop-ew table.shop_table,
.checkout-shop-ew table.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 24px;
}

.checkout-shop-ew table.shop_table th,
.checkout-shop-ew table.shop_table td,
.checkout-shop-ew table.woocommerce-checkout-review-order-table th,
.checkout-shop-ew table.woocommerce-checkout-review-order-table td {
	vertical-align: middle;
}

.checkout-shop-ew-cart .woocommerce-cart-form,
.checkout-shop-ew-cart .cart-collaterals,
.checkout-shop-ew-checkout form.checkout {
	width: 100%;
}

.checkout-shop-ew-cart .product-thumbnail img {
	display: block;
	height: auto;
}

.checkout-shop-ew-cart .product-name a {
	text-decoration: none;
}

.checkout-shop-ew-cart .quantity .qty,
.checkout-shop-ew input.input-text,
.checkout-shop-ew textarea,
.checkout-shop-ew select,
.checkout-shop-ew .select2-container--default .select2-selection--single {
	max-width: 100%;
	outline: none;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.checkout-shop-ew input.input-text:focus,
.checkout-shop-ew textarea:focus,
.checkout-shop-ew select:focus,
.checkout-shop-ew .select2-container--open .select2-selection--single {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.checkout-shop-ew-cart .coupon {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.checkout-shop-ew-cart .coupon .input-text {
	min-width: 180px;
}

.checkout-shop-ew .button,
.checkout-shop-ew button.button,
.checkout-shop-ew a.button,
.checkout-shop-ew #place_order,
.checkout-shop-ew .checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	cursor: pointer;
	line-height: 1.2;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.checkout-shop-ew .button:hover,
.checkout-shop-ew #place_order:hover,
.checkout-shop-ew .checkout-button:hover {
	text-decoration: none;
}

.checkout-shop-ew .button:disabled,
.checkout-shop-ew .button.disabled,
.checkout-shop-ew button.button:disabled,
.checkout-shop-ew button.button:disabled[disabled] {
	opacity: .55;
	cursor: not-allowed;
}

.checkout-shop-ew-cart .wc-proceed-to-checkout {
	padding: 0;
}

.checkout-shop-ew-cart .cart_totals {
	max-width: 100%;
}

.checkout-shop-ew-cart .cart_totals h2,
.checkout-shop-ew-checkout h3,
.checkout-shop-ew-checkout #order_review_heading {
	line-height: 1.25;
}

.checkout-shop-ew-cart a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	border-radius: 999px;
	text-decoration: none;
}

.checkout-shop-ew-checkout .woocommerce-billing-fields__field-wrapper,
.checkout-shop-ew-checkout .woocommerce-shipping-fields__field-wrapper,
.checkout-shop-ew-checkout .woocommerce-additional-fields__field-wrapper {
	width: 100%;
}

.checkout-shop-ew-checkout form .form-row {
	width: 100%;
}

.checkout-shop-ew-checkout form .form-row label {
	display: block;
}

.checkout-shop-ew-checkout input.input-text,
.checkout-shop-ew-checkout textarea,
.checkout-shop-ew-checkout select {
	width: 100%;
}

.checkout-shop-ew-checkout textarea {
	min-height: 110px;
	resize: vertical;
}

.checkout-shop-ew-checkout .select2-container {
	width: 100% !important;
}

.checkout-shop-ew-checkout .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	min-height: 42px;
}

.checkout-shop-ew-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	width: 100%;
}

.checkout-shop-ew-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 50%;
	transform: translateY(-50%);
}

.checkout-shop-ew-checkout #order_review,
.checkout-shop-ew-checkout #payment {
	width: 100%;
}

.checkout-shop-ew-checkout #payment ul.payment_methods {
	padding-left: 0;
	list-style: none;
}

.checkout-shop-ew-checkout #payment ul.payment_methods li {
	list-style: none;
}

.checkout-shop-ew-checkout #payment div.payment_box {
	margin: 12px 0 0;
}

.checkout-shop-ew-admin-notice {
	padding: 14px 18px;
	border: 1px solid #d9d9d9;
	background: #fff8e5;
	color: #1d1d1d;
	border-radius: 8px;
}

.checkout-shop-ew .woocommerce-message,
.checkout-shop-ew .woocommerce-info,
.checkout-shop-ew .woocommerce-error,
.checkout-shop-ew .cart-empty,
.checkout-shop-ew-checkout .woocommerce-form-coupon-toggle,
.checkout-shop-ew-checkout .woocommerce-form-login-toggle {
	margin-bottom: 18px;
}

@media (max-width: 1024px) {
	.checkout-shop-ew-cart .cart-collaterals .cart_totals {
		width: 100%;
		float: none;
	}
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart table.shop_table_responsive thead,
	.checkout-shop-ew-cart table.shop_table thead {
		display: none;
	}

	.checkout-shop-ew-cart table.shop_table_responsive tbody tr,
	.checkout-shop-ew-cart table.shop_table tbody tr.cart_item {
		display: block;
		margin-bottom: 14px;
		border-bottom: 1px solid rgba(0, 0, 0, .08);
	}

	.checkout-shop-ew-cart table.shop_table_responsive tbody tr td,
	.checkout-shop-ew-cart table.shop_table tbody tr.cart_item td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		width: 100%;
		text-align: right !important;
	}

	.checkout-shop-ew-cart table.shop_table_responsive tbody tr td::before,
	.checkout-shop-ew-cart table.shop_table tbody tr.cart_item td::before {
		content: attr(data-title);
		font-weight: 600;
		text-align: left;
	}

	.checkout-shop-ew-cart table.shop_table_responsive tbody tr td.product-remove::before,
	.checkout-shop-ew-cart table.shop_table tbody tr.cart_item td.product-remove::before,
	.checkout-shop-ew-cart table.shop_table_responsive tbody tr td.product-thumbnail::before,
	.checkout-shop-ew-cart table.shop_table tbody tr.cart_item td.product-thumbnail::before {
		content: '';
		display: none;
	}

	.checkout-shop-ew-cart table.shop_table tbody tr td.actions {
		display: block;
		text-align: left !important;
	}

	.checkout-shop-ew-cart .coupon {
		display: grid;
		grid-template-columns: 1fr;
	}

	.checkout-shop-ew-cart .coupon .input-text,
	.checkout-shop-ew-cart .coupon .button,
	.checkout-shop-ew-cart table.shop_table tbody tr td.actions .button {
		width: 100%;
	}

	.checkout-shop-ew-checkout .woocommerce form .form-row-first,
	.checkout-shop-ew-checkout .woocommerce form .form-row-last,
	.checkout-shop-ew-checkout form .form-row-first,
	.checkout-shop-ew-checkout form .form-row-last {
		width: 100%;
		float: none;
	}

	.checkout-shop-ew-checkout .col2-set .col-1,
	.checkout-shop-ew-checkout .col2-set .col-2 {
		width: 100%;
		float: none;
	}

	.checkout-shop-ew-checkout #payment #place_order {
		width: 100%;
	}
}

/* Checkout Shop EW 10.13: sursa WooCommerce rămâne în #order_review, iar
 * cardurile din pasul Livrare sunt proxy-uri accesibile peste controalele native. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .ew-checkout-native-shipping-source {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}


/* ===== Cart EW premium interior layout v1.1 ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout {
	width: 100%;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 32px;
	align-items: start;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
	width: 100%;
	float: none;
	min-width: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table {
	border: 0;
	margin: 0;
	background: transparent;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table thead {
	display: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
	display: grid;
	grid-template-columns: 34px 100px minmax(220px, 1fr) 154px 130px;
	gap: 22px;
	align-items: center;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	padding: 24px 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item:first-child {
	border-top: 1px solid rgba(0, 0, 0, .08);
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td {
	padding: 0;
	border: 0;
	background: transparent;
}

.checkout-shop-ew-cart.ew-cart-premium-layout td.product-remove {
	grid-column: 1;
}

.checkout-shop-ew-cart.ew-cart-premium-layout td.product-thumbnail {
	grid-column: 2;
}

.checkout-shop-ew-cart.ew-cart-premium-layout td.product-name {
	grid-column: 3;
}

.checkout-shop-ew-cart.ew-cart-premium-layout td.product-price {
	display: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout td.product-quantity {
	grid-column: 4;
}

.checkout-shop-ew-cart.ew-cart-premium-layout td.product-subtotal {
	grid-column: 5;
	text-align: right;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .product-thumbnail img {
	width: 100%;
	max-width: 100px;
	border-radius: 4px;
	display: block;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .product-name,
.checkout-shop-ew-cart.ew-cart-premium-layout .product-name a {
	font-size: 20px;
	line-height: 1.35;
	font-weight: 500;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .product-subtotal,
.checkout-shop-ew-cart.ew-cart-premium-layout .product-subtotal .amount {
	font-size: 18px;
	line-height: 1.35;
	font-weight: 500;
}

.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
	width: 28px;
	height: 28px;
	font-size: 18px;
	line-height: 28px;
	color: #1d1d1d !important;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, .18);
}

.checkout-shop-ew-cart.ew-cart-premium-layout .quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 2px;
	overflow: hidden;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty {
	width: 40px;
	height: 36px;
	padding: 0 6px;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-align: center;
	-moz-appearance: textfield;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty::-webkit-outer-spin-button,
.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #fff;
	color: #1d1d1d;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn.ew-qty-minus {
	border-right: 1px solid rgba(0, 0, 0, .15) !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn.ew-qty-plus {
	border-left: 1px solid rgba(0, 0, 0, .15) !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn:hover {
	background: rgba(0, 0, 0, .03);
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table td.actions {
	padding-top: 28px;
	border: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .coupon {
	justify-content: flex-start;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .coupon .input-text {
	min-height: 48px;
	padding: 0 16px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 28px 24px;
	background: #fafafa;
	border: 1px solid rgba(0, 0, 0, .08);
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals h2 {
	margin: 0 0 20px;
	font-size: 26px;
	line-height: 1.2;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
	padding: 16px 0;
	border-top: 0;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	background: transparent;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr:last-child th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr:last-child td {
	border-bottom: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .shipping-calculator-button {
	text-decoration: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .wc-proceed-to-checkout {
	padding-top: 18px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .wc-proceed-to-checkout .checkout-button {
	width: 100%;
	min-height: 54px;
	padding: 16px 18px;
	text-align: center;
	justify-content: center;
}

.checkout-shop-ew-cart.ew-cart-hide-extras .cross-sells,
.checkout-shop-ew-cart.ew-cart-hide-extras .cart-empty + .return-to-shop {
	display: none !important;
}

.checkout-shop-ew-cart.ew-cart-hide-extras .woocommerce > div:not(.woocommerce-notices-wrapper):not(.cart-collaterals),
.checkout-shop-ew-cart.ew-cart-hide-extras .woocommerce > section:not(.cart-collaterals),
.checkout-shop-ew-cart.ew-cart-hide-extras .woocommerce-cart-form > div,
.checkout-shop-ew-cart.ew-cart-hide-extras .woocommerce-cart-form > section {
	display: none !important;
}

@media (max-width: 1200px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 24px;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		grid-template-columns: 30px 88px minmax(180px, 1fr) 144px 120px;
		gap: 18px;
	}
}

@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce {
		grid-template-columns: 1fr;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		margin-top: 14px;
	}
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		display: grid;
		grid-template-columns: 70px minmax(0, 1fr);
		gap: 14px;
		padding: 18px 0;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-remove,
	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-thumbnail,
	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-name,
	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-quantity,
	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-subtotal {
		grid-column: auto;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-remove {
		grid-column: 2;
		justify-self: end;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-thumbnail {
		grid-column: 1;
		grid-row: 1 / span 3;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-name {
		grid-column: 2;
		grid-row: 1;
		text-align: left !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-quantity {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
		text-align: left !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout td.product-subtotal {
		grid-column: 2;
		grid-row: 3;
		text-align: left !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td::before {
		display: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .product-thumbnail img {
		max-width: 70px;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .product-name,
	.checkout-shop-ew-cart.ew-cart-premium-layout .product-name a {
		font-size: 18px;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty {
		width: 46px;
		height: 42px;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn {
		width: 42px;
		height: 42px;
		font-size: 20px;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .coupon {
		grid-template-columns: 1fr;
	}
}


/* ===== Cart EW premium interior layout v1.3 overrides ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 32px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form {
	flex: 1 1 auto;
	width: auto;
	max-width: calc(100% - 392px);
	min-width: 0;
	order: 1;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
	flex: 0 0 360px;
	width: 360px;
	max-width: 360px;
	min-width: 360px;
	margin: 0 0 0 auto;
	order: 2;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form__contents,
.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form__contents tbody {
	display: block;
	width: 100%;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tr,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table td,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table th {
	width: 100%;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
	display: grid !important;
	grid-template-columns: max-content var(--ew-cart-grid-image-size, var(--ew-cart-product-image-size, 72px)) minmax(0, 1fr) max-content max-content !important;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	padding: 26px 0;
	box-sizing: border-box;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td {
	display: block;
	width: auto;
	min-width: 0;
	text-align: left;
	vertical-align: middle;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
	max-width: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
	width: var(--ew-cart-product-image-size, 72px);
	max-width: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
	min-width: 0;
	padding-right: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
	max-width: none;
	justify-self: end;
	text-align: center;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
	max-width: none;
	justify-self: end;
	text-align: right;
	margin-left: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-price,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity::before,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal::before,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name::before,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove::before,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail::before {
	display: none !important;
	content: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .product-name .variation,
.checkout-shop-ew-cart.ew-cart-premium-layout .product-name .wc-item-meta,
.checkout-shop-ew-cart.ew-cart-premium-layout .product-name .product-quantity {
	font-size: 14px;
	line-height: 1.5;
	opacity: .85;
	margin-top: 6px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .product-name .variation dd,
.checkout-shop-ew-cart.ew-cart-premium-layout .product-name .variation dt {
	margin: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding-top: 24px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions .coupon {
	flex: 1 1 auto;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions > button,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions > .button {
	flex: 0 0 auto;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
	position: sticky;
	top: 20px;
}

.checkout-shop-ew-cart.ew-cart-hide-extras .cross-sells,
.checkout-shop-ew-cart.ew-cart-hide-extras [class*="gift"],
.checkout-shop-ew-cart.ew-cart-hide-extras [id*="gift"],
.checkout-shop-ew-cart.ew-cart-hide-extras [class*="cadou"],
.checkout-shop-ew-cart.ew-cart-hide-extras [id*="cadou"] {
	display: none !important;
}

@media (max-width: 1180px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		flex-basis: 320px;
		width: 320px;
		max-width: 320px;
		min-width: 320px;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form {
		max-width: calc(100% - 352px);
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		max-width: none;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		max-width: none;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		max-width: none;
	}
}

@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce {
		display: block !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		margin-top: 28px;
	}
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		position: relative;
		display: grid !important;
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 12px 16px;
		align-items: start;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		position: absolute;
		right: 0;
		top: 22px;
		max-width: none;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-column: 1;
		grid-row: 1 / span 3;
		max-width: 72px;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		grid-column: 2;
		max-width: 100%;
		text-align: left;
		margin-left: 0;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions {
		display: block !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions > .button,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions > button,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions .coupon,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions .coupon .input-text,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions .coupon .button {
		width: 100%;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr td.actions .coupon {
		margin-bottom: 12px;
	}
}

/* ===== Cart EW sidebar redesign v1.5 ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
	padding: 34px 40px;
	background: #f8f8f8;
	border: 0;
	box-shadow: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals h2 {
	display: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top {
	padding-bottom: 14px;
	margin-bottom: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list {
	margin: 0;
	padding-left: 22px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list li {
	margin: 0 0 18px;
	line-height: 1.65;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list li:last-child {
	margin-bottom: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table {
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
	padding: 26px 0;
	border: 0;
	border-bottom: 1px solid rgba(0, 0, 0, .10);
	vertical-align: top;
	background: transparent;
	font-weight: 400;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th {
	width: 58%;
	text-align: left;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
	width: 42%;
	text-align: right;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total td {
	padding-top: 28px;
	padding-bottom: 20px;
	border-bottom: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total strong,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total .amount {
	font-weight: 500;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .woocommerce-shipping-methods li {
	margin: 0;
	list-style: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .woocommerce-shipping-methods label {
	display: block;
	cursor: default;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .woocommerce-shipping-destination,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shipping-calculator-button,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shipping-calculator-form {
	display: block;
	margin-top: 10px;
	text-align: left;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row td,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-gift-row td {
	text-align: left;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .92em;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-plus {
	font-size: 20px;
	line-height: 1;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content {
	display: none;
	padding-top: 16px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content.is-open {
	display: block;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .coupon {
	display: block;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .coupon .input-text,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .coupon .button {
	width: 100%;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .coupon .input-text {
	margin-bottom: 10px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form td.actions .coupon {
	display: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-gift-row th,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-gift-row td {
	padding-top: 22px;
	padding-bottom: 22px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-gift-text {
	line-height: 1.6;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .tax-rate td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .order-total small.includes_tax {
	display: block;
	margin-top: 8px;
	text-align: left;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .wc-proceed-to-checkout {
	padding-top: 16px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .wc-proceed-to-checkout .checkout-button {
	width: 100%;
	min-height: 56px;
	padding: 16px 20px;
	border-radius: 0;
	text-align: center;
	justify-content: center;
	line-height: 1.3;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding-top: 16px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-secure-icon {
	font-size: 14px;
	line-height: 1;
}

@media (max-width: 1180px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
		padding: 30px 28px;
	}
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
		padding: 26px 22px;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		padding: 20px 0;
	}
}


/* ===== Cart EW fixes v1.6 ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce {
	display: flex !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
	color: inherit;
	background: transparent;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .quantity {
	display: inline-flex !important;
	align-items: center;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .quantity.ew-qty-ready input.qty {
	display: inline-flex !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity .quantity {
	white-space: nowrap;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-secure:empty {
	display: none !important;
}

@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}


/* ===== Cart EW info text/icons and grouped controls v1.7 ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list {
	list-style: none;
	padding-left: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: .2em;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-icon svg,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-icon i {
	display: block;
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-text {
	display: inline-block;
	min-width: 0;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .checkout-button.button.alt.wc-forward {
	white-space: normal;
}


/* ===== Cart EW empty cart, shipping cleanup and auto update v1.8 ===== */
.checkout-shop-ew-cart.ew-cart-is-empty {
	background: #f8f8f8;
	padding: 40px 36px;
}

.checkout-shop-ew-cart .ew-cart-empty-state {
	width: 100%;
}

.checkout-shop-ew-cart .ew-cart-empty-title {
	margin: 0 0 10px;
	line-height: 1.25;
	font-size: 28px;
	font-weight: 400;
}

.checkout-shop-ew-cart .ew-cart-empty-subtitle {
	margin: 0 0 26px;
	line-height: 1.5;
}

.checkout-shop-ew-cart .ew-cart-empty-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 26px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form button[name="update_cart"] {
	display: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .woocommerce-shipping-destination,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shipping-calculator-button,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shipping-calculator-form {
	display: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals td {
	text-align: right;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping td ul,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals td ul {
	display: inline-block;
	text-align: right;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping td ul li,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals td ul li {
	text-align: right;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping input,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals input {
	display: none !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-is-empty {
		padding: 30px 22px;
	}

	.checkout-shop-ew-cart .ew-cart-empty-title {
		font-size: 24px;
	}
}


/* ===== Cart EW hide WooCommerce notices and force shipping label v2.0 ===== */
.checkout-shop-ew-cart .woocommerce-notices-wrapper,
.checkout-shop-ew-cart .woocommerce-message,
.checkout-shop-ew-cart .woocommerce-info,
.checkout-shop-ew-cart .woocommerce-error {
	display: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals th {
	white-space: normal;
}


/* ===== Cart EW v2.1 dynamic empty cart and mini cart sync ===== */
.checkout-shop-ew-cart.ew-cart-is-empty .woocommerce,
.checkout-shop-ew-cart.ew-cart-is-empty .woocommerce-cart-form,
.checkout-shop-ew-cart.ew-cart-is-empty .cart-collaterals {
	display: none !important;
}

.checkout-shop-ew-cart.ew-cart-is-empty .ew-cart-empty-state {
	display: block !important;
}

.checkout-shop-ew-cart .ew-cart-empty-button:hover {
	text-decoration: none;
}


/* ===== Cart EW v2.2 delivery fee row and hidden native shipping row ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals {
	display: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.fee th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.fee td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.checkout-shop-ew-delivery-row th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.checkout-shop-ew-delivery-row td {
	padding: 26px 0;
	border-bottom: 1px solid rgba(0, 0, 0, .10);
	background: transparent;
	font-weight: 400;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.fee td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.checkout-shop-ew-delivery-row td {
	text-align: right;
}


/* ===== Cart EW v2.3 responsive, remove icon, gift removal ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-gift-row {
	display: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	font-size: 0 !important;
	border-radius: 999px;
	box-sizing: border-box;
}

.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon::before,
.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon::after,
.checkout-shop-ew-cart.ew-cart-premium-layout a.remove::before,
.checkout-shop-ew-cart.ew-cart-premium-layout a.remove::after {
	content: none !important;
	display: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout a.remove svg.ew-cart-remove-svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
	color: currentColor;
	pointer-events: none;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list li {
	align-items: center;
}

/* Tablet: sidebar-ul nu mai vine peste produs. */
@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce {
		display: block !important;
		width: 100% !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: 0 0 100% !important;
		flex-basis: 100% !important;
		margin-left: 0 !important;
		box-sizing: border-box;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		margin-top: 28px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		display: grid !important;
		grid-template-columns: max-content var(--ew-cart-grid-image-size, var(--ew-cart-product-image-size, 72px)) minmax(0, 1fr) max-content max-content !important;
		gap: 12px !important;
		width: 100% !important;
	}
}

/* Mobil: produsul devine card, sidebar sub produs. */
@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout {
		overflow-x: hidden;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		position: relative;
		display: grid !important;
		grid-template-columns: 72px minmax(0, 1fr) !important;
		grid-template-areas:
			"image name"
			"image qty"
			"image price" !important;
		gap: 12px 14px !important;
		align-items: start !important;
		padding: 20px 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		position: absolute !important;
		top: 16px !important;
		right: 0 !important;
		width: auto !important;
		max-width: none !important;
		z-index: 3;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-area: image !important;
		width: 72px !important;
		max-width: 72px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		grid-area: name !important;
		width: auto !important;
		max-width: 100% !important;
		padding-right: 34px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		grid-area: qty !important;
		width: auto !important;
		max-width: 100% !important;
		justify-self: start !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		grid-area: price !important;
		width: auto !important;
		max-width: 100% !important;
		text-align: left !important;
		margin-left: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
		padding: 24px 18px !important;
	}
}


/* ===== Cart EW v2.5 remove icon custom media and column backgrounds ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form {
	box-sizing: border-box;
}

.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon img.ew-cart-remove-img,
.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap,
.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap i,
.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap svg {
	display: block;
	width: 16px;
	height: 16px;
	line-height: 1;
	object-fit: contain;
	fill: currentColor;
	color: currentColor;
}

.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon {
	border-color: transparent;
	border-style: solid;
	border-width: 0;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon:hover {
	text-decoration: none;
}


/* ===== Cart EW v2.6 mobile layout refinement ===== */
@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout {
		padding: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form {
		padding: 0 14px 16px !important;
		background-clip: padding-box;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		padding: 0 14px 14px !important;
		margin-top: 16px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
		padding: 22px 18px !important;
		border-radius: 0 !important;
	}

	/* Produsul în coș */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		grid-template-columns: 76px minmax(0, 1fr) !important;
		grid-template-areas:
			"image name"
			"image qty"
			"image price" !important;
		gap: 10px 14px !important;
		padding: 18px 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		padding-top: 0 !important;
		padding-right: 38px !important;
		line-height: 1.35 !important;
		word-break: break-word !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name a {
		display: block !important;
		line-height: 1.35 !important;
		word-break: break-word !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: 76px !important;
		height: auto !important;
		display: block !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		padding-top: 2px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		padding-top: 2px !important;
		line-height: 1.3 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		top: 10px !important;
		right: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: 34px !important;
		height: 34px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity {
		gap: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn {
		width: 34px !important;
		height: 34px !important;
		font-size: 20px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty {
		width: 46px !important;
		height: 34px !important;
		text-align: center !important;
	}

	/* Zona din dreapta */
	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list {
		padding-left: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list li {
		display: grid !important;
		grid-template-columns: 18px minmax(0, 1fr) !important;
		gap: 10px !important;
		align-items: start !important;
		margin-bottom: 14px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-media {
		width: 18px !important;
		height: 18px !important;
		transform: none !important;
		margin-top: 3px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-text {
		line-height: 1.5 !important;
		word-break: break-word !important;
	}

	/* Totaluri: păstrăm două coloane clare */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table {
		table-layout: fixed !important;
		width: 100% !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr {
		display: table-row !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row td {
		display: table-cell !important;
		vertical-align: middle !important;
		padding: 18px 0 !important;
		line-height: 1.35 !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
		white-space: normal !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row th {
		width: 48% !important;
		padding-right: 12px !important;
		text-align: left !important;
		font-weight: 600 !important;
		word-break: keep-all !important;
		hyphens: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row td {
		width: 52% !important;
		text-align: right !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td .amount,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee td .amount,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total td .amount {
		white-space: nowrap !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .wc-proceed-to-checkout {
		padding-top: 12px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .wc-proceed-to-checkout .checkout-button {
		min-height: 52px !important;
		padding: 14px 16px !important;
		line-height: 1.35 !important;
		white-space: normal !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-secure {
		padding-top: 14px !important;
	}
}


/* ===== Cart EW v2.7 tablet/mobile fixes ===== */

/* Reset and optimize responsive behavior on tablet and mobile */
@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout {
		overflow: hidden !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce,
	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
		float: none !important;
		clear: both !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		flex: none !important;
		flex-basis: 100% !important;
		box-sizing: border-box !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		margin-top: 24px !important;
		margin-left: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table {
		table-layout: fixed !important;
		width: 100% !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table td,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table th {
		box-sizing: border-box !important;
	}
}

/* Better totals layout on tablet */
@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot tr {
		display: grid !important;
		grid-template-columns: minmax(120px, 1fr) auto !important;
		align-items: center !important;
		column-gap: 16px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		display: block !important;
		width: auto !important;
		max-width: none !important;
		padding: 18px 0 !important;
		margin: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th {
		text-align: left !important;
		font-weight: 600 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		text-align: right !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shop_table_responsive td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shop_table_responsive th::before {
		display: none !important;
		content: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td .amount,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td strong,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td small,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td span {
		float: none !important;
		display: inline !important;
		white-space: nowrap !important;
	}
}

/* Mobile layout refined carefully */
@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout {
		padding: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form {
		padding: 0 12px 14px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
		padding: 0 12px 12px !important;
		margin-top: 14px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals .cart_totals {
		padding: 18px 16px !important;
	}

	/* Product list on mobile */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table thead {
		display: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		position: relative !important;
		display: grid !important;
		grid-template-columns: 72px minmax(0, 1fr) !important;
		grid-template-areas:
			"image name"
			"image qty"
			"image price" !important;
		align-items: start !important;
		gap: 10px 12px !important;
		padding: 16px 0 !important;
		width: 100% !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td {
		display: block !important;
		width: auto !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item th::before {
		display: none !important;
		content: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		position: absolute !important;
		top: 8px !important;
		right: 0 !important;
		z-index: 3 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-area: image !important;
		width: 72px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: 72px !important;
		max-width: 72px !important;
		display: block !important;
		height: auto !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		grid-area: name !important;
		padding-right: 40px !important;
		line-height: 1.35 !important;
		word-break: break-word !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name a {
		display: block !important;
		line-height: 1.35 !important;
		word-break: break-word !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		grid-area: qty !important;
		padding-top: 2px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		grid-area: price !important;
		text-align: left !important;
		line-height: 1.3 !important;
		padding-top: 2px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: 32px !important;
		height: 32px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn {
		width: 32px !important;
		height: 32px !important;
		font-size: 18px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty {
		width: 44px !important;
		height: 32px !important;
		text-align: center !important;
	}

	/* Info texts */
	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list {
		padding-left: 0 !important;
		margin: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top-list li {
		display: grid !important;
		grid-template-columns: 18px minmax(0, 1fr) !important;
		align-items: start !important;
		column-gap: 10px !important;
		row-gap: 0 !important;
		margin-bottom: 12px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-media {
		width: 18px !important;
		height: 18px !important;
		margin-top: 3px !important;
		transform: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-info-text {
		line-height: 1.5 !important;
		word-break: break-word !important;
	}

	/* Totals on mobile: one label + one value, no duplication */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table {
		table-layout: fixed !important;
		width: 100% !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot tr {
		display: grid !important;
		grid-template-columns: minmax(110px, 1fr) auto !important;
		align-items: center !important;
		column-gap: 14px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		display: block !important;
		width: auto !important;
		padding: 16px 0 !important;
		margin: 0 !important;
		border-bottom-width: 1px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th {
		text-align: left !important;
		line-height: 1.35 !important;
		font-weight: 600 !important;
		word-break: keep-all !important;
		overflow-wrap: normal !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		text-align: right !important;
		line-height: 1.35 !important;
		white-space: nowrap !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shop_table_responsive td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shop_table_responsive th::before {
		display: none !important;
		content: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td .amount,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td strong,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td span,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td small {
		display: inline !important;
		float: none !important;
		white-space: nowrap !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .wc-proceed-to-checkout .checkout-button {
		min-height: 50px !important;
		padding: 14px 16px !important;
		line-height: 1.35 !important;
		white-space: normal !important;
		text-align: center !important;
	}
}


/* ===== Cart EW v2.8 mobile/tablet alignment fixes ===== */

/* tablet totals alignment refinement */
@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot tr {
		grid-template-columns: minmax(130px, 1fr) max-content !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th {
		min-width: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		min-width: max-content !important;
	}
}

/* mobile: product in 2 logical rows and clean totals */
@media (max-width: 767px) {
	/* product row: row1 = image + name + remove, row2 = image + quantity, row3 = image + price */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		grid-template-columns: 64px minmax(0, 1fr) 36px !important;
		grid-template-areas:
			"image name remove"
			"image qty qty"
			"image price price" !important;
		column-gap: 12px !important;
		row-gap: 10px !important;
		align-items: start !important;
		padding: 16px 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-area: image !important;
		width: 64px !important;
		max-width: 64px !important;
		align-self: start !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: 64px !important;
		max-width: 64px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		grid-area: name !important;
		padding-right: 0 !important;
		align-self: start !important;
		text-align: left !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		grid-area: remove !important;
		position: static !important;
		top: auto !important;
		right: auto !important;
		width: 36px !important;
		justify-self: end !important;
		align-self: start !important;
		display: flex !important;
		justify-content: flex-end !important;
		align-items: flex-start !important;
		z-index: 1 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: 32px !important;
		height: 32px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		grid-area: qty !important;
		display: flex !important;
		justify-content: flex-start !important;
		align-items: center !important;
		padding-top: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		grid-area: price !important;
		text-align: left !important;
		display: block !important;
		padding-top: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity {
		display: inline-flex !important;
		align-items: center !important;
		gap: 0 !important;
	}

	/* totals: exactly 2 columns, text left / value right */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.checkout-shop-ew-delivery-row,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total {
		display: grid !important;
		grid-template-columns: minmax(122px, 1fr) max-content !important;
		column-gap: 12px !important;
		align-items: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total td {
		display: block !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		padding: 16px 0 !important;
		margin: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total th {
		text-align: left !important;
		line-height: 1.35 !important;
		font-weight: 600 !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
		hyphens: none !important;
		white-space: normal !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total td {
		text-align: right !important;
		line-height: 1.35 !important;
		white-space: nowrap !important;
		min-width: max-content !important;
		justify-self: end !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td .amount,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td strong,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td span,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td small {
		display: inline !important;
		float: none !important;
		white-space: nowrap !important;
		word-break: normal !important;
	}

	/* no extra generated labels */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shop_table_responsive td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shop_table_responsive th::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table th::before {
		display: none !important;
		content: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .wc-proceed-to-checkout .checkout-button {
		width: 100% !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
}


/* ===== Cart EW v2.9 mobile product/totals cleanup ===== */
@media (max-width: 767px) {
	/* produsul: rand 1 = poza + nume, rand 2 = sterge + cantitate + pret */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		position: relative !important;
		display: grid !important;
		grid-template-columns: 64px minmax(0, 1fr) !important;
		grid-template-areas:
			"image name"
			"controls controls" !important;
		row-gap: 12px !important;
		column-gap: 12px !important;
		align-items: start !important;
		padding: 16px 0 !important;
		border-bottom: 1px solid rgba(0,0,0,.12) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td {
		border: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-area: image !important;
		width: 64px !important;
		max-width: 64px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: 64px !important;
		max-width: 64px !important;
		height: auto !important;
		display: block !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		grid-area: name !important;
		padding-right: 0 !important;
		text-align: left !important;
		align-self: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name a {
		display: block !important;
		line-height: 1.35 !important;
		word-break: break-word !important;
	}

	/* randul 2 unificat */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		grid-area: controls !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		position: static !important;
		width: auto !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		vertical-align: middle !important;
		margin-right: 12px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		display: inline-flex !important;
		align-items: center !important;
		vertical-align: middle !important;
		margin-right: 12px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		float: right !important;
		text-align: right !important;
		min-width: max-content !important;
	}

	/* transformam randul controls intr-o bara flex */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		padding-top: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		order: 1;
	}
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		order: 2;
	}
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		order: 3;
		margin-left: auto !important;
	}

	/* container vizual pentru randul 2 */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove::after {
		content: "" !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		position: relative !important;
		z-index: 1 !important;
	}

	/* Wrap cele 3 elemente pe același rand prin display contents pe celula generica nu e posibil; folosim layout comun */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		grid-auto-flow: row !important;
	}
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		margin-top: 0 !important;
	}
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		margin-left: 48px !important;
	}
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		margin-top: -32px !important;
		padding-left: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: 32px !important;
		height: 32px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn {
		width: 32px !important;
		height: 32px !important;
		font-size: 18px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty {
		width: 44px !important;
		height: 32px !important;
		text-align: center !important;
	}

	/* totaluri: separatoare continue, fără întreruperi */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot {
		width: 100% !important;
		border-collapse: collapse !important;
		border-spacing: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.checkout-shop-ew-delivery-row,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total {
		display: grid !important;
		grid-template-columns: minmax(120px, 1fr) max-content !important;
		column-gap: 12px !important;
		align-items: center !important;
		position: relative !important;
		border-bottom: 1px solid rgba(0,0,0,.12) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody tr::after,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot tr::after {
		display: none !important;
		content: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .fee td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .checkout-shop-ew-delivery-row td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table .order-total td {
		padding: 16px 0 !important;
		border: 0 !important;
		background: transparent !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		justify-self: end !important;
		text-align: right !important;
		white-space: nowrap !important;
		min-width: max-content !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td .amount,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td strong,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td span,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td small {
		white-space: nowrap !important;
		display: inline !important;
	}

	/* primul separator de sus continuu */
	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top {
		border-bottom-width: 1px !important;
	}
}


/* ===== Cart EW v3.0 final mobile product row and clean separators ===== */
@media (max-width: 767px) {
	/* Rândul 1: poză + nume produs */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		display: grid !important;
		grid-template-columns: 64px minmax(0, 1fr) !important;
		grid-template-areas:
			"image name"
			"actions actions" !important;
		column-gap: 12px !important;
		row-gap: 12px !important;
		align-items: center !important;
		padding: 16px 0 !important;
		border-bottom-style: solid !important;
		border-bottom-width: 1px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-area: image !important;
		width: 64px !important;
		max-width: 64px !important;
		align-self: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: 64px !important;
		max-width: 64px !important;
		height: auto !important;
		display: block !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		grid-area: name !important;
		padding: 0 !important;
		text-align: left !important;
		align-self: center !important;
		word-break: break-word !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name a {
		display: block !important;
		line-height: 1.35 !important;
		word-break: break-word !important;
	}

	/* Rândul 2: icon ștergere + valoare produs + selector */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		grid-area: actions !important;
		position: static !important;
		top: auto !important;
		right: auto !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		align-self: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		justify-self: start !important;
		z-index: 1 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		justify-self: center !important;
		text-align: center !important;
		white-space: nowrap !important;
		min-width: max-content !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		justify-self: end !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: 32px !important;
		height: 32px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn {
		width: 32px !important;
		height: 32px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty {
		width: 44px !important;
		height: 32px !important;
		text-align: center !important;
	}

	/* Totaluri: separatoare continue pe toată lățimea */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot {
		display: block !important;
		width: 100% !important;
		border-collapse: collapse !important;
		border-spacing: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.checkout-shop-ew-delivery-row,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) max-content !important;
		column-gap: 14px !important;
		align-items: center !important;
		width: 100% !important;
		border-bottom-style: solid !important;
		border-bottom-width: 1px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.checkout-shop-ew-delivery-row th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.checkout-shop-ew-delivery-row td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total td {
		display: block !important;
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		padding: 16px 0 !important;
		margin: 0 !important;
		border: 0 !important;
		background: transparent !important;
		line-height: 1.35 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.checkout-shop-ew-delivery-row th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total th {
		justify-self: start !important;
		text-align: left !important;
		font-weight: 600 !important;
		white-space: normal !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
		hyphens: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.checkout-shop-ew-delivery-row td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total td {
		justify-self: end !important;
		text-align: right !important;
		white-space: nowrap !important;
		min-width: max-content !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shop_table_responsive td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals .shop_table_responsive th::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table td::before,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table th::before {
		display: none !important;
		content: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td .amount,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td strong,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td span,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td small {
		display: inline !important;
		float: none !important;
		white-space: nowrap !important;
	}
}


/* ===== Cart EW v3.1 cleanup empty row, mobile actions order, separator color ===== */

/* elimină rândul gol de acțiuni WooCommerce de sub produse */
.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form table.shop_table td.actions,
.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form table.shop_table tr:has(td.actions),
.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form__contents tbody > tr:last-child:not(.cart_item) {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* separatoarele preiau culoarea din Elementor */
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
	border-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr {
	border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
	border-bottom-style: solid !important;
}

/* mobil: rând 1 poză + nume; rând 2 ștergere + selector + valoare */
@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		display: grid !important;
		grid-template-columns: 64px minmax(0, 1fr) !important;
		grid-template-areas:
			"image name"
			"actions actions" !important;
		column-gap: 12px !important;
		row-gap: 12px !important;
		align-items: center !important;
		padding: 16px 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-area: image !important;
		width: 64px !important;
		max-width: 64px !important;
		align-self: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: 64px !important;
		max-width: 64px !important;
		height: auto !important;
		display: block !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		grid-area: name !important;
		padding: 0 !important;
		text-align: left !important;
		align-self: center !important;
		word-break: break-word !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		grid-area: actions !important;
		position: static !important;
		top: auto !important;
		right: auto !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		align-self: center !important;
	}

	/* folosesc poziții clare pe același rând:
	   stânga = ștergere, centru = selector, dreapta = valoare */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		justify-self: start !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		justify-self: center !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		justify-self: end !important;
		text-align: right !important;
		white-space: nowrap !important;
		min-width: max-content !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: 32px !important;
		height: 32px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-qty-btn {
		width: 32px !important;
		height: 32px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity .qty {
		width: 44px !important;
		height: 32px !important;
		text-align: center !important;
	}

	/* totaluri mobile: separatoare continue */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr {
		border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
		border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
		border-bottom-style: solid !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		border: 0 !important;
	}
}


/* ===== Cart EW v3.2 final mobile row 2 + separator color ===== */

/* separatoare: forțare finală cu variabila setată din Elementor */
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
	border-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr {
	border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
	border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
	border-bottom-style: solid !important;
}

@media (max-width: 767px) {
	/* produs pe mobil:
	   rând 1: poza + nume produs
	   rând 2: ștergere + selector cantitate + valoare produs */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		display: grid !important;
		grid-template-columns: 40px minmax(0, 1fr) max-content !important;
		grid-template-areas:
			"image name name"
			"remove qty price" !important;
		column-gap: var(--ew-cart-mobile-actions-gap, 12px) !important;
		row-gap: 12px !important;
		align-items: center !important;
		width: 100% !important;
		padding: 16px 0 !important;
		border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
		border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
		border-bottom-style: solid !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td {
		border: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-area: image !important;
		width: 40px !important;
		max-width: 40px !important;
		justify-self: start !important;
		align-self: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: 40px !important;
		max-width: 40px !important;
		height: auto !important;
		display: block !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		grid-area: name !important;
		padding: 0 !important;
		text-align: left !important;
		justify-self: start !important;
		align-self: center !important;
		min-width: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name a {
		display: block !important;
		line-height: 1.35 !important;
		word-break: break-word !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		grid-area: remove !important;
		position: static !important;
		top: auto !important;
		right: auto !important;
		width: auto !important;
		max-width: none !important;
		justify-self: start !important;
		align-self: var(--ew-cart-mobile-actions-align, center) !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		z-index: 1 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		grid-area: qty !important;
		position: static !important;
		width: auto !important;
		max-width: 100% !important;
		justify-self: center !important;
		align-self: var(--ew-cart-mobile-actions-align, center) !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-width: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		grid-area: price !important;
		position: static !important;
		width: auto !important;
		max-width: none !important;
		justify-self: end !important;
		align-self: var(--ew-cart-mobile-actions-align, center) !important;
		text-align: right !important;
		white-space: nowrap !important;
		min-width: max-content !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .quantity {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: 32px !important;
		height: 32px !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	/* totaluri mobile: linie continuă, culoare din setare */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.checkout-shop-ew-delivery-row,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total {
		border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
		border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
		border-bottom-style: solid !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
		border: 0 !important;
	}
}


/* ===== Cart EW v3.3 mobile row 1 controls + remove button size fix ===== */
@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		column-gap: var(--ew-cart-mobile-row1-gap, 12px) !important;
		align-items: var(--ew-cart-mobile-row1-align, center) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		align-self: var(--ew-cart-mobile-row1-align, center) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		align-self: var(--ew-cart-mobile-actions-align, center) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: var(--ew-cart-remove-button-size, 32px) !important;
		height: var(--ew-cart-remove-button-size, 32px) !important;
		min-width: var(--ew-cart-remove-button-size, 32px) !important;
		min-height: var(--ew-cart-remove-button-size, 32px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon svg.ew-cart-remove-svg,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon img.ew-cart-remove-img,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap i,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap svg {
		width: var(--ew-cart-remove-icon-size, 16px) !important;
		height: var(--ew-cart-remove-icon-size, 16px) !important;
	}

	/* păstrez distanța rândului 2 fără să afectez distanța poză/nume */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		grid-template-columns: var(--ew-cart-remove-button-size, 32px) minmax(0, 1fr) max-content !important;
	}
}


/* ===== Cart EW v3.4 row 2 spacing + final separator fix ===== */

/* forțare generală pentru toate liniile posibile din totaluri */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tbody,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tfoot,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total td,
.checkout-shop-ew-cart.ew-cart-premium-layout .checkout-shop-ew-delivery-row,
.checkout-shop-ew-cart.ew-cart-premium-layout .checkout-shop-ew-delivery-row th,
.checkout-shop-ew-cart.ew-cart-premium-layout .checkout-shop-ew-delivery-row td {
	border-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total,
.checkout-shop-ew-cart.ew-cart-premium-layout .checkout-shop-ew-delivery-row {
	border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
	border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
	border-bottom-style: solid !important;
}

/* elimină liniile interioare care dublau sau păstrau culoarea veche */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td {
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
	border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
}

/* mobil: rândul 1 și rândul 2 au distanțe separate */
@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		grid-template-columns: var(--ew-cart-remove-button-size, 32px) minmax(0, 1fr) max-content !important;
		grid-template-areas:
			"image name name"
			"remove qty price" !important;
		column-gap: 0 !important;
		row-gap: 12px !important;
		align-items: center !important;
	}

	/* rândul 1: distanță doar între poză și nume */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		grid-area: image !important;
		width: var(--ew-cart-remove-button-size, 32px) !important;
		max-width: var(--ew-cart-remove-button-size, 32px) !important;
		justify-self: start !important;
		align-self: var(--ew-cart-mobile-row1-align, center) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: var(--ew-cart-remove-button-size, 32px) !important;
		max-width: var(--ew-cart-remove-button-size, 32px) !important;
		height: auto !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		grid-area: name !important;
		margin-left: var(--ew-cart-mobile-row1-gap, 12px) !important;
		align-self: var(--ew-cart-mobile-row1-align, center) !important;
		min-width: 0 !important;
	}

	/* rândul 2: distanță independentă între ștergere / selector / valoare */
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove {
		grid-area: remove !important;
		justify-self: start !important;
		align-self: var(--ew-cart-mobile-actions-align, center) !important;
		width: var(--ew-cart-remove-button-size, 32px) !important;
		max-width: var(--ew-cart-remove-button-size, 32px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		grid-area: qty !important;
		justify-self: start !important;
		align-self: var(--ew-cart-mobile-actions-align, center) !important;
		margin-left: var(--ew-cart-mobile-actions-gap, 12px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		grid-area: price !important;
		justify-self: end !important;
		align-self: var(--ew-cart-mobile-actions-align, center) !important;
		margin-left: var(--ew-cart-mobile-actions-gap, 12px) !important;
		text-align: right !important;
		white-space: nowrap !important;
		min-width: max-content !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: var(--ew-cart-remove-button-size, 32px) !important;
		height: var(--ew-cart-remove-button-size, 32px) !important;
		min-width: var(--ew-cart-remove-button-size, 32px) !important;
		min-height: var(--ew-cart-remove-button-size, 32px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon svg.ew-cart-remove-svg,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon img.ew-cart-remove-img,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap i,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap svg {
		width: var(--ew-cart-remove-icon-size, 16px) !important;
		height: var(--ew-cart-remove-icon-size, 16px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total,
	.checkout-shop-ew-cart.ew-cart-premium-layout .checkout-shop-ew-delivery-row {
		border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
		border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
		border-bottom-style: solid !important;
	}
}


/* ===== Cart EW v3.5 frontend row 2 control priority ===== */
@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-remove,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity,
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		align-self: var(--ew-cart-mobile-actions-align, center) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		margin-left: var(--ew-cart-mobile-actions-gap, 12px) !important;
		margin-right: var(--ew-cart-mobile-actions-gap, 12px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		margin-left: var(--ew-cart-mobile-actions-gap, 12px) !important;
	}
}


/* ===== Cart EW v3.6 product image size frontend fix ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .product-thumbnail,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
	width: var(--ew-cart-product-image-size, auto) !important;
	max-width: var(--ew-cart-product-image-size, none) !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .product-thumbnail img,
.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
	width: var(--ew-cart-product-image-size, auto) !important;
	max-width: var(--ew-cart-product-image-size, 100%) !important;
	height: auto !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		grid-template-columns: var(--ew-cart-product-image-size, 40px) minmax(0, 1fr) max-content !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		width: var(--ew-cart-product-image-size, 40px) !important;
		max-width: var(--ew-cart-product-image-size, 40px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: var(--ew-cart-product-image-size, 40px) !important;
		max-width: var(--ew-cart-product-image-size, 40px) !important;
		height: auto !important;
		display: block !important;
	}
}


/* ===== Cart EW v3.7 real frontend responsive variables ===== */
@media (max-width: 1024px) and (min-width: 768px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout {
		--ew-cart-mobile-actions-gap: var(--ew-cart-mobile-actions-gap-tablet, var(--ew-cart-mobile-actions-gap, 12px));
		--ew-cart-mobile-row1-gap: var(--ew-cart-mobile-row1-gap-tablet, var(--ew-cart-mobile-row1-gap, 12px));
		--ew-cart-product-image-size: var(--ew-cart-product-image-size-tablet, var(--ew-cart-product-image-size, 64px));
		--ew-cart-remove-button-size: var(--ew-cart-remove-button-size-tablet, var(--ew-cart-remove-button-size, 32px));
		--ew-cart-remove-icon-size: var(--ew-cart-remove-icon-size-tablet, var(--ew-cart-remove-icon-size, 16px));
	}
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout {
		--ew-cart-mobile-actions-gap: var(--ew-cart-mobile-actions-gap-mobile, var(--ew-cart-mobile-actions-gap, 12px));
		--ew-cart-mobile-row1-gap: var(--ew-cart-mobile-row1-gap-mobile, var(--ew-cart-mobile-row1-gap, 12px));
		--ew-cart-product-image-size: var(--ew-cart-product-image-size-mobile, var(--ew-cart-product-image-size, 40px));
		--ew-cart-remove-button-size: var(--ew-cart-remove-button-size-mobile, var(--ew-cart-remove-button-size, 32px));
		--ew-cart-remove-icon-size: var(--ew-cart-remove-icon-size-mobile, var(--ew-cart-remove-icon-size, 16px));
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item {
		grid-template-columns: var(--ew-cart-product-image-size, 40px) minmax(0, 1fr) max-content !important;
		column-gap: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail {
		width: var(--ew-cart-product-image-size, 40px) !important;
		max-width: var(--ew-cart-product-image-size, 40px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-thumbnail img {
		width: var(--ew-cart-product-image-size, 40px) !important;
		max-width: var(--ew-cart-product-image-size, 40px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-name {
		margin-left: var(--ew-cart-mobile-row1-gap, 12px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-quantity {
		margin-left: var(--ew-cart-mobile-actions-gap, 12px) !important;
		margin-right: var(--ew-cart-mobile-actions-gap, 12px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item td.product-subtotal {
		margin-left: var(--ew-cart-mobile-actions-gap, 12px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove {
		width: var(--ew-cart-remove-button-size, 32px) !important;
		height: var(--ew-cart-remove-button-size, 32px) !important;
		min-width: var(--ew-cart-remove-button-size, 32px) !important;
		min-height: var(--ew-cart-remove-button-size, 32px) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon svg.ew-cart-remove-svg,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon img.ew-cart-remove-img,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap i,
	.checkout-shop-ew-cart.ew-cart-premium-layout a.remove.ew-cart-remove-icon .ew-cart-remove-elementor-icon-wrap svg {
		width: var(--ew-cart-remove-icon-size, 16px) !important;
		height: var(--ew-cart-remove-icon-size, 16px) !important;
	}
}





/* ===== Checkout EW v5.1 clean consolidated layout ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout *::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout *::after {
	box-sizing: border-box;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout.woocommerce-checkout {
	display: grid !important;
	grid-template-columns: minmax(0, var(--ew-checkout-left-width, 62%)) minmax(260px, var(--ew-checkout-right-width, 38%)) !important;
	gap: var(--ew-checkout-columns-gap, 32px) !important;
	align-items: start !important;
	width: 100% !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-left {
	grid-column: 1 !important;
	grid-row: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	align-self: start !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column {
	grid-column: 2 !important;
	grid-row: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	align-self: start !important;
	margin: 0 !important;
	padding: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .col2-set,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .col-1,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .col2-set {
	margin: 0 !important;
}

/* Titluri generate direct de plugin, nu din WooCommerce */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields > h3,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review_heading,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-forced-details-title,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-forced-review-title {
	display: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step-title {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 0 22px !important;
	padding: 0 0 18px !important;
	line-height: 1.25 !important;
	color: var(--ew-checkout-title-color, inherit) !important;
	background: transparent !important;
	border-bottom-color: var(--ew-checkout-title-separator-color, rgba(0,0,0,.12)) !important;
	border-bottom-width: var(--ew-checkout-title-separator-width, 1px) !important;
	border-bottom-style: solid !important;
	text-indent: 0 !important;
	transform: none !important;
	clip: auto !important;
	overflow: visible !important;
	box-sizing: border-box !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields::before {
	content: "Detalii comandă" !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column::before {
	content: "Rezumat comandă" !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step-title {
	margin-top: 0 !important;
}

/* Structura formularului */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 24px;
	padding: 28px;
	background: #fff;
	border: 1px solid rgba(0,0,0,.12);
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout form .form-row {
	display: block;
	margin: 0 0 22px;
	padding: 0;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout form .form-row-first,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form .form-row-last {
	width: calc(50% - 10px);
	float: left;
	clear: none;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout form .form-row-first {
	margin-right: 20px;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout form .form-row-wide {
	width: 100%;
	clear: both;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout form .form-row label {
	display: block;
	margin-bottom: 8px;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input.input-text,
.checkout-shop-ew-checkout.ew-checkout-modern-layout textarea,
.checkout-shop-ew-checkout.ew-checkout-modern-layout select,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .select2-container .select2-selection--single {
	width: 100%;
	min-height: 42px;
	box-sizing: border-box;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .select2-container {
	width: 100% !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-hidden-field {
	display: none !important;
}

/* Persoană fizică/juridică */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-field .woocommerce-input-wrapper {
	display: block !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-field select {
	width: 100% !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-fizica .ew-company-field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-fizica #billing_company_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-fizica #billing_company_cif_field {
	display: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica .ew-company-field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica #billing_company_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica #billing_company_cif_field {
	display: block !important;
}

/* Buton salvare detalii */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-save-details {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 14px 28px;
	border: 0;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .06em;
}

/* Pași Livrare / Plată */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step.is-locked .ew-checkout-step-content {
	display: none;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step.is-open .ew-checkout-step-content {
	display: block;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card {
	padding: 18px 20px;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-details {
	line-height: 1.6;
	margin-bottom: 14px;
}

/* Checkout EW v7.6: rezumat Date client structurat pe etichetă + valoare */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-details {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 0;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-label,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-value {
	display: block;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-label {
	font-weight: 600;
	line-height: 1.25;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-value {
	line-height: 1.5;
	overflow-wrap: anywhere;
	word-break: normal;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-edit-details {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 0;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-billing-saved {
	display: none;
}

/* Rezumat comandă */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column #order_review,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review {
	display: block !important;
	position: static !important;
	top: auto !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 28px 32px !important;
	background: #fff;
	box-sizing: border-box !important;
	overflow: hidden;
	transform: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column #order_review::before {
	content: none !important;
	display: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review #payment {
	display: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table {
	width: 100% !important;
	table-layout: auto !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	margin: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table td {
	background: transparent !important;
	border-left: 0 !important;
	border-right: 0 !important;
	vertical-align: top;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table thead th {
	border-top: 0 !important;
	border-bottom: 1px solid rgba(0,0,0,.12) !important;
	padding: 0 0 18px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item td {
	border-top: 0 !important;
	border-bottom: 1px solid rgba(0,0,0,.12) !important;
	padding: 18px 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal td {
	border-top: 0 !important;
	border-bottom: 1px solid rgba(0,0,0,.12) !important;
	padding: 18px 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr:not(.cart-subtotal) th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr:not(.cart-subtotal) td {
	border: 0 !important;
	padding: 18px 0 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table .product-name {
	text-align: left !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table .product-total {
	text-align: right !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table .product-name {
	width: auto !important;
	word-break: break-word !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table .product-total,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table td .amount {
	white-space: nowrap !important;
}

/* Plată */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment {
	background: transparent;
	padding: 0;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #place_order {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) and (min-width: 768px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout.woocommerce-checkout {
		display: grid !important;
		grid-template-columns: minmax(0, var(--ew-checkout-left-width, 58%)) minmax(250px, var(--ew-checkout-right-width, 42%)) !important;
		gap: 24px !important;
		align-items: start !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-left {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}
}

@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout.woocommerce-checkout {
		display: flex !important;
		flex-direction: column !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column {
		order: 1 !important;
		width: 100% !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-left {
		order: 2 !important;
		width: 100% !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review {
		padding: 20px !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout form .form-row-first,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout form .form-row-last {
		width: 100%;
		float: none;
		margin-right: 0;
	}
}


/* ===== Checkout EW v5.2 equal left/right zone spacing ===== */

/* Cele două zone principale au aceeași logică de card și același padding interior */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column {
	background: #fff;
	border: 1px solid rgba(0,0,0,.12);
	padding: 28px !important;
	box-sizing: border-box !important;
	align-self: start !important;
}

/* Rezumatul nu mai are padding propriu diferit; padding-ul vine din zona/cardul părinte */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column #order_review,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

/* Titlurile celor două zone pornesc identic */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column::before {
	margin-top: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
}

/* Conținutul de sub titlu începe aliniat în ambele zone */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column #order_review {
	margin-top: 0 !important;
}

/* Tabelul rezumatului se aliniază la aceeași margine ca formularul */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column .woocommerce-checkout-review-order-table {
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
}

/* Pașii de după formular rămân carduri separate, dar folosesc aceeași lățime/padding */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card {
	padding: 28px !important;
	box-sizing: border-box !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card {
		padding: 20px !important;
	}
}


/* ===== Checkout EW v5.4 cart-like review and equal cards ===== */

/* Zone separate/carduri; spațiul dintre ele rămâne fundalul normal al paginii */
.checkout-shop-ew-checkout.ew-checkout-modern-layout {
	background: transparent !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-left {
	background: transparent !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card {
	background: var(--ew-checkout-card-bg, #fff);
	border: 1px solid rgba(0,0,0,.12);
	padding: 28px !important;
	box-sizing: border-box !important;
	margin-bottom: 24px !important;
}

/* Rezumat comandă: cardul este .ew-checkout-review-column, tabelul nu mai are card/border propriu */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column #order_review,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Eliminare aspect tabel clasic WooCommerce */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table thead,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot {
	display: block !important;
	width: 100% !important;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	margin: 0 !important;
	background: transparent !important;
}

/* Nu mai afișăm header de tabel produs/Sub-total, ca în coșul personalizat */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table thead {
	display: none !important;
}

/* Rând produs ca în Cart EW: imagine + nume + valoare */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) max-content !important;
	gap: 18px !important;
	align-items: center !important;
	width: 100% !important;
	padding: 0 0 22px !important;
	margin: 0 0 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
	background: transparent !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item td {
	display: block !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	vertical-align: middle !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-name {
	text-align: left !important;
	min-width: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item td.product-total {
	text-align: right !important;
	white-space: nowrap !important;
	min-width: max-content !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-product-wrap {
	display: grid !important;
	grid-template-columns: 64px minmax(0, 1fr) !important;
	gap: 16px !important;
	align-items: center !important;
	width: 100% !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-product-thumb {
	display: block !important;
	width: 64px !important;
	max-width: 64px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-product-thumb img,
.checkout-shop-ew-checkout.ew-checkout-modern-layout img.ew-checkout-review-product-image {
	display: block !important;
	width: 64px !important;
	max-width: 64px !important;
	height: auto !important;
	object-fit: contain !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-product-title {
	display: block !important;
	min-width: 0 !important;
	line-height: 1.35 !important;
	word-break: break-word !important;
}

/* Totaluri din rezumat: stil ca în interiorul coșului */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) max-content !important;
	gap: 18px !important;
	align-items: center !important;
	width: 100% !important;
	padding: 18px 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr td {
	display: block !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	vertical-align: middle !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr th {
	text-align: left !important;
	font-weight: 600 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr td {
	text-align: right !important;
	white-space: nowrap !important;
	min-width: max-content !important;
}

/* Separatoare: sub produs și sub Sub-total, ca în coș. Fără margini de tabel. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal {
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.order-total {
	padding-bottom: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.order-total td {
	font-weight: 700 !important;
}

/* Curățăm liniile native rămase */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table td {
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
}

/* Responsive rezumat comandă */
@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card {
		padding: 20px !important;
		margin-bottom: 20px !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item {
		grid-template-columns: minmax(0, 1fr) max-content !important;
		gap: 12px !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-product-wrap {
		grid-template-columns: 48px minmax(0, 1fr) !important;
		gap: 12px !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-product-thumb,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-product-thumb img,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout img.ew-checkout-review-product-image {
		width: 48px !important;
		max-width: 48px !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr {
		grid-template-columns: minmax(0, 1fr) max-content !important;
		gap: 12px !important;
	}
}


/* ===== Checkout EW v5.5 review background, shipping row and separator cleanup ===== */

/* Fundalul setat în Elementor se aplică pe cardul real Rezumat comandă */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column {
	background-color: inherit;
}

/* Dacă Elementor setează fundal pe #order_review, îl extindem vizual pe card */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column #order_review {
	background: transparent !important;
}

/* Afișăm rândul de livrare/costuri de livrare în rezumat */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tr.shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) max-content !important;
	gap: 18px !important;
	align-items: center !important;
	width: 100% !important;
	padding: 18px 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* Redenumire vizuală în cazul în care WooCommerce păstrează labelul Shipping/Livrare */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.shipping th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.woocommerce-shipping-totals th {
	font-size: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.shipping th::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.woocommerce-shipping-totals th::before {
	content: "Costuri de livrare" !important;
	font-size: initial !important;
	font-weight: 600 !important;
}

/* Elimin linia gri întreruptă: nu mai lăsăm border pe th/td, ci doar pe tr-urile cerute */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot td {
	border: 0 !important;
}

/* Separatoare continue doar unde trebuie */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tbody tr.cart_item {
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal {
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table thead,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table thead tr,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table thead th {
	border: 0 !important;
}

/* Shipping methods fără listă/margini ciudate */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review ul#shipping_method {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review ul#shipping_method li {
	margin: 0 !important;
	padding: 0 !important;
}


/* ===== Checkout EW v5.6 final review/card cleanup ===== */

/* Fundalul setat în Elementor pentru secțiuni se aplică și pe cardul salvat după buton */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card {
	background-color: var(--ew-checkout-card-bg, inherit);
}

/* Dacă se setează fundal pe secțiuni, îl aplicăm consistent pe toate cardurile principale */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card {
	background-clip: padding-box !important;
}

/* Cod poștal full row; Oraș + Județ pe același rând */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_postcode_field {
	width: 100% !important;
	float: none !important;
	clear: both !important;
	margin-right: 0 !important;
}

/* Costuri de livrare trebuie să apară în rezumat */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tr.shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) max-content !important;
	gap: 18px !important;
	align-items: center !important;
	width: 100% !important;
	padding: 18px 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* Label livrare -> Costuri de livrare, fără să dispară valoarea */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.shipping th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.woocommerce-shipping-totals th {
	font-size: 0 !important;
	text-align: left !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.shipping th::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.woocommerce-shipping-totals th::before {
	content: "Costuri de livrare" !important;
	font-size: 16px !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
}

/* Elimin definitiv linia gri întreruptă: niciun th/td nu mai are border */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table thead,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tbody,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table td {
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
	background: transparent !important;
}

/* Separatoarele sunt doar pe rânduri, continue, nu pe celule */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table td {
	border-bottom: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tbody tr.cart_item {
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.cart-subtotal {
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
}

/* Fără header de tabel și fără linia lui gri */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table thead,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table thead tr,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table thead th {
	display: none !important;
	border: 0 !important;
}

/* Metode de livrare curate */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review ul#shipping_method {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review ul#shipping_method li {
	margin: 0 !important;
	padding: 0 !important;
}


/* ===== Checkout EW v5.7 state field, delivery row and final summary controls ===== */

/* Județ este vizibil și obligatoriu în Detalii comandă */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-state-field {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_country_field {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	clear: both !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_country_field .woocommerce-input-wrapper,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_country_field .select2-container,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_country_field select,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field .woocommerce-input-wrapper,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field .select2-container,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field select {
	width: 100% !important;
	max-width: 100% !important;
}

/* Rezumat comandă: eliminare finală a liniilor gri de pe celule */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table * {
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
	background: transparent !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .cart-subtotal th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .cart-subtotal td {
	border-bottom: 0 !important;
}

/* Separatoarele sunt doar pe rândul produsului și pe rândul Sub-total, ca în Cart EW */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tbody tr.cart_item {
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, transparent) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.cart-subtotal {
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, transparent) !important;
}

/* Costuri de livrare: afișare pentru rând WooCommerce shipping, fee sau rândul custom gratuit */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) max-content !important;
	gap: 18px !important;
	align-items: center !important;
	width: 100% !important;
	padding: 18px 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row th {
	text-align: left !important;
	font-weight: 600 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row td {
	text-align: right !important;
	white-space: nowrap !important;
	min-width: max-content !important;
}

/* Pentru rândul fee generat de plugin, păstrăm vizual textul Costuri de livrare */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee th {
	font-size: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee th::before {
	content: "Costuri de livrare" !important;
	font-size: 16px !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
}

/* Produs și valoare produs: selectorii de Elementor au țintă stabilă */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.cart_item td.product-name,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.cart_item td.product-total,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.cart_item td.product-total .amount {
	color: inherit;
}

/* Total: tipografia și culoarea din Elementor trebuie să bată stilurile WooCommerce */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.order-total th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.order-total td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.order-total td .amount {
	font: inherit;
}


/* ===== Checkout EW v5.8 final legal fields and review separators ===== */

/* Câmpul Titlu este eliminat complet, inclusiv dacă apare din cache WooCommerce */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_title_field {
	display: none !important;
}

/* Persoană juridică: Nume societate și CIF nu mai arată optional și apar ca obligatorii */
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica #billing_company_field .optional,
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica #billing_company_cif_field .optional,
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica .ew-company-field .optional {
	display: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica #billing_company_field label::after,
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica #billing_company_cif_field label::after,
.checkout-shop-ew-checkout.ew-checkout-modern-layout.ew-customer-type-juridica .ew-company-field label::after {
	content: " *";
	color: var(--ew-checkout-required-color, inherit);
}

/* Rezumat comandă: curățare finală pentru toate liniile native WooCommerce */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table * {
	border-color: transparent !important;
	border-left-width: 0 !important;
	border-right-width: 0 !important;
	border-top-width: 0 !important;
	background: transparent !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.cart-subtotal th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.cart-subtotal td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.shipping th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.shipping td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.fee th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.fee td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.order-total th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.order-total td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.checkout-shop-ew-delivery-row th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.checkout-shop-ew-delivery-row td {
	border-bottom-width: 0 !important;
	border-bottom-style: none !important;
	border-bottom-color: transparent !important;
}

/* Separatoare continue pe rânduri, nu pe celule */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tbody tr.cart_item,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.cart-subtotal,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row {
	border-bottom-width: 1px !important;
	border-bottom-style: solid !important;
	border-bottom-color: var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
}

/* Costuri de livrare: nu mai folosim font-size 0 pe label; Elementor poate controla tipografia */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row th {
	font-size: inherit !important;
	line-height: inherit !important;
	font-weight: inherit !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping th::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals th::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee th::before {
	content: none !important;
	display: none !important;
}

/* Dacă rândul este fee WooCommerce, textul lui vine din plugin: Costuri de livrare */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee th {
	text-align: left !important;
}

/* Elementor: produs/valoare, livrare, subtotal și total au selectorii corecți */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.cart_item td.product-name,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.cart_item td.product-total,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.cart_item td.product-total .amount,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.cart-subtotal th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.cart-subtotal td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.shipping th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.shipping td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.fee th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.fee td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.checkout-shop-ew-delivery-row th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.checkout-shop-ew-delivery-row td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.order-total th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.order-total td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review tr.order-total td .amount {
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
}


/* ===== Checkout EW v5.9 saved customer card title ===== */

/* Cardul afișat după Salvare detalii are titlu propriu: Date client */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-title {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 0 22px !important;
	padding: 0 0 18px !important;
	line-height: 1.25 !important;
	color: var(--ew-checkout-title-color, inherit) !important;
	background: transparent !important;
	border-bottom-color: var(--ew-checkout-title-separator-color, rgba(0,0,0,.12)) !important;
	border-bottom-width: var(--ew-checkout-title-separator-width, 1px) !important;
	border-bottom-style: solid !important;
	box-sizing: border-box !important;
}

/* Preia setările globale de titluri din widget */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step-title,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-title {
	color: var(--ew-checkout-title-color, inherit) !important;
	border-bottom-color: var(--ew-checkout-title-separator-color, rgba(0,0,0,.12)) !important;
	border-bottom-width: var(--ew-checkout-title-separator-width, 1px) !important;
	border-bottom-style: solid !important;
}

/* Conținutul cardului Date client pornește sub separator, aliniat cu restul zonelor */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card .ew-checkout-saved-details {
	margin-top: 0 !important;
}


/* ===== Checkout EW v6.0 shipping typography and grey separator hard fix ===== */

/* Costuri de livrare: aceeași tipografie/culoare pe textul din stânga și valoarea din dreapta */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping td *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals td *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee td *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row td * {
	font-family: inherit;
	color: inherit;
}

/* Eliminare definitivă linie gri întreruptă: anulăm border/box-shadow/background pe celule și pe conținutul lor */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table * {
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	background-image: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table th *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table td *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.cart-subtotal th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.cart-subtotal td,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.cart-subtotal th *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tr.cart-subtotal td * {
	border-bottom: 0 !important;
	border-bottom-width: 0 !important;
	border-bottom-style: none !important;
	border-bottom-color: transparent !important;
	box-shadow: none !important;
	outline: 0 !important;
	background-image: none !important;
}

/* Singurele separatoare vizibile sunt pe rânduri, continue, nu pe celule */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tbody tr.cart_item,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.cart-subtotal,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.woocommerce-shipping-totals,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.checkout-shop-ew-delivery-row {
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
	border-bottom-width: 1px !important;
	border-bottom-style: solid !important;
	border-bottom-color: var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
	box-shadow: none !important;
}

/* Dacă nu se dorește separator gri, culoarea vine doar din setarea Elementor */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.cart-subtotal::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.cart-subtotal::after,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.shipping::after,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table tfoot tr.fee::after {
	content: none !important;
	display: none !important;
}


/* ===== Checkout EW v6.1 clean custom order review + edit button ===== */

/* Buton Modificați preia stilul butonului principal */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-edit-details {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 46px !important;
	padding: 14px 28px !important;
	border: 0;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .06em;
	text-decoration: none !important;
}

/* Tabelul WooCommerce rămâne în DOM pentru calcule, dar este ascuns vizual */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review .woocommerce-checkout-review-order-table {
	display: none !important;
}

/* Rezumat comandă nou, fără tabel, fără linii gri native */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-product-row,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-total-row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) max-content !important;
	gap: 18px !important;
	align-items: center !important;
	width: 100% !important;
	margin: 0 !important;
	background: transparent !important;
	border-left: 0 !important;
	border-right: 0 !important;
	border-top: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-product-row {
	padding: 0 0 22px !important;
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-total-row {
	padding: 18px 0 !important;
	border-bottom: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-subtotal,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-shipping {
	border-bottom: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-total {
	padding-bottom: 0 !important;
	border-bottom: 0 !important;
	font-weight: 700;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-product-name,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-label {
	text-align: left !important;
	min-width: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-product-value,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-value {
	text-align: right !important;
	white-space: nowrap !important;
	min-width: max-content !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-product-name .ew-checkout-review-product-wrap {
	display: grid !important;
	grid-template-columns: 64px minmax(0, 1fr) !important;
	gap: 16px !important;
	align-items: center !important;
	width: 100% !important;
}

/* Costuri de livrare: stânga și dreapta primesc aceeași personalizare */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-shipping * {
	font: inherit;
	color: inherit;
}

/* Nu mai poate apărea linia gri întreruptă din tabel */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review table * {
	border: 0 !important;
	box-shadow: none !important;
	outline: 0 !important;
	background-image: none !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-product-row,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-total-row {
		gap: 12px !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-product-name .ew-checkout-review-product-wrap {
		grid-template-columns: 48px minmax(0, 1fr) !important;
		gap: 12px !important;
	}
}


/* ===== Checkout EW v6.2 custom shipping step content ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-template {
	display: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-option {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) max-content !important;
	gap: 14px !important;
	align-items: center !important;
	width: 100% !important;
	padding: 16px 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	min-width: 28px !important;
	height: 28px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon i,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon svg {
	display: block !important;
	width: 24px !important;
	height: 24px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-image {
	display: block !important;
	width: 28px !important;
	max-width: 28px !important;
	height: auto !important;
	object-fit: contain !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon.is-carrier-logo {
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	max-width: 96px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon.is-carrier-logo .ew-checkout-carrier-logo-image {
	display: block !important;
	width: auto !important;
	max-width: 96px !important;
	height: auto !important;
	max-height: 30px !important;
	object-fit: contain !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon.is-carrier-logo,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon.is-carrier-logo .ew-checkout-carrier-logo-image {
		max-width: 82px !important;
	}
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-texts {
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	min-width: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-title {
	display: block !important;
	line-height: 1.35 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-desc {
	display: block !important;
	line-height: 1.35 !important;
	font-size: .9em !important;
	opacity: .85 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-price {
	display: block !important;
	text-align: right !important;
	white-space: nowrap !important;
	min-width: max-content !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-option {
		grid-template-columns: auto minmax(0, 1fr) !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-price {
		grid-column: 2 !important;
		text-align: left !important;
	}
}


/* ===== Checkout EW v6.4 invoice address section ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_use_same_invoice_address_field {
	clear: both !important;
	width: 100% !important;
	margin-top: 10px !important;
	margin-bottom: 22px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-invoice-title {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 0 22px !important;
	padding: 0 0 18px !important;
	line-height: 1.25 !important;
	color: var(--ew-checkout-title-color, inherit) !important;
	background: transparent !important;
	border-bottom-color: var(--ew-checkout-title-separator-color, rgba(0,0,0,.12)) !important;
	border-bottom-width: var(--ew-checkout-title-separator-width, 1px) !important;
	border-bottom-style: solid !important;
	box-sizing: border-box !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_use_same_invoice_address_field .woocommerce-input-wrapper {
	display: block !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_use_same_invoice_address_field label.checkbox {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin: 0 !important;
	cursor: pointer !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_use_same_invoice_address_field input[type="checkbox"] {
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-invoice-address-field {
	box-sizing: border-box !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_invoice_postcode_field {
	width: 100% !important;
	float: none !important;
	clear: both !important;
	margin-right: 0 !important;
}

/* Oraș și Județ facturare au aceleași dimensiuni ca partea de sus */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_invoice_city_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_invoice_state_field {
	width: calc(50% - 10px) !important;
	float: left !important;
	clear: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_invoice_city_field {
	margin-right: 20px !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_invoice_city_field,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_invoice_state_field {
		width: 100% !important;
		float: none !important;
		margin-right: 0 !important;
	}
}


/* ===== Checkout EW v6.5 general required/checkbox/closed text controls ===== */

/* Steluța câmpurilor obligatorii */
.checkout-shop-ew-checkout.ew-checkout-modern-layout abbr.required,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .required,
.checkout-shop-ew-checkout.ew-checkout-modern-layout label .required {
	color: var(--ew-checkout-required-color, inherit) !important;
}

/* Linkurile din zona de plată folosesc culoarea textului normal */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment a,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-privacy-policy-text a,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-terms-and-conditions-wrapper a {
	color: inherit !important;
}

/* Text zone închise */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step.is-locked,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step.is-locked .ew-checkout-step-title {
	color: inherit;
}


/* ===== Checkout EW v6.6 payment radio + hide grey payment box + text zones ===== */

/* Nu mai afișăm caseta gri/descrierea de sub metoda de plată selectată */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .payment_box,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment div.payment_box,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .payment_method_cod .payment_box,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .payment_method_bacs .payment_box,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .wc_payment_method .payment_box {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	overflow: hidden !important;
}

/* Eliminăm triunghiul casetei WooCommerce */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .payment_box::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment div.payment_box::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .payment_box::after,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment div.payment_box::after {
	display: none !important;
	content: none !important;
}

/* Zona Plată rămâne curată, fără fundal gri implicit WooCommerce */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment ul.payment_methods,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .payment_methods,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment li.wc_payment_method,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment li.payment_method_bacs,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment li.payment_method_cod {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment ul.payment_methods,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .payment_methods {
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment li.wc_payment_method {
	padding: 0 0 10px !important;
	margin: 0 !important;
}

/* Linkurile din plată au culoarea textului normal */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment a,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-privacy-policy-text a,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-terms-and-conditions-wrapper a {
	color: inherit !important;
}

/* Text zone afișate/închise: Date client, Livrare, Plată și conținuturile lor */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-saved-card *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-option,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-option *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment * {
	color: inherit;
}


/* ===== Checkout EW v6.7 unified buttons ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #place_order,
.checkout-shop-ew-checkout.ew-checkout-modern-layout button.button,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-save-details,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-edit-details,
.checkout-shop-ew-checkout.ew-checkout-modern-layout a.button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-transform: none !important;
	letter-spacing: normal;
	text-decoration: none !important;
	line-height: 1.2 !important;
	cursor: pointer !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #place_order i,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #place_order svg,
.checkout-shop-ew-checkout.ew-checkout-modern-layout button.button i,
.checkout-shop-ew-checkout.ew-checkout-modern-layout button.button svg,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-save-details i,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-save-details svg,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-edit-details i,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-edit-details svg,
.checkout-shop-ew-checkout.ew-checkout-modern-layout a.button i,
.checkout-shop-ew-checkout.ew-checkout-modern-layout a.button svg {
	display: none !important;
}

/* Scoatem iconița textuală din Modificați, ca butonul să fie doar text curat */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-edit-details {
	gap: 0 !important;
}


/* ===== Checkout EW v6.8 normal place order button ===== */

/* Plasează comanda nu mai este forțat pe toată lățimea */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #place_order {
	width: auto !important;
	max-width: 100% !important;
	align-self: flex-start !important;
}

/* Containerul butonului de comandă permite alinierea din Elementor */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .form-row.place-order,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-checkout-payment .place-order {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center !important;
	width: 100% !important;
}

/* Butoanele rămân butoane normale, editabile din Stil > Butoane */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #place_order,
.checkout-shop-ew-checkout.ew-checkout-modern-layout button.button,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-save-details,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-edit-details,
.checkout-shop-ew-checkout.ew-checkout-modern-layout a.button {
	flex: 0 0 auto !important;
}


/* ===== Checkout EW v6.9 shipping style controls ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon {
	color: inherit;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon svg,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-icon svg * {
	fill: currentColor;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-title,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-desc,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-price {
	color: inherit;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-price,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-price * {
	line-height: 1.35;
}


/* ===== Checkout EW v7.2 safe place order layout ===== */
/* Pornit din v6.9 stabil. Nu mutăm DOM-ul cu JS, doar aranjăm zona place-order prin CSS. */

.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .form-row.place-order,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-checkout-payment .place-order {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	gap: 16px !important;
	width: 100% !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .woocommerce-terms-and-conditions-wrapper,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .woocommerce-privacy-policy-text {
	order: 1 !important;
	width: 100% !important;
	margin: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment #place_order {
	order: 2 !important;
	width: auto !important;
	max-width: 100% !important;
	align-self: flex-start !important;
}

/* Butonul rămâne editabil din Stil > Butoane */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .place-order #place_order {
	flex: 0 0 auto !important;
}


/* ===== Checkout EW v7.3 section border applies to order summary ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review {
	box-sizing: border-box !important;
}

/* Rezumat comandă trebuie să preia setările de la Stil > Stil secțiuni, inclusiv lățime chenar */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column {
	overflow: visible !important;
}


/* ===== Checkout EW v7.4 uniform order summary spacing ===== */

/* Toate rândurile din Rezumat comandă au aceeași spațiere sus/jos */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean .ew-review-product-row,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean .ew-review-total-row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) max-content !important;
	align-items: center !important;
	column-gap: 18px !important;
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	margin: 0 !important;
	border-bottom-style: solid !important;
	box-sizing: border-box !important;
}

/* Primul produs nu mai stă lipit de titlu/separator */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean .ew-review-product-row:first-child {
	padding-top: 16px !important;
}

/* Ultimul rând Total păstrează aceeași logică de spațiere */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean .ew-review-row-total {
	padding-top: 16px !important;
	padding-bottom: 0 !important;
	border-bottom: 0 !important;
}

/* Textul produselor și valorile rămân aliniate corect */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean .ew-review-product-name,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean .ew-review-row-label {
	min-width: 0 !important;
	line-height: 1.35 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean .ew-review-product-value,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-clean .ew-review-row-value {
	text-align: right !important;
	white-space: nowrap !important;
	line-height: 1.35 !important;
}

/* ===== Checkout Shop EW v7.5 - formular stabil, select custom și bife reale ===== */
/* Persoană fizică / juridică folosește o listă custom. Dropdown-ul nativ diferă între
   browsere și nu permite un hover predictibil pe toată lățimea. Selectul nativ rămâne
   în formular pentru WooCommerce și este sincronizat prin JS. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-field .woocommerce-input-wrapper {
	position: relative;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-select {
	position: relative;
	width: 100%;
	z-index: 20;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	margin: 0;
	text-align: left;
	font: inherit;
	color: var(--ew-checkout-field-color, inherit);
	background: var(--ew-checkout-field-bg, #fff);
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-sizing: border-box;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-arrow {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
	transform: translateY(-2px);
	transition: transform .18s ease;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-select.is-open .ew-customer-type-arrow {
	transform: translateY(2px) rotate(180deg);
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-options {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 2px);
	width: 100%;
	min-width: 100%;
	padding: 4px;
	margin: 0;
	background: var(--ew-checkout-field-bg, #fff);
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	box-sizing: border-box;
	box-shadow: 0 10px 28px rgba(0,0,0,.12);
	z-index: 9999;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-select.is-open .ew-customer-type-options {
	display: block;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-option {
	display: block;
	width: 100%;
	min-width: 100%;
	padding: 9px 10px;
	margin: 0;
	border: 0;
	border-radius: 0;
	text-align: left;
	font: inherit;
	color: var(--ew-checkout-field-color, inherit);
	background: transparent;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-sizing: border-box;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-option:hover,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-option:focus,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-option.is-selected:focus {
	color: var(--ew-checkout-dropdown-hover-color, var(--ew-checkout-field-color, inherit));
	background: var(--ew-checkout-dropdown-hover-bg, #e7e7e7);
	outline: none;
}

/* Un singur motor pentru checkbox și radio. Nu mai depindem de accent-color,
   care nu permite fundal/semn separate în toate browserele. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"],
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-grid !important;
	place-content: center !important;
	width: var(--ew-checkout-checkbox-size, 18px) !important;
	height: var(--ew-checkout-checkbox-size, 18px) !important;
	min-width: var(--ew-checkout-checkbox-size, 18px) !important;
	min-height: var(--ew-checkout-checkbox-size, 18px) !important;
	margin: 0 .45em 0 0 !important;
	padding: 0 !important;
	border: 1px solid var(--ew-checkout-checkbox-border-color, #b8b8b8) !important;
	background: var(--ew-checkout-checkbox-bg-color, #fff) !important;
	box-shadow: none !important;
	vertical-align: middle !important;
	cursor: pointer;
	box-sizing: border-box !important;
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"] {
	border-radius: 4px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"] {
	border-radius: 50% !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"]::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"]::before {
	content: "";
	display: block;
	transform: scale(0);
	transition: transform .12s ease-in-out;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"]::before {
	width: calc(var(--ew-checkout-checkbox-size, 18px) * .50);
	height: calc(var(--ew-checkout-checkbox-size, 18px) * .28);
	border-left: 2px solid var(--ew-checkout-checkbox-check-color, #fff);
	border-bottom: 2px solid var(--ew-checkout-checkbox-check-color, #fff);
	transform: translateY(-1px) rotate(-45deg) scale(0);
	transform-origin: center;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"]::before {
	width: calc(var(--ew-checkout-checkbox-size, 18px) * .42);
	height: calc(var(--ew-checkout-checkbox-size, 18px) * .42);
	border-radius: 50%;
	background: var(--ew-checkout-checkbox-check-color, #fff);
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"]:hover,
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"]:hover {
	background: var(--ew-checkout-checkbox-hover-color, #f3f3f3) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"]:checked,
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"]:checked {
	background: var(--ew-checkout-checkbox-checked-bg-color, #111) !important;
	border-color: var(--ew-checkout-checkbox-checked-bg-color, #111) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"]:checked::before {
	transform: translateY(-1px) rotate(-45deg) scale(1);
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"]:checked::before {
	transform: scale(1);
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"]:focus-visible,
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"]:focus-visible,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-toggle:focus-visible,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-customer-type-option:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 2px !important;
}

/* Precedență clară a fundalurilor: wrapper -> carduri -> zone specifice.
   Evită ca setarea generală să suprascrie rezumatul, livrarea sau plata. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-left {
	background: transparent;
}

/* ===== Cart EW v7.5 - normalizare controale care se suprapuneau ===== */
/* Fundalul din dreapta este controlat numai de Stil > Total coș.
   Separatoarele tuturor rândurilor sunt controlate numai de Separatoare coș. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart-collaterals {
	background: transparent;
}

.checkout-shop-ew-cart.ew-cart-premium-layout table.shop_table tbody tr.cart_item,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr {
	border-color: var(--ew-cart-separator-color, rgba(0,0,0,.10)) !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top {
	border-color: var(--ew-cart-separator-color, rgba(0,0,0,.10)) !important;
}


/* Câmpul adresă facturare folosea un override vechi width:auto; v7.5 îl aliniază cu toate celelalte bife. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_use_same_invoice_address_field input[type="checkbox"] {
	width: var(--ew-checkout-checkbox-size, 18px) !important;
	height: var(--ew-checkout-checkbox-size, 18px) !important;
	min-width: var(--ew-checkout-checkbox-size, 18px) !important;
	min-height: var(--ew-checkout-checkbox-size, 18px) !important;
}

/* Checkout Shop EW 7.8 - audit hover: butoanele nu își schimbă poziția sau scara. */
.checkout-shop-ew-checkout button,
.checkout-shop-ew-checkout .button,
.checkout-shop-ew-cart button,
.checkout-shop-ew-cart .button,
.checkout-shop-ew-cart a.button {
    transition-property: color, background-color, border-color, opacity, box-shadow !important;
}
.checkout-shop-ew-checkout button:hover,
.checkout-shop-ew-checkout button:focus,
.checkout-shop-ew-checkout .button:hover,
.checkout-shop-ew-checkout .button:focus,
.checkout-shop-ew-cart button:hover,
.checkout-shop-ew-cart button:focus,
.checkout-shop-ew-cart .button:hover,
.checkout-shop-ew-cart .button:focus,
.checkout-shop-ew-cart a.button:hover,
.checkout-shop-ew-cart a.button:focus {
    transform: none !important;
}


/* ===== Checkout EW v7.9 Elementor / frontend parity ===== */
/* Aceleași reguli de structură sunt folosite în editor și pe site-ul live.
   Nu există selectori .elementor-editor-* separați. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout.woocommerce-checkout{
    display:grid!important;
    grid-template-columns:minmax(0,var(--ew-checkout-left-width,62%)) minmax(260px,var(--ew-checkout-right-width,38%))!important;
    gap:var(--ew-checkout-columns-gap,32px)!important;
    align-items:start!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    float:none!important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-left{
    grid-column:1!important;grid-row:1!important;width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;clear:none!important;margin:0!important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column{
    grid-column:2!important;grid-row:1!important;width:100%!important;max-width:100%!important;min-width:0!important;float:none!important;clear:none!important;margin:0!important;align-self:start!important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .col2-set,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .col-1,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .col-2{
    float:none!important;clear:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .woocommerce-billing-fields,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column{
    box-sizing:border-box!important;align-self:start!important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout #order_review{
    position:static!important;top:auto!important;width:100%!important;max-width:100%!important;margin:0!important;transform:none!important;
}
@media (max-width:1024px) and (min-width:768px){
    .checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout.woocommerce-checkout{
        grid-template-columns:minmax(0,var(--ew-checkout-left-width,58%)) minmax(250px,var(--ew-checkout-right-width,42%))!important;
    }
}
@media (max-width:767px){
    .checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout.woocommerce-checkout{display:flex!important;flex-direction:column!important;gap:0!important}
    .checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column{order:1!important;width:100%!important}
    .checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-left{order:2!important;width:100%!important}
}


/* ===== Checkout EW v8.1: Județ înainte de Oraș + compatibilitate curier ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_city_field {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field .woocommerce-input-wrapper,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field .select2-container,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field select,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_city_field .woocommerce-input-wrapper,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_city_field .select2-container,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_city_field select,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_city_field input {
	width: 100% !important;
	max-width: 100% !important;
}


/* ===== Checkout EW v8.2: România fixă + ordine adresă + transport WooCommerce ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_country_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-country-hidden {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_state_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_city_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_address_1_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_address_2_field,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_postcode_field {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}


/* ===== Checkout EW v8.5: FANbox fără mutarea metodelor WooCommerce ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-host {
	display: none;
	width: 100%;
	max-width: 100%;
	margin-top: 14px;
	position: relative;
	z-index: 3;
	overflow: visible !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-host.is-active { display: block; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-table {
	width: 100% !important;
	border: 0 !important;
	border-collapse: collapse !important;
	margin: 0 !important;
	background: transparent !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-table tbody,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-table tr,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-table td {
	border: 0 !important;
	background: transparent !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-host .fan-pickup-row,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-fan-pickup-host #FANOpenMap {
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step-shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-step-shipping .ew-checkout-step-content {
	overflow: visible !important;
}

/* ===== Checkout EW v8.6: compatibilitate FAN Courier + metode proxy sigure ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout #billing_city_fan_wrapper,
.checkout-shop-ew-checkout.ew-checkout-modern-layout #shipping_city_fan_wrapper {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: both !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-methods-proxy {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-method-proxy {
	position: relative !important;
	grid-template-columns: 20px auto minmax(0, 1fr) max-content !important;
	cursor: pointer !important;
	user-select: none !important;
	border-radius: 8px !important;
	outline: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-method-proxy:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 2px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-radio {
	display: inline-flex !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	border: 1.5px solid currentColor !important;
	border-radius: 999px !important;
	box-sizing: border-box !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: .65;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-method-proxy.is-selected .ew-checkout-shipping-radio::after {
	content: '';
	display: block !important;
	width: 8px !important;
	height: 8px !important;
	border-radius: 999px !important;
	background: currentColor !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-method-proxy.is-selected {
	font-weight: 600;
}

@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-method-proxy {
		grid-template-columns: 20px auto minmax(0, 1fr) !important;
	}
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-method-proxy .ew-checkout-shipping-price {
		grid-column: 3 !important;
	}
}

/* Checkout Shop EW 8.8 - telefon: ascunde exclusiv marcajul „(optional)”. */
.checkout-shop-ew-checkout #billing_phone_field label .optional {
	display: none !important;
}

/* ===== Checkout Shop EW 10.6: metode WooCommerce native în pasul Livrare ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host[hidden] {
	display: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host ul#shipping_method,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host .woocommerce-shipping-methods {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host li {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 14px !important;
	border: 1px solid var(--ew-checkout-summary-separator-color, rgba(0,0,0,.12)) !important;
	border-radius: 8px !important;
	background: transparent !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host input[type="radio"] {
	flex: 0 0 auto;
	margin: 0 !important;
	accent-color: currentColor;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host label {
	display: flex !important;
	flex: 1 1 220px;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	min-width: 0 !important;
	margin: 0 !important;
	cursor: pointer;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host label .amount {
	margin-left: auto;
	white-space: nowrap;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-icon {
	flex: 0 0 28px;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-desc {
	flex: 1 0 100%;
	margin: 2px 0 0 !important;
	padding-left: 38px;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host li > :not(input):not(label):not(.ew-checkout-native-shipping-icon):not(.ew-checkout-native-shipping-desc) {
	flex-basis: 100%;
	max-width: 100%;
}

@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host li {
		padding: 12px !important;
	}
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-host label {
		align-items: flex-start !important;
	}
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-native-shipping-desc {
		padding-left: 0;
	}
}


/* ===== Checkout Shop EW 9.0: cupoane funcționale în Coș și Finalizare ===== */
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form,
.checkout-shop-ew-checkout .ew-checkout-coupon-form {
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	gap: 10px;
	align-items: stretch;
}
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-coupon-code,
.checkout-shop-ew-checkout .ew-checkout-coupon-form .ew-coupon-code {
	width: 100%;
	min-width: 0;
	margin: 0 !important;
}
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-apply-coupon,
.checkout-shop-ew-checkout .ew-checkout-coupon-form .ew-apply-coupon {
	width: auto;
	white-space: nowrap;
}
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-coupon-message,
.checkout-shop-ew-checkout .ew-coupon-message {
	grid-column: 1 / -1;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.45;
}
.checkout-shop-ew .ew-coupon-message.is-success { color: #067647; }
.checkout-shop-ew .ew-coupon-message.is-error { color: #b42318; }
.checkout-shop-ew-checkout .ew-checkout-coupon-box {
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid rgba(0,0,0,.10);
	border-radius: 12px;
	background: #fff;
}
.checkout-shop-ew-checkout .ew-checkout-coupon-heading {
	margin: 0 0 10px;
	font-weight: 600;
}
/* Cuponul nativ din tabel rămâne în formularul WooCommerce; nu îl mutăm în sidebar. */
.checkout-shop-ew-cart.ew-cart-premium-layout .woocommerce-cart-form td.actions .coupon {
	display: none !important;
}
@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form,
	.checkout-shop-ew-checkout .ew-checkout-coupon-form {
		grid-template-columns: 1fr;
	}
	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-apply-coupon,
	.checkout-shop-ew-checkout .ew-checkout-coupon-form .ew-apply-coupon {
		width: 100%;
	}
}


/* ===== Checkout Shop EW 9.1: flux cupoane Coș -> Plată -> Rezumat ===== */
.checkout-shop-ew-checkout .ew-checkout-step-payment .ew-checkout-coupon-box {
	margin: 0 0 18px;
	background: rgba(255,255,255,.62);
}
.checkout-shop-ew-checkout .ew-checkout-applied-coupons,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}
.checkout-shop-ew-checkout .ew-checkout-applied-coupons[hidden] {
	display: none !important;
}
.checkout-shop-ew-checkout .ew-checkout-applied-coupon,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 10px;
	border: 1px solid rgba(6,118,71,.20);
	border-radius: 999px;
	background: rgba(6,118,71,.07);
	font-size: 13px;
	line-height: 1.2;
}
.checkout-shop-ew-checkout .ew-review-row-coupon .ew-review-row-label,
.checkout-shop-ew-checkout .ew-review-row-coupon .ew-review-row-value {
	font-weight: 500;
}
.checkout-shop-ew-checkout .ew-review-row-coupon .woocommerce-remove-coupon {
	margin-left: 6px;
	font-size: 12px;
}

/* ===== Checkout Shop EW 9.2: Coș unificat + cupoane + ordine mobil checkout ===== */

/* Coș: folosim întotdeauna rândul nativ WooCommerce pentru metodele de livrare. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals {
	display: table-row !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals th {
	text-align: left !important;
	font-weight: 600 !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals td {
	text-align: right !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods li,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods li {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods label {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	text-align: right !important;
}

/* Coș: formularul de cupon este direct vizibil când nu există deja un cupon aplicat. */
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row {
	display: table-row !important;
}
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content.is-open {
	display: block !important;
}
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	gap: 10px !important;
	width: 100% !important;
}
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form .ew-coupon-code {
	width: 100% !important;
	min-width: 0 !important;
}
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form .ew-apply-coupon {
	width: auto !important;
	white-space: nowrap !important;
}

/* Badge cupon + eliminare, atât în Coș cât și în Plată. */
.checkout-shop-ew-cart .ew-cart-applied-coupon,
.checkout-shop-ew-checkout .ew-checkout-applied-coupon {
	flex-wrap: wrap !important;
}
.checkout-shop-ew-cart .ew-remove-coupon:not(.ew-cart-coupon-remove-button),
.checkout-shop-ew-checkout .ew-remove-coupon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin-left: 4px !important;
	padding: 3px 7px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: inherit !important;
	font: inherit !important;
	font-size: 12px !important;
	line-height: 1.2 !important;
	text-decoration: underline !important;
	cursor: pointer !important;
}
.checkout-shop-ew-cart .ew-remove-coupon:disabled,
.checkout-shop-ew-checkout .ew-remove-coupon:disabled {
	opacity: .55 !important;
	cursor: wait !important;
}

/* Checkout: după aplicarea cuponului nu mai apare formularul până la eliminarea lui. */
.checkout-shop-ew-checkout .ew-checkout-coupon-form[hidden] {
	display: none !important;
}

/* Mobil: rezumatul comenzii vine DUPĂ Detalii -> Livrare -> Plată. */
@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout.woocommerce-checkout {
		display: flex !important;
		flex-direction: column !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-left {
		order: 1 !important;
		width: 100% !important;
	}

	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-review-column {
		order: 2 !important;
		width: 100% !important;
		margin-top: 0 !important;
	}

	/* Coș mobil: aceeași structură corectă de totaluri la toate lățimile de telefon. */
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.ew-cart-summary-coupon-row {
		display: grid !important;
		grid-template-columns: minmax(110px, 1fr) minmax(0, 1.35fr) !important;
		align-items: start !important;
		column-gap: 14px !important;
		width: 100% !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.ew-cart-summary-coupon-row th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.ew-cart-summary-coupon-row td {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals td {
		text-align: right !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form {
		grid-template-columns: 1fr !important;
	}
	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form .ew-apply-coupon {
		width: 100% !important;
	}
}



/* ===== Checkout Shop EW 9.3: Cart EW identic PC / tabletă / mobil ===== */

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table {
	width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row {
	display: table-row !important;
	width: 100% !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total > th {
	display: table-cell !important;
	width: 46% !important;
	min-width: 0 !important;
	vertical-align: top !important;
	text-align: left !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal > td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping > td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals > td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee > td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total > td {
	display: table-cell !important;
	width: 54% !important;
	min-width: 0 !important;
	vertical-align: top !important;
	text-align: right !important;
}

/* Costuri de livrare: aceeași tipografie cu celelalte rânduri din totaluri. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td .amount,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td .woocommerce-Price-amount,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td .amount,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td .woocommerce-Price-amount {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	font-style: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > th {
	font-weight: inherit !important;
}

/* Toate opțiunile de livrare rămân vizibile, inclusiv FAN Courier / FANbox. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping ul#shipping_method,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals ul#shipping_method,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 6px !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping ul#shipping_method > li,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods > li,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals ul#shipping_method > li,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods > li {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping ul#shipping_method > li > label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods > li > label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals ul#shipping_method > li > label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods > li > label {
	display: block !important;
	visibility: visible !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
	white-space: normal !important;
}

/* Cupon: input stânga + buton dreapta pe PC, tabletă și mobil. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.ew-cart-summary-coupon-row > td.ew-cart-summary-coupon-cell {
	display: table-cell !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	text-align: left !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content.is-open {
	display: block !important;
	width: 100% !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: stretch !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form .ew-coupon-code {
	grid-column: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form .ew-apply-coupon {
	grid-column: 2 !important;
	width: auto !important;
	min-width: max-content !important;
	max-width: none !important;
	margin: 0 !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form .ew-coupon-message {
	grid-column: 1 / -1 !important;
	width: 100% !important;
}

@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row {
		display: table-row !important;
		grid-template-columns: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping > th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping > td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals > th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals > td {
		display: table-cell !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form {
		grid-template-columns: minmax(0, 1fr) auto !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form .ew-apply-coupon {
		width: auto !important;
	}
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row {
		display: table-row !important;
		grid-template-columns: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal > th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping > th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals > th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee > th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total > th {
		display: table-cell !important;
		width: 46% !important;
		padding-right: 12px !important;
		text-align: left !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal > td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping > td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals > td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee > td,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total > td {
		display: table-cell !important;
		width: 54% !important;
		padding-left: 12px !important;
		text-align: right !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row > td.ew-cart-summary-coupon-cell {
		display: table-cell !important;
		width: 100% !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form {
		grid-template-columns: minmax(0, 1fr) auto !important;
		gap: 8px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-content .ew-cart-coupon-form .ew-apply-coupon {
		width: auto !important;
		min-width: max-content !important;
	}
}


/* ===== Checkout Shop EW 9.4: Cart EW — un singur layout PC / tabletă / mobil ===== */

/*
 * Anulează vechile conversii responsive ale tabelului de totaluri în block/grid.
 * WooCommerce rămâne tabel pe toate dispozitivele, deci aceleași rânduri,
 * aceleași metode FAN Courier și aceeași aliniere sunt folosite peste tot.
 */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table {
	display: table !important;
	width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table > tbody {
	display: table-row-group !important;
	width: auto !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table > tfoot {
	display: table-footer-group !important;
	width: auto !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-subtotal,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.fee,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.order-total,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row {
	display: table-row !important;
	width: 100% !important;
	grid-template-columns: none !important;
	border: 0 !important;
	border-bottom-style: solid !important;
	border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
	border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
	background: transparent !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > td {
	display: table-cell !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
	background: transparent !important;
	vertical-align: top !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > th {
	width: 46% !important;
	min-width: 0 !important;
	padding-left: 0 !important;
	padding-right: 12px !important;
	text-align: left !important;
	white-space: normal !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > td {
	width: 54% !important;
	min-width: 0 !important;
	max-width: none !important;
	padding-left: 12px !important;
	padding-right: 0 !important;
	text-align: right !important;
	white-space: normal !important;
}

/* Separatorul de sub textele informative folosește exact aceeași setare Elementor. */
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-sidebar-top {
	border-bottom-style: solid !important;
	border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
	border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
}

/* Livrare: exact aceeași structură pe toate breakpoint-urile. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals {
	display: table-row !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > th,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td {
	display: table-cell !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: anywhere !important;
}

/*
 * Copiii rândului de livrare moștenesc stilul aplicat pe th/td.
 * JS-ul 9.4 copiază exact stilul calculat din „Stil text informare” pe aceste celule.
 */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td .amount,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td .woocommerce-Price-amount,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td strong,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping > td bdi,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td .amount,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td .woocommerce-Price-amount,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td strong,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals > td bdi {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	color: inherit !important;
}

/* Toate ratele pe care WooCommerce/FAN Courier le returnează rămân vizibile. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping ul#shipping_method,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals ul#shipping_method,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 6px !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping ul#shipping_method > li,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods > li,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals ul#shipping_method > li,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods > li {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
	list-style: none !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping ul#shipping_method > li > label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.shipping .woocommerce-shipping-methods > li > label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals ul#shipping_method > li > label,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.woocommerce-shipping-totals .woocommerce-shipping-methods > li > label {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	flex-wrap: wrap !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	white-space: normal !important;
	text-align: right !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Fără etichete mobile generate de WooCommerce/temă în totaluri. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table th::before,
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table td::before {
	display: none !important;
	content: none !important;
}

/* Cuponul rămâne un singur rând, fără ca regulile mobile vechi să-l transforme. */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals tr.ew-cart-summary-coupon-row > td.ew-cart-summary-coupon-cell {
	display: table-cell !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Aceleași reguli și sub 1024px/767px: nu există un layout separat pentru sumar. */
@media (max-width: 1024px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table > tbody,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table > tfoot,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > td {
		float: none !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table {
		display: table !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table > tbody {
		display: table-row-group !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table > tfoot {
		display: table-footer-group !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr {
		display: table-row !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > th,
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > td {
		display: table-cell !important;
	}
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > th {
		width: 46% !important;
		padding-right: 10px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr > td {
		width: 54% !important;
		padding-left: 10px !important;
	}
}


/* ===== Checkout Shop EW 9.5: Cart EW — cupon aplicat aliniat + separator unic ===== */
/*
 * Rândul de cupon are o singură celulă cu colspan=2. Reguli responsive vechi
 * tratau acea celulă ca pe coloana de valoare și puteau scurta separatorul.
 * De aici înainte separatorul aparține exclusiv celulei care ocupă ambele coloane.
 */
.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row {
	display: table-row !important;
	width: 100% !important;
	border: 0 !important;
	border-bottom: 0 !important;
	background: transparent !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row > td.ew-cart-summary-coupon-cell {
	display: table-cell !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	box-sizing: border-box !important;
	padding: 16px 0 !important;
	margin: 0 !important;
	text-align: left !important;
	vertical-align: middle !important;
	white-space: normal !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom-style: solid !important;
	border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
	border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
}

/* Fără linii/interior colorat suplimentar când cuponul este deja aplicat. */
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-cart-applied-coupons {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-cart-applied-coupon {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-cart-applied-coupon > span,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-cart-applied-coupon > strong {
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit !important;
	line-height: inherit !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-cart-applied-coupon > strong {
	font-weight: 600 !important;
	overflow-wrap: anywhere !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-remove-coupon:not(.ew-cart-coupon-remove-button) {
	flex: 0 0 auto !important;
	margin: 0 0 0 auto !important;
	padding: 3px 0 3px 10px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	white-space: nowrap !important;
}

/* Formularul neaplicat rămâne input stânga + buton dreapta pe toate dispozitivele. */
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-form .ew-cart-summary-coupon-content,
.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-form .ew-cart-summary-coupon-content.is-open {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-form .ew-cart-coupon-form {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: stretch !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-form .ew-cart-coupon-form .ew-coupon-code {
	grid-column: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-form .ew-cart-coupon-form .ew-apply-coupon {
	grid-column: 2 !important;
	width: auto !important;
	min-width: max-content !important;
	margin: 0 !important;
	white-space: nowrap !important;
}

.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row .ew-coupon-message {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	margin: 8px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row > td.ew-cart-summary-coupon-cell {
		width: auto !important;
		padding: 16px 0 !important;
		border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
		border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-cart-applied-coupon {
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-form .ew-cart-coupon-form {
		grid-template-columns: minmax(0, 1fr) auto !important;
		gap: 8px !important;
	}

	.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-form .ew-cart-coupon-form .ew-apply-coupon {
		width: auto !important;
		min-width: max-content !important;
	}
}


/* Checkout Shop EW 9.6
 * Cart EW: transportul NU se afișează în coș pe niciun breakpoint.
 * Metodele și costurile sunt calculate/afișate exclusiv în Checkout.
 */
.checkout-shop-ew-cart .cart_totals tr.shipping,
.checkout-shop-ew-cart .cart_totals tr.woocommerce-shipping-totals,
.checkout-shop-ew-cart .cart_totals .shipping-calculator-button,
.checkout-shop-ew-cart .cart_totals .shipping-calculator-form,
.checkout-shop-ew-cart .cart_totals .woocommerce-shipping-destination {
	display: none !important;
}


/* ===== Checkout Shop EW 9.7: livrare explicită + cupon aliniat cu livrarea ===== */
/* Cuponul din Rezumat folosește exact tipografia/culoarea configurate la Costuri de livrare. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-coupon,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-coupon *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-shipping,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-shipping * {
	font-family: inherit !important;
	font-size: inherit !important;
	font-style: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	color: inherit !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-coupon .woocommerce-remove-coupon {
	margin-left: 8px !important;
	font: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Până când WooCommerce primește adresa și întoarce metodele reale, nu afișăm o metodă generică. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-awaiting {
	width: 100%;
	margin: 0;
	padding: 10px 0;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 0;
}

/* ===== Checkout Shop EW 10.1: validare înainte de pasul Livrare ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 0 22px !important;
	padding: 16px 58px 16px 18px !important;
	border: 1px solid #d63638 !important;
	border-left-width: 4px !important;
	border-radius: 4px !important;
	background: #fff5f5 !important;
	color: #7a1113 !important;
	list-style: none !important;
}

/* Tema/WooCommerce poate adăuga o pictogramă absolută pe .woocommerce-error.
 * O anulăm pentru mesajul EW și folosim propriul buton de închidere, aliniat dreapta. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors::after {
	display: none !important;
	content: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors-close {
	display: inline-flex !important;
	position: absolute !important;
	top: 10px !important;
	right: 12px !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #7a1113 !important;
	font-family: Arial, sans-serif !important;
	font-size: 24px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors-close:hover,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors-close:focus-visible {
	background: rgba(122, 17, 19, .1) !important;
	color: #7a1113 !important;
	outline: 2px solid rgba(122, 17, 19, .35) !important;
	outline-offset: 1px !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors strong,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors span {
	display: block;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors strong {
	margin-bottom: 4px;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors ul {
	margin: 10px 0 0 20px !important;
	padding: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-details-errors li {
	margin: 3px 0 !important;
	padding: 0 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout [data-ew-details-invalid="1"] input,
.checkout-shop-ew-checkout.ew-checkout-modern-layout [data-ew-details-invalid="1"] select,
.checkout-shop-ew-checkout.ew-checkout-modern-layout [data-ew-details-invalid="1"] textarea,
.checkout-shop-ew-checkout.ew-checkout-modern-layout [data-ew-details-invalid="1"] .select2-selection {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 1px #d63638 !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-field-error {
	display: block !important;
	width: 100% !important;
	margin-top: 6px !important;
	color: #b32d2e !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
}

/* ===== Checkout Shop EW 10.7 ===== */
/* Regula finală are intenționat specificitate mai mare decât stilurile istorice
 * responsive. Transportul rămâne disponibil în WooCommerce, dar nu este randat în Cart EW. */
.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.shipping,
.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.woocommerce-shipping-totals,
.checkout-shop-ew-cart.checkout-shop-ew-cart .cart_totals tr.shipping,
.checkout-shop-ew-cart.checkout-shop-ew-cart .cart_totals tr.woocommerce-shipping-totals {
	display: none !important;
	visibility: hidden !important;
}

/* ===== Checkout Shop EW 10.8: controale curate + tipografie unificată ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"],
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"] {
	flex: 0 0 var(--ew-checkout-checkbox-size, 18px) !important;
	border-width: 1.5px !important;
	line-height: 1 !important;
}

/* Checkbox: bifă clasică, centrată și clară. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"]::before {
	width: calc(var(--ew-checkout-checkbox-size, 18px) * .48) !important;
	height: calc(var(--ew-checkout-checkbox-size, 18px) * .27) !important;
	border: 0 !important;
	border-right: 2px solid var(--ew-checkout-checkbox-check-color, #fff) !important;
	border-bottom: 2px solid var(--ew-checkout-checkbox-check-color, #fff) !important;
	background: transparent !important;
	transform: translateY(-1px) rotate(45deg) scale(0) !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="checkbox"]:checked::before {
	transform: translateY(-1px) rotate(45deg) scale(1) !important;
}

/* Radio: fundal alb, contur în culoarea selectată și punct central în aceeași
 * culoare. Elimină aspectul de inel auriu cu centru alb din captura trimisă. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"]::before {
	width: calc(var(--ew-checkout-checkbox-size, 18px) * .44) !important;
	height: calc(var(--ew-checkout-checkbox-size, 18px) * .44) !important;
	background: var(--ew-checkout-checkbox-checked-bg-color, #111) !important;
	box-shadow: none !important;
}

.checkout-shop-ew-checkout.ew-checkout-modern-layout input[type="radio"]:checked {
	border-color: var(--ew-checkout-checkbox-checked-bg-color, #111) !important;
	background: var(--ew-checkout-checkbox-bg-color, #fff) !important;
}

/* Cuponul și acțiunea Șterge păstrează tipografia moștenită de la Sub-total.
 * JavaScript copiază și valorile generate dinamic de Elementor după fiecare AJAX. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-coupon,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-coupon *,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-review-row-coupon .woocommerce-remove-coupon {
	font-family: inherit !important;
	font-size: inherit !important;
	font-style: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	color: inherit !important;
}

/* ===== Checkout Shop EW 10.12: buton Șterge identic cu finalizarea ===== */
/* Rândul nativ are două celule și poate fi restrâns de CSS-ul mobil al temei.
 * Cart EW folosește propriul rând colspan=2; Checkout EW nu este afectat. */
.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.cart-discount {
	display: none !important;
	visibility: hidden !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row.is-applied {
	display: table-row !important;
	width: 100% !important;
	border: 0 !important;
	background: transparent !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .cart_totals table.shop_table tr.ew-cart-summary-coupon-row.is-applied > td.ew-cart-summary-coupon-cell {
	display: table-cell !important;
	width: auto !important;
	max-width: none !important;
	box-sizing: border-box !important;
	padding: 16px 0 !important;
	border: 0 !important;
	border-bottom-style: solid !important;
	border-bottom-width: var(--ew-cart-separator-width, 1px) !important;
	border-bottom-color: var(--ew-cart-separator-color, rgba(0, 0, 0, .12)) !important;
	background: transparent !important;
	text-align: left !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-cart-applied-coupons,
.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-cart-applied-coupon {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-main {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: center !important;
	column-gap: 16px !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-label {
	grid-column: 1 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	white-space: nowrap !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-label strong {
	font: inherit !important;
	font-weight: 600 !important;
	color: inherit !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-value {
	display: inline-flex !important;
	grid-column: 2 !important;
	align-items: center !important;
	justify-content: flex-end !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: right !important;
	white-space: nowrap !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-value .amount,
.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-value .woocommerce-Price-amount,
.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-value bdi {
	display: inline !important;
	width: auto !important;
	white-space: nowrap !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-actions {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	width: 100% !important;
	margin: 10px 0 0 !important;
	padding: 0 !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-actions .ew-cart-coupon-remove-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 84px !important;
	min-height: 34px !important;
	margin: 0 !important;
	box-shadow: none !important;
	text-align: center !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	cursor: pointer !important;
}

.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-summary-coupon-row.is-applied .ew-coupon-message:empty {
	display: none !important;
}

@media (max-width: 767px) {
	.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-main {
		grid-template-columns: minmax(0, 1fr) auto !important;
		column-gap: 12px !important;
	}

	.checkout-shop-ew-cart.checkout-shop-ew-cart.ew-cart-premium-layout .ew-cart-applied-coupon-label {
		font-size: inherit !important;
	}
}

/* ===== Checkout Shop EW 10.15: additional address, scoped SelectWoo and card notice ===== */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .shipping_address.ew-additional-address {
 box-sizing: border-box; max-width: 100%; margin: 14px 0 24px;
 background: var(--ew-checkout-card-bg, var(--ew-address-background, #fff)) !important;
 padding: var(--ew-address-padding, 28px);
 border: var(--ew-address-border, 1px solid #ddd);
 border-radius: var(--ew-address-radius, 0);
 color: var(--ew-address-color, inherit);
 font-family: var(--ew-address-font-family, inherit);
 font-size: var(--ew-address-font-size, inherit);
 font-weight: var(--ew-address-font-weight, inherit);
 font-style: var(--ew-address-font-style, inherit);
 letter-spacing: var(--ew-address-letter-spacing, inherit);
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .shipping_address.ew-additional-address .woocommerce-shipping-fields__field-wrapper { margin: 0; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout #ship-to-different-address label {
 display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important;
 color: var(--ew-address-label-color, inherit);
 font-family: var(--ew-address-label-font-family, inherit);
 font-size: var(--ew-address-label-font-size, inherit);
 font-weight: var(--ew-address-label-font-weight, inherit);
 font-style: var(--ew-address-label-font-style, inherit);
 letter-spacing: var(--ew-address-label-letter-spacing, inherit);
 text-transform: var(--ew-address-label-text-transform, none);
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"],
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"] {
 -webkit-appearance: none !important; appearance: none !important;
 position: relative !important; display: inline-block !important;
 box-sizing: border-box !important; flex: 0 0 var(--ew-checkout-checkbox-size, 18px) !important;
 width: var(--ew-checkout-checkbox-size, 18px) !important; height: var(--ew-checkout-checkbox-size, 18px) !important;
 min-width: var(--ew-checkout-checkbox-size, 18px) !important; min-height: var(--ew-checkout-checkbox-size, 18px) !important;
 max-width: var(--ew-checkout-checkbox-size, 18px) !important; max-height: var(--ew-checkout-checkbox-size, 18px) !important;
 margin: 0 7px 0 0 !important; padding: 0 !important; vertical-align: middle !important;
 border: 1.5px solid var(--ew-checkout-checkbox-border-color, #b8b8b8) !important;
 background: var(--ew-checkout-checkbox-bg-color, #fff) !important; box-shadow: none !important;
 line-height: 1 !important; cursor: pointer; overflow: visible !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"] { border-radius: 3px !important; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"] { border-radius: 50% !important; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]:hover,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]:hover { background: var(--ew-checkout-checkbox-hover-color, #f3f3f3) !important; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]:checked,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]:checked,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]:checked:hover,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]:checked:hover {
 border-color: var(--ew-checkout-checkbox-checked-bg-color, #111) !important;
 background: var(--ew-checkout-checkbox-checked-bg-color, #111) !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]::before {
 content: "" !important; display: block !important; position: absolute !important;
 left: 50% !important; top: 50% !important; margin: 0 !important; padding: 0 !important;
 opacity: 0 !important; box-shadow: none !important; pointer-events: none !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]::before {
 box-sizing: border-box !important;
 width: calc(var(--ew-checkout-checkbox-size, 18px) * .25) !important;
 height: calc(var(--ew-checkout-checkbox-size, 18px) * .5) !important;
 border: 0 !important; border-right: 2px solid var(--ew-checkout-checkbox-check-color, #fff) !important;
 border-bottom: 2px solid var(--ew-checkout-checkbox-check-color, #fff) !important;
 border-radius: 0 !important; background: none !important;
 transform: translate(-50%, -62%) rotate(45deg) !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]::before {
 width: calc(var(--ew-checkout-checkbox-size, 18px) * .38) !important;
 height: calc(var(--ew-checkout-checkbox-size, 18px) * .38) !important;
 border: 0 !important; border-radius: 50% !important;
 background: var(--ew-checkout-checkbox-check-color, #fff) !important;
 transform: translate(-50%, -50%) !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]:checked::before,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]:checked::before { opacity: 1 !important; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]::after,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]::after { content: none !important; display: none !important; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]:focus-visible,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]:focus-visible { outline: 2px solid var(--ew-checkout-checkbox-checked-bg-color, #111) !important; outline-offset: 3px !important; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="checkbox"]:disabled,
.checkout-shop-ew-checkout.ew-checkout-modern-layout form.checkout input[type="radio"]:disabled { opacity: .5; cursor: not-allowed; }
/* SelectWoo attaches its dropdown to body, so only dropdowns marked by this checkout are themed. */
.select2-container .ew-checkout-select-dropdown {
 background: var(--ew-dropdown-background, #fff) !important;
 color: var(--ew-dropdown-color, #111) !important;
 border-color: var(--ew-dropdown-border, #ddd) !important;
 font-family: var(--ew-dropdown-font-family, inherit) !important;
 font-size: var(--ew-dropdown-font-size, 16px) !important;
 font-weight: var(--ew-dropdown-font-weight, 400) !important;
 font-style: var(--ew-dropdown-font-style, normal) !important;
 letter-spacing: var(--ew-dropdown-letter-spacing, normal) !important;
 text-transform: var(--ew-dropdown-text-transform, none);
}
.select2-container .ew-checkout-select-dropdown .select2-results__option {
 font: inherit !important; line-height: 1.5 !important; color: var(--ew-dropdown-color, #111);
 background: var(--ew-dropdown-background, #fff);
}
.select2-container .ew-checkout-select-dropdown .select2-results__option--highlighted,
.select2-container .ew-checkout-select-dropdown .select2-results__option--selected,
.select2-container .ew-checkout-select-dropdown .select2-results__option[data-selected="true"],
.select2-container .ew-checkout-select-dropdown .select2-results__option[aria-selected="true"],
.select2-container .ew-checkout-select-dropdown .select2-results__option:hover {
 background: var(--ew-dropdown-highlight-bg, #111) !important;
 color: var(--ew-dropdown-highlight-color, #fff) !important;
}
.select2-container .ew-checkout-select-dropdown .select2-results__option[aria-disabled="true"] {
 background: var(--ew-dropdown-background, #fff) !important; color: var(--ew-dropdown-color, #111) !important; opacity: .45;
}
.select2-container .ew-checkout-select-dropdown .select2-search__field {
 font: inherit !important; color: var(--ew-dropdown-color, #111) !important;
 background: var(--ew-dropdown-background, #fff) !important; border-color: var(--ew-dropdown-border, #ddd) !important;
 box-shadow: none !important;
}
.select2-container .ew-checkout-select-dropdown .select2-search__field:focus {
 outline: 1px solid var(--ew-dropdown-highlight-bg, #111); outline-offset: 1px;
}
/* The notice stays below the button even when Elementor aligns place-order with flex. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .place-order.ew-has-card-notice { flex-wrap: wrap !important; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .place-order .ew-checkout-button-wrap { order: 2 !important; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .ew-card-payment-notice {
 display: block; width: 100%; max-width: 100%; flex: 0 0 auto !important;
 order: 3 !important; align-self: stretch !important;
 box-sizing: border-box; margin: 14px 0 0 !important; padding: 0 !important;
 border: 0 !important; background: none !important;
 font-family: inherit !important; font-size: .82em !important; font-weight: 400 !important;
 font-style: normal !important; line-height: 1.7 !important; text-transform: none !important;
 color: inherit !important; text-align: left !important; white-space: pre-line; overflow-wrap: anywhere;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout #payment .ew-card-payment-notice[hidden] { display: none !important; }

/* Additional-address save uses the same Elementor button controls as billing. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-actions {
 display: flex; flex-wrap: wrap; align-items: center; margin-top: 18px; width: 100%;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-shipping-actions[hidden] { display: none !important; }

/* Sameday's original locker controls stay visible in the Livrare step. */
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-host {
	width: 100%;
	max-width: 100%;
	margin-top: 14px;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-host[hidden] {
	display: none !important;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-table {
	display: table !important;
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-table th,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-table td {
	padding: 8px 0;
	border: 0;
	background: transparent;
	text-align: left;
	white-space: normal;
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-table strong { font-weight: 500; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-host #select_locker { white-space: normal; }
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-host #shipping-pickup-store-select,
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-host .select2-container { width: 100% !important; max-width: 100%; }
@media (max-width: 767px) {
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-table th,
	.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-sameday-pickup-table td { display: block; width: 100%; }
}
.checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-save-shipping-details { max-width: 100%; white-space: normal; }
@media (max-width: 767px) {
 .checkout-shop-ew-checkout.ew-checkout-modern-layout .ew-checkout-save-shipping-details { width: 100%; justify-content: center; }
}
