/*
 * "Notify me" banner + its popup for standalone templates (no Elementor / theme index.css).
 * Banner values mirror .onereach-topbanner (top of the page);
 * popup values mirror .onereach-single-post__popup in assets/styles/front-end/pages/_single.scss.
 */

/* Banner: same colours, sizes and layout as .onereach-topbanner (assets/styles/front-end/general/_header.scss) */
.or-notify-banner {
	padding: 12px 16px;
	overflow: hidden;
	background: #867455;
	font-family: Outfit, sans-serif;
}

.or-notify-banner__inner {
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	max-width: 1450px;
	margin: 0 auto;
}

.or-notify-banner__text {
	text-align: center;
	color: #000;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.1;
}

.or-notify-banner__text p {
	margin: 0;
}

.or-notify-banner__text a {
	color: inherit;
	text-decoration: underline;
}

.or-notify-banner__text a:hover {
	text-decoration: none;
}

.or-notify-banner__button {
	display: flex;
	align-items: center;
	margin-left: 16px;
	padding: 10px 20px;
	border: none;
	border-radius: 9px;
	background: #181818;
	color: #fff !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.1;
	white-space: nowrap;
	text-decoration: none;
	transition: all 0.3s ease;
}

.or-notify-banner__button:hover,
.or-notify-banner__button:focus {
	background: #1d1d1d;
	color: #fff !important;
}

.or-notify-banner__button.loading {
	opacity: 0.7;
	pointer-events: none;
}

@media (max-width: 768px) {
	.or-notify-banner__text {
		font-size: 16px;
	}

	.or-notify-banner__button {
		margin-left: 8px;
		font-size: 16px;
	}
}

@media (max-width: 576px) {
	.or-notify-banner__inner {
		flex-direction: column;
		gap: 8px;
	}

	.or-notify-banner__button {
		box-sizing: border-box;
		margin-left: 0;
	}
}

/* Popup (markup from onereach_popup_form_notify_shortcode(), loaded over admin-ajax).
 * Scoped to .popup-form-notify-js: other popups on regular pages share these class names. */
.onereach-single-post__popup.popup-form-notify-js {
	position: relative;
	z-index: 999;
	display: none;
	font-family: Outfit, sans-serif;
}

.onereach-single-post__popup.popup-form-notify-js.active {
	display: block;
}

.popup-form-notify-js .onereach-single-post__popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 16px;
	background: #000c;
	animation: or-notify-fade 0.3s;
}

.popup-form-notify-js .onereach-single-post__popup-content {
	position: relative;
	box-sizing: border-box;
	width: 874px;
	max-height: calc(100vh - 80px);
	margin-top: 40px;
	overflow-y: auto;
	background: #fff;
	border-radius: 0;
	animation: or-notify-slide 0.3s;
}

.popup-form-notify-js .onereach-single-post__popup-content--black {
	background: #000;
	border: 1px solid #41413f;
	border-radius: 4px;
}

.popup-form-notify-js .onereach-single-post__popup-content--small {
	width: 670px;
}

.popup-form-notify-js .onereach-single-post__popup-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding: 64px;
}

.popup-form-notify-js .onereach-single-post__popup-form {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.popup-form-notify-js .onereach-single-post__popup-title {
	margin-bottom: 40px;
}

.popup-form-notify-js .onereach-single-post__popup-form h3 {
	margin: 0 0 8px;
	text-align: center;
	color: #000;
	font-family: Outfit, serif;
	font-size: 36px;
	font-weight: 500;
	line-height: 1.2;
}

.popup-form-notify-js .onereach-single-post__popup-title p {
	margin: 0;
	text-align: center;
	color: #000;
	font-size: 18px;
	line-height: 1.2;
}

.popup-form-notify-js .onereach-single-post__popup-close {
	position: absolute;
	top: 20px;
	right: 22px;
	border: none;
	color: #000;
	font-size: 45px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.3s;
}

.popup-form-notify-js .onereach-single-post__popup-close:hover {
	opacity: 0.8;
}

.popup-form-notify-js .onereach-single-post__popup-content--black .onereach-single-post__popup-form h3,
.popup-form-notify-js .onereach-single-post__popup-content--black .onereach-single-post__popup-title p,
.popup-form-notify-js .onereach-single-post__popup-content--black .onereach-single-post__popup-close {
	color: #fff;
}

@media screen and (max-width: 991px) {
	.popup-form-notify-js .onereach-single-post__popup-content {
		width: 100%;
		min-width: 95%;
	}

	.popup-form-notify-js .onereach-single-post__popup-content--small {
		width: 670px;
		min-width: 670px;
	}

	.popup-form-notify-js .onereach-single-post__popup-cols {
		gap: 24px;
		padding: 48px 32px;
	}

	.popup-form-notify-js .onereach-single-post__popup-title {
		margin-bottom: 24px;
	}

	.popup-form-notify-js .onereach-single-post__popup-form h3 {
		font-size: 28px;
	}

	.popup-form-notify-js .onereach-single-post__popup-close {
		top: 16px;
		right: 18px;
		font-size: 36px;
	}
}

@media screen and (max-width: 768px) {
	.popup-form-notify-js .onereach-single-post__popup-content--small {
		width: 100%;
		min-width: 95%;
	}
}

@media screen and (max-width: 576px) {
	.popup-form-notify-js .onereach-single-post__popup-cols {
		padding: 48px 16px;
	}
}

@keyframes or-notify-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes or-notify-slide {
	from { transform: translateY(10%); }
	to { transform: translateY(0); }
}
