/* Main directory */
.ipm-page-menu {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}


/* Individual clickable row */
.ipm-menu-item {
	display: flex;
	align-items: center;
	width: 100%;
	gap: 24px;
	padding: 18px 8px;
	border-bottom: 1px solid #dddddd;
	text-decoration: none !important;
	color: inherit;
	transition: background-color 0.15s ease;
	box-sizing: border-box;
}


/* Hover */
.ipm-menu-item:hover {
	background-color: rgba(0, 0, 0, 0.025);
}


/* Thumbnail area */
.ipm-menu-image {
	width: 140px;
	height: 110px;
	flex: 0 0 140px;
	overflow: hidden;
	border-radius: 4px;
}


/* Image */
.ipm-menu-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}


/* Shown if the page has no featured image */
.ipm-placeholder {
	width: 100%;
	height: 100%;
	background: #eeeeee;
}


/* Text section */
.ipm-menu-content {
	flex: 1;
	min-width: 0;
}


/* Page title */
.ipm-menu-title {
	margin: 0 0 5px 0;
	padding: 0;
	font-size: 1.35rem;
	line-height: 1.25;
	font-weight: 600;
	color: inherit;
}


/* Optional excerpt */
.ipm-menu-excerpt {
	font-size: 0.95rem;
	line-height: 1.5;
	opacity: 0.75;
}


/* Arrow at right */
.ipm-menu-arrow {
	flex: 0 0 auto;
	font-size: 32px;
	line-height: 1;
	opacity: 0.4;
	padding: 0 12px;
}


/* WordPress editor */
.ipm-editor {
	border: 1px solid #dddddd;
	padding: 20px;
	background: #ffffff;
}

.ipm-editor-results {
	border: 1px solid #dddddd;
	margin: 5px 0 20px;
}

.ipm-editor-search-result {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 10px 12px;
	border-bottom: 1px solid #eeeeee;
}

.ipm-editor-search-result:last-child {
	border-bottom: 0;
}

.ipm-editor-selected {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px;
	border-bottom: 1px solid #eeeeee;
}

.ipm-editor-selected-title {
	flex: 1;
	font-weight: 500;
}

.ipm-editor-buttons {
	display: flex;
	align-items: center;
}


/* Phones */
@media screen and (max-width: 600px) {

	.ipm-menu-item {
		gap: 14px;
		padding: 14px 4px;
	}

	.ipm-menu-image {
		width: 90px;
		height: 80px;
		flex-basis: 90px;
	}

	.ipm-menu-title {
		font-size: 1.1rem;
	}

	.ipm-menu-excerpt {
		font-size: 0.88rem;
	}

	.ipm-menu-arrow {
		font-size: 25px;
		padding: 0 5px;
	}
}
/* Editor reorder/remove buttons */
.ipm-editor-buttons {
	display: flex;
	align-items: center;
	gap: 5px;
}

.ipm-editor-buttons .ipm-move-button,
.ipm-editor-buttons .ipm-remove-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	padding: 0;
	border: 1px solid #b7b7b7;
	border-radius: 4px;
	background: #ffffff;
	font-size: 17px;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
}

.ipm-editor-buttons .ipm-move-button:hover {
	background: #eeeeee;
	border-color: #777777;
}

.ipm-editor-buttons .ipm-remove-button {
	color: #b32d2e;
}

.ipm-editor-buttons .ipm-remove-button:hover {
	background: #fbeaea;
	border-color: #b32d2e;
}

.ipm-editor-buttons button:disabled {
	opacity: 0.3;
	cursor: default;
}