.action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.action-btn {
    box-sizing: border-box;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}

.action-alert {
    box-sizing: border-box;
    width: 300px;
    max-width: 100%;
}

.count-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 0 0.75rem 1rem;
    box-sizing: border-box;
}

.count-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.count-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.count-field .form-label {
    margin: 0;
    white-space: nowrap;
    width: 16.5rem;
    flex: 0 0 16.5rem;
}

.count-input {
    width: 4.5rem;
    flex: 0 0 4.5rem;
    padding-left: 0.5rem;
    padding-right: 0.35rem;
}

.count-bar > .action-btn {
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .action-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        min-height: 52px;
        white-space: normal;
    }

    .action-row {
        justify-content: stretch;
    }

    .action-alert {
        width: 100%;
    }

    .count-bar,
    .count-group {
        flex-direction: column;
        align-items: stretch;
    }

    .count-bar {
        padding-right: 1rem;
        row-gap: 0.75rem;
    }

    .count-field .form-label {
        width: auto;
        flex: 1 1 auto;
        white-space: normal;
    }

    .count-bar > .action-btn {
        margin-left: 0;
    }
}
