/* ---------- Wrapper around each input ---------- */
.tp-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
}

/* ---------- Input styling ---------- */
input.timepicker {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    /* margin-bottom: 18px; */
}

/* ---------- Timepicker panel ---------- */
.tp-panel {
    position: absolute;
    left: 0;
    width: 360px;
    max-width: 100%;
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 99999;
    display: none;
    text-align: center;
}
.tp-buttons  .btn {
    position: relative;
    z-index: 2;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 5px 10px !important;
}
/* ---------- Format Switch (12h/24h) ---------- */
.format-switch {
    display: inline-block;
    justify-content: center;
    background: #f1f1f3;
    padding: 4px;
    border-radius: 20px;
    gap: 4px;
    margin-bottom: 12px;
}

.format-switch input { display: none; }

.format-switch label {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: 0.25s;
}

.format-switch input:checked + label {
    background: #1e90ff;
    color: white;
    font-weight: 600;
}

/* ---------- Wheels ---------- */
.tp-content {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.wheel {
    flex: 1;
    height: 220px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;  /* 🔥 prevents page scroll */
    position: relative;
}

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

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

.wheel li {
    height: 44px;
    line-height: 44px;
    text-align: center;
    color: #9aa0a6;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    scroll-snap-align: center;
}

.wheel li.selected {
    font-weight: 700;
    color: #000;
    font-size: 20px;
}

/* Highlight bar */
/* .selection-line {
    position: absolute;
    top: calc(50% - 22px);
    height: 44px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    left: 0;
    right: 0;
    pointer-events: none;
} */

/* ---------- Buttons ---------- */
.tp-buttons {
    display: flex;
    justify-content: end;
    margin-top: 12px;
    gap: 5px;
}
.tp-buttons .btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn.cancel { background: #eee; }
.btn.apply  { background: #1e90ff; color: white; }