/* Shared by the Vue application and the PHP marketing site. */
.action-menu {
  display: inline-flex;
  min-width: 0;
}

.action-menu__panel {
  padding: 6px;
  border: 1px solid var(--ui-border-strong, var(--border-strong));
  border-radius: 8px;
  background: var(--ui-surface, var(--surface));
  box-shadow: 0 8px 22px var(--color-palette-rgb-31-41-51-a10, rgb(31 41 51 / 10%));
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
  padding: 0 0 0 4px;
  border: 0;
  border-radius: 8px;
  color: var(--color-palette-rgb-145-147-153, rgb(145 147 153));
  background: var(--color-transparent, transparent);
  cursor: pointer;
}

.user-menu-btn:hover {
  background: var(--surface-sidebar-hover, var(--color-indigo-100));
}

.user-avatar {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--text-contrast, #fff);
  font-size: 10px;
  font-weight: 700;
  background: var(--primary-color, var(--primary));
}

.user-menu-chevron {
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M6.75 4.75L10 8L6.75 11.25" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  transform: rotate(90deg);
}

.user-menu-panel-content {
  display: grid;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--border-color, var(--border));
}

.user-fullname {
  font-size: 14px;
  font-weight: 600;
}

.user-email {
  max-width: 170px;
  overflow: hidden;
  color: var(--text-secondary, var(--muted));
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--color-palette-263546, #263546);
  text-align: left;
  text-decoration: none;
  background: var(--color-transparent, transparent);
  cursor: pointer;
}

.action-menu__panel .menu-item,
.user-menu-panel-content .menu-item {
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: var(--color-palette-eef3f7, #eef3f7);
  outline: none;
}
