@import "variables";

:host {
  .filter-sort-container {
    position: relative;
    z-index: 20;

    .menu-button {
      font-weight: 500;
      font-size: 12px;
      white-space: nowrap;

      &.active {
        color: $blue-250;
      }
    }

    .sort-icon {
      margin-left: -4px;
    }
  }

  ::ng-deep sm-menu {
    .i-filter-off:hover {
      opacity: 1;
    }
  }

}

.filter-type {
  padding: 4px 14px;
  text-align: right;

  .link {
    font-size: 12px;
    font-weight: 500;
    color: $blue-200;
    cursor: pointer;

    &.selected {
      color: $blue-400;
      pointer-events: none;
      cursor: initial;
    }
  }
}

.column-explanation {
  padding: 5px;
  font-size: 10px;
}

.options-section {
  height: 60vh;
  max-height: 400px;
  overflow: auto;
}


.load-more {
  margin: 12px auto;
  padding: 2px 8px;
  color: $blue-500;
  position: relative;
}

.load-more__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background-color: $blue-500;
  color: $blue-500;
  animation: dot 1s infinite linear alternate;
  animation-delay: 0.5s;
}

.load-more__dot::before,
.load-more__dot::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
}

.load-more__dot::before {
  left: -12px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background-color: $blue-500;
  color: $blue-500;
  animation: dot 1s infinite alternate;
  animation-delay: 0s;
}

.load-more__dot::after {
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background-color: $blue-500;
  color: $blue-500;
  animation: dot 1s infinite alternate;
  animation-delay: 1s;
}

@keyframes dot {
  0% {
    background-color: $blue-500;
  }
  50%, 100% {
    background-color: rgba($blue-500, 0.2);
  }
}


:host-context(.light-theme) {
  .filter-sort-container {
    .sort-icon {
      filter: brightness(0.4);
    }

    .menu-button.active {
      color: $blue-500 !important;
    }
  }
}
