/* stylelint-disable */
@import "../../settings/includes/colors";

.c-account-top-nav {
  display: none;

  @media (min-width: 1000px) {
    display: block;
  }

  width: 100%;
  height: 40px;
  background-color: $Fiord;

  &__container {
    max-width: 1140px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;

    @media (min-width: 1000px) {
      justify-content: space-between;
    }

    height: 100%;
  }

  &__type-list,
  &__basket-account {
    display: flex;
    align-items: center;
    max-height: 40px;
    height: 100%;
  }

  &__type {
    &-list {
      &-item {
        display: flex;
        height: 100%;

        a {
          color: $White;
          font-size: 0.875rem;
          line-height: 1.29rem;
          font-weight: bold;
          padding: 0 16px;
          display: flex;
          align-items: center;
        }

        &.is-active,
        &:hover {
          a {
            background-color: $Pacific;
            transition: background-color 0.3s;
          }
        }
      }
    }
  }

  &__basket-account {
    &-item {
      color: $White;
      font-size: 0.875rem;
      line-height: 1.29rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      position: relative;

      &:not(:last-child) {
        margin-right: 8px;
      }

      &.is-loggedin {
        justify-content: space-between;
      }

      > span {
        margin-right: 8px;
      }

      &--basket {
        display: flex;
        align-items: center;
      }

      &--login {
        padding: 0 16px;
        display: flex;
        align-items: center;
        height: 100%;
        background-color: $Pacific;

        a {
          display: flex;
          align-items: center;
        }

        &.is-loggedin {
          min-width: 180px;
        }
      }
    }

    &-details {
      background-color: $White;
      position: absolute;
      z-index: 100;
      left: 0;
      top: 100%;
      width: 100%;
      min-height: 96px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      border-radius: 4px;
      box-shadow: 0 13px 23px -10px rgba(0, 0, 0, 0.39);

      &-item {
        color: $Pacific;
        display: flex;
        align-items: center;
        padding: 8px;

        span {
          display: flex;
          align-items: center;
          padding: 0 8px;
          font-weight: normal;

          a {
            margin-left: 8px;
          }
        }
      }
    }
  }
}
