.profile-menu-wrap {
  display: flex;
  max-width: 250px;
  box-sizing: border-box;
  gap: 10px;
  width: fit-content;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  padding-left: 16px;

  border-radius: 50px;
  border: 1px solid var(--Gray-100, #f2f4f7);
  background: var(--Base-White, #fff);
  cursor: pointer;
  transition: all 0.3s ease;

  /* Shadow/sm */
  // box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),
  //   0px 1px 2px 0px rgba(16, 24, 40, 0.06);

  &:hover {
    border-color: var(--Gray-200, #e5e7eb);
    box-shadow: 0px 2px 4px 0px rgba(16, 24, 40, 0.15);
  }

  .profile-menu-icon {
    display: flex;
    align-items: center;
  }

  &.profile-menu-user-info {
    flex: 1;
  }
}

.profile-menu-user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;

  &-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
  }

  &-name {
    color: var(--Gray-700, #344054);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &-email {
    color: var(--Gray-600, #475467);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.profile-menu-dropdown {
  .ant-dropdown-menu {
    min-width: fit-content;
    max-width: 250px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--Gray-100, #f2f4f7);
    background: var(--Base-White, #fff);
    box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, 0.03),
      0px 12px 16px -4px rgba(16, 24, 40, 0.08);

    .ant-dropdown-menu-item {
      padding: 8px 12px;
      border-radius: 6px;
      min-height: 40px;
      display: flex;
      align-items: center;

      &:hover {
        background: var(--Gray-50, #f9fafb);
      }

      &:active {
        background: var(--Gray-100, #f2f4f7);
      }

      .profile-menu-user-info-item {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        flex-wrap: nowrap;
        overflow: hidden;

        .profile-menu-user-info {
          flex: 1;
          min-width: 0;
          overflow: hidden;

          &-name,
          &-email {
            width: 100%;
            padding-right: 8px;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
      }
    }

    .ant-dropdown-menu-item-divider {
      margin: 8px 0;
      background-color: var(--Gray-100, #f2f4f7);
    }
  }
}
