.editor-block-mover {
	opacity: 0;

	&.is-visible {
		@include fade_in;
	}
}

// Mover icon buttons
.editor-block-mover__control {
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	outline: none;
	background: none;
	color: $dark-gray-300;
	cursor: pointer;
	padding: 0;
	width: $block-side-ui-width;
	height: $block-side-ui-width;	// the side UI can be no taller than 2 * $block-side-ui-width, which matches the height of a line of text
	border-radius: $button-style__radius-roundrect;

	&[aria-disabled="true"] {
		cursor: default;
		color: $light-gray-300;
		pointer-events: none;
	}

	svg {
		width: $block-side-ui-width;
		height: $block-side-ui-width;
		padding: ( $block-side-ui-width - 18px ) / 2;	// this makes the SVG fill the whole available area, without scaling the artwork
	}

	// Apply a background in nested contexts, only on desktop
	@include break-small() {
		.editor-block-list__layout .editor-block-list__layout & {
			background: $white;
			border-color: $light-gray-500;
			border-style: solid;
			border-width: 1px;

			&:first-child {
				border-width: 1px 1px 0 1px;
			}
			&:last-child {
				border-width: 0 1px 1px 1px;
			}
		}
	}

	// Hover, active and focus styles
	&:not(:disabled):hover {
		@include button-style__hover;
	}

	&:not(:disabled):active {
		@include button-style__active;
	}

	&:not(:disabled):focus {
		@include button-style__focus-active;
	}
}

.editor-block-mover__description {
	display: none;
}
