/* FIRE Calculator — базовые стили. */

[hidden] {
    display: none !important;
}

.fire-calculator-wrapper {
    max-width: 480px;
    margin: 0 auto;
    font-family: inherit;
}

.fire-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fire-calc-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fire-calc-field label {
    font-weight: 600;
}

.fire-calc-field input {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.fire-calc-field--radio {
    gap: 8px;
}

.fire-calc-tabs-field {
    gap: 0;
}

.fire-calc-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #c3c4c7;
}

.fire-calc-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 0;
    text-align: center;
    padding: 8px 10px;
    margin-bottom: -1px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #50575e;
    background: #dcdcde;
    border: 1px solid #c3c4c7;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.fire-calc-tab + .fire-calc-tab {
    margin-left: -1px;
}

.fire-calc-tab input[type="radio"] {
    width: auto;
    flex-shrink: 0;
}

.fire-calc-tab:hover {
    background: #e8e8e8;
}

.fire-calc-tabs label:has(input:checked) {
    background: #fff;
    color: #1d2327;
    font-weight: 600;
    border-bottom-color: #fff;
}

.fire-calc-tab input:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.fire-calc-tab-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-top: none;
}

.fire-calc-tab-panel {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #50575e;
}

.fire-calc-radio-title {
    font-weight: 600;
}

.fire-calc-field--radio label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.fire-calc-field--radio input[type="radio"] {
    width: auto;
}

.fire-calc-mode-target-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fire-calc-target-date-note {
    margin-top: -8px;
}

.fire-calc-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.fire-calc-field--checkbox input[type="checkbox"] {
    width: auto;
}

/* Свёрнутый по умолчанию блок "Дополнительные настройки" (ставка вывода) */

.fire-calc-advanced {
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 10px 12px;
}

.fire-calc-advanced summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #50575e;
}

.fire-calc-advanced[open] summary {
    margin-bottom: 12px;
}

.fire-calc-advanced-field {
    gap: 4px;
}

.fire-calc-field-hint {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #787c82;
}

.fire-calc-submit {
    height:3.2rem;
    border: none;
    border-radius: 4px;
    background: #555555;
    color: #fff;
    cursor: pointer;
}

.fire-calc-headline-value {
    margin: 0 0 8px;
    font-size: 1.6em;
    font-weight: 700;
    color: #1a1a1a;
}

.fire-calc-headline-value span {
    font-size: 0.55em;
    font-weight: 400;
    color: #50575e;
}

.fire-calculator-results {
    margin-top: 24px;
    padding: 16px;
    border-radius: 4px;
    background: #f6f7f7;
}

.fire-calc-results-title {
    margin: 0 0 16px;
    font-size: 1.1em;
}

.fire-calc-block {
    margin-bottom: 16px;
}

.fire-calc-block:last-child {
    margin-bottom: 0;
}

.fire-calc-block--main {
    padding: 16px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #dcdcde;
}

.fire-calc-block-note {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #50575e;
}

.fire-calc-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fire-calc-results-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}

.fire-calc-results-list li:last-child {
    border-bottom: none;
}

.fire-calc-profit--positive strong {
    color: #1a7a1a;
}

.fire-calc-profit--negative strong {
    color: #b32d2e;
}

.fire-calc-block--secondary {
    padding: 12px 16px;
    border-radius: 4px;
    background: #ececec;
}

.fire-calc-secondary-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #50575e;
}

.fire-calc-error {
    color: #b32d2e;
    margin: 0;
}
