.calculator_esg_block {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--theme-color-grey-light);
    border-radius: 1.5rem;
}

/*calculator_esg_top*/
.calculator_esg_top {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.5rem;
}

.calculator_esg_title_wrap {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 1rem;
}

.calculator_esg_icon {
    color: var(--theme-skit-color);
    width: 30px;
    min-width: 30px;
}

.calculator_esg_icon svg {
    width: 100%;
    height: auto;
}

.calculator_esg_title {
    font-size: 1.3rem;
    line-height: 1.2;
    font-weight: 500;
}

.calculator_esg_title_big {
    font-size: 1.5rem;
}

.calculator_esg_title_small {
    font-size: 1rem;
}

.calculator_esg_text {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: inherit;
}

.calculator_esg_notice {
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: inherit;
}

/*select*/
.calculator_esg_select_wrap {
    position: relative;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: flex-start;
    align-items: start;
    gap: 0.5rem;
}

.calculator_esg_label_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
}

.calculator_esg_category_hint_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border: 1px solid #cfe1d5;
    border-radius: 999px;
    background: #f5f8f4;
    color: #24593a;
    font-size: 0.84rem;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.calculator_esg_category_hint_link:hover {
    background: #edf6ef;
    border-color: #aacdb4;
    color: #1f4d33;
}

.calculator_esg_select_wrap select {
    display: none;
}

.select_item_wrap:not(.active) {
    display: none;
}

.select_item_wrap.disabled .select_item {
    opacity: 0.5;
    pointer-events: none;
}

.calculator_esg_select_wrap .nice-select {
    font-size: inherit;
    line-height: inherit;
    padding: 0.5rem 3rem 0.5rem 1rem;
    border-radius: 0.5rem;
    border-color: var(--theme-color-grey-middle);
}

.calculator_esg_select_wrap .nice-select::after {
    width: 9px;
    height: 9px;
    margin-top: -4px;
    right: 1rem;
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
}

.calculator_esg_select_wrap .nice-select:focus {
    border-color: var(--theme-color-grey-middle);
}

.calculator_esg_select_wrap:has(.nice-select.open) {
    z-index: 100;
}

.calculator_esg_select_wrap .nice-select:active,
.calculator_esg_select_wrap .nice-select.open {
    border-color: var(--theme-color-violet);
    z-index: 100;
}

.calculator_esg_select_wrap .nice-select.open .list {
    z-index: 100;
    background: #fff;
}

.calculator_esg_select_wrap .nice-select .current {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
}

.calculator_esg_select_wrap .nice-select .list {
    border-color: var(--theme-color-grey-middle);
    border-radius: 0.5rem;
}

.calculator_esg_select_wrap .nice-select .option {
    line-height: 1.2;
    padding: 0.5rem 1rem;
}

.calculator_esg_select_wrap .nice-select .option:hover,
.calculator_esg_select_wrap .nice-select .option.focus,
.calculator_esg_select_wrap .nice-select .option.selected.focus {
    background-color: var(--theme-color-grey-light);
}

.calculator_esg_info:not(.active) {
    display: none;
}

.calculator_esg_info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.calculator_esg_info .calculator_esg_text {
    color: var(--theme-color-violet-dark);
}

.calculator_esg_info span {
    font-weight: 500;
}

.calculator_esg_metric {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(30, 58, 92, 0.06);
}

.calculator_esg_metric_label {
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 600;
    color: #536173;
}

.calculator_esg_metric_value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1c2b3a;
}

.calculator_esg_metric_value_main {
    color: var(--theme-skit-color);
}

.calculator_esg_metric_note {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #7b8794;
}

.calculator_esg_metric_inline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}

.calculator_esg_metric_success {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #edf8ee 0%, #f7fcf7 100%);
    border-color: #b7dcbf;
}

.calculator_esg_metric_success_text {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    color: #2d7a4f;
}

.calculator_esg_metric_total {
    grid-column: 1 / -1;
    gap: 0.6rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(135deg, #f3f9f4 0%, #ffffff 100%);
    border: 2px solid #7ec08d;
}

.calculator_esg_metric_label_total {
    color: #274c3a;
}

.calculator_esg_metric_value_total {
    font-size: 2.4rem;
    color: #2d7a4f;
}

.calculator_esg_metric_formula {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #627182;
}

.calculator_esg_count_wrap {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
}

.calculator_esg_input {
    max-width: 200px;
    font-size: inherit;
    line-height: inherit;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--theme-color-grey-middle);
}

