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

.c-trade-filter-pill {
    $size: v-space(3);

    background-color: $grey-85;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.2rem;
    padding: 0 v-space(2);
    cursor: default;
    transition: all $animation-duration $timing-function;

    &__type {
        font-size: 1.2rem;
        text-transform: uppercase;
        font-weight: $font-weight-bold;
        margin: v-space(1) 0;
        line-height: v-space(2);
    }

    &__value {
        @extend %heading-xs;
        margin: 0 0 v-space(1) 0;
        line-height: v-space(2);
    }

    &__type,
    &__value {
        min-width: ($h-block-size + $h-gap-size) * 2 - $h-gap-size; // 2 columns
        max-width: ($h-block-size + $h-gap-size) * 3 - $h-gap-size; // 3 columns
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    &__remove-button {
        border: 1px solid $grey-75;
        border-radius: 50%;
        min-height: $size !important;
        min-width: $size !important;
        height: $size;
        width: $size;
        margin-left: v-space(2);
        color: $grey-75;
        text-align: center;
        background-color: transparent;
        cursor: pointer;

        &:hover {
            color: $grey-100;
            background-color: $danger-color;
            border-color: $danger-color;
        }
    }
    &__remove-icon {
        width: v-space(1);
        height: auto;
        line-height: $size;
        vertical-align: -0.4rem;
    }
}
