@use '../abstracts/variables' as SRC;
@use 'sass:color';

.TotalQueryResults {
  color: SRC.$text-color-dark;
  background: unset;
  /* Divider */
  padding: 1px 0px;
  display: flex;
  align-items: baseline;

  &__selections {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
  }

  &__clearall {
    padding: 5px 10px;
    margin-left: 5px;
    flex: 1;
    flex-grow: 0;
    flex-shrink: 1;
    color: #515359;
    background: #ececec;
    border-radius: 2px;
    white-space: nowrap;
    height: fit-content;
  }
}

.SelectionCriteriaPill {
  padding: 3px 10px;
  display: inline-flex;
  justify-content: center;
  border-radius: 20px;
  margin-left: 1rem;
  line-height: 100%;
  cursor: pointer;
  background-color: color.change(SRC.$secondary-action-color, $alpha: 0.1);
  color: SRC.$text-color-dark;
  font-weight: normal;
  margin: 10px;
  span {
    margin: auto;
  }

  &__btnRemove {
    color: SRC.$secondary-action-color;
    padding: 0;
    margin-left: 5px;
    margin-top: 1px;
    svg {
      font-size: 1.25rem;
    }
  }
}

.notch-down {
  position: relative;
  &:after,
  &::after {
    position: absolute;
    left: 2.4rem;
    bottom: -10px;
    content: '';
    width: 0;
    height: 0;
    border-top: solid 10px;
    border-top-color: #f9f9f9;
    border-left: solid 10px transparent;
    border-right: solid 10px transparent;
  }
  // https://stackoverflow.com/questions/9450733/css-triangle-custom-border-color
  &:before,
  &::before {
    position: absolute;
    left: calc(2.4rem - 2px);
    bottom: -12px;
    content: '';
    width: 0;
    height: 0;
    border-top: solid 12px;
    border-top-color: inherit;
    border-left: solid 12px transparent;
    border-right: solid 12px transparent;
  }
}
