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

.c-portfolio-benchmark-comparison {
    padding: v-space(5) var(--container-padding-h) v-space(3)
        var(--container-padding-h);
    position: relative;

    &__heading-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: v-space(2) 0;
        align-items: center;
        width: 100%;

        @media screen and (max-width: $screen-large) {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    &__heading {
        @extend %heading-md;
        margin: 0;
        grid-column: 1 / span 3;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        @media screen and (max-width: $screen-large) {
            grid-column: span 2;
        }
    }

    // 1. Grid items have min-width: auto – prevent growth: set min-width to 0.
    &__input {
        grid-column: span 1 / -1;
        min-width: 0; // 1

        @media screen and (max-width: $screen-large) {
            grid-column: span 2;
        }
    }

    &__graph {
        width: 100%;
        margin-top: v-space(3);
        height: v-space(48);
    }
}
