/* Bottom Sheet */
.picker-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    display: none;
    z-index: 9998;
    overflow: hidden;
    touch-action: none;
}

.picker-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    transform: translate3d(0, 110%, 0);
    transition: transform 0.22s ease;
    z-index: 9999;
    max-height: 92dvh;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}

.picker-sheet.active {
    transform: translate3d(0, 0, 0);
}

.picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    height: 48px;
    padding: 0 12px;
    flex-shrink: 0;
}

.picker-header button {
    flex: unset;
    min-height: 38px;
    padding: 0 12px;
    background: transparent;
    color: #2563eb;
    font-size: 15px;
}

.picker-title {
    font-weight: 700;
    font-size: 16px;
}

.picker-current {
    padding: 8px 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.picker-body {
    padding: 10px 12px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(92dvh - 88px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
    touch-action: pan-y;
}
/* Compact Calendar */
.calendar-box {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px;
    background: #ffffff;
    overflow: hidden;
    max-width: 100%;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    height: 34px;
}

.calendar-header button {
    flex: unset;
    width: 36px;
    height: 32px;
    min-height: 32px;
    border-radius: 10px;
    background: #eef2ff;
    color: #1d4ed8;
    font-size: 18px;
    line-height: 1;
    padding: 0;
}

.calendar-month {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.calendar-weekdays div {
    font-size: 11px;
    color: #64748b;
    padding: 3px 0;
    font-weight: 700;
}

.calendar-day {
    border: 0;
    min-width: 0;
    min-height: 31px;
    height: 31px;
    border-radius: 9px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    line-height: 31px;
}

.calendar-day.empty {
    background: transparent;
    pointer-events: none;
}

.calendar-day.today {
    border: 1px solid #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
    line-height: 29px;
}

.calendar-day.selected {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

.calendar-day.disabled {
    color: #cbd5e1;
    background: #f8fafc;
    pointer-events: none;
    font-weight: 400;
}

.section-title {
    margin: 10px 2px 6px;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
}

/* Time Wheels */
.time-box {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 8px 10px 10px;
    overflow: hidden;
    max-width: 100%;
}

.wheel-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    color: #64748b;
    font-size: 12px;
    text-align: center;
    margin-bottom: 2px;
}

.wheel-area {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: 164px;
    overflow: hidden;
    max-width: 100%;
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

.wheel-area::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    height: 44px;
    border-top: 1px solid #60a5fa;
    border-bottom: 1px solid #60a5fa;
    pointer-events: none;
    z-index: 2;
}

.wheel {
    height: 164px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    max-width: 100%;
}

.wheel::-webkit-scrollbar {
    display: none;
}

.wheel-item {
    height: 44px;
    line-height: 44px;
    font-size: 20px;
    color: #94a3b8;
    scroll-snap-align: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.wheel-item.active {
    color: #0f172a;
    font-weight: 800;
    font-size: 22px;
}
.calendar-btn{
    border:none;
}

@media (max-width: 390px) {
    body {
    padding: 10px;
    }

    .card {
    padding: 14px;
    }

    .picker-body {
    padding: 8px 10px 10px;
    }

    .calendar-day {
    min-height: 29px;
    height: 29px;
    line-height: 29px;
    font-size: 13px;
    border-radius: 8px;
    }

    .calendar-day.today {
    line-height: 27px;
    }

    .wheel-area {
    height: 154px;
    }

    .wheel {
    height: 154px;
    }
}

@supports not (height: 100dvh) {
    .picker-sheet {
    max-height: 92vh;
    }

    .picker-body {
    max-height: calc(92vh - 88px);
    }
}