// Allow the position to be easily overridden to e.g. fixed.
[role="region"] {
	position: relative;
}

.is-focusing-regions [role="region"] {
	// For browsers that don't support outline-offset (IE11).
	&:focus::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		pointer-events: none;
		outline: 4px solid transparent; // Shown in Windows High Contrast mode.
		box-shadow: inset 0 0 0 4px var(--gc-admin-theme-color);
	}

	@supports ( outline-offset: 1px ) {
		&:focus::after {
			content: none;
		}

		&:focus {
			outline-style: solid;
			outline-color: var(--gc-admin-theme-color);
			outline-width: 4px;
			outline-offset: -4px;
		}
	}
}
