/* ============================================================================
   06-COMPONENTS -> #INPUT-GROUP
   ========================================================================= */

/**
 * A container used to wrap form inputs.
 */


//
// SCSS imports
//

@use '../01-settings' as *;
@use '../02-tools' as *;


/**
 * Input group
 */

.input-group {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    width: 100%;

    & > .input,
    & > .select {
        flex: 1 1 auto;
        min-width: 0;
        position: relative;
        width: 1%;

        &:focus {
            z-index: var(--z-index-20);
        }
    }

    & > :not(:first-child) {
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        margin-left: calc(var(--form-input-border-width) * -1);
    }
    
    & > :not(:last-child) {
        border-bottom-right-radius: 0;
        border-top-right-radius: 0;
    }
}