/**
 * Copyright (c) Enalean, 2023-Present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

@use "../variables";

tuleap-tracker-link-artifact-creator {
    display: flex;
    flex: auto;
    flex-direction: column;
    padding: variables.$link-row-padding;
}

.link-field-artifact-creator-alert {
    width: 100%;
}

.link-field-artifact-creator-main {
    display: flex;
    gap: variables.$link-row-padding;
}

.link-field-artifact-creator-form {
    display: flex;
    flex: auto;
    gap: 10px;
}

.link-field-artifact-creator-inputs {
    display: flex;
    position: relative;
    flex: 1;
    flex-direction: column;
    gap: var(--tlp-small-spacing);
}

.link-field-artifact-creator-spinner {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0.5;
}

.artifact-modal-link-creator-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.link-field-artifact-creator-project-list,
// Override a more specific rule in the artifact modal for tlp-form-element
#artifact-modal-link-creator-tracker-wrapper {
    flex: 1 1 40%;
    margin: 0;
}

.artifact-modal-link-creator-list-picker-option-label {
    display: flex;
}

.artifact-modal-link-creator-list-picker-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.artifact-modal-link-creator-list-picker-tooltip {
    cursor: pointer;
}
