/* ==========================================================================
   SF Popup Modal — Namespaced styles
   Fonts: Montserrat (loaded by theme, no extra import needed)
   ========================================================================== */

/* ---------- Overlay ---------- */
.sf-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.sf-popup-overlay.sf-popup-visible {
	opacity: 1;
}

/* ---------- Scroll lock ---------- */
body.sf-popup-open {
	overflow: hidden !important;
}

/* ---------- Modal card ---------- */
.sf-popup-modal {
	position: relative;
	background-color: #FFFFFF;
	width: 92%;
	max-width: 580px;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0px -15px 0px 0px #B2A490 inset;
	overflow: hidden;
	transform: translateY(24px) scale(0.97);
	transition: transform 0.3s ease;
	font-family: "Montserrat", sans-serif;
}

.sf-popup-overlay.sf-popup-visible .sf-popup-modal {
	transform: translateY(0) scale(1);
}

/* ---------- Close button ---------- */
.sf-popup-close {
	position: absolute;
	top: 16px;
	right: 18px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #b5a07c;
	cursor: pointer;
	z-index: 2;
	padding: 0;
	font-family: "Montserrat", sans-serif;
	transition: color 0.2s ease, transform 0.2s ease;
}

.sf-popup-close:hover {
	color: #8a7657;
	transform: scale(1.15);
}

/* ---------- Body content ---------- */
.sf-popup-body {
	padding: 36px 40px 28px;
}

/* ---------- Title ---------- */
.sf-popup-title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 600;
	color: #7a6a50;
	line-height: 1.3;
	font-family: "Montserrat", sans-serif;
}

/* ---------- Price ---------- */
.sf-popup-price {
	font-size: 28px;
	font-weight: 300;
	color: #b5a07c;
	margin: 0 0 16px;
	line-height: 1.2;
	font-family: "Montserrat", sans-serif;
}

/* ---------- Description ---------- */
.sf-popup-content {
	font-size: 15px;
	line-height: 1.65;
	color: #444;
	margin-bottom: 24px;
	font-family: "Montserrat", sans-serif;
}

.sf-popup-content p {
	margin: 0 0 12px;
}

.sf-popup-content p:last-child {
	margin-bottom: 0;
}

/* ---------- CTA button (matches Elementor button styling) ---------- */
.sf-popup-cta-wrap {
	margin-top: 6px;
}

.sf-popup-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 30px;
	background-color: var(--e-global-color-1bc44cf, #b5a07c);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 600;
	font-family: "Montserrat", sans-serif;
	border-radius: 4px;
	box-shadow: none;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.sf-popup-cta:hover,
.sf-popup-cta:focus {
	background-color: #9a8762;
	box-shadow: 0 4px 14px rgba(181, 160, 124, 0.4);
	color: #fff !important;
	text-decoration: none !important;
}

.sf-popup-cta:visited {
	color: #fff !important;
}

/* Cart icon inside CTA */
.sf-popup-cta-icon {
	width: 18px;
	height: 18px;
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ---------- Loading spinner ---------- */
.sf-popup-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 0;
}

.sf-popup-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e8e0d3;
	border-top-color: #b5a07c;
	border-radius: 50%;
	animation: sf-popup-spin 0.7s linear infinite;
}

@keyframes sf-popup-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.sf-popup-modal {
		width: 96%;
		max-width: none;
		border-radius: 8px;
	}

	.sf-popup-body {
		padding: 28px 22px 22px;
	}

	.sf-popup-title {
		font-size: 22px;
	}

	.sf-popup-close {
		top: 12px;
		right: 14px;
		font-size: 24px;
	}
}