body.fm-faucet-active ul#adminmenu a.wp-has-current-submenu::after
{
	display: none;
}

.fm-field.fm-faucet-filter
{
	background: $color-sub-light-gray;
	border-bottom: 1px solid $color-sub-gray;

	&:nth-child(odd)
	{
		background: $color-sub-light-gray;
	}
}

.fm-faucet
{
	position: relative;
	
	.fm-faucet-trigger > a
	{
		@include transition(background);
		
		cursor: pointer;
		display: block;
		height: 100%;
		left: 0;
		position: absolute;
		top: 0;
		width: 100%;
		z-index: 1;
		
		&:hover
		{
			background: $color-faucet-hover;
		}
	}

	.fm-faucet-title
	{
		font-size: 1.25em;
		margin-bottom: 0.25em;

		a
		{
			text-decoration: none;
		}

		.fm-faucet-tag
		{
			border: 1px solid $color-wp-gray;
			color: $color-wp-gray;
			display: inline-block;
			font-size: 0.75em;
			font-weight: 600;
			line-height: 1.5em;
			margin: 2px 4px 2px 0;
			padding: 0 4px;
			vertical-align: text-bottom;

			&:nth-child(2)
			{
				margin-left: 8px;
			}
		}
	}
	
	&:hover .fm-faucet-title a
	{
		text-decoration: underline;
	}
}

#fm-faucet-popup
{
	@include border-box();

	border-style: solid;
	border-width: 36px 4px 4px;
	bottom: 0;
	display: none;
	position: fixed;
	right: 0;

	@include bp(above-reduced-left-bar)
	{
		left: 160px;
	}

	@include bp(above-tall-admin-bar)
	{
		top: 32px;
	}

	@include bp(tall-admin-bar-to-reduced-left-bar)
	{
		left: 36px;
	}

	@include bp(up-to-tall-admin-bar)
	{
		left: 0;
		top: 46px;
	}
}

@each $name, $color in $color-schemes
{
	@if ($name == 'fresh')
	{
		@include popup-color($color);
	}
	@else
	{
		@include popup-color($color, '.admin-color-#{$name}');
	}
}

#fm-faucet-navigation
{
	background: $color-white;
	height: 28px;
	left: 0px;
	position: absolute;
	text-align: center;
	top: -32px;
	width: 100%;

	a,
	> span
	{
		color: $color-white;
		display: inline-block;
		height: 28px;
		vertical-align: top;
		width: 28px;

		span
		{
			display: block;
			line-height: 28px;
			height: 28px;
			text-align: center;
			width: 28px;
		}
	}

	a
	{
		@include transition(background);

		background: rgba($color-black, 0);
		border: 0;
		cursor: pointer;
		margin: 0;
		padding: 0;

		&:hover
		{
			background: rgba($color-black, 0.25);
		}
	}
}

#fm-faucet-form
{
	left: 0;
	position: absolute;
	top: 0;
}

#fm-faucet-loading
{
	display: none;
	left: 28px;
	position: absolute;
	top: 0;
}

#fm-faucet-loading,
#fm-faucet-loading-help
{
	> span
	{
		@include animation(fm_loading, 2s, linear);
	}
}

#fm-faucet-close
{
	position: absolute;
	right: 0;
	top: 0;
}

#fm-faucet-number
{
	color: $color-white;
	display: inline-block;
	font-size: 12px;
	font-weight: bold;
	line-height: 26px;
	vertical-align: top;
}

#fm-faucet-iframe,
#fm-faucet-iframe > iframe
{
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

#fm-faucet-iframe
{
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

#fm-faucet-iframe-block,
#fm-faucet-mobile-unfriendly
{
	display: none;
	margin: 0 auto;
	max-width: $reduced-left-bar / 2;
	padding: 32px;

	h1,
	p
	{
		line-height: 1.15em;
		text-align: center;

		&:first-child
		{
			margin-top: 0;
		}

		&:last-child
		{
			margin-bottom: 0;
		}
	}
}

#fm-faucet-iframe-block-form,
#fm-faucet-mobile-unfriendly-form
{
	text-align: center;

	a
	{
		@include transition(opacity);

		border: 0;
		cursor: pointer;
		display: inline-block;
		height: 56px;
		margin: 0;
		padding: 0;
		width: 56px;

		&:hover
		{
			opacity: 0.75;
		}

		span
		{
			font-size: 40px;
			height: 56px;
			text-align: center;
			width: 56px;
		}
	}
}

body.rtl
{
	.fm-faucet .fm-faucet-tags
	{
		float: left;
		margin: 0 0 0 -2px;
	}

	#fm-faucet-popup
	{
		left: 0;

		@include bp(above-reduced-left-bar)
		{
			right: 160px;
		}

		@include bp(tall-admin-bar-to-reduced-left-bar)
		{
			right: 36px;
		}

		@include bp(up-to-tall-admin-bar)
		{
			right: 0;
		}
	}

	#fm-faucet-form
	{
		left: auto;
		right: 0;
	}

	#fm-faucet-loading
	{
		left: auto;
		right: 28px;
	}

	#fm-faucet-close
	{
		left: 0;
		right: auto;
	}

	#fm-faucet-previous,
	#fm-faucet-next
	{
		span
		{
			@include flip-horizontally();
		}
	}
}
