@import '../../../core/src/style/variables';

.BomFilter {
  &-list {
    .error-notice {
      color: $midlightgrey;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      -webkit-transform: translate(-50%, -50%);
      -moz-transform: translate(-50%, -50%);
      -o-transform: translate(-50%, -50%);
      display: block;
      text-align: center;
    }
    wpt-loader {
      position: relative;
    }
  }

  &-title {
    font-size: $font-size-s;
    text-transform: capitalize;
    font-weight: bold;
    padding: 0 0 5px;
    display: inline-block;
    white-space: nowrap;
  }
  &-toggles {
    font-size: small;
    display: flex;
    flex-flow: row wrap;
    line-height: 22px;
    padding-bottom: 0.5rem;
    &-item {
      width: 50%;
      border: 1px solid $middarkgrey;
      border-radius: 0;
      flex-basis: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      &.wpt-button-toggle {
        padding: 3px; // To ensure visible focus
      }
      &.wpt-button-toggle-checked {
        background: $middarkgrey;
        color: $white;
      }
      &.matched-filters {
        // ! Sync with filter.component.scss > .matched @media styles
        @media screen and (min-width: 531px) {
          flex-basis: 50%;
        }
      }
      button {
        text-align: left;
      }
    }
  }
}

wpt-select .wpt-option {
  height: 2.5em;
}

wpt-select {
  font-size: small;
  padding: 4px;
  height: 26px;
}
.wpt-option {
  font-size: smaller;
  color: black;

  &.wpt-selected,
  &.wpt-selected:hover:not(.wpt-option-disabled),
  &.wpt-selected:focus:not(.wpt-option-disabled) {
    background: $middarkergrey;
    color: white;
  }

  &:hover:not(.wpt-option-disabled),
  &:focus:not(.wpt-option-disabled) {
    background: white;
    color: black;
  }
}
