/*
 * Newsletter pop-up (Bloom fly-in, optin_1 "Newsletter", Brevo) — matched to the site.
 *
 *   top:    white, DM Serif Display title, Quattrocento 16px #333 text
 *   bottom: purple like the footer, white field, the footer's white outlined pill button
 *   frame:  the blog cards' 20px radius and soft shadow
 *
 * Bloom prints its per-optin colours as inline `!important` rules, so these need `!important` too.
 * Only styling changes here; Bloom's settings (texts, list, triggers) are untouched.
 */

/* Rounded like the blog cards. NOT overflow:hidden — the close button lives inside this box and
 * would be clipped; the inner header/content get the matching corner radii instead. */
.et_bloom .et_bloom_optin .et_bloom_form_container {
	border-radius: 20px !important;
	background: #ffffff !important;
	box-shadow: 0 16px 96px -24px rgba(0, 0, 0, 0.45) !important;
	font-family: 'Quattrocento', Georgia, 'Times New Roman', serif !important;
}

/* Top: title and text */
.et_bloom .et_bloom_optin .et_bloom_form_header {
	background: #ffffff !important;
	border-radius: 20px 20px 0 0 !important;
	padding: 24px 24px 8px !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_text {
	padding: 0 !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_header h2,
.et_bloom .et_bloom_optin .et_bloom_form_header h2 span {
	font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
	color: #000000 !important;
	text-transform: none !important;
	margin-bottom: 12px !important;
}
/* The intro text was pasted in `white-space: pre` spans, which never wrap — on a phone a line ran
 * off the panel. pre-wrap keeps the author's line breaks and still wraps long lines. */
.et_bloom .et_bloom_optin .et_bloom_form_header .white-space-pre {
	white-space: pre-wrap !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_header p,
.et_bloom .et_bloom_optin .et_bloom_form_header p span,
.et_bloom .et_bloom_optin .et_bloom_form_header li {
	font-family: 'Quattrocento', Georgia, 'Times New Roman', serif !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	color: #333333 !important;
}

/* Bottom: purple, like the footer. One class more than Bloom's own inline
 * `.et_bloom .et_bloom_optin_1 .et_bloom_form_content`, which prints later with !important. */
.et_bloom .et_bloom_optin .et_bloom_form_container .et_bloom_form_content {
	background: #603F8B !important;
	border-radius: 0 0 20px 20px !important;
	padding: 24px !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_content input {
	font-family: 'Quattrocento', Georgia, 'Times New Roman', serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #333333 !important;
	background: #ffffff !important;
	border-radius: 0 !important;
	height: 48px !important;
	padding: 0 14px !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_content button.et_bloom_submit_subscription {
	background: transparent !important;
	border: 4px solid #ffffff !important;
	border-radius: 40px !important;
	height: 48px !important;
	padding: 0 18px !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_content button.et_bloom_submit_subscription:hover {
	background: rgba(255, 255, 255, 0.12) !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_content .et_bloom_button_text {
	font-family: 'Montserrat', Helvetica, Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0 !important;
	color: #ffffff !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_footer p {
	font-family: 'Quattrocento', Georgia, 'Times New Roman', serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	color: #ffffff !important;
}
.et_bloom .et_bloom_optin .et_bloom_success_message {
	color: #ffffff !important;
	font-family: 'Quattrocento', Georgia, 'Times New Roman', serif !important;
}

/* Field + button on one row: the button sizes to its text (Bloom fixes it at 115px, which clips
 * "SUBSCRIBE!" in Montserrat), the field takes the rest. */
.et_bloom .et_bloom_optin .et_bloom_form_content .et_bloom_fields {
	display: flex !important;
	gap: 12px;
	align-items: center;
}
.et_bloom .et_bloom_optin .et_bloom_form_content .et_bloom_fields .et_bloom_popup_input {
	flex: 1 1 auto;
	width: auto !important;
	padding: 0 !important;
	float: none !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_content .et_bloom_fields .et_bloom_popup_input input {
	width: 100% !important;
}
.et_bloom .et_bloom_optin .et_bloom_form_content .et_bloom_fields button.et_bloom_submit_subscription {
	flex: 0 0 auto;
	width: auto !important;
	float: none !important;
}

/* Close button: purple with a white cross — a white circle vanished against the white page. */
.et_bloom .et_bloom_optin .et_bloom_close_button {
	background-color: #603F8B !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	z-index: 10 !important;
	top: -12px !important;
	left: -12px !important;
}

.et_bloom .et_bloom_optin .et_bloom_close_button:before {
	color: #ffffff !important;
}

/* Phones: field above button, both full width (side by side left the field ~100px wide). */
@media (max-width: 767px) {
	.et_bloom .et_bloom_optin .et_bloom_form_content .et_bloom_fields {
		flex-direction: column;
		align-items: stretch;
	}
	.et_bloom .et_bloom_optin .et_bloom_form_content .et_bloom_fields button.et_bloom_submit_subscription {
		width: 100% !important;
	}
}
