/**
 * Nilay Installment Calculator - Public Facing Styles
 * Version: 3.1.0 (Calculator Enhancement)
 */

/* --- Main Wrapper --- */
.nilay-options-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fcfcfc;
}

.nilay-options-wrapper h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #333;
    font-weight: 700;
    text-align: right;
}

.nilay-options-wrapper p.nilay-required-text {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

/* --- Plan Selection Buttons --- */
.nilay-plan-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.nilay-plan-buttons button {
    flex-grow: 1;
    padding: 12px 15px;
    font-family: inherit;
    font-size: 1em;
    border: 2px solid #ddd;
    background-color: #fff;
    color: #555;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    font-weight: 500;
}

.nilay-plan-buttons button.active,
.nilay-plan-buttons button:hover {
    border-color: #77a464;
    background-color: #77a464;
    color: #fff;
    box-shadow: 0 4px 14px rgba(119, 164, 100, 0.25);
    transform: translateY(-2px);
}

/* --- Plan Details Container --- */
.nilay-plan-details-container {
    margin-top: 15px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nilay-plan-details-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nilay-plan-details-container ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 0.95em;
}

.nilay-plan-details-container ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nilay-plan-details-container ul li:first-child {
    padding-top: 0;
}

.nilay-plan-details-container ul li span {
    color: #555;
}

.nilay-plan-details-container ul li strong {
    color: #333;
    font-weight: 700;
}

.nilay-plan-details-container ul li.downpayment strong,
.nilay-plan-details-container ul li.monthly strong {
    color: #c0392b;
    font-size: 1.1em;
}

.nilay-plan-details-container .details-placeholder {
    text-align: center;
    color: #777;
    padding: 10px 0;
}

/* --- My Account Installments Table --- */
.account-orders-table .installment-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
}

.installment-status.status-pending {
    background-color: #f39c12;
}

.installment-status.status-paid {
    background-color: #27ae60;
}

.installment-status.status-overdue {
    background-color: #e74c3c;
}

.late-fee-notice {
    color: #e74c3c;
    font-weight: bold;
}

.select-all-col {
    width: 1em;
}

.bulk-pay-wrapper {
    margin-top: 20px;
    text-align: left;
}

/* --- Calculator Widget Enhancements --- */
.nilay-calculator-input-group input[type="text"] {
    font-size: 1.1em;
    text-align: center;
    margin-top: 10px;
}

.nilay-calculator-amount-words {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    min-height: 1.2em;
    font-style: italic;
}

/* --- Deprecated Styles --- */
ul.nilay-plans-list {
    display: none !important;
}