/* ── TimePickerInput component ─────────────────────────────── */

.tpi-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 6px 10px;
    transition: border-color 150ms, box-shadow 150ms;
}

.tpi-wrapper:focus-within {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.tpi-wrapper--disabled {
    background: #F9FAFB;
    opacity: 0.6;
    pointer-events: none;
}

.tpi-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111827;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
}

.tpi-select:focus {
    background: #EEF2FF;
    color: #6366F1;
}

.tpi-hour { width: 36px; }
.tpi-minute { width: 36px; }

.tpi-sep {
    font-size: 14px;
    color: #6B7280;
    font-weight: 600;
    line-height: 1;
    margin: 0 2px;
}

.tpi-ampm {
    display: flex;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    margin-left: 6px;
}

.tpi-ampm-btn {
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #9CA3AF;
    cursor: pointer;
    transition: background 120ms, color 120ms;
    font-family: inherit;
}

.tpi-ampm-btn:hover:not(:disabled) {
    background: #F3F4F6;
    color: #374151;
}

.tpi-ampm-btn--active {
    background: #6366F1 !important;
    color: white !important;
}

/* Full width variant */
.tpi-wrapper--full {
    width: 100%;
    box-sizing: border-box;
}

/* Range row helper */
.tpi-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tpi-range-sep {
    font-size: 13px;
    color: #9CA3AF;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .tpi-range-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tpi-range-sep {
        display: none;
    }
}
