/* ========== 编辑关联弹窗 ========== */
.fx-relation-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
}

.fx-relation-modal.hide {
	display: none;
}

.fx-relation-modal .common-span {
	color: #999;
	display: inline-block;
	font-weight: 400;
	margin-left: 0px;
}

.fx-relation-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.fx-relation-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 1100px;
	max-height: 85vh;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.fx-relation-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	border-bottom: 1px solid #e8e8e8;
	background: #fafafa;
}

.fx-relation-title {
	font-size: 16px;
	font-weight: bold;
	color: #333;
}

.fx-relation-close {
	font-size: 22px;
	color: #999;
	text-decoration: none;
	line-height: 1;
}

.fx-relation-close:hover {
	color: #333;
	text-decoration: none;
}

.fx-relation-product-info {
	display: flex;
	align-items: center;
	padding: 12px 20px;
	border-bottom: 1px solid #f0f0f0;
	gap: 12px;
}

.fx-rp-img {
	width: 48px;
	border-radius: 4px;
	object-fit: cover;
}

.fx-rp-name {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 600px;
}

.fx-rp-meta {
	font-size: 12px;
	margin-top: 4px;
}

.fx-relation-source-area {
	padding: 10px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.fx-rs-header {
	margin-bottom: 8px;
}

.fx-rs-toggle-btn {
	cursor: pointer;
	color: #1890ff;
	font-size: 13px;
}

.fx-rs-arrow {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #1890ff;
	margin-left: 4px;
	vertical-align: middle;
}

.fx-rs-table-wrap {
	max-height: 280px;
	overflow-y: auto;
}

.fx-rs-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 12px;
}

.fx-rs-table th {
	background: #fafafa;
	padding: 6px 8px;
	text-align: center;
	border: 1px solid #e8e8e8;
	border-right: none;
	font-weight: normal;
	color: #666;
	position: sticky;
	top: 0;
	z-index: 1;
}

.fx-rs-table th:last-child {
	border-right: 1px solid #e8e8e8;
}

.fx-rs-table td {
	padding: 8px;
	border: 1px solid #e8e8e8;
	border-top: none;
	border-right: none;
	text-align: center;
	vertical-align: middle;
}

.fx-rs-table td:last-child {
	border-right: 1px solid #e8e8e8;
}

.fx-rs-table .fx-rs-pic {
	width: 48px;
	border-radius: 4px;
	object-fit: cover;
}

.fx-rs-table .fx-rs-info-cell {
	text-align: left;
}

.fx-rs-table .fx-rs-info-title {
	display: block;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.fx-rs-table .fx-rs-info-remark {
	color: #e6a23c;
}

.fx-rs-table .fx-rs-miwen-yes {
	color: #1890ff;
}

.fx-rs-table .fx-rs-miwen-no {
	color: #ccc;
}

.fx-rs-add-row {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.fx-rs-add-input {
	flex: 1;
}

.fx-rs-remark-input {
	padding: 4px 8px;
	border: 1px solid #d9d9d9;
	border-radius: 3px;
	font-size: 12px;
}

.fx-relation-sku-area {
	flex: 1;
	overflow-y: auto;
	margin: 10px 20px;
}

.fx-rsku-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 12px;
}

.fx-rsku-table th {
	background: #fafafa;
	padding: 6px 8px;
	text-align: center;
	border: 1px solid #e8e8e8;
	border-right: none;
	font-weight: normal;
	color: #666;
	position: sticky;
	top: 0;
	z-index: 1;
}

.fx-rsku-table th:last-child {
	border-right: 1px solid #e8e8e8;
}

.fx-rsku-table td {
	padding: 6px 8px;
	border: 1px solid #e8e8e8;
	border-top: none;
	border-right: none;
	text-align: center;
	vertical-align: middle;
}

.fx-rsku-table td:last-child {
	border-right: 1px solid #e8e8e8;
}

.fx-rsku-table .fx-rsku-name {
	text-align: left;
	display: flex;
	align-items: center;
	gap: 6px;
}

.fx-rsku-table .fx-rsku-img {
	width: 48px;
	border-radius: 4px;
	object-fit: cover;
}

.fx-rsku-table .fx-rsku-select-btn {
	display: block;
	text-align: left;
	padding: 3px 8px;
	border: 1px solid #d9d9d9;
	border-radius: 3px;
	cursor: pointer;
	background: #fff;
	color: #333;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 120px;
	text-decoration: none;
}

.fx-rsku-table .fx-rsku-select-btn:hover {
	border-color: #1890ff;
	text-decoration: none;
}

.fx-rsku-table .fx-rsku-select-btn.empty {
	color: #ccc;
}

.fx-rsku-table .fx-rsku-buycount {
	width: 50px;
	text-align: center;
	padding: 2px 4px;
	border: 1px solid #d9d9d9;
	border-radius: 3px;
}

.fx-rsku-table .fx-rsku-ali-pic {
	width: 48px;
	border-radius: 4px;
	object-fit: cover;
}

.hoverPic {
	cursor: pointer;
}

.fx-relation-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	border-top: 1px solid #e8e8e8;
	background: #fafafa;
}

.fx-rf-left {
	display: flex;
	gap: 8px;
}

.fx-rf-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fx-rf-progress {
	font-size: 13px;
	color: #666;
}

.fx-rf-progress .fx-rf-matched {
	color: #52c41a;
	font-weight: bold;
}

/* ========== 高层级Toast提示（覆盖在弹窗之上） ========== */
.fx-relation-toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	padding: 12px 32px;
	border-radius: 6px;
	font-size: 15px;
	z-index: 200000;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
	max-width: 500px;
	text-align: center;
}

.fx-relation-toast.fx-rt-show {
	opacity: 1;
}

/* ========== 高层级确认框（覆盖在弹窗之上） ========== */
.fx-relation-confirm-mask {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 200000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fx-relation-confirm-box {
	background: #fff;
	padding: 24px 28px;
	border-radius: 6px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	min-width: 300px;
	text-align: center;
}

.fx-relation-confirm-msg {
	font-size: 14px;
	color: #333;
	margin-bottom: 20px;
	line-height: 1.6;
}

.fx-relation-confirm-btns {
	display: flex;
	gap: 12px;
	justify-content: center;
}

/* ========== 选择SKU弹窗 ========== */
.fx-sku-select-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100001;
}

.fx-sku-select-modal.hide {
	display: none;
}

.fx-sku-select-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
}

.fx-sku-select-dialog {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 420px;
	max-height: 60vh;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
}

.fx-sku-select-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 16px;
	border-bottom: 1px solid #e8e8e8;
	font-size: 14px;
	font-weight: 500;
}

.fx-sku-select-close {
	font-size: 20px;
	color: #999;
	text-decoration: none;
}

.fx-sku-select-close:hover {
	color: #333;
	text-decoration: none;
}

.fx-sku-select-body {
	overflow-y: auto;
	padding: 8px 0;
}

.fx-sku-select-list {
	
}

.fx-sku-select-item {
	display: flex;
	align-items: center;
	padding: 8px 16px;
	cursor: pointer;
	gap: 8px;
	font-size: 12px;
	transition: background 0.15s;
}

.fx-sku-select-item:hover {
	background: #e6f7ff;
}

.fx-sku-select-item img {
	width: 32px;
	height: 32px;
	border-radius: 3px;
	object-fit: cover;
	border: 1px solid #eee;
}

.fx-sku-select-item .sku-name {
	flex: 1;
	color: #333;
}

.fx-sku-select-item .sku-price {
	color: #ff4d4f;
}

.fx-sku-select-item .sku-stock {
	color: #999;
}