.date-picker-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.date-picker-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1001;
  border-radius: 10px 10px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

.date-picker-container.show {
  transform: translateY(0);
}

.dp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
  border-radius: 10px 10px 0 0;
  z-index: 10;
}

.dp-btn {
  font-size: 16px;
  cursor: pointer;
  padding: 5px;
}

.dp-cancel {
  color: #999;
}

.dp-confirm {
  color: #3296fa;
}

.dp-title {
  font-size: 17px;
  font-weight: bold;
  color: #333;
}

.dp-body {
  position: relative;
  height: 250px;
  display: flex;
  background: #fff;
  overflow: hidden;
}

.dp-highlight-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 44px;
  margin-top: -22px;
  background: #f5f5f5;
  z-index: 1;
  pointer-events: none;
}

.dp-column-wrapper {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  z-index: 2;
}

/* Hide scrollbar */
.dp-column-wrapper::-webkit-scrollbar {
  display: none;
}

.dp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-item {
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 16px;
  color: #999;
  scroll-snap-align: center;
}

.dp-item.active {
  color: #333;
  font-weight: bold;
  font-size: 18px;
}

.dp-item-spacer {
  height: 103px; /* (250 - 44) / 2 */
}
