/**
 * BW Dev — Post Link Block editor-only styles.
 */

.bw-dev-post-link-editor-results {
	list-style: none;
	padding: 0;
	margin: 0.5em 0 0;
	max-height: 240px;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
}

.bw-dev-post-link-editor-results li {
	margin: 0;
	border-bottom: 1px solid #f0f0f0;
}

.bw-dev-post-link-editor-results li:last-child {
	border-bottom: none;
}

.bw-dev-post-link-editor-results button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.5em 0.75em !important;
	height: auto !important;
	white-space: normal !important;
}

.bw-dev-post-link-editor-selected {
	margin: 0.5em 0 0;
	padding: 0.5em 0.75em;
	background: #f0f6fc;
	border-left: 3px solid #2271b1;
	font-size: 0.9em;
}

.bw-dev-post-link-editor-thumb {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 0.5em;
	border-radius: 4px;
	background: #f3f3f3;
}

.bw-dev-post-link__item--editor {
	padding: 0.75em;
	border: 1px dashed #ccc;
	background: #fafafa;
	border-radius: 4px;
	margin-bottom: 0.5em;
}

.bw-dev-post-link-editor-preview {
	display: flex;
	align-items: center;
	gap: 1em;
}

.bw-dev-post-link-editor-preview__thumb {
	flex: 0 0 80px;
	aspect-ratio: 16 / 9;
	width: 80px;
	object-fit: cover;
	background: #e9e9e9;
	border-radius: 4px;
	display: block;
}

.bw-dev-post-link-editor-preview__thumb--empty {
	background: linear-gradient( 135deg, #e9e9e9, #f3f3f3 );
}

.bw-dev-post-link-editor-preview__title {
	flex: 1;
	font-weight: 600;
	color: #1e1e1e;
}
