/**
 * Ecommoda Cart widget — layout/typography values below are copied directly
 * from a real-browser (Playwright/Chrome) getBoundingClientRect()/
 * getComputedStyle() audit of https://ecommoda.com/cart at 1440x900,
 * 1024x900 and 390x844 (see the recovered Codex audit under
 * %TEMP%/ecommoda-cart-audit-20260906/cart-extraction.json for the raw
 * data this file was built from) — not estimated from screenshots.
 */

.ecommoda-cart {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: content-box;
	font-family: var( --font-family-1, 'Poppins' ), sans-serif;
}

.ecommoda-cart__heading {
	margin: 0 0 30px;
	font-size: 20px;
	font-weight: 500;
	line-height: 20px;
	color: #222222;
	text-align: left;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------
 * Filled cart — column grid: image+info | price | quantity | total
 * ------------------------------------------------------------------- */

.ecommoda-cart__header,
.ecommoda-cart__item {
	display: grid;
	grid-template-columns: minmax( 0, 470px ) 270px 120px 1fr;
	column-gap: 30px;
	align-items: center;
}

.ecommoda-cart__header {
	padding-bottom: 15px;
	border-bottom: 1px solid #ddd;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: #222222;
	text-transform: uppercase;
}

.ecommoda-cart__header-price,
.ecommoda-cart__header-qty,
.ecommoda-cart__header-total {
	text-align: center;
}

.ecommoda-cart__item {
	position: relative;
	padding: 30px 0;
	border-top: 1px solid #ddd;
}

.ecommoda-cart__item-info {
	display: flex;
	align-items: flex-start;
	gap: 15px;
}

.ecommoda-cart__item-img {
	display: block;
	flex: 0 0 120px;
	width: 120px;
	height: 120px;
}

.ecommoda-cart__item-img img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: cover;
	object-position: center center;
}

.ecommoda-cart__item-meta {
	display: flex;
	flex-direction: column;
	padding-top: 18px;
}

.ecommoda-cart__item-title {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: #222222;
	text-decoration: none;
}

a.ecommoda-cart__item-title:hover {
	color: #222222;
}

.ecommoda-cart__item-variant {
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 400;
	line-height: 22px;
	color: #000000;
}

.ecommoda-cart__item-variant dt,
.ecommoda-cart__item-variant dd {
	display: inline;
	margin: 0;
	padding: 0;
}

.ecommoda-cart__item-variant dt::after {
	content: ': ';
}

.ecommoda-cart__item-variant p {
	margin: 0;
}

.ecommoda-cart__item-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.ecommoda-cart__item-edit,
.ecommoda-cart__item-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: none;
	color: #222222;
	cursor: pointer;
	transition: color 0.25s;
}

.ecommoda-cart__item-edit:hover,
.ecommoda-cart__item-remove:hover {
	color: #ec0101;
}

.ecommoda-cart__item-price {
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	color: #000000;
	text-align: center;
}

.ecommoda-cart__item-price del {
	color: #696969;
	text-decoration: line-through;
	margin-right: 6px;
}

.ecommoda-cart__item-price ins {
	color: #ec0101;
	text-decoration: none;
}

.ecommoda-cart__item-total {
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
	color: #222222;
	text-align: right;
}

/* ---------------------------------------------------------------------
 * Quantity control
 * ------------------------------------------------------------------- */

.ecommoda-cart__qty-control {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 120px;
	height: 40px;
	margin: 0 auto;
	border: 1px solid #222222;
	border-radius: 8px;
	background: #ffffff;
	position: relative;
}

.ecommoda-cart__qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: #222222;
	font-size: 14px;
	cursor: pointer;
	transition: color 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.ecommoda-cart__qty-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ecommoda-cart__qty-input {
	flex: 1 1 auto;
	width: 35px;
	height: 38px;
	border: 0;
	background: none;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #222222;
	-moz-appearance: textfield;
}

.ecommoda-cart__qty-input::-webkit-outer-spin-button,
.ecommoda-cart__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ecommoda-cart__qty-fixed {
	display: block;
	text-align: center;
	font-size: 14px;
	color: #222222;
}

/* ---------------------------------------------------------------------
 * Loading state
 * ------------------------------------------------------------------- */

.ecommoda-cart__loading {
	height: 2px;
	background: #222222;
	transform-origin: left;
	transition: transform 0.2s ease;
}

.ecommoda-cart__loading[hidden] {
	display: none;
}

.ecommoda-cart__item.is-updating {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ---------------------------------------------------------------------
 * Footer: note + summary
 * ------------------------------------------------------------------- */

.ecommoda-cart__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
	margin-top: 60px;
	margin-bottom: 80px;
}

