
.togglable-button {

  cursor: pointer;
  font-size: 12px;
  line-height: 8px;
  font-weight: 600;

  color: #005AA2;
  text-align: center;
  font-style: normal;

  display: inline-flex;
  padding: 10px 10px 12px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  background: transparent;

  // Custom tooltip styling
  &[title] {
    position: relative;
  }

  .is-hoverable {
    &:hover::after {
      content: attr(title);
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      background-color: black;
      color: white;
      padding: 5px 10px;
      border-radius: 4px;
      font-size: 12px;
      white-space: nowrap;
      z-index: 100;
      margin-bottom: 5px;
    }
  }

  &:first-letter {
    text-transform: capitalize;
  }

  &.local {
    border: solid 1px #005aa2;
    color: #005aa2;


    &.is-active {
      background: #083b7d;
      color: white;

      &:hover {
        color: #7FB8E7;
        border: solid 1px #7FB8E7;
      }
    }
  }

  &.outside {
    border: solid 1px #50d494;
    color: #50d494;

    &:hover {
      color: #159256;
      border: solid 1px #159256;
    }

    &.is-active {
      background: #159256;
      color: white;
    }
  }

  &:hover {
    border: solid 1px black;
    color: black;

    &.is-active {
      color: black;
    }
  }
}
