@import 'variables';

:host {
    ::ng-deep {
        trix-toolbar {
            top: 24px;
        }
    }
}

.facets {
    margin-top: 12px;
    @media screen and (min-width: $breakpoint-small) {
        max-width: 340px;
    }
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

vdr-action-bar clr-toggle-wrapper {
    margin-top: 12px;
}

.variant-filter {
    flex: 1;
    display: flex;
    input {
        flex: 1;
        max-width: initial;
        border-radius: 3px 0 0 3px !important;
    }
    .icon-button {
        border: 1px solid var(--color-component-border-300);
        background-color: var(--color-component-bg-100);
        border-radius: 0 3px 3px 0;
        border-left: none;
    }
}

.group-name {
    padding-right: 6px;
}

.view-mode {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    @media screen and (min-width: $breakpoint-small) {
        flex-direction: row;
    }
}

.edit-variants-btn {
    margin-top: 0;
}

.channel-assignment {
    flex-wrap: wrap;
    max-height: 144px;
    overflow-y: auto;
}

.auto-rename-wrapper {
    overflow: hidden;
    max-height: 0;
    padding-left: 9.5rem;
    margin-bottom: 0;
    transition: max-height 0.2s, margin-bottom 0.2s;
    &.visible {
        max-height: 24px;
        margin-bottom: 12px;
    }
}

.pagination-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
