.flash-message {
	width: 100%;
	position: absolute;
	top: 0;
	right: 0;
	background: #f0f0f0;
	box-shadow: 2px 2px 6px -2px rgba(46, 46, 46, 0.5);
	color: $color--black;
	text-align: center;
	padding: 2rem 5rem 2rem 26rem;
	z-index: 9;

	transition: all 0.3s linear;

	transform: translateY(-150%); //150 because of shadow


	&.show {
		transform: translateY(0);
	}

	&.warning {
		background: $color--warning;
	}
	&.error {
		background: $color--error;
		color: $color--white;
	}
	&.ok {
		background: $color--ok;
		color: $color--white;
	}

}

.flash-message__close {
	position: absolute;
	top: 1.2rem;
	right: 1rem;
	width: 3rem;
	height: 3rem;
	display: block;
	cursor: pointer;
	transition: all 0.2s linear;

	&:hover {
		transform: scale(1.2);
	}

	&:before,
	&:after {
		display: block;
		content: '';
		width: 100%;
		height: 2px;
		background: $color--black;
		.error &,
		.ok & {
			background: $color--white;
		}
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%) rotate(45deg);
	}
	&:after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}
}