/* Elementor Editor Preview Canvas Backdrop */
.tf-popup-editor-preview-backdrop {
	background: #1e2228 !important;
	min-height: 100vh;
	width: 100%;
	padding: 40px 20px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tf-popup-editor-container {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
	width: 100%;
	position: relative;
	box-sizing: border-box;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}

/* TFT Lifestyle Elementor Popups Styling */
.tf-popup-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 15px;
	box-sizing: border-box;
}

.tf-popup-modal-overlay.tf-popup-active {
	opacity: 1;
	visibility: visible;
}

.tf-popup-modal-container {
	position: relative;
	background: #ffffff;
	border-radius: 8px;
	width: 100%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transform: scale(0.9);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tf-popup-modal-overlay.tf-popup-active .tf-popup-modal-container {
	transform: scale(1);
}

/* Animations */
.tf-popup-modal-overlay[data-animation="fade"] .tf-popup-modal-container {
	transform: none;
}

.tf-popup-modal-overlay[data-animation="slide_up"] .tf-popup-modal-container {
	transform: translateY(50px);
}
.tf-popup-modal-overlay.tf-popup-active[data-animation="slide_up"] .tf-popup-modal-container {
	transform: translateY(0);
}

.tf-popup-modal-overlay[data-animation="slide_down"] .tf-popup-modal-container {
	transform: translateY(-50px);
}
.tf-popup-modal-overlay.tf-popup-active[data-animation="slide_down"] .tf-popup-modal-container {
	transform: translateY(0);
}

/* Close Button */
.tf-popup-close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #333333;
	cursor: pointer;
	z-index: 10;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s ease, color 0.2s ease;
}

.tf-popup-close-btn:hover {
	background: rgba(0, 0, 0, 0.05);
	color: #000000;
}

.tf-popup-modal-content {
	padding: 0;
	width: 100%;
}
