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

%grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: v-space(2);
}

.c-portfolio-creation {
    &__name {
        @extend %modal-section-large;
        padding-top: v-space(3);
        padding-bottom: v-space(3);
        background-color: $seafoam;

        label {
            size: 1.2rem;
            line-height: v-space(2);
            color: $seafoam-20;
        }
    }

    &__name-input {
        input {
            font-size: 2.4rem;
            padding: 0;
            font-weight: $font-weight-bold;
        }
    }

    &__approach,
    &__starting-value {
        @extend %modal-section-large;
    }

    &__starting-value {
        @extend %grid;
        margin: v-space(4) 0;
    }

    &__starting-value-label {
        @extend %label;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        span {
            display: inline-block;
            padding-right: v-space(2); // Aligning with SelectInput down icon
        }
    }

    &__hr {
        @extend %horizontal-line;
        margin: 0;
        margin-bottom: 0.1rem; // Compensate for 0.1rem border
        width: 100%;
    }

    &__label {
        @extend %label;
        display: block;
        margin-top: v-space(3);
        margin-bottom: v-space(1);
    }

    &__description {
        @extend %modal-section-large;
        margin-top: v-space(0.5); // Compensating relative position
        label {
            @extend %label;
            display: block;
            margin-bottom: v-space(1);
            position: relative;
            top: v-space(3);
        }

        textarea {
            min-height: v-space(14);
        }
    }

    &__button {
        margin-top: v-space(6);
        height: v-space(8);
        box-shadow: none;
        border-radius: 0 !important;
        font-size: 1.4rem !important;
    }
}
