.sytec-account-cart {
	border: 1px solid var(--sytec-color-border, #dbe3ec);
	border-radius: var(--sytec-radius-large, 16px);
	background: var(--sytec-color-surface, #fff);
	overflow: hidden;
}

.sytec-account-cart > h2 {
	margin: 0;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--sytec-color-border, #dbe3ec);
}

.sytec-account-cart__items {
	display: grid;
}

.sytec-account-cart__item {
	display: grid;
	grid-template-columns: 84px minmax(180px, 1fr) minmax(76px, auto) minmax(100px, auto) minmax(110px, auto);
	grid-template-rows: auto auto;
	align-items: center;
	padding: 1.25rem 1.5rem;
	gap: 0.5rem 1.25rem;
	border-bottom: 1px solid var(--sytec-color-border, #dbe3ec);
}

.sytec-account-cart__image {
	grid-row: 1 / 3;
}

.sytec-account-cart__image img {
	display: block;
	width: 84px;
	height: 84px;
	border-radius: var(--sytec-radius-small, 8px);
	object-fit: cover;
}

.sytec-account-cart__content {
	grid-row: 1 / 3;
	min-width: 0;
}

.sytec-account-cart__content h3 {
	margin: 0;
	font-size: 1rem;
}

.sytec-account-cart__content h3 a {
	color: inherit;
	text-decoration: none;
}

.sytec-account-cart__meta {
	margin-top: 0.4rem;
	color: var(--sytec-color-muted, #64748b);
	font-size: 0.85rem;
}

.sytec-account-cart__meta dl,
.sytec-account-cart__meta p {
	margin: 0;
}

.sytec-account-cart__quantity,
.sytec-account-cart__price,
.sytec-account-cart__subtotal {
	display: grid;
	gap: 0.2rem;
}

.sytec-account-cart__quantity > span,
.sytec-account-cart__price > span,
.sytec-account-cart__subtotal > span {
	color: var(--sytec-color-muted, #64748b);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.sytec-account-cart__remove {
	grid-column: 5;
	justify-self: end;
	color: #b42318;
	font-size: 0.85rem;
}

.sytec-account-cart__summary {
	display: flex;
	justify-content: flex-end;
	padding: 1.25rem 1.5rem 0;
}

.sytec-account-cart__summary dl {
	width: min(100%, 360px);
	margin: 0;
}

.sytec-account-cart__summary dl > div {
	display: flex;
	justify-content: space-between;
	padding: 0.55rem 0;
	gap: 2rem;
}

.sytec-account-cart__summary dl > div:last-child {
	border-top: 1px solid var(--sytec-color-border, #dbe3ec);
	font-size: 1.1rem;
	font-weight: 700;
}

.sytec-account-cart__summary dd {
	margin: 0;
}

.sytec-account-cart__actions {
	display: flex;
	justify-content: flex-end;
	padding: 1rem 1.5rem 1.5rem;
	gap: 0.75rem;
}

.sytec-account-cart__empty {
	display: grid;
	justify-items: start;
	padding: 1.5rem;
	gap: 0.75rem;
}

.sytec-account-cart__empty p {
	margin: 0;
}

.sytec-account-cart__badge {
	display: inline-grid !important;
	place-items: center;
	min-width: 1.5rem;
	height: 1.5rem;
	margin-left: 0.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: var(--sytec-color-accent, #2563eb);
	color: #fff !important;
	font-size: 0.75rem !important;
	line-height: 1;
}

@media (max-width: 767px) {
	.sytec-account-cart__item {
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-rows: auto;
		align-items: start;
		padding: 1rem;
		gap: 0.85rem 1rem;
	}

	.sytec-account-cart__image,
	.sytec-account-cart__content,
	.sytec-account-cart__quantity,
	.sytec-account-cart__price,
	.sytec-account-cart__subtotal,
	.sytec-account-cart__remove {
		grid-column: auto;
		grid-row: auto;
	}

	.sytec-account-cart__image img {
		width: 72px;
		height: 72px;
	}

	.sytec-account-cart__content {
		align-self: center;
	}

	.sytec-account-cart__quantity,
	.sytec-account-cart__price,
	.sytec-account-cart__subtotal,
	.sytec-account-cart__remove {
		grid-column: 1 / -1;
	}

	.sytec-account-cart__quantity,
	.sytec-account-cart__price,
	.sytec-account-cart__subtotal {
		display: flex;
		justify-content: space-between;
	}

	.sytec-account-cart__remove {
		justify-self: start;
	}

	.sytec-account-cart__summary,
	.sytec-account-cart__actions {
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.sytec-account-cart__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.sytec-account-cart__actions .button {
		text-align: center;
	}
}
