/* =========================================================
   Time field icon (clock) — shown in field wrapper
   ========================================================= */
.time-field-icon {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    cursor: pointer;
    z-index: 1;
}

/* =========================================================
   Time Picker — scroll-drum widget
   ========================================================= */

.time-picker-wrapper {
    position: absolute;
    z-index: 10001;
    display: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    min-width: 220px;
}

/* Mobile: slide up from bottom */
@media (max-width: 767px) {
    .time-picker-wrapper {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        border-radius: 16px 16px 0 0;
        min-width: unset;
    }
}

/* ── Header ── */
.time-picker-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 16px 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
}

.time-picker-done {
    color: #007aff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.time-picker-done:hover {
    background: rgba(0, 122, 255, 0.08);
}

/* ── Drums container ── */
.time-picker-drums {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px 14px;
    background: #fff;
    gap: 0;
}

/* Colon separator */
.time-drum-sep {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    padding: 0 2px;
    padding-bottom: 10px;
    align-self: center;
    line-height: 1;
}

/* ── Individual drum ── */
.time-drum-wrap {
    position: relative;
    height: 175px; /* 5 × 35px */
    flex-shrink: 0;
}

.time-drum-wrap--hour   { width: 56px; }
.time-drum-wrap--minute { width: 56px; }
.time-drum-wrap--ampm   { width: 52px; }

.time-drum-column {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.time-drum-column::-webkit-scrollbar {
    display: none;
}

/* Padding sentinels — allow first/last items to center */
.time-drum-pad {
    height: 35px;
    flex-shrink: 0;
}

/* Actual selectable items */
.time-drum-item {
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-size: 22px;
    font-weight: 300;
    color: #222;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    cursor: default;
}

/* ── Overlay: fade + selection line ── */
.time-drum-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    /* Fading gradient top & bottom */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.92)  0%,
        rgba(255, 255, 255, 0.30) 30%,
        rgba(255, 255, 255, 0.00) 40%,
        rgba(255, 255, 255, 0.00) 60%,
        rgba(255, 255, 255, 0.30) 70%,
        rgba(255, 255, 255, 0.92) 100%
    );
}

/* Selection lines around the center row */
.time-drum-overlay::before,
.time-drum-overlay::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    height: 1px;
    background: #ccc;
}

.time-drum-overlay::before { top: 70px; }   /* top of center row */
.time-drum-overlay::after  { top: 105px; }  /* bottom of center row */
