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

.c-currency-exchange {
    %icon {
        color: $grey-70;
        height: v-space(1);
    }

    %align {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        height: $input-size-small-height;
        width: 100%;
        margin: 0;
    }

    @extend %modal-section-large;
    padding-top: v-space(4);
    padding-bottom: v-space(4);

    &__hr {
        @extend %horizontal-line;
        width: 100%;
    }

    &__total-hr {
        @extend %horizontal-line;
        margin: 0;
        grid-column: 3 / -1 !important;
        width: 100%;
    }

    &__down {
        @extend %icon;
        grid-column: 1 / -1;
        justify-self: end;
    }

    &__multiply {
        @extend %icon;
    }

    &__number {
        @extend %number-value-xs;
        @extend %align;
        padding-right: 1.3rem; // To align the number with input field contents:
        justify-content: flex-end;
    }

    &__label {
        @extend %label;
        margin: 0;
    }

    &__value {
        @extend %number-value-xs;
        justify-self: end;
        margin: 0;
    }

    &__column-label {
        @extend %heading-xs;
        margin: 0;
        color: $grey-60;
    }

    &__input {
        width: max-content;
        grid-column: 3 / -1;

        input {
            text-align: right;
        }
    }

    &__button {
        box-shadow: none;
        border-radius: 0 !important;
        font-size: 1.4rem !important;
    }
}
