@import "../../assets/sass/core/vars.scss";

.gtc-rc-areamenu {
	display: inline;
	position: relative;
	//z-index: 3 !important;

	.list {
		min-width: 200px;
		border-radius: $default-border-radius !important;

		ul {
			list-style-type: none;
			padding: 0px !important;
			margin: 0px !important;

			li {
				padding: 5px 10px;
				cursor: pointer;

				&:hover {
					background-color: $color-dark;
				}
			}
		}
	}
}

.gtc-rc-areamenu-no-hover {
	display: inline;
	position: relative;
	z-index: 2 !important;

	.list {
		min-width: 200px;
		border-radius: $default-border-radius !important;

		ul {
			list-style-type: none;
			padding: 0px !important;
			margin: 0px !important;

			li {
				padding: 5px 10px;
				cursor: pointer;
			}
		}
	}
}

.gtc-rc-areamenu-menu {
	z-index: 4 !important;
	position: absolute;
	margin-top: 5px;
	visibility: hidden;
	opacity: 0;
	height: 0;
	display: block !important;
	transition: margin-top 0.3s, opacity 0.3s;
	border-top: 1px solid #eee !important;

	.areamenu-scroll {
		max-height: 300px;
	}

	&.show {
		margin-top: 0;
		visibility: visible;

		opacity: 1;
		height: auto;
		background-color: #fff;
	}
}

.gtc-rc-areamenu-header {
	font-size: inherit;
	padding: 10px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.gtc-rc-areamenu-body {
	padding: 10px 20px;
}

.gtc-rc-areamenu-menu {
	border-radius: $default-border-radius;
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
	font-size: 14px;
	border: none;
	box-shadow: 0px 5px 10px -1px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	//padding: 0.5rem;

	&.right {
		left: calc(100% + 10px);
		top: 0;
		position: absolute;
	}

	.dropdown-item {
		transition: all 0.2s;

		&:hover,
		&:focus,
		&:active {
			background-color: $color-primary;
			text-decoration: none;
			color: white;
		}
	}
}

.gtc-rc-areamenu-item {
	border-radius: $default-border-radius;
}
