/* merchant-picker 样式 */
.mp-wrap {
	display: inline-block;
	width: 100%;
}

.mp-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid #dcdfe6;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	min-width: 160px;
	transition: border-color 0.2s;
	user-select: none;
}

.mp-trigger:hover {
	border-color: var(--primary-green);
}

.mp-text {
	flex: 1;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mp-arrow {
	margin-left: 8px;
	color: #999;
	font-size: 12px;
}

/* 遮罩和面板 */
.mp-mask {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	animation: mp-fadeIn 0.2s ease;
}

@keyframes mp-fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.mp-panel {
	background: #fff;
	width: 100%;
	max-width: 500px;
	border-radius: 12px 12px 0 0;
	padding-bottom: env(safe-area-inset-bottom);
	animation: mp-slideUp 0.3s ease;
}

@keyframes mp-slideUp {
	from {
		transform: translateY(100%);
	}

	to {
		transform: translateY(0);
	}
}

.mp-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid #eee;
	font-size: 16px;
}

.mp-cancel,
.mp-confirm {
	color: var(--primary-green);
	cursor: pointer;
	font-size: 14px;
}

.mp-cancel:hover,
.mp-confirm:hover {
	color: var(--primary-green);
}

.mp-title {
	font-weight: 500;
	color: #333;
}

.mp-list {
	max-height: 260px;
	overflow-y: auto;
	padding: 0;
	margin: 0;
	list-style: none;
}

.mp-item {
	display: flex;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid #f5f5f5;
	cursor: pointer;
	transition: background 0.15s;
	font-size: 15px;
}

.mp-item:active {
	background: #f0f0f0;
}

.mp-item-name {
	flex: 1;
	color: #333;
}

.mp-item-code {
	color: #999;
	font-size: 13px;
	margin-right: 10px;
}

.mp-item-active .mp-item-name {
	color: var(--primary-green);
	font-weight: 500;
}

.mp-check {
	color: var(--primary-green);
	font-weight: bold;
	font-size: 16px;
}