/* Строка о кредитах над прошивками: слева пояснение или баланс, справа действие; на телефоне — в столбик */
.credits-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 12px 20px;
    background: var(--avt-orange-soft);
    border-bottom: 1px solid var(--avt-line);
}

.credits-hint__text {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--avt-ink);
    text-wrap: pretty;
}

.credits-hint__balance {
    font-weight: 700;
    color: var(--avt-orange-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.credits-hint__rate {
    color: var(--avt-muted);
    white-space: nowrap;
}

.credits-hint__rate::before {
    content: '· ';
}

.credits-hint__actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.credits-hint__actions .button {
    min-height: var(--avt-tap, 44px);
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .credits-hint {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
    }
    .credits-hint__actions .button {
        flex: 1;
        text-align: center;
    }
    /* Вошедшему — одна строка: баланс слева, «Пополнить» справа */
    .credits-hint--user {
        flex-direction: row;
        align-items: center;
    }
    .credits-hint--user .credits-hint__actions .button {
        flex: none;
        padding-left: 16px;
        padding-right: 16px;
    }
    .credits-hint--user .credits-hint__rate {
        display: block;
    }
    .credits-hint--user .credits-hint__rate::before {
        content: none;
    }
}
