{% if config.fidelity_category %}
  {{ category }}
{% endif %}
{% if config.fidelity_range %}

  <div
    class="top-padding-small bottom-margin-medium border-gray hidden-overflow text-word-wrap aside-filter cc-sm-bg cc-sm-bd"
    id="aside-filter-range" data-url="{{ getsrange }}">
    <div class="full-width vertical-padding-small horizontal-padding-medium">
      <div class="flex between-xs middle-xs">
        <span class="visible-inline-block text-medium cc-sm-tt"><b>{{ text_pontos }}</b></span>
        {% if clearRange %}
          <a href="{{ linkclearrange }}" class="text-small cc-sm-tt">
            <span>{{ text_clear }}</span>
          </a>
        {% endif %}
      </div>
    </div>
    <div class="vertical-padding-small horizontal-padding-medium aside-filter-limit-content">
      {% for key, range in ranges %}
        <label class="checkbox checkbox-small js-aside-filter-item">
          <div class="row x-small-space-xs middle-xs nowrap-xs">
            <div class="col-xs">
              {% if key == false %}
                <input class="checkbox-entry js-check-range" type="checkbox" name="chkrange[{{ key }}]"
                       value="{{ range.value }}" {{ (range.checked is defined and range.checked) ? 'checked' : '' }}>
                <span class="checkbox-text js-checkbox-text cc-sm-ck cc-sm-tx">até {{ range.maximo }}</span>
              {% else %}
                <input class="checkbox-entry js-check-range" type="checkbox" name="chkrange[{{ key }}]"
                       value="{{ range.value }}" {{ (range.checked is defined and range.checked) ? 'checked' : '' }}>
                <span class="checkbox-text js-checkbox-text cc-sm-ck cc-sm-tx">{{ range.minimo }} a {{ range.maximo }}</span>
              {% endif %}
            </div>
          </div>
        </label>
      {% endfor %}
    </div>
    <div class="padding-small top-border-gray hidden aside-filter-apply-button js-aside-filter-apply-button cc-sm-bd">
      <button type="button" name="button" class="btn-default btn-medium btn-full cc-sm-bt">
        <span>{{ text_apply }}</span>
      </button>
    </div>
  </div>

{% endif %}
