/**
 * Share message
 */

/* make sure modal overlaps following items on regular site */

.modal-active #tpl_search,
.modal-active #tpl_menu,
.modal-active #tpl_submenu {
	z-index: 1;
}

/* make sure modal overlaps navigation on intranet */

.modal-active #tpl_content {
	z-index: 100;
}
	
	/* positioning on intranet */

	.box-news-inner-wrapper {
		position: relative; /* <- needed for modal */
	}

	.box-news-item .share-message {
		float: right;
		margin-top: 20px;
		margin-right: 20px;
		position: relative;
		z-index: 10000000;
	}

	@media(min-width: 1300px) {
		.box-news-item .share-message {
			float: left;
			margin-left: 20px;
		}
	}

	/* postitioning regular site */

	.tpl_news_display .share-message {
		position: absolute;
		right: 0;
		bottom: 0;
		z-index: 10000000;
	}

	/* remove tpl_admin_area styles */

	.tpl_news_display .share-message.tpl_admin_area {
		border: 0;
		padding: 0;
	}

	/**
	 * Message close button
	 */

	.share-message-modal-close {
		background-color: #561f7b;
		background-image: url(../image/web/close-white.png);
		background-position: 2px 2px;
		background-repeat: no-repeat;
		background-size: 16px;
		border-radius: 100%;
		cursor: pointer;
		display: block;
		height: 20px;
		position: absolute;
		right: -20px;
		top: -20px;
		transition: all 0.25s ease-in;
		width: 20px;
	}

		.share-message-modal-close:hover {
			background-color: #81599c;
		}

	/**
	 * Message toggle button
	 */

	#tpl_content .share-message-button {
		background-color: #fff;
		border: 1px solid #561f7b !important;
		color: #561f7b;
		cursor: pointer;
		display: inline-block;
		font-size: 13px;
		line-height: 1;
		padding: 6px 12px;
		transition: all 0.125s ease-in;
	}

		#tpl_content .share-message-button-active {
			background-color: #561f7b;
			color: #fff;
		}

	/**
	 * Message modal
	 */

	.share-message-modal {
		background-color: #D9E7D2;
		bottom: 59px;
		box-sizing: border-box;
		display: none;
		float: left;
		font-size: 14px;
		left: -198px;
		padding: 20px 30px;
		position: absolute;
		width: 300px;
	}

	/* share message modal background-color on regular site */

	.tpl_news_display .share-message-modal {
		background-color: #D9E7D2;
	}

	/* share message modal background-color on intranet */

	.box-news-item .share-message-modal {
		background-color: #BFD7B2;
	}

	@media(min-width: 1200px) {
		.share-message-modal {
			left: -100px;
		}
	}

		/* message modal arrow bottom */

		.share-message-modal:after {
			border: solid transparent;
			border-width: 10px;
			content: '';
			height: 0;
			margin-left: -10px;
			position: absolute;
			right: 20px;
			top: 100%;
			width: 0;
		}

		/* share message arrow color on regular site */

		.tpl_news_display .share-message-modal:after {
			border-top-color: #D9E7D2;
		}

		/* share message arrow color on intranet */

		.box-news-item .share-message-modal:after {
			border-top-color: #BFD7B2;
		}

		@media(min-width: 1200px) {
			.share-message-modal:after {
				left: 50%;
				right: auto;
			}
		}

	.share-message p {
		margin-bottom: 10px;
	}

	.share-message-modal a {
		border-bottom: 0 !important;
		color: #561f7b;
		text-decoration: underline;
	}

	.share-message-modal .formbut, 
	.share-message-modal label {
		font-size: 14px;
	}
	
	#tpl_body_overflow .share-message-modal label,
	.share-message-modal label {
		display: block;
		margin-bottom: 5px;
		padding: 0;
	}

	/* set white background checkbox on intranet */

	#tpl_body_overflow .share-message-modal [type="checkbox"] {
		background-color: #fff;
	}

	.share-message-modal br {
		display: none;
	}

	.share-message-modal .formbut {
		background-color: #561f7b;
		color: #fff;
		font-size: 14px;
		font-weight: 700;
		margin-top: 5px;
	}
