/*------------------------------------------------------------------------------
 wp-insertpage (modeled after #wp-link)
------------------------------------------------------------------------------*/

#wp-insertpage-wrap {
	display: none;
	background-color: #fff;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
	width: 500px;
	overflow: hidden;
	margin-left: -250px;
	margin-top: -125px;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 100105;
	transition: height 0.2s, margin-top 0.2s;

	height: 400px;
}

#wp-insertpage-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 360px;
	background: #000;
	opacity: 0.7;
	filter: alpha(opacity=70);
	z-index: 100100;
}

#wp-insertpage {
	position: relative;
	height: 100%;
}

#wp-insertpage-wrap.options-panel-visible {
	height: 570px;
	margin-top: -250px;
}
#wp-insertpage-wrap.options-panel-visible.querystring-hidden {
	height: 530px;
}
#wp-insertpage-wrap.options-panel-visible.public-hidden {
	height: 530px;
}
#wp-insertpage-wrap.options-panel-visible.querystring-hidden.public-hidden {
	height: 510px;
}

#insertpage-modal-title {
	background: #fff;
	border-bottom: 1px solid #dcdcde;
	height: 36px;
	font-size: 18px;
	font-weight: 600;
	line-height: 2;
	margin: 0;
	padding: 0 36px 0 16px;
}

#wp-insertpage-close {
	color: #646970;
	padding: 0;
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	text-align: center;
	background: none;
	border: none;
	cursor: pointer;
}

#wp-insertpage-close:before {
	font: normal 20px/36px dashicons;
	vertical-align: top;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	width: 36px;
	height: 36px;
	content: "\f158";
}

#wp-insertpage-close:hover,
#wp-insertpage-close:focus {
	color: #135e96;
}

#wp-insertpage-close:focus {
	outline: none;
	box-shadow:
		0 0 0 1px #4f94d4,
		0 0 2px 1px rgba(79, 148, 212, 0.8);
	/* Only visible in Windows High Contrast mode */
	outline: 2px solid transparent;
	outline-offset: -2px;
}

#wp-insertpage-wrap #insertpage-selector {
	-webkit-overflow-scrolling: touch;
	padding: 0 16px;
	position: absolute;
	top: 37px;
	left: 0;
	right: 0;
	bottom: 44px;
}

#wp-insertpage ol,
#wp-insertpage ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#insertpage-options-toggle {
	cursor: pointer;
}

#insertpage-options-toggle::after {
	font: normal 20px/1 dashicons;
	vertical-align: top;
	speak: never;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	content: '\f140';
}

.options-panel-visible #insertpage-options-toggle::after {
	content: '\f142';
}

#insertpage-options-panel .insertpage-format {
	margin-top: 5px;
	white-space: nowrap;
}

#insertpage-options-panel #insertpage-size-select {
	max-width: 12rem;
}

#wp-insertpage input[type="text"] {
	box-sizing: border-box;
}

#wp-insertpage #insertpage-options {
	padding: 8px 0 12px;
}

#wp-insertpage p.howto {
	margin: 255px 0 3px;
}

#wp-insertpage label input[type="text"] {
	margin-top: 5px;
	width: 77%;
}
#wp-insertpage label input#insertpage-extra-classes {
	width: 30%;
}
#wp-insertpage label input#insertpage-extra-id {
	width: 30%;
}

#wp-insertpage #insertpage-search-panel label span.search-label {
	display: inline-block;
	width: 80px;
	text-align: right;
	padding-right: 5px;
	max-width: 24%;
	vertical-align: middle;
	word-wrap: break-word;
}

#wp-insertpage .insertpage-search-field {
	width: 250px;
	max-width: 70%;
}

#wp-insertpage .insertpage-search-wrapper {
	margin: 5px 0 9px;
	display: block;
	overflow: hidden;
}

#wp-insertpage .insertpage-search-wrapper .spinner {
	float: none;
	margin: -3px 0 0 4px;
}

#wp-insertpage .query-results {
	border: 1px #dcdcde solid;
	margin: 0 0 12px;
	background: #fff;
	overflow: auto;
	position: absolute;
	left: 16px;
	right: 16px;

	top: 38px;
	height: 245px;
}

#wp-insertpage li {
	clear: both;
	margin-bottom: 0;
	border-bottom: 1px solid #f0f0f1;
	color: #2c3338;
	padding: 4px 6px 4px 10px;
	cursor: pointer;
	position: relative;
}

#wp-insertpage .query-notice {
	padding: 0;
	border-bottom: 1px solid #dcdcde;
	background-color: #fff;
	color: #000;
}

