/* Gracepringle Popup */

.gp-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.gp-popup[hidden] {
	display: none;
}

.gp-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 24, 22, 0.6);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gp-popup__dialog {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	outline: none;
}

.gp-popup.is-open .gp-popup__backdrop {
	opacity: 1;
}

.gp-popup.is-open .gp-popup__dialog {
	opacity: 1;
	transform: none;
}

.gp-popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 1;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	font: 28px/36px Arial, sans-serif;
	cursor: pointer;
}

.gp-popup__close:hover,
.gp-popup__close:focus-visible {
	background: #eee;
}

.gp-popup__art {
	flex: 0 0 240px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 0 28px 28px;
}

.gp-popup__art picture {
	display: contents;
}

.gp-popup__cover {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.gp-popup__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 36px 32px 24px;
	font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
	color: #555;
	text-align: center;
}

.gp-popup__heading {
	margin: 0 0 12px;
	font-family: Cinzel, Georgia, serif;
	font-size: 26px;
	font-weight: normal;
	line-height: 1.2;
	color: #222;
}

.gp-popup__text {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.6;
}

/* MailPoet's form is styled for a wide page; fit it to the dialog. */
.gp-popup .mailpoet_form {
	padding: 0 !important;
}

.gp-popup .mailpoet_form form {
	padding: 10px 0 0 !important;
}

.gp-popup .mailpoet_text,
.gp-popup .mailpoet_submit {
	width: 100% !important;
	box-sizing: border-box;
}

.gp-popup .mailpoet_paragraph {
	margin-bottom: 14px !important;
}

/* The form's own text paragraphs are replaced by the note below, which is set
   on the pop-up's settings page. */
.gp-popup .mailpoet_form_paragraph {
	display: none !important;
}

.gp-popup__note {
	margin: 4px 0 0;
	font-size: 13px;
	font-style: italic;
	line-height: 1.5;
	color: #777;
}

.gp-popup__note a {
	color: #000;
}

/* Phones: stack, with a smaller cover above the text. */
@media (max-width: 600px) {
	.gp-popup__dialog {
		flex-direction: column;
		align-items: center;
	}

	.gp-popup__art {
		flex: none;
		padding: 24px 0 0;
	}

	.gp-popup__cover {
		width: 110px;
	}

	.gp-popup__body {
		padding: 16px 20px 16px;
	}

	.gp-popup__heading {
		font-size: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gp-popup__backdrop,
	.gp-popup__dialog {
		transition: none;
	}
}

/* MailPoet's CAPTCHA step (shown after the first submit): match the email field. */
.gp-popup .mailpoet_form input[type="text"] {
	width: 100% !important;
	box-sizing: border-box;
}
