.rp-hover-group {
  // base
  list-style: none;

  // layout
  display: flex;
  width: auto;
  min-width: 80px;
  padding: 8px;
  flex-direction: column;
  align-items: flex-start;

  // style
  border-radius: 8px;
  border: var(--rp-code-block-border);
  background: var(--rp-c-bg);
  box-shadow: var(--rp-shadow-2);
  transition: opacity 0.3s ease-in-out;

  position: absolute;
  z-index: 999;
  top: 80%; // not 100%

  // #region postion
  &--center {
    left: 50%;
    transform: translateX(-50%);
  }

  &--left {
    left: 0;
    transform: none;
  }
  &--right {
    right: 0;
    transform: none;
  }
  // #endregion postion

  &--hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.3s ease-in-out,
      visibility 0s linear 0.3s;
  }

  &__item {
    height: 32px;
    flex: 1;
    align-self: stretch;
    display: block;
    white-space: nowrap;

    padding-right: 8px;

    // style
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out;

    // text
    color: var(--rp-c-text-1);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;

    &__link {
      display: flex;
      align-items: center;
      gap: 2px;
      // For click area
      height: 100%;
    }

    &--active {
      font-weight: 600;
      color: var(--rp-c-brand);
      cursor: auto;
      pointer-events: none;
    }
    &:hover {
      opacity: 0.7;
    }
  }
}