.calculator_esg_input:focus {
    border-color: var(--theme-color-violet);
}

.calculator_esg_button {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 1rem;
    font-size: inherit;
    line-height: inherit;
    color: #fff;
    padding: 0.5rem 1rem;
    background: var(--theme-skit-color);
    border-radius: 0.5rem;
    border: 1px solid var(--theme-skit-color);
    cursor: pointer;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.calculator_esg_button:not(.disabled):hover {
    border-color: var(--theme-skit-color);
    background: var(--theme-skit-color);
}

.calculator_esg_button svg {
    width: 20px;
    min-width: 20px;
    height: auto;
}

.calculator_esg_button.disabled {
    opacity: 1;
    background: #e8edf2;
    border-color: #d0d8e0;
    color: #8a96a3;
    pointer-events: none;
    cursor: not-allowed;
}

/*calculator_esg_result_list*/
.calculator_esg_result_list:not(.active) {
    display: none;
}

.calculator_esg_result_top {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 500;
}

.calculator_esg_result_del {
    margin-left: auto;
    cursor: pointer;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.calculator_esg_result_del:hover {
    color: #ff0000;
}

.calculator_esg_result_item {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--theme-color-violet);
    border-radius: 1rem;
    margin-top: 1rem;
}

.calculator_esg_result_item_content {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.5rem;
}

.calculator_esg_result_item_name {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 500;
}

.calculator_esg_result_item_info {
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: inherit;
    color: var(--theme-color-grey);
}

.calculator_esg_result_item_sum {
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
    color: var(--theme-skit-color);
}

.calculator_esg_result_item_icon {
    width: 1rem;
    min-width: 1rem;
    color: #ff0000;
    cursor: pointer;
}

.calculator_esg_result_item_icon svg {
    width: 100%;
    height: auto;
}

.calculator_esg_templates {
    display: none;
}

/*result_block_empty*/
.result_block_empty:not(.active) {
    display: none;
}

.result_block_empty {
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
}

.result_block_empty .calculator_esg_icon {
    width: 50px;
    min-width: 50px;
}

/*result_block*/
.result_block:not(.active) {
    display: none;
}


.result_block .calculator_esg_title_wrap {
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: flex-start;
    align-items: start;
    gap: 0.5rem;
}

.result_block .calculator_esg_result_item {
    padding: 0;
    border: none;
    border-radius: 0;
}

.result_block .calculator_esg_result_item_content {
    gap: 0.125rem;
}

.result_block .calculator_esg_result_item_sum {
    font-size: 1rem;
    color: inherit;
}

.calculator_esg_result_total_block {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--theme-color-grey-middle);
    border: 2px solid var(--theme-skit-color);
    border-radius: 1rem;
}

.result_total_sum {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
    color: var(--theme-skit-color);
}

.calculator_esg_block_notice {
    display: -webkit-flex;
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #C0EEAF;
    border-radius: 1rem;
}

.calculator_esg_block_notice_icon {
    width: 1.2rem;
    min-width: 1.2rem;
    color: var(--theme-skit-color);
}

.calculator_esg_block_notice_icon svg {
    width: 100%;
    height: auto;
    vertical-align: top;
}

.calculator_esg_block_info {
    padding: 1rem;
    background: var(--theme-color-grey-middle);
    border-radius: 1rem;
    border: 1px solid var(--theme-skit-color);
}

.calculator_esg_block_info .calculator_esg_notice {
    margin-top: 0.5rem;
}

@media all and (min-width: 992px) {
    .result_block_empty {
        padding: 5rem;
    }
}

@media all and (max-width: 1399px){
    .calculator_esg_select_wrap .nice-select {
        width: 100%;
    }

    .calculator_esg_select_wrap .nice-select .option {
        white-space: normal;
    }

    .calculator_esg_info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media all and (max-width: 767px){
    .calculator_esg_block {
        padding: 2rem 1rem;
    }

    .calculator_esg_label_row {
        align-items: flex-start;
    }

    .calculator_esg_category_hint_link {
        white-space: normal;
    }

    .calculator_esg_info {
        grid-template-columns: 1fr;
    }

    .calculator_esg_metric {
        padding: 0.95rem;
    }

    .calculator_esg_metric_value {
        font-size: 1.7rem;
    }

    .calculator_esg_metric_value_total {
        font-size: 2rem;
    }

    .calculator_esg_metric_formula,
    .calculator_esg_metric_success_text {
        font-size: 0.9rem;
    }
}