/*--------------------------------------------------------------
# Running Stitches Brevo Newsletter Popup
--------------------------------------------------------------*/

.rs-newsletter-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}

.rs-newsletter-popup.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}


/*--------------------------------------------------------------
# Background Overlay
--------------------------------------------------------------*/

.rs-newsletter-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(3px);
}


/*--------------------------------------------------------------
# Popup Box
--------------------------------------------------------------*/

.rs-newsletter-popup-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 60px);
	overflow-y: auto;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}


/*--------------------------------------------------------------
# Popup Content
--------------------------------------------------------------*/

.rs-newsletter-popup-content {
	padding: 42px;
}

.rs-newsletter-popup .sib-form,
.rs-newsletter-popup .sib-form-container,
.rs-newsletter-popup #sib-container {
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding: 0;
	background: transparent !important;
	border: 0 !important;
}


/*--------------------------------------------------------------
# Close Button
--------------------------------------------------------------*/

.rs-newsletter-popup-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 5;
	width: 38px;
	height: 38px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #2f4f4f;
	font-size: 34px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.rs-newsletter-popup-close:hover {
	color: #e9967a;
}


/*--------------------------------------------------------------
# Heading
--------------------------------------------------------------*/

.rs-newsletter-heading {
	margin-bottom: 24px;
	text-align: center;
}

.rs-newsletter-heading h2 {
	margin: 0 0 10px;
	color: #2f4f4f;
}

.rs-newsletter-heading p {
	margin: 0;
}


/*--------------------------------------------------------------
# Email Field
--------------------------------------------------------------*/

.rs-newsletter-popup .entry__label {
	display: block;
	margin-bottom: 8px;
	color: #2f4f4f;
	font-weight: 600;
}

.rs-newsletter-popup .entry__field input {
	width: 100%;
	min-height: 50px;
	padding: 10px 14px;
	background: #ffffff;
	border: 1px solid #d8cfc5;
	border-radius: 5px;
	box-sizing: border-box;
	font-size: 16px;
}

.rs-newsletter-popup .entry__field input:focus {
	border-color: #2f4f4f;
	outline: none;
	box-shadow: 0 0 0 2px rgba(47, 79, 79, 0.12);
}


/*--------------------------------------------------------------
# Subscribe Button
--------------------------------------------------------------*/

.rs-newsletter-submit {
	margin-top: 20px;
	text-align: center;
}

.rs-newsletter-popup .sib-form-block__button {
	display: inline-block;
	min-width: 180px;
	padding: 12px 24px;
	background: #e9967a;
	border: 2px solid #e9967a;
	border-radius: 5px;
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition:
		background 0.2s ease,
		border-color 0.2s ease;
}

.rs-newsletter-popup .sib-form-block__button:hover {
	background: #2f4f4f;
	border-color: #2f4f4f;
}


/*--------------------------------------------------------------
# Brevo Messages
--------------------------------------------------------------*/

.rs-newsletter-popup .sib-form-message-panel {
	margin: 0 0 20px;
	border-radius: 5px;
}


/*--------------------------------------------------------------
# Prevent Page Scroll While Open
--------------------------------------------------------------*/

body.rs-newsletter-popup-open {
	overflow: hidden;
}


/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 767px) {

	.rs-newsletter-popup {
		padding: 18px;
	}

	.rs-newsletter-popup-dialog {
		max-height: calc(100vh - 36px);
	}

	.rs-newsletter-popup-content {
		padding: 36px 22px 28px;
	}

}