/* Shortcode insert modal — layout only.
   Uses the same structure as WP's #wp-link-wrap (editor.css).
   Buttons, inputs, and list items rely on WP admin's native styles. */

#accua-form-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 360px;
	background: #000;
	opacity: 0.7;
	z-index: 100100;
}

#accua-form-wrap {
	background-color: #fff;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
	width: 500px;
	overflow: hidden;
	margin-left: -250px;
	margin-top: -200px;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 100105;
	height: 400px;
}

#accua-form-wrap form {
	position: relative;
	height: 100%;
}

#accua-form-wrap .accua-form-modal-title {
	background: #fff;
	border-bottom: 1px solid #dcdcde;
	font-size: 18px;
	font-weight: 600;
	line-height: 2;
	margin: 0;
	padding: 0 36px 0 16px;
}

#accua-form-wrap .accua-form-close {
	color: #646970;
	padding: 0;
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: 36px;
	text-align: center;
	background: none;
	border: none;
	cursor: pointer;
}

#accua-form-wrap .accua-form-close:before {
	font: normal 20px/36px dashicons;
	vertical-align: top;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	width: 36px;
	height: 36px;
	content: "\f158";
}

#accua-form-wrap .accua-form-close:hover,
#accua-form-wrap .accua-form-close:focus {
	color: #135e96;
}

#accua-form-wrap .accua-form-close:focus {
	box-shadow: 0 0 0 2px #2271b1;
	outline: 2px solid transparent;
	outline-offset: -2px;
}

#accua-form-wrap .accua-form-body {
	padding: 0 16px;
	position: absolute;
	top: calc(2.15384615em + 16px);
	left: 0;
	right: 0;
	bottom: calc(2.15384615em + 19px);
	display: flex;
	flex-direction: column;
	overflow: auto;
}

#accua-form-wrap .search-wrapper {
	margin: 5px 0 9px;
}

#accua-form-wrap .search-wrapper .search-label {
	display: inline-block;
	width: 80px;
	text-align: right;
	padding-right: 5px;
	max-width: 24%;
	vertical-align: middle;
}

#accua-form-wrap .link-search-field {
	width: 250px;
	max-width: 70%;
}

#accua-form-wrap .query-results {
	border: 1px #dcdcde solid;
	margin: 0;
	background: #fff;
	overflow: auto;
	flex: 1;
}

#accua-form-wrap .query-results ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#accua-form-wrap .query-results li {
	clear: both;
	margin-bottom: 0;
	border-bottom: 1px solid #f0f0f1;
	color: #2c3338;
	padding: 4px 6px 4px 10px;
	cursor: pointer;
	position: relative;
}

#accua-form-wrap .query-results li:hover {
	background: #f0f6fc;
	color: #101517;
}

#accua-form-wrap .query-results li.selected {
	background: #dcdcde;
	color: #2c3338;
}

#accua-form-wrap .query-results li.selected .item-title {
	font-weight: 600;
}

#accua-form-wrap .query-results li:last-child {
	border: none;
}

#accua-form-wrap .item-title {
	display: inline-block;
	width: calc(100% - 68px);
	word-wrap: break-word;
}

#accua-form-wrap .item-info {
	text-transform: uppercase;
	color: #646970;
	font-size: 11px;
	position: absolute;
	right: 5px;
	top: 5px;
}

#accua-form-wrap .no-results {
	padding: 6px;
	border-left: 4px solid #d63638;
	color: #2c3338;
}

#accua-form-wrap .submitbox {
	padding: 8px 16px;
	background: #fff;
	border-top: 1px solid #dcdcde;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

@media screen and (max-width: 782px) {
	#accua-form-wrap {
		width: 90%;
		margin-left: -45%;
	}
}
