// stylelint-disable max-nesting-depth, selector-max-compound-selectors

.user-search-results-container {
    border: 1px solid $color-border-gray;
    margin-top: 10px;
    overflow-y: scroll;
    max-height: 285px;

    p {
        padding: 10px 20px 5px;
        color: $color-text-gray-light;
        font-style: italic;
    }

    &.mobile {
        max-height: 250px;
    }
}

.Heading {
    padding: 11px 20px;
    height: 40px;
    font-weight: bold;
    display: flex;
    border-bottom: 1px solid $color-border-gray;
    background-color: $color-bg-white;
    position: sticky;
    top: 0;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-size: 16px;
}

.user-search-cancel-container {
    margin-top: 10px;
}

.input-container {
    height: 40px;
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;

    .search-container {
        width: calc(50% - 10px);
        display: flex;
        
        .search-button {
            height: 40px;
            width: 40px;
            border-radius: 0;
            
            svg {
                color: $color-text-white !important;
            }
        }

        .user-search-input {
            height: 40px;
            width: calc(100% - 40px);
            background-color: $color-bg-gray-blue-light;
            color: $color-text-gray-blue;
            border-radius: 2px;
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
            border: 1px solid $color-border-gray;
            padding: 6px 12px;
        }
    }

    .add-by-email-container {
        width: calc(50% - 10px);
    }

    &.mobile {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        height: 100px;
        margin-top: 10px;

        .add-by-email-container,
        .search-container {
            width: 100%;
        }

        .search-container {
            margin-bottom: 10px;
        }
    }
}
