.inline-edit-group.inline-edit-coauthors {
	display: none;
}

.inline-edit-group.inline-edit-coauthors #coauthors-edit {
	margin-left: 5em;
}

#bulk-edit label.bulk-edit-group {
	clear: both;
	margin-top: 0.5em;
}

#coauthors-list {
	width: 100%;
	padding: 0 5px;
}

#bulk-edit #coauthors-list {
	padding: 0;
}

#coauthors-list td {
	padding-left: 0;
	padding-right: 0;
	vertical-align: middle;
	background: #f9f9f9;
}

#coauthors-list .coauthor-row {
	overflow: hidden;
}

#coauthors-list .coauthor-tag {
	width: 200px;
	display: block;
	padding: 10px 3px 5px;
	font-size: 13px;
	color: #21759b;
	border-bottom: 1px solid #21759b;
	cursor: text;
	float: left;
}

#coauthors-list .coauthor-tag:hover {
	cursor: text;
	background: #eaf2fa;
	color: #d54e21;
}

#coauthors-list .ui-state-highlight {
	border: 2px dashed #21759b;
	height: 31px;
	margin-top: 3px;
	width: 200px;
}

#coauthors-list .ui-sortable-helper .coauthor-tag {
	cursor: grabbing;
	cursor: -moz-grabbing;
	cursor: -webkit-grabbing;
}

#coauthors-list .coauthor-gravatar {
	float: right;
	height: 25px;
	margin-right: 5px;
	margin-top: -5px;
	width: 25px;
}

#coauthors-list .coauthor-suggest {
	margin: 5px 0;
	color: #888;
	width: 200px;
	float: left;
}

#coauthors-list .coauthor-suggest:focus {
	color: #333;
}

#coauthors-list .coauthors-author-options {
	overflow: hidden;
	padding: 7px 0 0 7px;
}

#coauthors-list .delete-coauthor {
	display: block;
	float: left;
	padding: 5px;
	text-decoration: underline;
	color: #f00;
	font-size: 11px;

	border: 1px solid transparent;
}

#coauthors-list .delete-coauthor:hover {
	cursor: pointer;
	background: #f00;
	color: #fff;

	border: 1px solid #f00;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

#coauthors-loading {
	margin: 10px 0 5px 10px;
	float: left;
}

#coauthors-readonly ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#coauthors-readonly ul li .avatar {
	float: left;
	width: 25px;
	height: 25px;
}

/*
 * These `.coauthor-tag` rules sit in different ID containers
 * (#coauthors-readonly vs #coauthors-list) and never match the same element, so
 * the descending-specificity source order is harmless here.
 */
/* stylelint-disable-next-line no-descending-specificity */
#coauthors-readonly ul li .coauthor-tag {
	display: block;
	padding: 5px 3px;
	margin-left: 30px;
	font-size: 13px;
}

.cap-author .cap-author-flex-item:nth-child(2) {
	min-width: 75px;
}

.cap-author .cap-author-flex-item:first-child {
	overflow-wrap: break-word;
}

/* Autocomplete dropdown styles */
.ui-autocomplete {
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
	z-index: 100001; /* Above WordPress admin elements */
}

.ui-autocomplete .ui-menu-item-wrapper {
	display: flex;
	align-items: center;
}

.coauthor-autocomplete-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.coauthor-autocomplete-avatar {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex-shrink: 0;
	vertical-align: middle;
}
