/* Т-Банк: калькулятор и модалка tcredit */
.product__tcredit {
    margin: 12px 0 0;
}

.product__tcredit .tcredit-forma-buttons {
    margin: 0;
}

.tcredit-forma-buttons {
    margin: 12px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tcredit-calc {
    border: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 12px;
}

.tcredit-calc__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    padding: 14px 16px 10px;
    background: #fff;
}

.tcredit-calc__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    flex: 1 1 auto;
    min-width: 0;
}

.tcredit-calc__metric-label {
    display: block;
    font-size: 11px;
    color: #8a94a6;
    margin-bottom: 2px;
}

.tcredit-calc__metric-value {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.tcredit-calc__term-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f7fc;
    color: #009cf0;
    font-size: 13px;
    font-weight: 600;
}

.tcredit-calc__monthly {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    margin-left: auto;
    align-self: center;
}

.tcredit-calc__options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px 12px;
}

.tcredit-calc__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #f7f8fa;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.tcredit-calc__option[data-type="installment"] {
    background: #fffef5;
}

.tcredit-calc__option[data-type="credit"] {
    background: #f5f9fd;
}

.tcredit-calc__option.is-active[data-type="installment"] {
    border-color: #ffdd2d;
    background: #fff9d6;
    box-shadow: 0 2px 8px rgba(255, 221, 45, .35);
}

.tcredit-calc__option.is-active[data-type="credit"] {
    border-color: #009cf0;
    background: #e8f7fc;
    box-shadow: 0 2px 8px rgba(0, 156, 240, .2);
}

.tcredit-calc__option-label {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.tcredit-calc__option-pay {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.tcredit-calc__footer {
    padding: 0 12px 12px;
}

.tcredit-calc__cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 999px;
    background: #009cf0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    text-align: center;
}

.tcredit-calc__cta:hover {
    background: #0088d4;
}

.tcredit-calc__cta[disabled] {
    opacity: .6;
    cursor: wait;
}

/* Модалка */
.tcredit-phone-dialog {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.tcredit-phone-dialog__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.tcredit-phone-dialog__box {
    position: relative;
    max-width: 480px;
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .2);
}

.tcredit-phone-dialog__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
}

.tcredit-phone-dialog__hint {
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
}

.tcredit-phone-dialog__summary {
    background: #f3f5f7;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 13px;
}

.tcredit-phone-dialog__summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.tcredit-phone-dialog__summary-row:last-child {
    margin-bottom: 0;
}

.tcredit-phone-dialog__summary-label {
    color: #8a94a6;
}

.tcredit-phone-dialog__summary-value {
    font-weight: 600;
    color: #222;
    text-align: right;
}

.tcredit-phone-dialog__label {
    display: block;
    font-size: 13px;
    color: #555;
}

.tcredit-phone-dialog__input {
    display: block;
    width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d5dbe3;
    border-radius: 999px;
    font-size: 16px;
}

.tcredit-phone-dialog__error {
    margin-top: 10px;
    color: #c00;
    font-size: 13px;
}

.tcredit-phone-dialog__actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.tcredit-phone-dialog__actions .button.light-gray {
    border-radius: 999px;
    padding: 10px 18px;
}

.tcredit-phone-dialog__actions .button.green,
.tcredit-phone-dialog__actions .js-tcredit-dialog-submit {
    border-radius: 999px;
    padding: 10px 22px;
    background: #009cf0 !important;
    border-color: #009cf0 !important;
    color: #fff !important;
}

@media (max-width: 640px) {
    .tcredit-calc__monthly {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .tcredit-calc__option {
        flex-direction: column;
        align-items: flex-start;
    }
}
