@import '~@equitysim/react-uikit/dist/styles/styleguide';
@import '../../../../../styles/variables';

%hover-item {
    border-color: $butterscotch transparent;
    background-color: rgba($butterscotch, 0.2) !important;

    &:first-child {
        border-color: transparent transparent $butterscotch transparent;
    }

    &:last-child {
        border-color: $butterscotch transparent transparent transparent;
    }
}

.c-course-list-edit__item {
    @extend %heading-xs;

    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    height: $edit-course-list-item-height;
    padding: 0 v-space(3);
    margin: 0;
    text-align: left;
    border-color: transparent;
    border-style: solid;
    border-width: 0.1rem 0;
    transition: all $animation-duration;

    &__remove-button {
        position: absolute;
        right: v-space(2);

        .c-course-list-edit__item:hover & {
            color: $butterscotch;
        }
    }

    &:nth-child(odd) {
        background-color: $grey-97;
    }

    &:hover {
        @extend %hover-item;
    }
}
