@import '../zindex';

#RESNotifications {
	position: fixed;
	bottom: 7px;
	right: 7px;
	height: auto;
	width: 300px;
	background: none;
	z-index: $zindex-notifications !important;
	font: 12px/1.6 verdana, arial, sans-serif;
	color: #000;

	// Compatibility with Toolbox 5, which may block part of the notification
	body.tb-modbar-shown & {
		bottom: 37px;
	}
}

.RESNotification {
	position: relative;
	background-color: #fff;
	border: 1px solid rgb(255, 255, 255);
	box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .3);
	max-height: 0;
	margin-bottom: 5px;
	transition: max-height .15s;

	a {
		color: #369;

		&:hover {
			text-decoration: underline;
		}
	}

	&:not(:hover) {
		.RESNotificationHeader .gearIcon,
		.RESCloseButton,
		.RESNotificationFooter {
			opacity: .3;
			transition: opacity .3s linear;
		}
	}

	&ButtonBlue {
		padding: 5px 10px;
		color: white !important;
		background-color: #107ac4;
		text-decoration: none;
	}

	&Content {
		overflow: auto;
		padding: 15px 10px;
		color: rgb(0, 0, 0);
		border-top: 1px solid rgb(230, 230, 230);
		border-bottom: 1px solid rgb(230, 230, 230);

		h2 {
			color: #000;
			margin-bottom: 10px;
		}

		p {
			margin: .5em 0;
		}

		strong {
			font-weight: bolder;
		}
	}

	&Footer {
		padding: 4px;
		color: rgb(140, 140, 140);
		font-size: 11px;

		.RESNotificationToggle {
			margin-top: .5em;
			font-size: smaller;
			font-weight: normal;
		}

		input {
			vertical-align: middle;
		}
	}

	&Header {
		height: 34px;
		color: rgb(255, 255, 255);
		background-color: rgb(60, 60, 60);
		border-bottom: #c7c7c7;
		display: flex;
		width: 100%;
		padding: 0 5px;
		box-sizing: border-box;
		align-items: center;

		h3 {
			margin: 0;
			font-size: 12px;
			font-weight: normal;
			margin-right: 5px;
		}

		.RESCloseButton {
			margin-left: auto;

			&::after {
				background: hsl(0, 70%, 55%);
				color: rgb(255, 255, 255);
				font-weight: bold;

				&:hover {
					background-color: rgb(200, 20, 20);
				}
			}
		}
	}
}