#wp-insertpage .query-notice .query-notice-default,
#wp-insertpage .query-notice .query-notice-hint {
	display: block;
	padding: 6px;
	border-left: 4px solid #72aee6;
}

#wp-insertpage .unselectable.no-matches-found {
	padding: 0;
	border-bottom: 1px solid #dcdcde;
	background-color: #f6f7f7;
}

#wp-insertpage .no-matches-found .item-title {
	display: block;
	padding: 6px;
	border-left: 4px solid #d63638;
}

#wp-insertpage .query-results em {
	font-style: normal;
}

#wp-insertpage li:hover {
	background: #f0f6fc;
	color: #101517;
}

#wp-insertpage li.unselectable {
	border-bottom: 1px solid #dcdcde;
}

#wp-insertpage li.unselectable:hover {
	background: #fff;
	cursor: auto;
	color: #2c3338;
}

#wp-insertpage li.selected {
	background: #dcdcde;
	color: #2c3338;
}

#wp-insertpage li.selected .item-title {
	font-weight: 600;
}

#wp-insertpage li:last-child {
	border: none;
}

#wp-insertpage .item-title {
	display: inline-block;
	width: 80%;
	width: calc(100% - 68px);
	word-wrap: break-word;
}

#wp-insertpage .item-info {
	text-transform: uppercase;
	color: #646970;
	font-size: 11px;
	position: absolute;
	right: 5px;
	top: 5px;
}

#wp-insertpage #insertpage-options-panel {
	display: none;
}

#wp-insertpage-wrap.options-panel-visible #insertpage-options-panel {
	display: block;
}

#wp-insertpage .river-waiting {
	display: none;
	padding: 10px 0;
}

#wp-insertpage .submitbox {
	padding: 8px 16px;
	background: #fff;
	border-top: 1px solid #dcdcde;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
}

#wp-insertpage-cancel {
	line-height: 1.92307692;
	float: left;
}

#wp-insertpage-update {
	line-height: 1.76923076;
	float: right;
}

#wp-insertpage-submit {
	float: right;
}

@media screen and ( max-width: 782px ) {
	#wp-insertpage-wrap {
		height: 420px;
		margin-top: -250px;
	}

	#wp-insertpage label input#insertpage-extra-classes {
		width: 28%;
	}

	#wp-insertpage label input#insertpage-extra-id {
		width: 28%;
	}

	#wp-insertpage-wrap.options-panel-visible {
		height: 630px;
	}
	#wp-insertpage-wrap.options-panel-visible.querystring-hidden {
		height: 585px;
	}
	#wp-insertpage-wrap.options-panel-visible.public-hidden {
		height: 585px;
	}
	#wp-insertpage-wrap.options-panel-visible.querystring-hidden.public-hidden {
		height: 560px;
	}

	#wp-insertpage-wrap .query-results {
		top: 48px;
	}

	#insertpage-selector {
		padding: 0 16px 60px;
	}

	#wp-insertpage-wrap.options-panel-visible #insertpage-selector {
		bottom: 52px;
	}

	#wp-insertpage-cancel {
		line-height: 2.46153846;
	}

	#wp-link .submitbox .button {
		margin-bottom: 0;
	}
}

@media screen and ( max-width: 520px ) {
	#wp-insertpage-wrap {
		width: auto;
		margin-left: 0;
		left: 10px;
		right: 10px;
		max-width: 500px;
	}

	#wp-insertpage label input#insertpage-extra-classes {
		width: 21%;
	}

	#wp-insertpage label input#insertpage-extra-id {
		width: 21%;
	}

	#wp-insertpage label input#insertpage-extra-querystring {
		width: 75%;
	}

	#wp-insertpage-wrap.options-panel-visible {
		height: 630px;
	}
	#wp-insertpage-wrap.options-panel-visible.querystring-hidden {
		height: 585px;
	}
	#wp-insertpage-wrap.options-panel-visible.public-hidden {
		height: 585px;
	}
	#wp-insertpage-wrap.options-panel-visible.querystring-hidden.public-hidden {
		height: 560px;
	}
}

@media screen and ( max-height: 520px ) {
	#wp-insertpage-wrap {
		transition: none;
		height: auto;
		margin-top: 0;
		top: 10px;
		bottom: 10px;
	}

	#insertpage-selector {
		overflow: auto;
	}

	#search-panel .query-results {
		position: static;
	}
}

@media screen and ( max-height: 290px ) {
	#wp-insertpage-wrap {
		height: auto;
		margin-top: 0;
		top: 10px;
		bottom: 10px;
	}

	#insertpage-selector {
		overflow: auto;
		height: calc(100% - 92px);
		padding-bottom: 2px;
	}

	#search-panel .query-results {
		position: static;
	}
}
