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

.c-card-total-score {
    padding: v-space(3);
    height: 100%;
    box-shadow: $box-shadow-2;
    background-color: $white;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: v-space(3);

    @media screen and (max-width: 560px) {
        grid-template-columns: 1fr;
        grid-row-gap: v-space(3);
    }

    &__title {
        font-weight: $font-weight-normal;
        font-size: 2.4rem;
        line-height: 2.4rem;
        margin-top: 1px;
        margin-bottom: v-space(3);
        color: $grey-50;
    }

    &__label,
    &__value,
    &__subtitle {
        @extend %label;
        border-bottom: 0.1rem solid $grey-92;
        padding-bottom: 0.6rem; // Adjusting for vertical rhythm
    }
    &__label,
    &__value {
        margin-top: v-space(1);
    }

    &__subtitle {
        margin-top: v-space(1);
        margin-bottom: v-space(2);
        color: $grey-40;
    }

    &__score {
        font-family: $numeric-font-family;
        font-weight: $font-weight-black;
        font-size: 3.2rem;
        line-height: v-space(4);
        margin-top: v-space(2);
        margin-bottom: v-space(2);

        @media screen and (max-width: 560px) {
            text-align: center;
        }

        @supports (-webkit-background-clip: text) {
            background: linear-gradient(
                to right,
                #46b4eb 0%,
                $success-color 25%
            );
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        @supports not (-webkit-background-clip: text) {
            color: $success-color;
        }
    }

    &__label {
        text-transform: capitalize;
        color: $grey-60;
    }

    dl {
        display: grid;
        grid-template-columns: repeat(2, 1fr);

        dd {
            text-align: right;
        }
    }

    &__value {
        font-family: $numeric-font-family;
        color: $grey-50;
    }

    &__link {
        @extend %link;
        display: block;
        font-size: 1.2rem;
        margin-top: auto;
        padding-right: v-space(3);
        margin-bottom: 0;
        text-align: right;
    }

    &__help {
        height: auto;
        margin-left: v-space(1);
        width: v-space(2);
        color: $grey-70;
    }
}
