.acf-field-button-group .acf-input {
    overflow: auto;
}

.acf-button-group label {
    padding: 1em 1em;
    border: 1px solid var(--theme--form--border-color);
    font-weight: 400;
    cursor: pointer;
}

.acf-button-group label:first-child {
    border-radius: var(--theme--form--border-radius) 0 0 var(--theme--form--border-radius);
}

.acf-button-group label:last-child {
    border-radius: 0 var(--theme--form--border-radius) var(--theme--form--border-radius) 0;
}

.acf-button-group label:hover {
    background: none;
    color: currentColor;
    border-color: var(--theme--color--primary);
}

.acf-button-group label.selected {
    background: var(--theme--color--primary);
    border-color: var(--theme--color--primary);
    color: var(--theme--color--background);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .acf-button-group {
        display: flex;
        flex-direction: column;
        padding: 0;
        padding-top: 1px;
    }

    .acf-button-group label {
        margin: -1px 0 0 0;
    }

    .acf-button-group label:first-child {
        border-radius: var(--theme--form--border-radius) var(--theme--form--border-radius) 0 0;
    }

    .acf-button-group label:last-child {
        border-radius: 0 0 var(--theme--form--border-radius) var(--theme--form--border-radius);
    }
}
