/*
 * Copyright 2020-2021 Hippo B.V. (http://www.onehippo.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Inspired by scss/components/product/list/_active-facets.scss
 * of SAP Spartacus Styles project.
 */
brx-active-facets {
  display: flex;
  flex-wrap: wrap;
  padding: 10px 0;

  color: var(--cx-color-text);

  h4 {
    flex: 100%;
    padding: 0 0 10px 0;
    margin: 0 0 20px 0;

    @include media-breakpoint-down(md) {
      display: none;
    }
  }
  a {
    display: flex;
    align-items: center;
    transition: all 0.3s;
    min-width: 0;

    background: var(--cx-color-background);

    &:hover {
      background: var(--cx-color-light);
      text-decoration: none;
    }

    border-radius: 4px;
    margin-top: 0;
    margin-inline-end: 10px;
    margin-bottom: 10px;
    margin-inline-start: 0;

    > span {
      margin-inline-start: 10px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    cx-icon {
      font-size: 1rem;
      padding: 10px;
      &:hover {
        color: var(--cx-color-primary);
      }
    }
  }
}
