/**
 * Release Date: 2024-11-10 22:32
 */


#home-loan-emi {
    max-width: 24rem;
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

#home-loan-emi .form>div:not(:last-child) {
    margin-bottom: 20px;
}

#home-loan-emi .form>div>div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#home-loan-emi .form label {
    color: #555;
}

#home-loan-emi .form span {
    color: #607D8B
}

#home-loan-emi .form input[type="text"],
#home-loan-emi .form input[type="number"] {
    width: 175px;
    padding: 5px 10px;
    margin-bottom: 10px;
    text-align: right;
}

#home-loan-emi .form input[type="range"] {
    width: 100%;
    cursor: pointer;
}

#home-loan-emi button {
    width: 100%;
    padding: 15px 20px;
    background-color: #0366d6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

#home-loan-emi button:hover {
    background-color: #004694;
}

#home-loan-emi .fade-loop {
    animation: fade 1s infinite alternate;
}


@keyframes fade {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

#home-loan-emi-result {
    display: none;
    max-width: 32rem;
    width: 100%;
    margin: 1rem auto;
    font-family: Arial, sans-serif;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

#home-loan-emi-result .summary {
    margin-bottom: 1rem;
}

#home-loan-emi-result .summary>div {
    display: flex;
    justify-content: space-between;
}

#home-loan-emi-result .summary span:last-child {
    font-size: small;
    font-weight: 600;
}

#home-loan-emi-result .summary>div:nth-child(odd) {
    flex: 0 0 calc(60% - 40px);
    box-sizing: border-box;
}

#home-loan-emi-result .summary>div:nth-child(even) {
    flex: 0 0 calc(40% - 40px);
    box-sizing: border-box;
}

#home-loan-emi-result .detail {
    overflow-x: auto;
}

#home-loan-emi-result .detail table th {
    line-height: 1.2;
}

#home-loan-emi-result .detail tbody {
    text-align: right;
    color: #595959;
}

@media only screen and (max-width: 480px) {
    #home-loan-emi {
        padding: 10px;
    }

    #home-loan-emi .form input[type="text"] {
        max-width: 150px;
    }

    #home-loan-emi .form input[type="number"] {
        max-width: 100px;
    }

    #home-loan-emi-result .summary>div {
        flex: 1 1 100% !important;
    }

    #home-loan-emi-result .summary span:last-child {
        text-align: right;
    }

    #home-loan-emi-result .detail table {
        min-width: 600px;
    }
}