/* Changes the layout of pinned issues from side-by-side to a standard list. */
.rgh-clean-pinned-issues .js-pinned-issues-reorder-container .f4 {
	display: none !important; /* Hide title */
}

@media (min-width: 700px) {
	.rgh-clean-pinned-issues .js-pinned-issues-reorder-list {
		display: table !important;
		width: 100%;
		margin: 0;
		margin-bottom: 20px;

		/* Rounded table border https://stackoverflow.com/a/2586780/288906 */
		box-shadow: 0 0 0 2px var(--github-border-color);
		border-collapse: collapse;
		border-radius: 6px;
		border-style: hidden;
	}

	.rgh-clean-pinned-issues .pinned-issue-item {
		display: table-row !important;
		border-color: var(--github-border-color) !important;
	}

	.rgh-clean-pinned-issues .pinned-issue-item > * {
		display: table-cell !important;
		padding: 6px 12px;
		vertical-align: middle;
	}

	/* Move `x` before the title and align both icons */
	.rgh-clean-pinned-issues .pinned-issue-item > :first-child {
		display: flex !important;
	}

	.rgh-clean-pinned-issues .pinned-issue-handle {
		order: -1;
		margin-top: -2px;
	}

	.rgh-clean-pinned-issues .pinned-issue-item form button {
		float: unset !important;
		margin-left: -10px;
		margin-right: 2px !important;
	}
}
