/**
 * 询价单的样式：加入按钮、链接上的件数和询价单页的清单.
 *
 * 基础排版交给主题，这里只保证在各主题下能用.
 */

.b2btrade-quote-add--single {
	margin: 0 0 1rem;
}

.b2btrade-quote-add--loop {
	margin-top: 0.5rem;
}

.b2btrade-quote-note {
	display: block;
	font-size: 0.85rem;
	margin-top: 0.25rem;
}

.b2btrade-quote {
	margin-bottom: 1.5rem;
}

.b2btrade-quote__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.b2btrade-quote__item {
	align-items: flex-start;
	border-bottom: 1px solid #e2e2e2;
	display: flex;
	gap: 1rem;
	padding: 0.9rem 0;
}

.b2btrade-quote__image {
	flex: 0 0 64px;
	height: 64px;
	object-fit: cover;
	width: 64px;
}

.b2btrade-quote__body {
	display: grid;
	flex: 1 1 auto;
	gap: 0.5rem;
	min-width: 0;
}

.b2btrade-quote__name {
	font-weight: 600;
}

.b2btrade-quote__field {
	display: grid;
	gap: 0.2rem;
}

.b2btrade-quote__field label {
	font-size: 0.85rem;
}

.b2btrade-quote__field input {
	background: #fff;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
	box-sizing: border-box;
	padding: 0.45rem 0.6rem;
	width: 100%;
}

.b2btrade-quote__remove {
	flex: 0 0 auto;
}

.b2btrade-quote__empty {
	margin-bottom: 0.5rem;
}

/* 窄屏上图片缩小，移除按钮换到下一行. */
@media (max-width: 600px) {
	.b2btrade-quote__item {
		flex-wrap: wrap;
	}

	.b2btrade-quote__image {
		flex-basis: 48px;
		height: 48px;
		width: 48px;
	}
}
