/*------------------------------------------------------------------------------
Dropdown
------------------------------------------------------------------------------*/
.eac-dropdown {
	$root: #{&};
	display: inline-block;
	position: relative;
	box-sizing: border-box;
	vertical-align: top;

	&__button {
		display: block;
		align-items: center;
		vertical-align: middle;
		line-height: 1;
		font-size: 14px;
		text-decoration: none;
		color: inherit;
	}

	&__menu {
		position: absolute;
		top: 100%;
		right: 0;
		border: 1px solid #e1e2e2;
		border-radius: 4px;
		padding: 0;
		margin: 2px 0 0 0;
		box-shadow: 0 50px 100px rgba(50, 50, 93, .1), 0 15px 35px rgba(50, 50, 93, .15), 0 5px 15px rgba(0, 0, 0, .1);
		background-color: #ffffff;
		list-style-type: none;
		z-index: 99;
		text-align: left;
		min-width: 150px;
		width: 100%;
		transition: 120ms all 60ms ease-out;
		transform-origin: top center;
		visibility: hidden;
		opacity: 0;

		li {
			display: block;
			background-color: #fff;
			margin: 0;
			padding: 0;
			text-decoration: none;
			cursor: pointer;
			white-space: nowrap;

			a {
				display: block;
				padding: 10px 20px;
				text-decoration: none;
				color: #333;

				&:hover {
					background-color: #f6f6f6;
				}

				&:focus, &:hover, &:active {
					outline: none;
					box-shadow: none;
				}
			}

			&.divider {
				padding: 0;
				border-bottom: 1px solid #e1e2e2;
			}
		}
	}

	&:hover,
	&:focus-within & {
		#{$root}__menu {
			opacity: 1;
			visibility: visible;
		}

		&:after {
			opacity: 1;
		}
	}
}

