/* date-picker 样式 */

.dp-wrap {
	display: inline-block;
	width: 100%;
}

.dp-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: 120px;
	transition: border-color 0.2s;
	user-select: none;
}

.dp-trigger:hover {
	border-color: var(--primary-green);
}

.dp-text {
	flex: 1;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dp-arrow {
	margin-left: 8px;
	color: #999;
	font-size: 12px;
}

/* 遮罩和面板 */
.dp-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: dp-fadeIn 0.2s ease;
}

@keyframes dp-fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.dp-panel {
	background: #fff;
	width: 100%;
	max-width: 500px;
	border-radius: 12px 12px 0 0;
	padding-bottom: env(safe-area-inset-bottom);
	animation: dp-slideUp 0.3s ease;
}

@keyframes dp-slideUp {
	from {
		transform: translateY(100%);
	}

	to {
		transform: translateY(0);
	}
}

.dp-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 20px;
	border-bottom: 1px solid #eee;
	font-size: 16px;
}

.dp-cancel,
.dp-confirm {
	color: var(--primary-green);
	cursor: pointer;
	font-size: 14px;
}

.dp-cancel:hover,
.dp-confirm:hover {
	opacity: 0.8;
}

.dp-title {
	font-weight: 500;
	color: #333;
}

/* 滚轮容器 */
.dp-content {
	display: flex;
	justify-content: space-around;
	padding: 12px 0 20px;
	background: #f8f9fa;
}

.dp-wheel {
	flex: 1;
	height: 220px;
	/* 5 * 44px */
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* Firefox */
}

.dp-wheel::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

.dp-wheel ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.dp-wheel li {
	height: 44px;
	line-height: 44px;
	text-align: center;
	font-size: 20px;
	font-weight: 400;
	color: #333;
	opacity: 0.4;
	/* 未选中半透明 */
	scroll-snap-align: center;
	transition: all 0.2s;
	user-select: none;
	background: transparent;
}

/* 选中项高亮（绿色、不透明、加粗） */
.dp-wheel li.dp-item-active {
	color: var(--primary-green, #219F68);
	opacity: 1;
	font-weight: 600;
	transform: scale(1.04);
}

.dp-placeholder {
    opacity: 0;
    pointer-events: none;
    height: 44px; /* 会被内联样式覆盖 */
    scroll-snap-align: none; /* 避免占位影响滚动吸附 */
}