/**
 * Customizer preview edit shortcuts: see edit-shortcuts.js. Loaded in the
 * Customizer preview only, never on the front end.
 *
 * Aureon's own palette rather than the admin colour scheme: a gold frame and
 * tab on the part being pointed at, navy tabs on the parts around it.
 */

$gold: #d4a017;
$gold-dark: #b8860b;
$navy: #0f172a;
$navy-hover: #1e293b;

.aureon-edit-shortcuts {
	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
	visibility: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	&.is-shown {
		visibility: visible;
	}
}

.aureon-edit-shortcut {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	gap: 5px;
	align-items: center;
	height: 22px;
	margin: 0;
	padding: 0 9px 0 7px;
	border: 0;
	border-radius: 6px 6px 0 0;
	background: $navy;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	white-space: nowrap;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);

	&[hidden] {
		display: none;
	}

	&:hover {
		background: $navy-hover;
	}

	&.is-inner {
		background: $gold;

		&:hover {
			background: $gold-dark;
		}
	}

	&:focus-visible {
		outline: 2px solid $gold;
		outline-offset: 2px;
	}

	svg {
		flex: none;
		width: 12px;
		height: 12px;
		fill: currentcolor;
	}
}

.aureon-edit-shortcuts__outline {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	border: 1px dashed rgba(15, 23, 42, 0.45);
	border-radius: 2px;
	pointer-events: none;

	&[hidden] {
		display: none;
	}

	&.is-inner {
		border: 2px solid $gold;
		background: rgba(212, 160, 23, 0.06);
	}
}
