@use "@wordpress/base-styles/colors" as *;
@use "@wordpress/base-styles/variables" as *;
@use "@wordpress/base-styles/z-index" as *;

.components-tooltip {
	// @wordpress/ui Tooltip uses a surface token inside a ThemeProvider fixed to
	// #1e1e1e. Without that dark theme context, the token can resolve to a light
	// background. Use the same fixed color here to keep the tooltip dark.
	background: $gray-900;
	font-family: $default-font;
	border-radius: var(--wpds-border-radius-md);
	color: $gray-100;
	text-align: center;
	line-height: 1.4;
	font-size: 12px;
	padding: $grid-unit-05 $grid-unit-10;
	z-index: z-index(".components-tooltip");
	box-shadow: $elevation-small;
}

.components-tooltip__shortcut {
	margin-left: $grid-unit-10;
}
