/* The "..." button at the top right of a profile and its Share menu (MembersArea/ShareProfileButton.jsp,
   js/share-profile.js). Positioned by .profile-main__actions in member.css. */
.profile-share {
  position: relative;
  display: inline-block;
}

.profile-share__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1c1a2a;
  cursor: pointer;
}

.profile-share__dots:hover,
.profile-share__dots[aria-expanded="true"] {
  background: rgba(19, 15, 25, 0.08);
}

/* No ring after a mouse click (the site's generic button focus style would add a blue one); keyboard users keep it. */
.profile-share__dots:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.profile-share__dots:focus-visible {
  outline: 2px solid #f76922;
  outline-offset: 2px;
}

.profile-share__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 14rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(19, 15, 25, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(19, 15, 25, 0.14);
}

.profile-share__menu[hidden] {
  display: none;
}

.profile-share__heading {
  padding: 0.45rem 0.8rem 0.25rem;
  color: #6b6475;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-share__item {
  display: block;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #130f19;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.profile-share__item:hover,
.profile-share__item:focus-visible {
  background: #fff1e8;
  color: #c2410c;
}

.profile-share__status {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 21;
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  background: #e6fbf6;
  color: #0d9488;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-share__status:empty {
  display: none;
}

.profile-share-hint {
  margin: 0.6rem 0 0;
  color: #6b6475;
  font-size: 0.95rem;
}
