.wpcb-notice-wrapper {
	position: fixed;
	bottom: -100px;
	left: 0;
	right: 0;
	text-align: center;

	&.active {
		bottom: 30px;
		z-index: 1200;
	}

	.wpcb-notice {
		width: 100%;
		max-width: 600px;
		padding: 20px;
		margin: 0 auto;
		text-align: left;
		display: flex;
		align-items: center;
		border-radius: 8px;
		position: relative;
		border: 1px solid $template_border;
		background-color: $template_background;
		box-shadow: 0 0 10px rgba(0,0,0,0.14);

		p {
			margin: 0;
		}

		.wpcb-link {
			font-weight: 700;
			margin-left: 10px;
		}
	}

	.wpcb-notice-close {
		appearance: none;
		position: absolute;
		top: 14px;
		right: 14px;
		display: inline-block;
		border: 1px solid $template_border;
		background-color: $template_accent;
		border-radius: 8px;
		padding: 5px;
		cursor: pointer;

		img {
			display: block;
			width: 24px;
			height: 24px;
		}
	}

	&.wpcb-border-square {

		.wpcb-notice,
		.wpcb-notice-close {
			border-radius: 0;
		}
	}

	&.wpcb-border-pill {

		.wpcb-notice {
			border-radius: 40px;
		}
		.wpcb-notice-close {
			border-radius: 25px;
		}
	}
}

.wpcb-form-notice {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 6px;
	font-size: 14px;
	text-align: left;
	background-color: $template_accent;
	border: 1px solid $template_border;
	border-radius: 8px;
	overflow: hidden;

	&:before {
		content: '';
		display: block;
		border-radius: 6px;
		flex: 0 0 34px;
		width: 34px;
		height: 34px;
		margin-right: 10px;
		background-color: $template_border;
	}

	p {
		position: relative;
		margin: 0;
	}
	
	&-success {
		border-color: $color_success;

		&:before {
			background-color: $color_success;
			background-image: $notice_check_url;
			background-repeat: no-repeat;
			background-size: 16px;
			background-position: center;
		}

		&:after {
			content: '';
			position: absolute;
			pointer-events: none;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			background: $color_success;
			opacity: 0.1;
		}
	}

	&-error {
		border-color: $color_error;

		&:before {
			background-color: $color_error;
			background-image: $notice_error_url;
			background-repeat: no-repeat;
			background-size: 16px;
			background-position: center;
		}

		&:after {
			content: '';
			position: absolute;
			pointer-events: none;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			background: $color_error;
			opacity: 0.1;
		}
	}
}