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

.c-stock-overview {
    &__heading {
        margin: v-space(4) 0 v-space(2) 0;
        @extend %heading-md;
    }
    &__graph {
        width: 100%;
        height: v-space(50) - 0.2rem; // NOTE: Compensating for
        margin: v-space(3) + 0.1rem 0 v-space(3) 0; // 1px border around the
        // graph generated by Plot.ly
        @media screen and (min-width: $screen-medium) {
            height: v-space(60) - 0.2rem;
        }
    }

    &__statistics {
        display: grid;
        grid-gap: v-space(6);
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 0;

        @media screen and (min-width: $screen-small) {
            grid-template-columns: repeat(2, 1fr);
            grid-gap: v-space(2);
        }

        @media screen and (min-width: $screen-medium) {
            grid-gap: v-space(4);
        }

        @media screen and (min-width: $screen-large) {
            grid-gap: v-space(6);
        }
    }

    &__list {
        margin: 0;

        @media screen and (min-width: $screen-small) {
            margin: v-space(2) 0;
        }

        dt,
        dd {
            margin: 0;
            display: inline-block;
            padding-bottom: v-space(1) / 2;
        }

        dt {
            font-weight: $font-weight-bold;
            color: $grey-40;
        }

        dd {
            color: $grey-60;
        }
    }

    &__row {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        height: v-space(4);
        border-bottom: solid 0.1rem $grey-92;
    }
}
