@import './global/variables.scss';

%controls {
  padding: 12px;
  background-color: $white;
  border-top: 1px solid $slate-10;
}

.filter-wrap {
  margin-bottom: 30px;
  border: 1px solid $slate-10;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  background-color: $slate-05;

  p {
    margin-bottom: 0;
  }

  a {
    border-bottom: 1px solid $sg-blue;
  }

  .filter-title,
  .filter-title-descriptor,
  .filter-search-toggle {
    font-size: 13px;
    line-height: 30px;
  }

  .filter-title {
    font-weight: 600;
  }

  .filter-search-toggle {
    line-height: 30px;
  }
}

.filter-controls,
.filter-list {
  @extend %controls;
  :global {
    .input-text-wrap,
    .input-select-wrap {
      margin-bottom: 0;
    }
  }
}

.filter-controls {
  display: flex;
  justify-content: space-between;
}

.filter-list {
  .row {
    position: relative;
    min-height: 40px;
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }

    &:hover .sg-icon-x {
      display: block;
    }
  }

  .filter-remove {
    line-height: 40px;
    text-align: center;
  }

  .sg-icon-x {
    position: absolute;
    top: 15px;
    right: -6px;
    display: none;
    font-size: 13px;
    color: $ron-burgundy;
    cursor: pointer;
  }
}

.filter-search-basic {
  padding-top: 10px;
}

.filter-buttons {
  display: flex;
  justify-content: space-between;
}

.filter-clear-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
}
