.multiline-field {
    .input-field {
        margin-top: 0;
    }

    .input-wrapper {
        position: relative;
        padding-bottom: 8px;

        &:nth-child(1) label {
            visibility: visible;
        }
    }

    &.input-field input,
    input {
        padding-right: $multiline-input-padding-right;
    }

    label {
        visibility: hidden;

        &::after {
            visibility: visible;
        }

        &.first-label {
            visibility: visible;
        }
    }

    .multiline-label .inline-help-tooltip {
        width: 1em;
        height: 1em;
    }

    ul {
        li {
            &:first-child label {
                display: flex;
            }

            input {
                margin-bottom: 10px;

                &::-ms-clear {
                    // ie: remove the X on right
                    display: none;
                }
            }
        }

        &:not(:empty) + .input-wrapper {
            input {
                @include placeholder;
            }

            label.first-label {
                visibility: hidden;
            }
        }
    }
}

// Action icons
.input-actions {
    position: absolute;
    top: 4px;
    right: -2px;
    z-index: 1;

    .js-add-value-button,
    .js-delete-value-button {
        position: relative;
        padding: 4px;

        &:hover {
            cursor: pointer;
        }

        &:focus {
            i {
                box-shadow: 0 0 6px 1px var(--deprecated-medium-blue);
            }
        }

        &:disabled i {
            position: relative;
            display: block;
            width: 18px;
            height: 18px;
            border: 2px solid var(--grey-60);
            border-radius: 18px;

            &.add-action {
                visibility: hidden;
            }

            &.delete-action {
                &::before {
                    position: relative;
                    top: 6px;
                    left: 2px;
                    display: block;
                    width: 10px;
                    height: 2px;
                    background-color: var(--grey-60);
                    content: '';
                }
            }
        }
    }

    button {
        width: auto;
        background: none;
        border: none;
        outline: none;
    }

    .tooltip {
        width: $tooltip-width;
    }

    i {
        position: relative;
        display: block;
        width: 18px;
        height: 18px;
        border: 2px solid var(--grey-60);
        border-radius: 18px;

        &.add-action,
        &.delete-action {
            &::before {
                position: relative;
                top: 6px;
                left: 2px;
                display: block;
                width: 10px;
                height: 2px;
                background-color: var(--grey-60);
                content: '';
            }
        }

        &.add-action {
            border-color: var(--digital-blue-60);

            &::before {
                background-color: var(--digital-blue-60);
            }

            &::after {
                position: absolute;
                top: 2px;
                left: 6px;
                display: block;
                width: 2px;
                height: 10px;
                background-color: var(--digital-blue-60);
                content: '';
            }
        }
    }
}
