/**
 * #.# Editor Styles
 *
 * CSS for just Backend enqueued after style.scss
 * which makes it higher in priority.
 */

div[data-type="c9-blocks/vertical-tabs"] .c9-vertical-tabs {
	.tab-content [data-tab] {
		display: none;
	}

	.nav-item {
		transition: 0.15s border-color, 0.15s background-color, 0.15s opacity;
	}

	.c9-tab-admin-wrapper {
		position: relative;

		// show remove button on hover.
		&:not(:hover)>.c9-component-remove-button {
			opacity: 0;
		}
	}
}

.c9-component-remove-button {
	position: absolute;
	align-items: center;
	justify-content: center;
	top: 0;
	right: 0;
	width: 20px;
	height: 20px;
	padding: 0 !important;
	margin-top: -10px;
	margin-right: -10px;
	color: #fff;
	background-color: #4f5969;
	border-radius: 50%;
	opacity: 0.7;
	transition: 0.2s opacity, 0.2s background-color;

	&:hover {
		background-color: #c9586c;
		opacity: 1;
	}

	svg {
		width: auto;
		height: 0.8em;
	}
}

.c9-component-remove-button-confirm {

	.c9-component-remove-button-confirm-yep,
	.c9-component-remove-button-confirm-nope {
		padding: 0;
		margin-left: 5px;

		&:hover,
		&:focus {
			text-decoration: underline;
		}

		&,
		&:focus {
			background: none;
			box-shadow: none;
		}
	}

	.c9-component-remove-button-confirm-yep,
	.c9-component-remove-button-confirm-yep:focus {
		color: #c9586c;
	}

	.c9-component-remove-button-confirm-nope,
	.c9-component-remove-button-confirm-nope:focus {
		color: #999;
	}

	&.components-popover {
		&::before {
			border-color: transparent;
		}

		&.is-top::after {
			border-top-color: #191e23;
		}

		&.is-bottom::after {
			border-bottom-color: #191e23;
		}
	}

	.components-popover__content {
		padding: 4px 12px;
		color: $white;
		white-space: nowrap;
		background: #191e23;
		border-width: 0;
	}

	&:not(.is-mobile) .components-popover__content {
		min-width: 0;
	}

	.components-tooltip__shortcut {
		display: block;
		color: #7e8993;
		text-align: center;
	}
}

.editor-styles-wrapper div[data-type="c9-blocks/vertical-tabs"] {
	margin-top: 32px;
	margin-bottom: 32px;
}