.ecommoda-cart__note {
	flex: 1 1 570px;
	max-width: 570px;
}

.ecommoda-cart__note-label {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
	color: #222222;
	cursor: pointer;
}

.ecommoda-cart__note-input {
	display: block;
	width: 100%;
	min-height: 100px;
	padding: 8px 10px;
	border: 1px solid #ddd;
	background: #ffffff;
	font-family: inherit;
	font-size: 13px;
	line-height: 18px;
	color: #222222;
	resize: vertical;
	transition: border-color 0.5s;
}

.ecommoda-cart__note-input:focus {
	border-color: #222222;
	outline: none;
}

.ecommoda-cart__summary {
	flex: 1 1 570px;
	max-width: 570px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.ecommoda-cart__subtotal {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
}

.ecommoda-cart__subtotal-label {
	font-size: 18px;
	font-weight: 600;
	color: #222222;
}

.ecommoda-cart__subtotal-value {
	font-size: 20px;
	font-weight: 600;
	color: #222222;
}

.ecommoda-cart__checkout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 45px;
	background: #000000;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	border: 0;
	border-radius: 8px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: 0.3s ease-in-out;
}

.ecommoda-cart__checkout:hover,
.ecommoda-cart__checkout:focus {
	color: #ffffff;
	opacity: 0.85;
}

/* ---------------------------------------------------------------------
 * Empty cart
 * ------------------------------------------------------------------- */

.ecommoda-cart__empty {
	max-width: 1170px;
	margin: 140px auto 200px;
	padding: 0 15px;
	text-align: center;
}

.ecommoda-cart__empty-icon {
	width: 90px;
	height: 80px;
	margin: 0 auto 30px;
	display: block;
	color: #222222;
}

.ecommoda-cart__empty-heading {
	margin: 0 0 20px;
	font-size: 30px;
	font-weight: 600;
	line-height: 42px;
	color: #222222;
	text-transform: uppercase;
}

.ecommoda-cart__empty-text {
	margin: 0 0 30px;
	font-size: 14px;
	line-height: 23.8px;
	color: #000000;
}

.ecommoda-cart__empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 5px 25px;
	background: #000000;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	text-transform: uppercase;
	transition: 0.3s ease-in-out;
}

.ecommoda-cart__empty-btn:hover,
.ecommoda-cart__empty-btn:focus {
	color: #ffffff;
	opacity: 0.85;
}

/* ---------------------------------------------------------------------
 * Tablet (768–1024px) — confirmed via real audit at 1024x900
 * ------------------------------------------------------------------- */

@media ( max-width: 1024px ) {
	.ecommoda-cart {
		padding: 0 15px;
	}

	.ecommoda-cart__header,
	.ecommoda-cart__item {
		grid-template-columns: minmax( 0, 320px ) 200px 120px 1fr;
		column-gap: 20px;
	}
}

/* ---------------------------------------------------------------------
 * Mobile (<768px) — confirmed via real audit at 390x844: stacked card
 * layout, quantity below price, full-width checkout button
 * ------------------------------------------------------------------- */

@media ( max-width: 767px ) {
	.ecommoda-cart__header {
		display: none;
	}

	.ecommoda-cart__item {
		display: block;
		padding: 25px 0;
	}

	.ecommoda-cart__item-info {
		gap: 20px;
	}

	.ecommoda-cart__item-img,
	.ecommoda-cart__item-img img {
		width: 120px;
		height: 120px;
	}

	.ecommoda-cart__item-meta {
		padding-top: 0;
	}

	.ecommoda-cart__item-price,
	.ecommoda-cart__item-quantity,
	.ecommoda-cart__item-total {
		margin-left: 140px;
		text-align: left;
	}

	.ecommoda-cart__item-price,
	.ecommoda-cart__item-total {
		margin-top: 12px;
	}

	.ecommoda-cart__item-quantity {
		margin-top: 12px;
	}

	.ecommoda-cart__qty-control {
		margin: 0;
	}

	.ecommoda-cart__footer {
		flex-direction: column;
		margin-top: 40px;
		margin-bottom: 50px;
	}

	.ecommoda-cart__note,
	.ecommoda-cart__summary {
		max-width: 100%;
		flex-basis: 100%;
	}

	.ecommoda-cart__summary {
		align-items: stretch;
	}

	.ecommoda-cart__checkout {
		width: 100%;
		height: 44px;
	}

	.ecommoda-cart__empty {
		margin: 100px auto 120px;
	}
}
