/* =========================================================
   ToolZen Hub
   Shared Calculator Results
========================================================= */


/* =========================================================
   RESULTS CONTAINER
========================================================= */

.calculator-results {
    width: 100%;
    box-sizing: border-box;
}


/* =========================================================
   RESULTS CARD
========================================================= */

.calculator-results__card {
    width: 100%;
    padding: 24px;

    box-sizing: border-box;

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 4px 14px rgba(16, 24, 40, .04);
}


/* =========================================================
   RESULTS HEADER
========================================================= */

.calculator-results__header {
    margin-bottom: 20px;
}

.calculator-results__eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #0b9f58;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.calculator-results__title {
    margin: 0;

    color: #101828;

    font-size: 21px;
    font-weight: 750;

    line-height: 1.3;
}


/* =========================================================
   RESULT GRID
========================================================= */

.calculator-results__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


/* =========================================================
   RESULT ITEM
========================================================= */

.calculator-results__item {
    min-width: 0;

    padding: 16px;

    border: 1px solid #eaecf0;
    border-radius: 9px;

    background: #f9fafb;
}


.calculator-results__label {
    display: block;

    margin-bottom: 7px;

    color: #667085;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.4;
}


.calculator-results__value {
    display: block;

    color: #101828;

    font-size: 20px;
    font-weight: 750;

    line-height: 1.3;

    overflow-wrap: anywhere;
}


/* =========================================================
   PRIMARY RESULT
========================================================= */

.calculator-results__item--primary {
    border-color: #b7e4ca;

    background: #f3fbf6;
}


.calculator-results__item--primary
.calculator-results__value {

    color: #087f47;

    font-size: 24px;

}


/* =========================================================
   POSITIVE RESULT
========================================================= */

.calculator-results__item--positive
.calculator-results__value {

    color: #087f47;

}


/* =========================================================
   NEGATIVE RESULT
========================================================= */

.calculator-results__item--negative
.calculator-results__value {

    color: #d92d20;

}


/* =========================================================
   RESULT DESCRIPTION
========================================================= */

.calculator-results__description {

    margin: 6px 0 0;

    color: #667085;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   RESULT SUMMARY
========================================================= */

.calculator-results__summary {

    margin-top: 16px;

    padding: 14px 16px;

    border-radius: 9px;

    background: #f2f4f7;

    color: #475467;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================================
   RESULT ACTIONS
========================================================= */

.calculator-results__actions {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 18px;
}


.calculator-results__action {

    min-height: 40px;

    padding: 0 16px;

    border: 1px solid #d0d5dd;

    border-radius: 7px;

    background: #ffffff;

    color: #344054;

    font: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


.calculator-results__action:hover {

    border-color: #0b9f58;

    color: #087f47;

}


/* =========================================================
   ERROR
========================================================= */

.calculator-results__error {

    padding: 14px 16px;

    border: 1px solid #fecdca;
    border-radius: 9px;

    background: #fef3f2;

    color: #b42318;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.calculator-results__empty {

    padding: 30px 20px;

    border: 1px dashed #d0d5dd;
    border-radius: 10px;

    background: #ffffff;

    color: #667085;

    font-size: 13px;

    line-height: 1.6;

    text-align: center;
}


/* =========================================================
   TABLE
========================================================= */

.calculator-results__table-wrapper {

    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}


.calculator-results__table {

    width: 100%;

    min-width: 560px;

    border-collapse: collapse;

    font-size: 12px;
}


.calculator-results__table th,
.calculator-results__table td {

    padding: 10px;

    border-bottom: 1px solid #eaecf0;

    text-align: left;

    white-space: nowrap;
}


.calculator-results__table th {

    background: #f9fafb;

    color: #475467;

    font-weight: 700;
}


.calculator-results__table td {

    color: #344054;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .calculator-results__grid {

        grid-template-columns:
            1fr;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .calculator-results__card {

        padding: 18px;

    }

    .calculator-results__title {

        font-size: 19px;

    }

    .calculator-results__value {

        font-size: 18px;

    }

    .calculator-results__item--primary
    .calculator-results__value {

        font-size: 22px;

    }

    .calculator-results__actions {

        flex-direction: column;

        align-items: stretch;

    }

    .calculator-results__action {

        width: 100%;

    }

}
