/* Instant PDF Quote 报价面板：左表单、右报价单预览、成功画面；外加购物车页的入口按钮。
   面板放在询价弹窗（产品页 Instant PDF Quote 模式）和购物车报价弹窗里，弹窗外壳样式在 layer23-product-inquiry-dialog.css。 */

/* ---- 表单：一行说明，两列输入框，主按钮下一行要点 ---- */
.l23-qd__lead {
	margin: 0 0 18px;
	color: #475467;
	font-size: 14px;
	line-height: 1.55;
}

.l23-qd__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
	margin: 0;
}

.l23-qd__field {
	min-width: 0;
}

.l23-qd__field--company,
.l23-qd__field--reference,
.l23-qd__mobile-total,
.l23-qd__actions {
	grid-column: 1 / -1;
}

/* 产品页有数量栏：数量和 PO 并排一行 */
.l23-qd__field--qty + .l23-qd__field--reference {
	grid-column: auto;
}

.l23-qd__label {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin: 0 0 6px;
	color: #344054;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.l23-qd__label em {
	color: #c0392b;
	font-style: normal;
}

.l23-qd__label small {
	margin-left: auto;
	color: #98a2b3;
	font-size: 12px;
	font-weight: 400;
}

.l23-qd__input {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	color: #101828;
	font-size: 15px;
}

.l23-qd__input:focus {
	border-color: #2e70d1;
	outline: 3px solid rgba(46, 112, 209, 0.14);
}

/* 蜜罐字段：移出屏幕，不用 display:none（部分机器人会跳过隐藏字段） */
.l23-qd__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.l23-qd__actions {
	margin-top: 6px;
}

.l23-qd__error {
	margin: 0 0 10px;
	padding: 8px 12px;
	background: #fef3f2;
	border: 1px solid #fecdca;
	border-radius: 8px;
	color: #b42318;
	font-size: 13px;
	line-height: 1.45;
}

/* 主题给所有 button 的悬停/聚焦改字色、加阴影，这里把颜色和阴影写死 */
.l23-qd__submit,
.l23-qd__submit:hover,
.l23-qd__submit:focus,
.l23-qd__submit:active {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: #2e70d1;
	box-shadow: none;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.l23-qd__submit:hover,
.l23-qd__submit:focus-visible {
	background: #245eb1;
}

.l23-qd__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.l23-qd__submit svg {
	width: 18px;
	height: 18px;
}

.l23-qd__facts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 16px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	color: #667085;
	font-size: 12.5px;
}

.l23-qd__facts li::before {
	content: "✓";
	margin-right: 5px;
	color: #0f7a4f;
	font-weight: 700;
}

.l23-qd__mobile-total {
	display: none;
}

/* ---- 右侧预览：灰底里放一张报价单 ---- */
.l23-qd__preview {
	align-self: start;
	margin: 0;
	padding: 16px;
	background: #f3f6fa;
	border-radius: 12px;
}

.l23-qd__caption {
	margin: 0 0 10px;
	color: #667085;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.l23-quote-preview__paper {
	padding: 16px 16px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
	color: #1f2a3a;
	font-size: 10px;
	line-height: 1.45;
}

.qp-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.qp-head img {
	width: 78px;
	height: auto;
}

.qp-head b {
	color: #0b1f3a;
	font-size: 15px;
	letter-spacing: 0.08em;
}

.qp-rule {
	height: 2px;
	margin: 7px 0 8px;
	background: #0956a4;
}

.qp-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid #dbe5ef;
	background: #f3f7fb;
}

.qp-meta div {
	padding: 4px 6px;
}

.qp-meta div + div {
	border-left: 1px solid #dbe5ef;
}

