/// Helper for `o-brand` function.
/// @access private
@function _oTooltipGet($variables, $from: null) {
	@return oBrandGet(
		$component: 'o-tooltip',
		$variables: $variables,
		$from: $from
	);
}

/// Helper for `o-brand` function.
/// @access private
@function _oTooltipSupports($variant) {
	@return oBrandSupportsVariant($component: 'o-tooltip', $variant: $variant);
}

@if oBrandIs('core') {
	@include oBrandDefine(
		'o-tooltip',
		'core',
		(
			'variables': (
				'background-color': oPrivateFoundationGet('o3-color-palette-white'),
				'foreground-color': null,
				// inherit by default
				'close-foreground-color':
					oPrivateFoundationGet('o3-color-palette-black-60'),
				'professional': (
					'background-color':
						oPrivateFoundationGet('o3-color-palette-slate', 'professional'),
					'foreground-color':
						oPrivateFoundationGet('o3-color-palette-white', 'professional'),
					'close-foreground-color':
						oPrivateFoundationGet('o3-color-palette-white', 'professional'),
				),
			),
			'supports-variants': (
				'professional',
			),
		)
	);
}

@if oBrandIs('internal') {
	@include oBrandDefine(
		'o-tooltip',
		'internal',
		(
			'variables': (
				'background-color': oPrivateFoundationGet('o3-color-palette-white'),
				'foreground-color': null,
				// inherit by default
				'close-foreground-color':
					oPrivateFoundationGet('o3-color-palette-black-60'),
			),
			'supports-variants': (),
		)
	);
}

@if oBrandIs('whitelabel') {
	@include oBrandDefine(
		'o-tooltip',
		'whitelabel',
		(
			'variables': (
				'background-color': oPrivateFoundationGet('o3-color-palette-white'),
				'foreground-color': null,
				// inherit by default,
				'close-foreground-color':
					oPrivateFoundationGet('o3-color-palette-black'),
			),
			'supports-variants': (),
		)
	);
}
