.ce-calculator .calculator-button {
    margin-top: 10px;
    width: 16.25rem;
    background-color: #789B69;
    border-color: #789B69;
}

.ce-calculator .calculator-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.ce-calculator .calculator-table th,
.ce-calculator .calculator-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ce-calculator .calculator-table thead th {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ce-calculator .calculator-table thead th:not(:first-child) {
    text-align: right;
}

.ce-calculator .calculator-table tbody tr:last-child td {
    border-bottom: none;
}

.ce-calculator .calculator-table tfoot td {
    border-top: 2px solid currentColor;
    font-weight: 700;
    font-size: 16px;
    padding-top: 15px;
}

.ce-calculator .calculator-table .calculator-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ce-calculator .calculator-note {
    margin-top: 10px;
    opacity: 0.7;
}

.ce-calculator .calculator-results {
    margin-top: 0;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-out, opacity 0.6s ease-out, margin-top 0.6s ease-out;
}

.ce-calculator .calculator-results.is-visible {
    max-height: 800px;
    opacity: 1;
    margin-top: 10px;
}

.ce-calculator .calculator-error {
    display: block;
    margin-top: 5px;
    color: #c00;
    font-size: 0.9em;
}

@media (max-width: 575.98px) {
    .ce-calculator .calculator-table thead {
        display: none;
    }

    .ce-calculator .calculator-table tbody tr,
    .ce-calculator .calculator-table tfoot tr {
        display: block;
        padding: 8px 0;
    }

    .ce-calculator .calculator-table tbody td,
    .ce-calculator .calculator-table tfoot td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        border: none;
    }

    .ce-calculator .calculator-table tbody td:before,
    .ce-calculator .calculator-table tfoot td:before {
        content: attr(data-label);
        font-weight: 600;
        padding-right: 10px;
        white-space: nowrap;
    }

    .ce-calculator .calculator-table tfoot tr {
        border-top: 2px solid currentColor;
        margin-top: 8px;
        padding-top: 12px;
    }

    .ce-calculator .calculator-table tfoot td {
        border-top: none;
    }
}
