/* Biz Sales — 批量询价车样式（Stripe 风格，颜色走变量，无硬编码） */

/* 悬浮按钮 */
.wic-float {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9998;
	width: 56px;
	height: 56px;
	border: none;
	border-radius: 999px;
	background: var(--c-primary, #635bff);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(99, 91, 255, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wic-float:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(99, 91, 255, 0.45);
}
.wic-float svg {
	width: 24px;
	height: 24px;
}
.wic-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #e2483d;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
}
.wic-badge[hidden] { display: none; }

/* 抽屉容器 */
.wic {
	position: fixed;
	inset: 0;
	z-index: 9999;
	visibility: hidden;
}
.wic.open { visibility: visible; }
.wic-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.wic.open .wic-overlay { opacity: 1; }

.wic-drawer {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: 380px;
	max-width: 92vw;
	background: #fff;
	box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.25s ease;
}
.wic.open .wic-drawer { transform: translateX(0); }

.wic-head {
	padding: 20px 20px 12px;
	border-bottom: 1px solid #e3e8ef;
}
.wic-head h2 {
	margin: 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #0f172a;
}
.wic-close {
	border: none;
	background: transparent;
	cursor: pointer;
	color: #697386;
	padding: 4px;
	border-radius: 6px;
	line-height: 0;
}
.wic-close:hover { background: #f1f5f9; color: #0f172a; }
.wic-close svg { width: 20px; height: 20px; }
.wic-sub {
	margin: 6px 0 0;
	font-size: 13px;
	color: #697386;
}

.wic-list {
	flex: 1;
	overflow-y: auto;
	padding: 12px 20px;
}
.wic-empty {
	margin: 24px 0 6px;
	font-weight: 600;
	color: #0f172a;
}
.wic-hint {
	font-size: 13px;
	color: #697386;
}
.wic-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eef2f7;
}
.wic-item-info { display: flex; flex-direction: column; min-width: 0; }
.wic-item-title {
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wic-item-sku {
	font-size: 12px;
	color: #8792a2;
}
.wic-remove {
	border: none;
	background: transparent;
	color: #e2483d;
	font-size: 13px;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 6px;
	white-space: nowrap;
}
.wic-remove:hover { background: #fdeceb; }

.wic-form {
	border-top: 1px solid #e3e8ef;
	padding: 16px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fbfcfe;
}
.wic-form label {
	font-size: 13px;
	font-weight: 600;
	color: #334e68;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.wic-form input,
.wic-form textarea {
	font: inherit;
	font-weight: 400;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #0f172a;
}
.wic-form input:focus,
.wic-form textarea:focus {
	outline: none;
	border-color: var(--c-primary, #635bff);
	box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}
.wic-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 2px;
}
.wic-clear {
	border: none;
	background: transparent;
	color: #697386;
	cursor: pointer;
	font-size: 13px;
	padding: 8px 4px;
}
.wic-clear:hover { color: #0f172a; }
.wic-submit {
	border: none;
	background: var(--c-primary, #635bff);
	color: #fff;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 999px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.wic-submit:hover { opacity: 0.92; }
.wic-submit:disabled { opacity: 0.55; cursor: default; }

.wic-msg {
	font-size: 13px;
	min-height: 18px;
}
.wic-msg-ok { color: #1a7f5a; }
.wic-msg-err { color: #e2483d; }

/* Toast */
.wic-toast {
	position: fixed;
	left: 50%;
	bottom: 96px;
	transform: translateX(-50%) translateY(10px);
	background: #0f172a;
	color: #fff;
	font-size: 13px;
	padding: 10px 16px;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 10000;
}
.wic-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

body.wic-noscroll { overflow: hidden; }

@media (max-width: 480px) {
	.wic-drawer { width: 100%; max-width: 100%; }
	.wic-float { right: 16px; bottom: 16px; }
}
