/* WC Max Benefits - Frontend Styles */

.wc-max-benefits-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.wc-max-benefits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wc-max-benefits-table th,
.wc-max-benefits-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.wc-max-benefits-table th {
    background: #0073aa;
    color: #fff;
    font-weight: 600;
}

.wc-max-benefits-table tr:nth-child(even) {
    background: #f9f9f9;
}

.wc-max-benefits-table tr:hover {
    background: #f1f1f1;
}

.wc-max-benefits-source {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Lookup Form Styles */
.wc-benefits-lookup-wrap {
    max-width: 500px;
    margin: 20px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wc-benefits-lookup-wrap h3 {
    margin-top: 0;
    color: #333;
}

.wc-benefits-lookup-form .wc-form-row {
    margin-bottom: 15px;
}

.wc-benefits-lookup-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.wc-benefits-lookup-form select,
.wc-benefits-lookup-form input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wc-lookup-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.wc-lookup-btn:hover {
    background: #005a87;
}

.wc-lookup-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wc-lookup-result {
    margin-top: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 4px;
    border-left: 4px solid #4caf50;
}

.wc-lookup-result h4 {
    margin: 0 0 15px;
    color: #2e7d32;
}

.wc-result-content p {
    margin: 8px 0;
}

.wc-result-content strong {
    color: #333;
}

.wc-result-content .benefit-amount {
    font-size: 24px;
    color: #0073aa;
    font-weight: 700;
}

.wc-lookup-error {
    margin-top: 20px;
    padding: 15px;
    background: #ffebee;
    border-radius: 4px;
    border-left: 4px solid #f44336;
    color: #c62828;
}

/* Mobile Responsive */
@media screen and (max-width: 600px) {
    .wc-max-benefits-table thead {
        display: none;
    }
    
    .wc-max-benefits-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
    
    .wc-max-benefits-table td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .wc-max-benefits-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #333;
    }
}
