/**
 * Copyright (c) Enalean, 2025-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/>.
 */

.tlp-label {
    display: block;
    position: relative;
    margin: 0 0 var(--tlp-small-spacing);
    color: var(--tlp-dimmed-color);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1rem;

    &[for],
    &.tlp-radio,
    &.tlp-checkbox {
        cursor: pointer;
    }

    > .fa-asterisk {
        position: absolute;
        margin: 0 0 0 3px;
        color: var(--tlp-danger-dark-color);
        font-size: 0.6em;
        vertical-align: text-top;
    }

    &:not(.tlp-checkbox) ~ &.tlp-checkbox,
    &:not(.tlp-radio) ~ &.tlp-radio {
        color: inherit;
        font-size: 0.875rem;
        font-weight: normal;
    }
}
