/*
 * Responsive skin for The Issue's existing newsletter popup.
 * The parent remains responsible for the popup markup and behaviour.
 */

#newsletter-popup.newsletter-popup {
	box-sizing: border-box !important;
	width: min(920px, calc(100vw - 40px));
	height: auto !important;
	min-height: 560px;
	max-width: 920px;
	max-height: min(680px, calc(100vh - 40px));
	margin: 20px auto;
	overflow: hidden;
	border-radius: 14px;
	background: #1c1c1c !important;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
	color: #fcfcfa;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	flex-direction: row;
}

#newsletter-popup .newsletter-image {
	box-sizing: border-box !important;
	width: 44% !important;
	min-width: 0;
	flex: 0 0 44%;
	overflow: hidden;
	background:
		#111
		url("../images/arf-newsletter-spider-man.webp")
		center center / cover
		no-repeat;
}

#newsletter-popup .newsletter-image img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 560px;
	object-fit: cover;
	object-position: center 28%;
}

#newsletter-popup .newsletter-content {
	box-sizing: border-box !important;
	display: flex;
	width: 56% !important;
	min-width: 0;
	min-height: 560px;
	max-width: none !important;
	flex: 0 0 56%;
	flex-direction: column;
	justify-content: center;
	padding: clamp(38px, 5vw, 62px) !important;
	overflow-y: auto;
	background: #1c1c1c !important;
	color: #fcfcfa !important;
	text-align: left !important;
}

#newsletter-popup .arf-theme-newsletter-form {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	align-self: stretch;
	color: #fcfcfa;
	text-align: left;
}

#newsletter-popup .arf-theme-newsletter-form__eyebrow {
	margin: 0 0 16px;
	color: #e8b23a !important;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

#newsletter-popup .arf-theme-newsletter-form__eyebrow span {
	margin-right: 5px;
}

#newsletter-popup .arf-theme-newsletter-form h4 {
	margin: 0 0 16px;
	color: #fff !important;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	font-size: clamp(30px, 4vw, 46px) !important;
	font-weight: 750 !important;
	letter-spacing: -0.035em !important;
	line-height: 1.02;
	text-transform: none !important;
}

#newsletter-popup .arf-theme-newsletter-form__intro {
	max-width: 32ch;
	margin: 0 0 28px;
	color: #c9c9c9 !important;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	font-size: 17px !important;
	line-height: 1.5;
}

#newsletter-popup .arf-theme-newsletter-form .arf-mailerlite-form {
	box-sizing: border-box !important;
	position: static;
	display: grid !important;
	gap: 14px;
	width: 100% !important;
	max-width: none !important;
	align-self: stretch;
	grid-template-columns: minmax(0, 1fr);
	justify-content: stretch !important;
	justify-items: stretch !important;
	justify-self: stretch;
	margin: 0;
	text-align: left;
}

#newsletter-popup .arf-mailerlite-form__fields {
	display: grid;
	width: 100% !important;
	max-width: none !important;
	align-self: stretch;
	justify-self: stretch;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

#newsletter-popup .arf-theme-newsletter-form label {
	display: grid;
	width: 100%;
	min-width: 0;
	max-width: none;
	gap: 8px;
	margin: 0;
	color: #c9c9c9 !important;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

#newsletter-popup .arf-theme-newsletter-form label span {
	display: block;
}

#newsletter-popup .arf-theme-newsletter-form input[type="text"],
#newsletter-popup .arf-theme-newsletter-form input[type="email"] {
	position: static;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 50px;
	min-width: 0;
	margin: 0;
	padding: 0 14px !important;
	border: 1px solid #3a3a3a !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #fff !important;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	font-size: 14px !important;
	letter-spacing: normal !important;
	line-height: 50px;
	text-transform: none !important;
}

#newsletter-popup .arf-theme-newsletter-form input::placeholder {
	color: #a8a89f !important;
	opacity: 1;
	text-transform: none !important;
}

#newsletter-popup .arf-theme-newsletter-form .btn {
	position: static !important;
	width: 100%;
	height: 50px !important;
	margin: 0;
	padding: 0 18px !important;
	border: 0;
	border-radius: 8px !important;
	background: #e8b23a !important;
	color: #1c1c1c !important;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	font-size: 15px !important;
	font-weight: 700;
	letter-spacing: normal !important;
	line-height: 50px !important;
	text-transform: none !important;
}

#newsletter-popup .arf-theme-newsletter-form .btn:hover,
#newsletter-popup .arf-theme-newsletter-form .btn:focus-visible {
	background: #d39b25 !important;
	color: #111 !important;
}

#newsletter-popup .arf-mailerlite-form__response {
	margin: 0;
	color: #fcfcfa;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	font-size: 13px;
	line-height: 1.45;
}

#newsletter-popup .arf-mailerlite-form__response.is-error {
	color: #f2a59f;
}

#newsletter-popup .thb-custom-checkbox {
	padding-top: 17px;
}

#newsletter-popup .thb-custom-checkbox label {
	color: #c9c9c9 !important;
	font-family: "Bricolage Grotesque", Arial, sans-serif;
	font-size: 12px;
	line-height: 1.45;
	text-align: left;
}

#newsletter-popup .mfp-close {
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	border-radius: 50%;
	background: #fcfcfa !important;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
	color: #1c1c1c !important;
	line-height: 1 !important;
	opacity: 1;
	z-index: 5;
}

#newsletter-popup .mfp-close:hover,
#newsletter-popup .mfp-close:focus-visible {
	background: #e8b23a !important;
	color: #000 !important;
	opacity: 1;
}

@media screen and (max-width: 760px) {
	#newsletter-popup.newsletter-popup {
		width: min(520px, calc(100vw - 24px));
		height: auto !important;
		min-height: 0;
		max-height: calc(100vh - 24px);
		margin: 12px auto;
		flex-direction: column;
		overflow-y: auto;
	}

	#newsletter-popup .newsletter-image {
		display: block !important;
		width: 100% !important;
		height: clamp(140px, 23vh, 190px);
		flex: 0 0 auto;
		background-position: center 31%;
	}

	#newsletter-popup .newsletter-image img {
		height: 100%;
		min-height: 0;
		object-position: center 22%;
	}

	#newsletter-popup .newsletter-content {
		width: 100% !important;
		min-height: 0;
		flex: 0 0 auto;
		align-items: stretch;
		padding: 26px 20px 22px !important;
		overflow: visible;
	}

	#newsletter-popup .mfp-close {
		top: 10px !important;
		right: 10px !important;
		display: inline-flex !important;
	}

	#newsletter-popup .arf-mailerlite-form__fields {
		width: 100%;
		grid-template-columns: 1fr;
	}

	#newsletter-popup .arf-theme-newsletter-form label,
	#newsletter-popup .arf-theme-newsletter-form input[type="text"],
	#newsletter-popup .arf-theme-newsletter-form input[type="email"] {
		width: 100% !important;
		max-width: none !important;
	}

	#newsletter-popup .arf-theme-newsletter-form h4 {
		max-width: 285px;
		font-size: clamp(25px, 7vw, 28px) !important;
		line-height: 1.05;
		white-space: normal !important;
	}

	#newsletter-popup .arf-theme-newsletter-form__intro {
		margin-bottom: 22px;
		font-size: 15px !important;
	}
}
