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

.c-card-metric-primary {
    display: flex;
    flex-direction: column;
    padding: v-space(3);
    height: 100%;
    color: $seafoam-20;
    box-shadow: $box-shadow-2;

    &--primary {
        background-color: $seafoam-160;
    }

    &--secondary {
        background-color: $seafoam;
    }

    p {
        margin-top: v-space(2);
        margin-bottom: v-space(2);
    }

    &__title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: v-space(3);
        margin-bottom: v-space(3);

        & > h3 {
            font-weight: $font-weight-normal;
            font-size: 2.4rem;
            line-height: 2.4rem;
            margin-top: 0;
            margin-bottom: 0;
        }
    }

    &__help {
        display: block;
        height: v-space(2);
        width: v-space(2);
        color: $seafoam-160;
        background-color: $seafoam-20;
        font-weight: $font-weight-bold;
        font-size: 1.2rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease-in-out;

        &:hover {
            color: $seafoam-160;
            background-color: $white;
        }
    }

    &__value {
        font-family: $numeric-font-family;
        font-weight: $font-weight-book;
        font-size: 3.2rem;
        line-height: v-space(4);
        color: $seafoam-20;

        &--negative {
            color: $coral;
        }
    }

    &__average {
        span {
            font-family: $numeric-font-family;
        }
    }

    &__link {
        @extend %link;
        display: block;
        margin-top: auto;
        font-size: 1.2rem;
        text-align: right;
    }
}
