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

.c-course-data-exportation__export-intervals {
    $list-item-size: v-space(18);

    padding: v-space(3) v-space(7) v-space(4);
    width: 100%;
    transition: all $animation-duration;

    &__legend {
        margin-bottom: v-space(3);
        width: 100%;
        color: $grey-40;
        font-size: 1.6rem;
        font-weight: $font-weight-bold;
        line-height: 1.5;
    }

    &__list {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: $list-item-size * 2 + 1.6rem;
        transition: inherit;
    }

    &__list-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: v-space(13);
        width: 100%;
        min-width: 0;
        max-width: $list-item-size;
        border: solid 0.1rem $seafoam;
        border-radius: $border-radius-base;
        cursor: pointer;
        transition: inherit;

        &:hover,
        &--active {
            background-color: $seafoam-20;
        }
    }

    &__icon,
    &__label {
        .c-course-data-exportation__export-intervals__list-item:hover &,
        .c-course-data-exportation__export-intervals__list-item--active & {
            color: $seafoam-120;
        }
    }

    &__icon {
        $size: v-space(5);
        height: $size;
        width: $size;
        margin-bottom: v-space(2);
        color: $grey-60;
        transition: inherit;
    }

    &__label {
        @extend %heading-sm;
        text-transform: uppercase;
        margin: 0;
        transition: inherit;
    }

    &__button {
        font-size: 1.6rem !important;
        border-radius: 0 !important;
    }
}
