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

.c-course-recent-activity {
    background-color: $white;
    box-shadow: $box-shadow-2;
    height: fit-content;
    overflow: hidden;

    &__header {
        height: v-space(6);
        background-color: $grey-30;
        font-family: $font-family-proxima;
        font-weight: $font-weight-bold;
        font-size: 1.4rem;
        line-height: v-space(6);
        color: $white;
        padding: 0 v-space(2);

        & > span {
            vertical-align: 2rem;
            margin-left: 1.6rem;
        }
    }

    &__icon {
        width: 1.6rem;
    }

    &__list {
        padding: v-space(3) 1.6rem v-space(3) 1.3rem; // Aligning the avatars
        position: relative;

        &:after {
            content: '';
            width: 0.1rem;
            height: 100%;
            height: calc(100% + 6.4rem);
            background-color: $grey-92;
            position: absolute;
            top: 0;
            left: v-space(3);
        }
    }

    &__footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: v-space(3) v-space(2) v-space(3) v-space(5);

        & > a {
            display: block;
            font-weight: $font-weight-normal;
            &:last-of-type {
                text-align: right;
            }
        }
    }

    &__footer-link {
        cursor: pointer;
        border: 0;
        background-color: transparent;
        color: $seafoam;

        &--disabled {
            color: $grey-75;
            pointer-events: none;
            cursor: initial;
        }
    }
}
