.mlc-calculator {
    --mlc-border: #d7dce2;
    --mlc-muted: #667085;
    --mlc-green: var(--e-global-color-primary, #049145);
    color: #20242a;
    font-family: inherit;
    width: 100%;
}

.mlc-calculator * { box-sizing: border-box; }

.mlc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.mlc-panel {
    background: #fff;
    border: 1px solid var(--mlc-border);
    border-radius: 6px;
    padding: 22px;
    min-width: 0;
}

.mlc-grid-top .mlc-panel { min-height: 350px; }

.mlc-panel h2 {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 20px;
}

.mlc-form {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) minmax(180px, 1.3fr);
    gap: 14px 16px;
    align-items: center;
}

.mlc-form label { font-weight: 600; margin: 0; }

.mlc-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    border: 1px solid #c7cdd4;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.mlc-input span {
    align-items: center;
    background: #f1f3f5;
    border-right: 1px solid #c7cdd4;
    display: flex;
    min-width: 38px;
    justify-content: center;
    padding: 0 10px;
    white-space: nowrap;
}

.mlc-input span:last-child { border-left: 1px solid #c7cdd4; border-right: 0; }

.mlc-input input {
    appearance: textfield;
    border: 0;
    border-radius: 0;
    font: inherit;
    min-width: 0;
    padding: 10px 12px;
    width: 100%;
}

.mlc-input input:focus { outline: 2px solid #2684ff; outline-offset: -2px; }

.mlc-button {
    align-items: center;
    background: var(--e-global-color-primary, #049145);
    border: 2px solid var(--e-global-color-primary, #049145);
    border-radius: 4px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: var(--e-global-typography-primary-font-family, "Poppins"), sans-serif;
    font-size: 16px;
    font-weight: var(--e-global-typography-primary-font-weight, 600);
    grid-column: 2;
    justify-content: center;
    justify-self: end;
    line-height: 1;
    min-height: 46px;
    padding: 13px 28px;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}

.mlc-calculator .mlc-button.elementor-button {
    background-color: #049145 !important;
    border-color: #049145 !important;
    color: #fff !important;
}

.mlc-calculator .mlc-button.elementor-button:hover,
.mlc-calculator .mlc-button.elementor-button:focus {
    background-color: #fff !important;
    border-color: #049145 !important;
    color: #049145 !important;
}

.mlc-button:hover, .mlc-button:focus { background: #fff; color: var(--e-global-color-primary, #049145); }

.mlc-button.is-loading, .mlc-button:disabled { cursor: wait; opacity: .72; }
.mlc-status { color: #b42318; font-size: 13px; grid-column: 1 / -1; min-height: 18px; text-align: right; }

.mlc-summary { margin: 0; }
.mlc-summary div {
    border-bottom: 1px solid #e6e8eb;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 11px 0;
}
.mlc-summary dt { font-weight: 700; }
.mlc-summary dd { margin: 0; text-align: right; }

.mlc-table-wrap { max-height: 350px; overflow: auto; width: 100%; }
.mlc-table { border-collapse: collapse; font-size: 14px; width: 100%; }
.mlc-table th, .mlc-table td { border: 1px solid var(--mlc-border); padding: 8px; text-align: right; white-space: nowrap; }
.mlc-table th:first-child, .mlc-table td:first-child { text-align: center; }
.mlc-table thead th { background: #f1f3f5; position: sticky; top: 0; z-index: 1; }
.mlc-table tbody tr:nth-child(even) { background: #f8f9fa; }
.mlc-note { color: var(--mlc-muted); font-size: 13px; margin: 8px 0 0; }

@media (max-width: 760px) {
    .mlc-grid { grid-template-columns: 1fr; }
    .mlc-grid-top .mlc-panel { min-height: 0; }
    .mlc-panel { padding: 16px; }
    .mlc-form { grid-template-columns: 1fr; gap: 7px; }
    .mlc-input { margin-bottom: 8px; }
    .mlc-button { grid-column: 1; justify-self: stretch; }
    .mlc-grid-tables .mlc-panel { overflow: hidden; }
}
