/**
 * MailPoet popup: make the close "X" visible on any background.
 * MailPoet's icon is a 20px white SVG with no backing (see WOD_MailPoet_Popup).
 * A dark round backing keeps it visible over the photo; the padding grows the
 * tap target to 36px without changing the glyph.
 */
.mailpoet_form_popup .mailpoet_form_close_icon {
	box-sizing: content-box;
	padding: 8px;
	top: 8px;
	right: 8px;
	background-color: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	transition: background-color 0.15s ease;
}

.mailpoet_form_popup .mailpoet_form_close_icon:hover,
.mailpoet_form_popup .mailpoet_form_close_icon:focus-visible {
	background-color: rgba(0, 0, 0, 0.85);
}

.mailpoet_form_popup .mailpoet_form_close_icon:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Links in the popup's text (the "privacy policy" line) inherit the theme's
   dark link colour, which disappears on the popup's #1a1a1a background. White
   and underlined reads as a link; the theme's orange fails contrast at 13px. */
.mailpoet_form_popup .mailpoet_form_paragraph a,
.mailpoet_form_popup .mailpoet_form_paragraph a:visited {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mailpoet_form_popup .mailpoet_form_paragraph a:hover,
.mailpoet_form_popup .mailpoet_form_paragraph a:focus-visible {
	text-decoration-thickness: 2px;
}

/* Signal that the dimmed area is clickable (it now closes the popup). */
.mailpoet_form_popup_overlay.active {
	cursor: pointer;
}