.qp-lbl,
.qp-meta span {
	display: block;
	color: #64748b;
	font-size: 7.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.qp-meta b {
	color: #0b1f3a;
	font-size: 9.5px;
}

.qp-meta .qp-blue {
	color: #0956a4;
}

.qp-meta .qp-pending {
	color: #98a2b3;
	font-weight: 500;
}

.qp-for {
	margin: 9px 0 8px;
}

.qp-for b,
.qp-for span,
.qp-for i {
	display: block;
	font-style: normal;
}

.qp-for [data-p="company"] {
	color: #0b1f3a;
	font-size: 12px;
	font-weight: 700;
}

.qp-for span {
	color: #475569;
}

.qp-for i {
	display: inline;
}

.qp-for [hidden] {
	display: none;
}

.qp-empty {
	color: #b6c0cc !important;
}

.qp-hit {
	background: #fff3c4;
	box-shadow: 0 0 0 2px #fff3c4;
	border-radius: 2px;
}

.qp-items {
	width: 100%;
	border-collapse: collapse;
}

.qp-items th {
	padding: 3px 5px;
	background: #0b1f3a;
	color: #fff;
	font-size: 7.5px;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
}

.qp-items td {
	padding: 5px;
	border-bottom: 1px solid #dbe5ef;
	vertical-align: top;
}

.qp-items small {
	display: block;
	color: #0f7a4f;
	font-size: 8px;
}

.qp-items .qp-num {
	text-align: right;
	white-space: nowrap;
}

.qp-total {
	display: flex;
	justify-content: space-between;
	margin: 6px 0 0 40%;
	padding: 4px 6px;
	border-top: 2px solid #0956a4;
	background: #eaf2fb;
	color: #0b1f3a;
	font-size: 11px;
	font-weight: 700;
}

.qp-terms {
	margin-top: 10px;
}

.qp-terms i {
	display: block;
	height: 5px;
	margin-top: 5px;
	border-radius: 3px;
	background: #edf1f6;
}

.qp-terms i:nth-child(2) {
	width: 86%;
}

.qp-terms i:nth-child(3) {
	width: 70%;
}

/* 购物车行多时预览表格内部滚动，弹窗高度不跟着长 */
.qp-items-wrap {
	max-height: 210px;
	overflow-y: auto;
}

.qp-items .qp-ship td {
	color: #475569;
}

/* ---- 成功画面 ---- */
.l23-qd__done {
	padding: 28px 0 8px;
	text-align: center;
}

.l23-qd__done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 10px;
	background: #e7f6ee;
	border-radius: 50%;
	color: #0f7a4f;
}

.l23-qd__done-title {
	margin: 0;
	color: #1d2939;
	font-size: 21px;
	line-height: 1.3;
}

.l23-qd__done-copy {
	max-width: 420px;
	margin: 8px auto 0;
	color: #475467;
	font-size: 14px;
	line-height: 1.55;
}

.l23-qd__again {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	padding: 10px 22px;
	background: #fff;
	border: 1.5px solid #2e70d1;
	border-radius: 8px;
	color: #2e70d1;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.l23-qd__again:hover,
.l23-qd__again:focus-visible {
	background: #f5f9ff;
	color: #2e70d1;
}

.l23-qd__again svg {
	width: 18px;
	height: 18px;
}

.l23-qd__done-help {
	margin: 16px 0 0;
	color: #667085;
	font-size: 13px;
}

.l23-qd__done-help a,
.l23-qd__link,
.l23-qd__link:hover,
.l23-qd__link:focus {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: #2e70d1;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* ================ 购物车页：Proceed to Checkout 下面的入口 ================ */
.l23-cart-quote {
	margin-top: 14px;
}

.l23-cart-quote__divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: #98a2b3;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.l23-cart-quote__divider::before,
.l23-cart-quote__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e4e7ec;
}

.l23-cart-quote__button,
.l23-cart-quote__button:hover,
.l23-cart-quote__button:focus,
.l23-cart-quote__button:active {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 6px 14px;
	border: 1.5px solid var(--global-palette1, #2e70d1);
	border-radius: var(--global-button-border-radius, 4px);
	background: #fff;
	box-shadow: none;
	color: var(--global-palette1, #2e70d1);
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.l23-cart-quote__button:hover,
.l23-cart-quote__button:focus-visible {
	background: #f5f9ff;
}

.l23-cart-quote__icon {
	flex: none;
	width: 22px;
	height: 26px;
}

.l23-cart-quote__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.l23-cart-quote__title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}

.l23-cart-quote__sub {
	color: #667085;
	font-size: 12px;
	line-height: 1.3;
}

.l23-cart-quote__note {
	margin: 10px 0 0;
	color: #667085;
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

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

	.l23-qd__lead {
		margin-bottom: 12px;
		font-size: 13px;
	}

	.l23-qd__form {
		grid-template-columns: minmax(0, 1fr) 96px;
		gap: 10px;
	}

	.l23-qd__field {
		grid-column: 1 / -1;
	}

	/* 手机：PO 和数量并排，数量窄一列 */
	.l23-qd__field--qty + .l23-qd__field--reference {
		grid-column: 1;
		grid-row: 4;
	}

	.l23-qd__field--qty {
		grid-column: 2;
		grid-row: 4;
	}

	.l23-qd__input {
		height: 44px;
		font-size: 16px;
	}

	.l23-qd__mobile-total {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 10px;
		padding: 10px 12px;
		background: #f3f7fb;
		border: 1px solid #dbe5ef;
		border-radius: 10px;
		color: #344054;
		font-size: 13px;
	}

	.l23-qd__mobile-total b {
		color: #0b1f3a;
		font-size: 16px;
	}
}
