@import (reference) "../style/themes/default.less";

.am-filter {
  &-show {
    height: 100vh;
    display: block;
    position: relative;
  }

  &-hide {
    display: none;
  }

  &-mask, &-document {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  &-mask {
    bottom: 0;
    background: @color-product-mask;
    background: var(--am-filter-mask, @color-product-mask);
  }

  &-content {
    background: @color-fill-grey-inverse;
    background: var(--am-filter-content-bgc, @color-fill-grey-inverse);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
  }

  &-list {
    flex: 1;
    padding-left: @size-3;
    padding-left: var(--am-filter-padding, @size-3);
    padding-bottom: @size-3;
    padding-bottom: var(--am-filter-padding, @size-3);
    overflow-x: hidden;
    overflow-y: scroll;
    max-height: 830 * @pixelSize;
    box-sizing: border-box;
  }

  &-btn {
    width: 100%;
    display: flex;
  }

  &-default, &-primary {
    flex: 1;
    height: @size-12;
    height: var(--am-filter-button-height, @size-12);
    font-size: @font-size-title;
    font-size: var(--am-filter-button-fontSize, @font-size-title);
    box-sizing: border-box;
    width: 50%;
    border: 0;
    border-radius: 0;
  }

  &-default {
    border-top: @border-width-standard solid #eee;
    border-right: none;
  }

  &-child-2 {
    & > .am-filter-item-wrap {
      width: 50%;
    }
  }

  &-child-3 {
    & > .am-filter-item-wrap {
      width: 33.3%;
    }
  }
}
