@use "variables";

.fwe-toolbar {
  width: variables.$toolbar-width;
  padding: 0;
  background-color: variables.$white;
  border-right: 1px solid variables.$border;
  display: flex;
  flex-direction: column;
  align-items: center;

  .fwe-toolbar-actions {
    padding-top: 24px;

    a {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    button {
      display: block;
    }

    a,
    button {
      height: 60px;
      width: 60px;
      line-height: 60px;
      text-align: center;
      cursor: pointer;
      border-radius: 0;
      position: relative;

      &::after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        height: 100%;
        width: 4px;
        background-color: variables.$hero;
        transform: scaleX(0);
        transition: transform 0.3s;
      }

      &.fwe-active {
        color: variables.$hero !important;

        &::after {
          transform: scaleX(1);
        }
      }
    }
  }

  &.fwe-toolbar-right {
    border-right: none;
    border-left: 1px solid variables.$border;
    padding-right: 1px;

    .fwe-toolbar-actions {
      a,
      button {
        &::after {
          left: unset;
          right: 0;
          width: 4px;
          transform: scaleX(0);
          transition: transform 0.3s;
        }

        &.fwe-active {
          color: variables.$hero !important;

          &::after {
            transform: scaleX(1);
          }
        }
      }
    }
  }
}
