@import "/UI/Core/Styles/Theme.scss";

VoiceMuteIndicator {
    position: absolute;
    left: 16px;
    top: 16px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    padding: 2px 14px;
    border-radius: 4px;
    background-color: rgba( 0, 0, 0, 0.45 );
    border: 1px solid rgba( 255, 255, 255, 0.08 );
    font-family: $main-font;
    color: white;
    pointer-events: none;
    z-index: 50;

    &.is-hidden {
        opacity: 0;
        background-color: rgba( 0, 0, 0, 0 );
        border: 1px solid rgba( 0, 0, 0, 0 );
        padding: 0;
    }

    .voice-mute-icon {
        font-size: 16px;
        color: rgba( 255, 255, 255, 0.6 );
        text-transform: none;
        letter-spacing: 0;
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.85 ),
                     0px 0px 6px rgba( 0, 0, 0, 0.6 );
    }

    .voice-mute-label {
        font-size: 12px;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        color: rgba( 255, 255, 255, 0.85 );
        text-shadow: 0px 1px 2px rgba( 0, 0, 0, 0.85 ),
                     0px 0px 6px rgba( 0, 0, 0, 0.6 );
    }

    InputHint img {
        width: 27px;
        height: 27px;
        margin-left: 4px;
    }

    &.is-passive {
        .voice-mute-icon,
        .voice-mute-label {
            opacity: 0.7;
        }
    }

    &.is-muting-some {
        .voice-mute-icon {
            color: rgba( $warning-orange, 0.95 );
        }

        .voice-mute-label {
            color: rgba( $warning-orange, 0.95 );
            font-weight: 600;
        }
    }

    &.is-muting-all {
        .voice-mute-icon {
            color: rgba( 240, 80, 80, 1 );
        }

        .voice-mute-label {
            color: rgba( 240, 80, 80, 1 );
            font-weight: 700;
        }
    }
}
