#rte {
	width: 215px;
	border-radius: 5px;
	background: white;
	box-shadow: 0px 0px 40px 0px #c0cacd;
	position: absolute !important;
	left: 155px;
	top: 222px;
	z-index: 99;
	cursor: -moz-grab;
	cursor: -moz-grabbing;
	cursor: -webkit-grab;
	cursor: -webkit-grabbing;
	cursor: grab;
	cursor: grabbing;

	.hide {
		padding: 0;
		margin: 0;
		border: none;
		display: none;
		position: absolute;
		top: -9px;
		right: -9px;
		@include sprite($delete);
		background-color: transparent;
	}

	&:hover {

		.hide {
			display: inline-block;
		}
	}

	.styles {
		height: 200px;
		display: none;
	}

	.fonts {
		// height: 43px;
		// border-top: 1px solid #e1eaed;
		// box-shadow: 0px -5px 25px 1px #f2f1f1;

		button {
			text-align: left;
			width: 100%;
			margin: 0;
			padding: 0 20px;
			border: none;
			display: block;
			background: transparent;
			outline: none;

			&.active {
				background: #f0f5f7;
			}

			&.futura {
				@include type(Futura, 1.9, 4.3, #575f66, 400);
			}

			&.hoefler-text {
				@include type(Hoefler Text, 1.9, 4.3, #575f66, 400);
			}

			&.abril {
				@include type(Abril, 1.9, 4.3, #575f66, 400);
			}

			&.lato {
				@include type(Lato Light, 1.9, 4.3, #575f66, 300);
			}

			&.helvetica {
				@include type(Helvetica, 1.9, 4.3, #575f66, 300);
			}
		}
	}

	.formatting {
		padding: 0 19px 18px 19px;
		border-top: 1px solid #e1eaed;

		.typesetting {
			margin: 11px 0 0;

			label {
				@include type(Alright Sans, 1, 2, #b2bbbf, 700);
				text-align: center;
				text-transform: uppercase;
				width: 56px;
				display: inline-block;

				.external-input {
					vertical-align: middle;
					width: 56px;
					height: 31px;
					border: 1px solid #e1eaed;
					-webkit-border-radius: 5px;
					display: inline-block;
				}
			}
		}

		.icons {
			line-height: 0;
			text-align: justify;
			padding: 9px 0 10px;
			margin: 10px 0 0;
			border-top: 1px solid #e1eaed;
			border-bottom: 1px solid #e1eaed;

			&:after {
				content: '';
				vertical-align: top;
				display: inline-block;
				width: 100%;
				height: 0;
			}

			.group {
				line-height: 0;
				text-align: justify;
				width: 83px;
				height: 22px;
				margin: 0 0 10px;
				display: inline-block;

				&:after {
					content: '';
					vertical-align: top;
					display: inline-block;
					width: 100%;
					height: 0;
				}
			}

			.colors {
				height: 32px;
				padding: 2px;
				border: 1px solid #e1eaed;
				border-radius: 3px;
			}
		}
	}
}

%typesetting {
	@include type(Alright Sans, 1.7, 1.7, #575f66, 300);
	width: 54px;
	height: 29px;
	padding: 0 18px 0 9px;
	margin: 0;
	border: none;
	box-shadow: none;
	clear: both;
}

.rte-font-size {
	@extend %typesetting;
	@include sprite($pixel-select);
}

.rte-leading {
	@extend %typesetting;
}

.rte-tracking {
	@extend %typesetting;
}

input.rte-font-size::-webkit-outer-spin-button,
input.rte-font-size::-webkit-inner-spin-button,
input.rte-leading::-webkit-outer-spin-button,
input.rte-leading::-webkit-inner-spin-button,
input.rte-tracking::-webkit-outer-spin-button,
input.rte-tracking::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}