/*--------------------------------------------------------------------------------------------
*
*	Gutenberg
*
*--------------------------------------------------------------------------------------------*/
#editor {
	
	// main column is split into "editor" and "metaboxes".
	// remove WP flex that pushed metaboxes to bottom.
	.edit-post-visual-editor,
	.edit-post-layout__metaboxes {
		flex-basis: 0%;
		flex-grow: 0;
	}
	
	// metabox wrap
	.edit-post-layout__metaboxes {
		background: transparent;
		border-top: 0 none;
		margin-top: 0;
		padding: 30px;
		
		@media screen and (min-width: 600px) {
			padding: 46px;
		}
		
		.edit-post-meta-boxes-area {
			margin: 0;
		}
		
		// make postbox look like a classic box.
		.postbox {
			border: #e2e4e7 solid 1px;
			border-bottom: none;
			margin: 0 0 20px;
		}
	}
	
	// improve handle style
	.postbox {
		.handlediv {
			height: 46px;
			width: auto;
			padding: 0 14px 0 5px;
		}
		.hndle {
			color: #191e23 !important;
			font-size: 13px;
			line-height: 16px;
			
			.acf-hndle-cog {
				line-height: 16px;
			}
		}
		
		// change icons to match gutenberg sidebar accordions
		.handlediv .toggle-indicator {
			color: #191e23;
		}
		.handlediv .toggle-indicator:before {
			content: "\f343";
			font-size: 18px;
			width: auto;
		}
		&.closed .handlediv .toggle-indicator:before {
			content: "\f347";
		}
	}
	
	// acf-input-wrap
	.acf-input-prepend,
	.acf-input-append {
		box-sizing: border-box;
		height: 28px;
	}
	
	// accordion
	.acf-accordion {
		padding: 0 !important;
		
		.acf-accordion-title {
			color: #191e23;
			font-weight: 600;
			
			&:hover {
				background: #f8f9f9;
			}
			
			label {
				font-weight: inherit;
			}
		}
	}
	
	// table
	.acf-table {
		box-sizing: border-box;
		
		.acf-row-handle {
			width: 32px;
		}
	}
	
	// main error message
	.components-notice-list .acf-notice.-error {
		margin: 0 0 5px;
		min-height: 50px;
		padding: 6px 12px;
		border-left: 4px solid #00a0d2;
		color: #191e23;
		background-color: #f9e2e2;
		border-left-color: #d94f4f;
		
		p {
			margin: 1em 0;
		}
		
		.acf-notice-dismiss {
			top: 15px;
			right: 15px;
		}
	}
}
