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

.c-order-portfolio-info {
    background-color: $grey-97;
    border-width: 0.1rem 0;
    border-color: $grey-85;
    border-style: solid;
    transition: opacity 0.2s ease;

    &__holdings {
        padding-top: v-space(2);
        padding-bottom: v-space(2);
    }

    &__holdings,
    &__cash {
        @extend %modal-section-large;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: v-space(1);
    }

    &__hr {
        @extend %horizontal-line;
        background-color: $grey-90;
        margin: 0;
    }

    &__cash {
        align-items: center;
    }

    &__cash-heading {
        @extend %heading-xs;
        max-width: $h-step * 18;
        height: v-space(3);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: $h-step * 4;
        margin: 0;
    }

    &__cash-datum {
        @extend %number-value-xs;
        display: flex;
        align-items: center;
        margin: 0;
        width: 100%;
        max-width: $h-step * 18;
        min-height: $v-step * 5;
    }

    &__cash-error {
        grid-column: 1 / -1;
        padding-bottom: v-space(1);
        color: $fail-color;
    }

    &__currency-exchange-button {
        border: 0;
        background: transparent;
        padding: 0;
        justify-self: start;
        color: $seafoam;
        cursor: pointer;
        font-weight: 600;
        transition: all $animation-duration;

        &:hover {
            color: $seafoam-120;
        }
    }
}
