.mortgage-calc-wrapper {
    background-color: #fff;
    padding: 8px;
}

.mortgage-calc-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 6px;
    border: 1px solid #E8E9ED;
}

.mortgage-calc-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    min-width: 640px;
}

.mortgage-calc-table thead th,
.mortgage-calc-table tbody td {
    padding: 12px 8px;
    border: 1px solid #E8E9ED !important;
    text-align: center;
    vertical-align: middle;
    background-color: #fff;
    color: #000;
    white-space: normal;
}

.mortgage-calc-table tbody td.amount-cell {
    text-align: right;
}

.mortgage-calc-totals-toggle-header,
.mortgage-calc-totals-toggle-cell {
    text-align: center;
    white-space: nowrap;
}

.mortgage-calc-logo {
    max-height: 56px;
    display: block;
    margin: 0 auto;
}

.premium-evolution-trigger {
    display: inline-block;
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.premium-evolution-trigger:focus,
.premium-evolution-trigger:hover {
    background-color: #005f8d;
}

.structure-insurance-row {
    margin-bottom: 12px;
    padding: 12px 16px;
    background-color: #fef3c7;
    border: 1px solid #f9d28a;
    border-radius: 4px;
}

.structure-insurance-row p {
    margin: 0;
    color: #8a5800;
    font-weight: 700;
    font-size: 1.05em;
}


.premium-evolution-row,
.premium-totals-row {
    display: none;
    background-color: #f9fafb;
}

.premium-evolution-row.is-visible,
.premium-totals-row.is-visible {
    display: table-row;
}

.premium-evolution-row td,
.premium-totals-row td {
    text-align: right;
}

.evolution-table,
.totals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.evolution-table thead th,
.evolution-table tbody td,
.totals-table thead th,
.totals-table tbody td {
    padding: 8px;
    border: 1px solid #dfe1e6;
    text-align: center;
}

.mortgage-calc-meta {
    margin-top: 12px;
}

.mortgage-calc-meta p {
    margin: 4px 0;
}

@media (max-width: 720px) {
    .mortgage-calc-wrapper {
        padding: 12px 6px;
    }

    .mortgage-calc-table-scroll {
        margin: 0 -6px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .mortgage-calc-table thead th,
    .mortgage-calc-table tbody td {
        padding: 10px 6px;
        font-size: 14px;
    }

    .mortgage-calc-table tbody td.amount-cell {
        text-align: left;
    }

    .mortgage-calc-totals-toggle-cell .mortgage-calc-totals-trigger,
    .premium-evolution-trigger {
        width: 100%;
        max-width: 140px;
        font-size: 13px;
        padding: 6px 10px;
    }

    .mortgage-calc-logo {
        max-height: 48px;
    }

    .structure-insurance-row {
        text-align: center;
    }

    .mortgage-calc-actions {
        justify-content: center;
    }
}
