/* Site Notice — dismissible pop-up notice (see inc/site-notice.php). */

.geostone-site-notice[hidden] { display: none; }

.geostone-site-notice {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.geostone-site-notice__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	opacity: 0;
	transition: opacity .25s ease;
}

.geostone-site-notice__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
	padding: 36px 32px 30px;
	text-align: left;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease;
}

.geostone-site-notice.is-visible .geostone-site-notice__backdrop { opacity: 1; }

.geostone-site-notice.is-visible .geostone-site-notice__dialog {
	opacity: 1;
	transform: none;
}

.geostone-site-notice__close {
	position: absolute;
	top: 8px;
	right: 12px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: none;
	color: #717474;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.geostone-site-notice__close:hover { color: #000; }

/* Type comes from the theme classes on the markup:
   .H4-Black-Left on the title, .Paragraph-Gray-16px-Left on the body. */
.geostone-site-notice__title {
	margin: 0 0 12px;
}

/* Paragraphs inherit the wrapper's theme type rather than the global p rule. */
.geostone-site-notice__body p {
	margin: 0 0 12px;
	font: inherit;
	color: inherit;
}
.geostone-site-notice__body p:last-child { margin-bottom: 0; }
.geostone-site-notice__body a { text-decoration: underline; }

.geostone-site-notice__actions {
	margin-top: 24px;
	text-align: right;
}

@media (max-width: 575px) {
	.geostone-site-notice { padding: 14px; }
	.geostone-site-notice__dialog { padding: 32px 20px 22px; }
	.geostone-site-notice__actions { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.geostone-site-notice__backdrop,
	.geostone-site-notice__dialog { transition: none; }
}
