.trebol-calculator-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.trebol-calculator-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
    font-family: inherit;
}

.trebol-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: inherit;
    font-family: inherit;
}

.form-group input,
.form-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cuota-fija {
    background-color: #0073aa;
    color: #fff;
}

#cuota-fija:hover {
    background-color: #005d87;
}

#cuota-variable {
    background-color: #ccc;
    cursor: not-allowed;
}

.trebol-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.trebol-popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.trebol-close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
}

.trebol-close-popup:hover {
    color: #ff0000;
}

.trebol-popup-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: inherit;
    font-family: inherit;
}

.trebol-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: inherit;
}

.trebol-table th,
.trebol-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: right;
}

.trebol-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.trebol-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.trebol-disclaimer {
    margin-top: 20px;
    font-size: 14px;
    color: inherit;
    font-family: inherit;
}

.trebol-print-button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.trebol-print-button:hover {
    background-color: #218838;
}

@media (max-width: 600px) {
    .trebol-calculator-container {
        padding: 10px;
    }

    .trebol-form {
        gap: 10px;
    }

    .form-group input,
    .form-group select {
        font-size: 14px;
    }

    .form-buttons button {
        font-size: 14px;
        padding: 8px;
    }

    .trebol-popup-content {
        width: 95%;
        padding: 15px;
    }

    .trebol-table th,
    .trebol-table td {
        font-size: 12px;
        padding: 6px;
    }

    .trebol-print-button {
        font-size: 14px;
        padding: 8px;
    }
}