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

.c-course-score-breakdown {
    max-width: $modal-max-width;
    width: 100%;
    width: 100vw;

    @media screen and (max-width: $screen-small) {
        min-height: 100%;
        min-height: 100vh;
    }

    &__header {
        display: flex;
        align-items: center;
        padding-top: v-space(2);
        padding-bottom: v-space(2);
        background-color: $grey-95;
    }

    &__body {
        @extend %body-text-xs;
        padding-top: v-space(4);
        padding-bottom: v-space(4);
        color: $grey-40;
        line-height: v-space(3);
    }

    &__name {
        display: flex;
        flex-direction: column;
        margin-left: v-space(3);
    }

    &__portfolio-name {
        @extend %heading-lg;
        color: $grey-30;
        line-height: v-space(5);
        margin: 0;
        font-weight: $font-weight-bold;
    }

    &__user-name {
        @extend %body-text;
        color: $grey-70;
        line-height: v-space(3);
    }

    &__approach {
        font-weight: $font-weight-bold;
    }

    p {
        margin-bottom: 0;
    }

    section {
        @extend %modal-section-medium;
    }

    &__breakdown-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    &__breakdown {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: $grey-60;
        border-bottom: 0.1rem solid $grey-92;

        & + & {
            margin-top: v-space(2);
        }

        & > span:first-child {
            @extend %heading-sm;
            line-height: v-space(3);
            margin: 0;
            color: inherit;
        }

        & > span:last-child {
            @extend %number-value-sm;
            margin: 0;
        }
    }

    &__score {
        color: $grey-60;

        &--good {
            color: $seafoam !important;
        }

        &--bad {
            color: $watermelon !important;
        }
    }

    &__total-score {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: $grey-60;
        margin: v-space(6) 0 v-space(3);

        span:first-child {
            @extend %heading-md;
            margin: 0;
            font-weight: $font-weight-bold;
            color: inherit;
        }

        span:last-child {
            @extend %number-value-md;
            margin: 0;
            color: inherit;
        }
    }
}
