@import 'filters/slider';
@import 'filters/stops_filter';

.filters {
  width: 203px;
  margin: 0px 69px 0 30px;
  user-select: none;

  &.disabled {
    @include disabled-disabled();

    >.filters-left > *:not(.question-wrapper) {
      position: relative;
      opacity: .4;
      @include disabled-overlay();
      &:before {
        left: -10px;
        width: calc(100% + 20px);
      }

    }
  }

  .filters-counter {
    border-bottom: 1px solid rgba(0, 0, 0, .10);
    margin-bottom: 15px;

    .title {
      font-size: 13px;
      color: #919191;
      line-height: 16px;
      margin-bottom: 5px;
    }

    .counter {
      font-size: 17px;
      min-height: 17px;
      color: #000000;
      line-height: 21px;
      margin-bottom: 15px;
    }
  }

  .filters-title-container {
    margin-bottom: 15px;

    .filters-title {
      font-size: 20px;
      line-height: 24px;
      display: inline-block;
    }

    .question-wrapper {
      margin-left: 5px;
    }

    .filters-reset {
      float: right;
      cursor: pointer;
      font-size: 13px;
      color: #787878;
      line-height: 26px;

      &:hover {
        color: #000;
      }
    }
  }
}

.filter {
  margin-bottom: 15px;
  .title {
    font-size: 12px;
    line-height: 15px;
    position: relative;
    margin-bottom: 10px;
    padding: 5px 0 12px 0;
    letter-spacing: .8px;
    color: #000;
    &.title-dropdown {
      padding-left: 15px;
      cursor: pointer;
      user-select: none;
      border-bottom: 1px solid rgba(0, 0, 0, .10);
      &:before {
        position: absolute;
        top: 9px;
        left: 0;
        display: block;
        width: 9px;
        height: 5px;
        content: '';
        transition: transform 200ms cubic-bezier(.645, .045, .355, 1);
        transform: rotate(0deg);
        background: url('data:image/svg+xml,%3Csvg%20width%3D%229%22%20height%3D%225%22%20viewBox%3D%220%200%209%205%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4.465%205L0%200h9L4.465%205z%22%20fill%3D%22%23A9A9A9%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E') no-repeat;
      }
    }
    &.closed:before {
      transform: rotate(-90deg);
    }
  }
  .red {
    color: #ff3200;
  }
  .control {
    .range {
      .from,
      .to {
        font-size: 13px;
        line-height: 16px;
        display: inline;
        opacity: .69;
        color: #000;
      }
    }
    ul.list {
      margin: 0;
      padding: 0;
      list-style: none;
      li {
        position: relative;
        padding: 6px 0 6px 0;
        user-select: none;
        border-radius: 2px;
      }
      li:last-child {
        margin-bottom: 0;
      }
      li:hover .only-button {
        display: block;
        background: #f1f1f1;
        &:after {
          position: absolute;
          top: 0;
          left: -15px;
          width: 15px;
          height: 100%;
          content: '';
          background: linear-gradient(to right, rgba(255, 255, 255, .01) 0%, #f1f1f1 100%);
        }
      }
      li:hover .price {
        display: none;
      }
      label {
        white-space: nowrap;
      }
      .only-button {
        font-size: 14px;
        position: absolute;
        top: 0;
        right: 0;
        display: none;
        padding: 6px 0 6px 6px;
        cursor: pointer;
      }
      .name {
        font-size: 13px;
        line-height: 16px;
        display: inline-block;
        width: 180px;
        color: #484848;
      }
    }
  }
}
