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

.c-trade-options-table-row {
    td {
        &:nth-child(1) {
            width: 25%;
        }
        &:nth-child(3) {
            width: 14%;
        }
        &:nth-child(2),
        &:nth-child(4),
        &:nth-child(5),
        &:nth-child(6),
        &:nth-child(7) {
            width: 11%;
        }
        &:nth-child(3),
        &:nth-child(4),
        &:nth-child(5),
        &:nth-child(6),
        &:nth-child(7) {
            text-align: right;
        }
        &:first-of-type {
            padding-left: var(--container-padding-h);
            text-align: left;
        }
        &:last-of-type {
            padding-right: var(--container-padding-h);
        }
    }

    &__issuer {
        @extend %heading-xs;
        margin: 1rem 0 0 0;
        display: inline-block;
        max-width: v-space(16);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-transform: uppercase;

        @media (min-width: 800px) {
            max-width: v-space(18);
        }
        @media (min-width: 1280px) {
            max-width: v-space(22);
        }
    }

    &__caption {
        @extend %caption;
        margin: 0;
    }

    &__number {
        margin: 0;
        font-family: $numeric-font-family;
        font-weight: $font-weight-semibold;
        color: $grey-50;
        font-size: 2rem;
        line-height: v-space(3);
        em {
            font-style: normal;
            font-family: $base-font-family;
            font-weight: $font-weight-bold;
        }
    }
    &__text {
        margin: 0;
        font-weight: $font-weight-bold;
        color: $grey-50;
        font-size: 2rem;
        line-height: v-space(3);
    }

    &__volatility-level {
        @extend %caption;
        margin: 0;
        font-weight: $font-weight-bold;
        text-transform: uppercase;

        &--high {
            color: $watermelon;
        }
        &--medium {
            color: $butterscotch;
        }
        &--low {
            color: $seafoam-60;
        }
    }
}
