@use "../colors" as c;

@use "sass:color";

.choose-material-type {
  margin: 0 0.5rem;
  position: relative;
  text-align: right;

  button {
    background-color: transparent;
    border: 1px solid c.$slightWhite;
    border-radius: 0.2rem;
    color: c.$raisinBlack;
    font-weight: normal;
    padding: 0.25rem 0.5rem;
  }

  .menu {
    background-color: c.$slightWhite;
    box-shadow: 0 2px 2px color.adjust(c.$black, $alpha: 0.8);
    display: flex;
    flex-direction: column;
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 1.6rem;
    right: 0;
    z-index: 100;

    button {
      border: 0;
      background-color: c.$slightWhite;
      color: c.$raisinBlack;
      display: block;
      outline: none;
      padding: 0.5rem 1rem;
      text-align: right;
      text-decoration: none;
      white-space: nowrap;

      &:hover,
      &:focus {
        background-color: c.$tealBlue;
        color: c.$white;
      }
    }
  }

  .toggle {
    background-color: c.$tealBlue;
    color: c.$white;

    &[aria-expanded="true"] {
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
    }
  }
}
