/* Платежи B2P: формы, ссылки и действия на телефонах. */
.b2p-payment-card,
.b2p-balances,
.b2p-modal .modal-body {
    overflow-wrap: anywhere;
}

.b2p-payment-card .row > *,
.b2p-payment-card .d-flex > * {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .b2p-payment-card > .row > .col,
    .b2p-toolbar > .col {
        flex: 0 0 100%;
        width: 100%;
    }

    .b2p-payment-card .badge {
        max-width: 100%;
        white-space: normal;
        text-align: left;
        line-height: 1.4;
    }

    .b2p-payment-actions {
        width: 100%;
        margin-top: .75rem;
    }

    .b2p-payment-card .btn,
    .b2p-toolbar .btn,
    .b2p-modal .modal-body .btn {
        width: 100%;
        min-height: 44px;
        white-space: normal;
    }

    .b2p-payment-actions.d-flex {
        flex-direction: column;
    }

    .b2p-modal .modal-dialog {
        max-width: calc(100% - 1rem) !important;
        margin: .5rem auto;
    }

    .b2p-modal .modal-body {
        padding: 1rem;
    }

    .b2p-modal .form-control,
    .b2p-modal .form-select {
        min-height: 44px;
        font-size: 16px;
    }

    .b2p-modal .select2-container {
        max-width: 100%;
    }

    .b2p-modal .select2-selection--single {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .b2p-modal .select2-selection__rendered {
        min-width: 0;
    }

    .b2p-modal .select2-selection__arrow {
        height: 100% !important;
    }

    .b2p-modal img,
    .b2p-modal canvas,
    .b2p-modal svg {
        max-width: 100%;
        height: auto;
    }

    .b2p-balances .card-body {
        padding: .75rem;
    }

    .b2p-balances summary {
        font-size: 1rem !important;
    }

    .b2p-balances .table-responsive {
        text-align: left;
    }
}

