.tb-input-group {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 100%;

    li {
        margin: 0 $spacing-2 $spacing-4;
        width: 100%;
    }

    // If a datepicker is used in this context we need to alter its styles.
    .tb-date-picker {
        display: block;
    }

    .tb-date-picker__button {
        > span {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .tb-icon {
            top: 0;
        }
    }

    .tb-date-picker__placeholder {
        opacity: .5;
    }
}

.tb-input-group--checkboxes,
.tb-input-group--radios {
    li:not(:last-child) {
        margin-bottom: $spacing-2;
    }
}

@media screen and (min-width: $mediaquery-sm) {
    .tb-input-group {
        display: flex;
        flex-wrap: wrap;
        margin: 0 (-$spacing-2);
    }

    .tb-input-group--halves {
        li {
            width: calc(50% - 1rem);
        }
    }
}

@media screen and (min-width: $mediaquery-md) {
    .tb-input-group--thirds {
        li {
            width: calc(33.33% - 1rem);
        }
    }
}
